Class GrpcLogRecord

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GrpcLogRecordOrBuilder, java.io.Serializable

    public final class GrpcLogRecord
    extends com.google.protobuf.GeneratedMessageV3
    implements GrpcLogRecordOrBuilder
    Protobuf type grpc.observabilitylog.v1.GrpcLogRecord
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GrpcLogRecord.Builder
      Protobuf type grpc.observabilitylog.v1.GrpcLogRecord
      static class  GrpcLogRecord.EventLogger
      The entity that generates the log entry
      static class  GrpcLogRecord.EventType
      List of event types
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAuthority()
      A single process may be used to run multiple virtual servers with different identities.
      com.google.protobuf.ByteString getAuthorityBytes()
      A single process may be used to run multiple virtual servers with different identities.
      java.lang.String getCallId()
      Uniquely identifies a call.
      com.google.protobuf.ByteString getCallIdBytes()
      Uniquely identifies a call.
      static GrpcLogRecord getDefaultInstance()  
      GrpcLogRecord getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      GrpcLogRecord.EventLogger getLogger()
      one of the above EventLogger enum
      int getLoggerValue()
      one of the above EventLogger enum
      java.lang.String getMethodName()
      the name of the RPC method
      com.google.protobuf.ByteString getMethodNameBytes()
      the name of the RPC method
      com.google.protobuf.Parser<GrpcLogRecord> getParserForType()  
      Payload getPayload()
      Payload for log entry.
      PayloadOrBuilder getPayloadOrBuilder()
      Payload for log entry.
      boolean getPayloadTruncated()
      true if message or metadata field is either truncated or omitted due to config options
      Address getPeer()
      Peer address information.
      AddressOrBuilder getPeerOrBuilder()
      Peer address information.
      long getSequenceId()
      The entry sequence ID for this call.
      int getSerializedSize()  
      java.lang.String getServiceName()
      the name of the service
      com.google.protobuf.ByteString getServiceNameBytes()
      the name of the service
      GrpcLogRecord.EventType getType()
      one of the above EventType enum
      int getTypeValue()
      one of the above EventType enum
      int hashCode()  
      boolean hasPayload()
      Payload for log entry.
      boolean hasPeer()
      Peer address information.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static GrpcLogRecord.Builder newBuilder()  
      static GrpcLogRecord.Builder newBuilder​(GrpcLogRecord prototype)  
      GrpcLogRecord.Builder newBuilderForType()  
      protected GrpcLogRecord.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static GrpcLogRecord parseDelimitedFrom​(java.io.InputStream input)  
      static GrpcLogRecord parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GrpcLogRecord parseFrom​(byte[] data)  
      static GrpcLogRecord parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GrpcLogRecord parseFrom​(com.google.protobuf.ByteString data)  
      static GrpcLogRecord parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GrpcLogRecord parseFrom​(com.google.protobuf.CodedInputStream input)  
      static GrpcLogRecord parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GrpcLogRecord parseFrom​(java.io.InputStream input)  
      static GrpcLogRecord parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static GrpcLogRecord parseFrom​(java.nio.ByteBuffer data)  
      static GrpcLogRecord parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<GrpcLogRecord> parser()  
      GrpcLogRecord.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GrpcLogRecord parseFrom​(java.nio.ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcLogRecord parseFrom​(java.nio.ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcLogRecord parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcLogRecord parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcLogRecord parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcLogRecord parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcLogRecord parseFrom​(java.io.InputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static GrpcLogRecord parseFrom​(java.io.InputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static GrpcLogRecord parseDelimitedFrom​(java.io.InputStream input)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static GrpcLogRecord parseDelimitedFrom​(java.io.InputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static GrpcLogRecord parseFrom​(com.google.protobuf.CodedInputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static GrpcLogRecord parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected GrpcLogRecord.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static GrpcLogRecord getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<GrpcLogRecord> parser()
      • getParserForType

        public com.google.protobuf.Parser<GrpcLogRecord> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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