Class GrpcLogEntry.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GrpcLogEntryOrBuilder, java.lang.Cloneable
    Enclosing class:
    GrpcLogEntry

    public static final class GrpcLogEntry.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<GrpcLogEntry.Builder>
    implements GrpcLogEntryOrBuilder
     Log entry we store in binary logs
     
    Protobuf type grpc.binarylog.v1.GrpcLogEntry
    • Field Detail

      • payloadCase_

        private int payloadCase_
      • payload_

        private java.lang.Object payload_
      • bitField0_

        private int bitField0_
      • timestamp_

        private com.google.protobuf.Timestamp timestamp_
      • timestampBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,​com.google.protobuf.Timestamp.Builder,​com.google.protobuf.TimestampOrBuilder> timestampBuilder_
      • callId_

        private long callId_
      • sequenceIdWithinCall_

        private long sequenceIdWithinCall_
      • type_

        private int type_
      • logger_

        private int logger_
      • payloadTruncated_

        private boolean payloadTruncated_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GrpcLogEntry.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public GrpcLogEntry.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<GrpcLogEntry.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GrpcLogEntry.Builder>
      • getDefaultInstanceForType

        public GrpcLogEntry getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GrpcLogEntry build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GrpcLogEntry buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartial0

        private void buildPartial0​(GrpcLogEntry result)
      • buildPartialOneofs

        private void buildPartialOneofs​(GrpcLogEntry result)
      • mergeFrom

        public GrpcLogEntry.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcLogEntry.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GrpcLogEntry.Builder>
      • mergeFrom

        public GrpcLogEntry.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcLogEntry.Builder>
        Throws:
        java.io.IOException
      • hasTimestamp

        public boolean hasTimestamp()
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        hasTimestamp in interface GrpcLogEntryOrBuilder
        Returns:
        Whether the timestamp field is set.
      • getTimestamp

        public com.google.protobuf.Timestamp getTimestamp()
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        getTimestamp in interface GrpcLogEntryOrBuilder
        Returns:
        The timestamp.
      • setTimestamp

        public GrpcLogEntry.Builder setTimestamp​(com.google.protobuf.Timestamp value)
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
      • setTimestamp

        public GrpcLogEntry.Builder setTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
      • mergeTimestamp

        public GrpcLogEntry.Builder mergeTimestamp​(com.google.protobuf.Timestamp value)
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
      • clearTimestamp

        public GrpcLogEntry.Builder clearTimestamp()
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
      • getTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
      • getTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
        Specified by:
        getTimestampOrBuilder in interface GrpcLogEntryOrBuilder
      • getTimestampFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,​com.google.protobuf.Timestamp.Builder,​com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder()
         The timestamp of the binary log message
         
        .google.protobuf.Timestamp timestamp = 1;
      • getCallId

        public long getCallId()
         Uniquely identifies a call. The value must not be 0 in order to disambiguate
         from an unset value.
         Each call may have several log entries, they will all have the same call_id.
         Nothing is guaranteed about their value other than they are unique across
         different RPCs in the same gRPC process.
         
        uint64 call_id = 2;
        Specified by:
        getCallId in interface GrpcLogEntryOrBuilder
        Returns:
        The callId.
      • setCallId

        public GrpcLogEntry.Builder setCallId​(long value)
         Uniquely identifies a call. The value must not be 0 in order to disambiguate
         from an unset value.
         Each call may have several log entries, they will all have the same call_id.
         Nothing is guaranteed about their value other than they are unique across
         different RPCs in the same gRPC process.
         
        uint64 call_id = 2;
        Parameters:
        value - The callId to set.
        Returns:
        This builder for chaining.
      • clearCallId

        public GrpcLogEntry.Builder clearCallId()
         Uniquely identifies a call. The value must not be 0 in order to disambiguate
         from an unset value.
         Each call may have several log entries, they will all have the same call_id.
         Nothing is guaranteed about their value other than they are unique across
         different RPCs in the same gRPC process.
         
        uint64 call_id = 2;
        Returns:
        This builder for chaining.
      • getSequenceIdWithinCall

        public long getSequenceIdWithinCall()
         The entry sequence id for this call. The first GrpcLogEntry has a
         value of 1, to disambiguate from an unset value. The purpose of
         this field is to detect missing entries in environments where
         durability or ordering is not guaranteed.
         
        uint64 sequence_id_within_call = 3;
        Specified by:
        getSequenceIdWithinCall in interface GrpcLogEntryOrBuilder
        Returns:
        The sequenceIdWithinCall.
      • setSequenceIdWithinCall

        public GrpcLogEntry.Builder setSequenceIdWithinCall​(long value)
         The entry sequence id for this call. The first GrpcLogEntry has a
         value of 1, to disambiguate from an unset value. The purpose of
         this field is to detect missing entries in environments where
         durability or ordering is not guaranteed.
         
        uint64 sequence_id_within_call = 3;
        Parameters:
        value - The sequenceIdWithinCall to set.
        Returns:
        This builder for chaining.
      • clearSequenceIdWithinCall

        public GrpcLogEntry.Builder clearSequenceIdWithinCall()
         The entry sequence id for this call. The first GrpcLogEntry has a
         value of 1, to disambiguate from an unset value. The purpose of
         this field is to detect missing entries in environments where
         durability or ordering is not guaranteed.
         
        uint64 sequence_id_within_call = 3;
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
        .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
        Specified by:
        getTypeValue in interface GrpcLogEntryOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public GrpcLogEntry.Builder setTypeValue​(int value)
        .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • clearType

        public GrpcLogEntry.Builder clearType()
        .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
        Returns:
        This builder for chaining.
      • getLoggerValue

        public int getLoggerValue()
         One of the above Logger enum
         
        .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
        Specified by:
        getLoggerValue in interface GrpcLogEntryOrBuilder
        Returns:
        The enum numeric value on the wire for logger.
      • setLoggerValue

        public GrpcLogEntry.Builder setLoggerValue​(int value)
         One of the above Logger enum
         
        .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
        Parameters:
        value - The enum numeric value on the wire for logger to set.
        Returns:
        This builder for chaining.
      • setLogger

        public GrpcLogEntry.Builder setLogger​(GrpcLogEntry.Logger value)
         One of the above Logger enum
         
        .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
        Parameters:
        value - The logger to set.
        Returns:
        This builder for chaining.
      • clearLogger

        public GrpcLogEntry.Builder clearLogger()
         One of the above Logger enum
         
        .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
        Returns:
        This builder for chaining.
      • hasClientHeader

        public boolean hasClientHeader()
        .grpc.binarylog.v1.ClientHeader client_header = 6;
        Specified by:
        hasClientHeader in interface GrpcLogEntryOrBuilder
        Returns:
        Whether the clientHeader field is set.
      • clearClientHeader

        public GrpcLogEntry.Builder clearClientHeader()
        .grpc.binarylog.v1.ClientHeader client_header = 6;
      • getClientHeaderBuilder

        public ClientHeader.Builder getClientHeaderBuilder()
        .grpc.binarylog.v1.ClientHeader client_header = 6;
      • hasServerHeader

        public boolean hasServerHeader()
        .grpc.binarylog.v1.ServerHeader server_header = 7;
        Specified by:
        hasServerHeader in interface GrpcLogEntryOrBuilder
        Returns:
        Whether the serverHeader field is set.
      • clearServerHeader

        public GrpcLogEntry.Builder clearServerHeader()
        .grpc.binarylog.v1.ServerHeader server_header = 7;
      • getServerHeaderBuilder

        public ServerHeader.Builder getServerHeaderBuilder()
        .grpc.binarylog.v1.ServerHeader server_header = 7;
      • hasMessage

        public boolean hasMessage()
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
        Specified by:
        hasMessage in interface GrpcLogEntryOrBuilder
        Returns:
        Whether the message field is set.
      • getMessage

        public Message getMessage()
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
        Specified by:
        getMessage in interface GrpcLogEntryOrBuilder
        Returns:
        The message.
      • setMessage

        public GrpcLogEntry.Builder setMessage​(Message value)
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
      • setMessage

        public GrpcLogEntry.Builder setMessage​(Message.Builder builderForValue)
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
      • mergeMessage

        public GrpcLogEntry.Builder mergeMessage​(Message value)
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
      • clearMessage

        public GrpcLogEntry.Builder clearMessage()
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
      • getMessageBuilder

        public Message.Builder getMessageBuilder()
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
      • getMessageFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Message,​Message.Builder,​MessageOrBuilder> getMessageFieldBuilder()
         Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
         
        .grpc.binarylog.v1.Message message = 8;
      • hasTrailer

        public boolean hasTrailer()
        .grpc.binarylog.v1.Trailer trailer = 9;
        Specified by:
        hasTrailer in interface GrpcLogEntryOrBuilder
        Returns:
        Whether the trailer field is set.
      • getTrailerBuilder

        public Trailer.Builder getTrailerBuilder()
        .grpc.binarylog.v1.Trailer trailer = 9;
      • getPayloadTruncated

        public boolean getPayloadTruncated()
         true if payload does not represent the full message or metadata.
         
        bool payload_truncated = 10;
        Specified by:
        getPayloadTruncated in interface GrpcLogEntryOrBuilder
        Returns:
        The payloadTruncated.
      • setPayloadTruncated

        public GrpcLogEntry.Builder setPayloadTruncated​(boolean value)
         true if payload does not represent the full message or metadata.
         
        bool payload_truncated = 10;
        Parameters:
        value - The payloadTruncated to set.
        Returns:
        This builder for chaining.
      • clearPayloadTruncated

        public GrpcLogEntry.Builder clearPayloadTruncated()
         true if payload does not represent the full message or metadata.
         
        bool payload_truncated = 10;
        Returns:
        This builder for chaining.
      • hasPeer

        public boolean hasPeer()
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
        Specified by:
        hasPeer in interface GrpcLogEntryOrBuilder
        Returns:
        Whether the peer field is set.
      • getPeer

        public Address getPeer()
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
        Specified by:
        getPeer in interface GrpcLogEntryOrBuilder
        Returns:
        The peer.
      • setPeer

        public GrpcLogEntry.Builder setPeer​(Address value)
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
      • setPeer

        public GrpcLogEntry.Builder setPeer​(Address.Builder builderForValue)
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
      • mergePeer

        public GrpcLogEntry.Builder mergePeer​(Address value)
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
      • clearPeer

        public GrpcLogEntry.Builder clearPeer()
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
      • getPeerBuilder

        public Address.Builder getPeerBuilder()
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
      • getPeerOrBuilder

        public AddressOrBuilder getPeerOrBuilder()
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;
        Specified by:
        getPeerOrBuilder in interface GrpcLogEntryOrBuilder
      • getPeerFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Address,​Address.Builder,​AddressOrBuilder> getPeerFieldBuilder()
         Peer address information, will only be recorded on the first
         incoming event. On client side, peer is logged on
         EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in
         the case of trailers-only. On server side, peer is always
         logged on EVENT_TYPE_CLIENT_HEADER.
         
        .grpc.binarylog.v1.Address peer = 11;