Package io.grpc.observabilitylog.v1
Class GrpcLogRecord
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.observabilitylog.v1.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 typegrpc.observabilitylog.v1.GrpcLogRecord- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrpcLogRecord.BuilderProtobuf typegrpc.observabilitylog.v1.GrpcLogRecordstatic classGrpcLogRecord.EventLoggerThe entity that generates the log entrystatic classGrpcLogRecord.EventTypeList 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
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTHORITY_FIELD_NUMBERstatic intCALL_ID_FIELD_NUMBERstatic intLOGGER_FIELD_NUMBERstatic intMETHOD_NAME_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intPAYLOAD_TRUNCATED_FIELD_NUMBERstatic intPEER_FIELD_NUMBERstatic intSEQUENCE_ID_FIELD_NUMBERstatic intSERVICE_NAME_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAuthority()A single process may be used to run multiple virtual servers with different identities.com.google.protobuf.ByteStringgetAuthorityBytes()A single process may be used to run multiple virtual servers with different identities.java.lang.StringgetCallId()Uniquely identifies a call.com.google.protobuf.ByteStringgetCallIdBytes()Uniquely identifies a call.static GrpcLogRecordgetDefaultInstance()GrpcLogRecordgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GrpcLogRecord.EventLoggergetLogger()one of the above EventLogger enumintgetLoggerValue()one of the above EventLogger enumjava.lang.StringgetMethodName()the name of the RPC methodcom.google.protobuf.ByteStringgetMethodNameBytes()the name of the RPC methodcom.google.protobuf.Parser<GrpcLogRecord>getParserForType()PayloadgetPayload()Payload for log entry.PayloadOrBuildergetPayloadOrBuilder()Payload for log entry.booleangetPayloadTruncated()true if message or metadata field is either truncated or omitted due to config optionsAddressgetPeer()Peer address information.AddressOrBuildergetPeerOrBuilder()Peer address information.longgetSequenceId()The entry sequence ID for this call.intgetSerializedSize()java.lang.StringgetServiceName()the name of the servicecom.google.protobuf.ByteStringgetServiceNameBytes()the name of the serviceGrpcLogRecord.EventTypegetType()one of the above EventType enumintgetTypeValue()one of the above EventType enuminthashCode()booleanhasPayload()Payload for log entry.booleanhasPeer()Peer address information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GrpcLogRecord.BuildernewBuilder()static GrpcLogRecord.BuildernewBuilder(GrpcLogRecord prototype)GrpcLogRecord.BuildernewBuilderForType()protected GrpcLogRecord.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static GrpcLogRecordparseDelimitedFrom(java.io.InputStream input)static GrpcLogRecordparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcLogRecordparseFrom(byte[] data)static GrpcLogRecordparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcLogRecordparseFrom(com.google.protobuf.ByteString data)static GrpcLogRecordparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcLogRecordparseFrom(com.google.protobuf.CodedInputStream input)static GrpcLogRecordparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcLogRecordparseFrom(java.io.InputStream input)static GrpcLogRecordparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GrpcLogRecordparseFrom(java.nio.ByteBuffer data)static GrpcLogRecordparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<GrpcLogRecord>parser()GrpcLogRecord.BuildertoBuilder()voidwriteTo(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
-
-
-
-
Field Detail
-
CALL_ID_FIELD_NUMBER
public static final int CALL_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEQUENCE_ID_FIELD_NUMBER
public static final int SEQUENCE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOGGER_FIELD_NUMBER
public static final int LOGGER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_TRUNCATED_FIELD_NUMBER
public static final int PAYLOAD_TRUNCATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PEER_FIELD_NUMBER
public static final int PEER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTHORITY_FIELD_NUMBER
public static final int AUTHORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_NAME_FIELD_NUMBER
public static final int SERVICE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METHOD_NAME_FIELD_NUMBER
public static final int METHOD_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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:
getCallIdin interfaceGrpcLogRecordOrBuilder- 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:
getCallIdBytesin interfaceGrpcLogRecordOrBuilder- 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:
getSequenceIdin interfaceGrpcLogRecordOrBuilder- Returns:
- The sequenceId.
-
getTypeValue
public int getTypeValue()
one of the above EventType enum
.grpc.observabilitylog.v1.GrpcLogRecord.EventType type = 4;- Specified by:
getTypeValuein interfaceGrpcLogRecordOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
public GrpcLogRecord.EventType getType()
one of the above EventType enum
.grpc.observabilitylog.v1.GrpcLogRecord.EventType type = 4;- Specified by:
getTypein interfaceGrpcLogRecordOrBuilder- Returns:
- The type.
-
getLoggerValue
public int getLoggerValue()
one of the above EventLogger enum
.grpc.observabilitylog.v1.GrpcLogRecord.EventLogger logger = 5;- Specified by:
getLoggerValuein interfaceGrpcLogRecordOrBuilder- Returns:
- The enum numeric value on the wire for logger.
-
getLogger
public GrpcLogRecord.EventLogger getLogger()
one of the above EventLogger enum
.grpc.observabilitylog.v1.GrpcLogRecord.EventLogger logger = 5;- Specified by:
getLoggerin interfaceGrpcLogRecordOrBuilder- Returns:
- The 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:
hasPayloadin interfaceGrpcLogRecordOrBuilder- 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:
getPayloadin interfaceGrpcLogRecordOrBuilder- 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:
getPayloadOrBuilderin interfaceGrpcLogRecordOrBuilder
-
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:
getPayloadTruncatedin interfaceGrpcLogRecordOrBuilder- 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:
hasPeerin interfaceGrpcLogRecordOrBuilder- 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:
getPeerin interfaceGrpcLogRecordOrBuilder- 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:
getPeerOrBuilderin interfaceGrpcLogRecordOrBuilder
-
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:
getAuthorityin interfaceGrpcLogRecordOrBuilder- 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:
getAuthorityBytesin interfaceGrpcLogRecordOrBuilder- Returns:
- The bytes for authority.
-
getServiceName
public java.lang.String getServiceName()
the name of the service
string service_name = 11;- Specified by:
getServiceNamein interfaceGrpcLogRecordOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()
the name of the service
string service_name = 11;- Specified by:
getServiceNameBytesin interfaceGrpcLogRecordOrBuilder- Returns:
- The bytes for serviceName.
-
getMethodName
public java.lang.String getMethodName()
the name of the RPC method
string method_name = 12;- Specified by:
getMethodNamein interfaceGrpcLogRecordOrBuilder- Returns:
- The methodName.
-
getMethodNameBytes
public com.google.protobuf.ByteString getMethodNameBytes()
the name of the RPC method
string method_name = 12;- Specified by:
getMethodNameBytesin interfaceGrpcLogRecordOrBuilder- Returns:
- The bytes for methodName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GrpcLogRecord.Builder newBuilder()
-
newBuilder
public static GrpcLogRecord.Builder newBuilder(GrpcLogRecord prototype)
-
toBuilder
public GrpcLogRecord.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GrpcLogRecord.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GrpcLogRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-