Class GrpcLogRecord.Builder

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

    public static final class GrpcLogRecord.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcLogRecord.Builder>
    implements GrpcLogRecordOrBuilder
    Protobuf type grpc.observabilitylog.v1.GrpcLogRecord
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcLogRecord.Builder>
      • clear

        public GrpcLogRecord.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.GeneratedMessageV3.Builder<GrpcLogRecord.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.GeneratedMessageV3.Builder<GrpcLogRecord.Builder>
      • getDefaultInstanceForType

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

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

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

        public GrpcLogRecord.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<GrpcLogRecord.Builder>
      • isInitialized

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

        public GrpcLogRecord.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<GrpcLogRecord.Builder>
        Throws:
        java.io.IOException
      • getCallId

        public java.lang.String getCallId()
         Uniquely identifies a call.
         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.
         
        string call_id = 2;
        Specified by:
        getCallId in interface GrpcLogRecordOrBuilder
        Returns:
        The callId.
      • getCallIdBytes

        public com.google.protobuf.ByteString getCallIdBytes()
         Uniquely identifies a call.
         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.
         
        string call_id = 2;
        Specified by:
        getCallIdBytes in interface GrpcLogRecordOrBuilder
        Returns:
        The bytes for callId.
      • setCallId

        public GrpcLogRecord.Builder setCallId​(java.lang.String value)
         Uniquely identifies a call.
         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.
         
        string call_id = 2;
        Parameters:
        value - The callId to set.
        Returns:
        This builder for chaining.
      • clearCallId

        public GrpcLogRecord.Builder clearCallId()
         Uniquely identifies a call.
         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.
         
        string call_id = 2;
        Returns:
        This builder for chaining.
      • setCallIdBytes

        public GrpcLogRecord.Builder setCallIdBytes​(com.google.protobuf.ByteString value)
         Uniquely identifies a call.
         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.
         
        string call_id = 2;
        Parameters:
        value - The bytes for callId to set.
        Returns:
        This builder for chaining.
      • getSequenceId

        public long getSequenceId()
         The entry sequence ID for this call. The first message 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 = 3;
        Specified by:
        getSequenceId in interface GrpcLogRecordOrBuilder
        Returns:
        The sequenceId.
      • setSequenceId

        public GrpcLogRecord.Builder setSequenceId​(long value)
         The entry sequence ID for this call. The first message 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 = 3;
        Parameters:
        value - The sequenceId to set.
        Returns:
        This builder for chaining.
      • clearSequenceId

        public GrpcLogRecord.Builder clearSequenceId()
         The entry sequence ID for this call. The first message 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 = 3;
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         one of the above EventType enum
         
        .grpc.observabilitylog.v1.GrpcLogRecord.EventType type = 4;
        Specified by:
        getTypeValue in interface GrpcLogRecordOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public GrpcLogRecord.Builder setTypeValue​(int value)
         one of the above EventType enum
         
        .grpc.observabilitylog.v1.GrpcLogRecord.EventType type = 4;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public GrpcLogRecord.Builder setType​(GrpcLogRecord.EventType value)
         one of the above EventType enum
         
        .grpc.observabilitylog.v1.GrpcLogRecord.EventType type = 4;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public GrpcLogRecord.Builder clearType()
         one of the above EventType enum
         
        .grpc.observabilitylog.v1.GrpcLogRecord.EventType type = 4;
        Returns:
        This builder for chaining.
      • getLoggerValue

        public int getLoggerValue()
         one of the above EventLogger enum
         
        .grpc.observabilitylog.v1.GrpcLogRecord.EventLogger logger = 5;
        Specified by:
        getLoggerValue in interface GrpcLogRecordOrBuilder
        Returns:
        The enum numeric value on the wire for logger.
      • setLoggerValue

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

        public GrpcLogRecord.Builder setLogger​(GrpcLogRecord.EventLogger value)
         one of the above EventLogger enum
         
        .grpc.observabilitylog.v1.GrpcLogRecord.EventLogger logger = 5;
        Parameters:
        value - The logger to set.
        Returns:
        This builder for chaining.
      • clearLogger

        public GrpcLogRecord.Builder clearLogger()
         one of the above EventLogger enum
         
        .grpc.observabilitylog.v1.GrpcLogRecord.EventLogger logger = 5;
        Returns:
        This builder for chaining.
      • hasPayload

        public boolean hasPayload()
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
        Specified by:
        hasPayload in interface GrpcLogRecordOrBuilder
        Returns:
        Whether the payload field is set.
      • getPayload

        public Payload getPayload()
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
        Specified by:
        getPayload in interface GrpcLogRecordOrBuilder
        Returns:
        The payload.
      • setPayload

        public GrpcLogRecord.Builder setPayload​(Payload value)
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
      • setPayload

        public GrpcLogRecord.Builder setPayload​(Payload.Builder builderForValue)
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
      • mergePayload

        public GrpcLogRecord.Builder mergePayload​(Payload value)
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
      • clearPayload

        public GrpcLogRecord.Builder clearPayload()
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
      • getPayloadBuilder

        public Payload.Builder getPayloadBuilder()
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
      • getPayloadOrBuilder

        public PayloadOrBuilder getPayloadOrBuilder()
         Payload for log entry.
         It can include a combination of {metadata, message, status based on type of
         the event event being logged and config options.
         
        .grpc.observabilitylog.v1.Payload payload = 6;
        Specified by:
        getPayloadOrBuilder in interface GrpcLogRecordOrBuilder
      • getPayloadTruncated

        public boolean getPayloadTruncated()
         true if message or metadata field is either truncated or omitted due
         to config options
         
        bool payload_truncated = 7;
        Specified by:
        getPayloadTruncated in interface GrpcLogRecordOrBuilder
        Returns:
        The payloadTruncated.
      • setPayloadTruncated

        public GrpcLogRecord.Builder setPayloadTruncated​(boolean value)
         true if message or metadata field is either truncated or omitted due
         to config options
         
        bool payload_truncated = 7;
        Parameters:
        value - The payloadTruncated to set.
        Returns:
        This builder for chaining.
      • clearPayloadTruncated

        public GrpcLogRecord.Builder clearPayloadTruncated()
         true if message or metadata field is either truncated or omitted due
         to config options
         
        bool payload_truncated = 7;
        Returns:
        This builder for chaining.
      • hasPeer

        public boolean hasPeer()
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
        Specified by:
        hasPeer in interface GrpcLogRecordOrBuilder
        Returns:
        Whether the peer field is set.
      • getPeer

        public Address getPeer()
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
        Specified by:
        getPeer in interface GrpcLogRecordOrBuilder
        Returns:
        The peer.
      • setPeer

        public GrpcLogRecord.Builder setPeer​(Address value)
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
      • setPeer

        public GrpcLogRecord.Builder setPeer​(Address.Builder builderForValue)
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
      • mergePeer

        public GrpcLogRecord.Builder mergePeer​(Address value)
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
      • clearPeer

        public GrpcLogRecord.Builder clearPeer()
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
      • getPeerBuilder

        public Address.Builder getPeerBuilder()
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
      • getPeerOrBuilder

        public AddressOrBuilder getPeerOrBuilder()
         Peer address information. On client side, peer is logged on server
         header event or trailer event (if trailer-only). On server side, peer
         is always logged on the client header event.
         
        .grpc.observabilitylog.v1.Address peer = 8;
        Specified by:
        getPeerOrBuilder in interface GrpcLogRecordOrBuilder
      • getAuthority

        public java.lang.String getAuthority()
         A single process may be used to run multiple virtual servers with
         different identities.
         The authority is the name of such a server identify. It is typically a
         portion of the URI in the form of <host> or <host>:<port>.
         
        string authority = 10;
        Specified by:
        getAuthority in interface GrpcLogRecordOrBuilder
        Returns:
        The authority.
      • getAuthorityBytes

        public com.google.protobuf.ByteString getAuthorityBytes()
         A single process may be used to run multiple virtual servers with
         different identities.
         The authority is the name of such a server identify. It is typically a
         portion of the URI in the form of <host> or <host>:<port>.
         
        string authority = 10;
        Specified by:
        getAuthorityBytes in interface GrpcLogRecordOrBuilder
        Returns:
        The bytes for authority.
      • setAuthority

        public GrpcLogRecord.Builder setAuthority​(java.lang.String value)
         A single process may be used to run multiple virtual servers with
         different identities.
         The authority is the name of such a server identify. It is typically a
         portion of the URI in the form of <host> or <host>:<port>.
         
        string authority = 10;
        Parameters:
        value - The authority to set.
        Returns:
        This builder for chaining.
      • clearAuthority

        public GrpcLogRecord.Builder clearAuthority()
         A single process may be used to run multiple virtual servers with
         different identities.
         The authority is the name of such a server identify. It is typically a
         portion of the URI in the form of <host> or <host>:<port>.
         
        string authority = 10;
        Returns:
        This builder for chaining.
      • setAuthorityBytes

        public GrpcLogRecord.Builder setAuthorityBytes​(com.google.protobuf.ByteString value)
         A single process may be used to run multiple virtual servers with
         different identities.
         The authority is the name of such a server identify. It is typically a
         portion of the URI in the form of <host> or <host>:<port>.
         
        string authority = 10;
        Parameters:
        value - The bytes for authority to set.
        Returns:
        This builder for chaining.
      • getServiceName

        public java.lang.String getServiceName()
         the name of the service
         
        string service_name = 11;
        Specified by:
        getServiceName in interface GrpcLogRecordOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         the name of the service
         
        string service_name = 11;
        Specified by:
        getServiceNameBytes in interface GrpcLogRecordOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public GrpcLogRecord.Builder setServiceName​(java.lang.String value)
         the name of the service
         
        string service_name = 11;
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public GrpcLogRecord.Builder clearServiceName()
         the name of the service
         
        string service_name = 11;
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public GrpcLogRecord.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         the name of the service
         
        string service_name = 11;
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • getMethodName

        public java.lang.String getMethodName()
         the name of the RPC method
         
        string method_name = 12;
        Specified by:
        getMethodName in interface GrpcLogRecordOrBuilder
        Returns:
        The methodName.
      • getMethodNameBytes

        public com.google.protobuf.ByteString getMethodNameBytes()
         the name of the RPC method
         
        string method_name = 12;
        Specified by:
        getMethodNameBytes in interface GrpcLogRecordOrBuilder
        Returns:
        The bytes for methodName.
      • setMethodName

        public GrpcLogRecord.Builder setMethodName​(java.lang.String value)
         the name of the RPC method
         
        string method_name = 12;
        Parameters:
        value - The methodName to set.
        Returns:
        This builder for chaining.
      • clearMethodName

        public GrpcLogRecord.Builder clearMethodName()
         the name of the RPC method
         
        string method_name = 12;
        Returns:
        This builder for chaining.
      • setMethodNameBytes

        public GrpcLogRecord.Builder setMethodNameBytes​(com.google.protobuf.ByteString value)
         the name of the RPC method
         
        string method_name = 12;
        Parameters:
        value - The bytes for methodName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GrpcLogRecord.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcLogRecord.Builder>
      • mergeUnknownFields

        public final GrpcLogRecord.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcLogRecord.Builder>