Package io.grpc.binarylog.v1
Class GrpcLogEntry
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.binarylog.v1.GrpcLogEntry
-
- All Implemented Interfaces:
Message,MessageLite,MessageLiteOrBuilder,MessageOrBuilder,GrpcLogEntryOrBuilder,Serializable
public final class GrpcLogEntry extends GeneratedMessageV3 implements GrpcLogEntryOrBuilder
Log entry we store in binary logs
Protobuf typegrpc.binarylog.v1.GrpcLogEntry- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrpcLogEntry.BuilderLog entry we store in binary logsstatic classGrpcLogEntry.EventTypeEnumerates the type of event Note the terminology is different from the RPC semantics definition, but the same meaning is expressed here.static classGrpcLogEntry.LoggerEnumerates the entity that generates the log entrystatic classGrpcLogEntry.PayloadCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, GeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static intCALL_ID_FIELD_NUMBERstatic intCLIENT_HEADER_FIELD_NUMBERstatic intLOGGER_FIELD_NUMBERstatic intMESSAGE_FIELD_NUMBERstatic intPAYLOAD_TRUNCATED_FIELD_NUMBERstatic intPEER_FIELD_NUMBERstatic intSEQUENCE_ID_WITHIN_CALL_FIELD_NUMBERstatic intSERVER_HEADER_FIELD_NUMBERstatic intTIMESTAMP_FIELD_NUMBERstatic intTRAILER_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER-
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetCallId()Uniquely identifies a call.ClientHeadergetClientHeader().grpc.binarylog.v1.ClientHeader client_header = 6;ClientHeaderOrBuildergetClientHeaderOrBuilder().grpc.binarylog.v1.ClientHeader client_header = 6;static GrpcLogEntrygetDefaultInstance()GrpcLogEntrygetDefaultInstanceForType()static Descriptors.DescriptorgetDescriptor()GrpcLogEntry.LoggergetLogger()One of the above Logger enumintgetLoggerValue()One of the above Logger enumMessagegetMessage()Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEMessageOrBuildergetMessageOrBuilder()Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEParser<GrpcLogEntry>getParserForType()GrpcLogEntry.PayloadCasegetPayloadCase()booleangetPayloadTruncated()true if payload does not represent the full message or metadata.AddressgetPeer()Peer address information, will only be recorded on the first incoming event.AddressOrBuildergetPeerOrBuilder()Peer address information, will only be recorded on the first incoming event.longgetSequenceIdWithinCall()The entry sequence id for this call.intgetSerializedSize()ServerHeadergetServerHeader().grpc.binarylog.v1.ServerHeader server_header = 7;ServerHeaderOrBuildergetServerHeaderOrBuilder().grpc.binarylog.v1.ServerHeader server_header = 7;TimestampgetTimestamp()The timestamp of the binary log messageTimestampOrBuildergetTimestampOrBuilder()The timestamp of the binary log messageTrailergetTrailer().grpc.binarylog.v1.Trailer trailer = 9;TrailerOrBuildergetTrailerOrBuilder().grpc.binarylog.v1.Trailer trailer = 9;GrpcLogEntry.EventTypegetType().grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;intgetTypeValue().grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;booleanhasClientHeader().grpc.binarylog.v1.ClientHeader client_header = 6;inthashCode()booleanhasMessage()Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEbooleanhasPeer()Peer address information, will only be recorded on the first incoming event.booleanhasServerHeader().grpc.binarylog.v1.ServerHeader server_header = 7;booleanhasTimestamp()The timestamp of the binary log messagebooleanhasTrailer().grpc.binarylog.v1.Trailer trailer = 9;protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GrpcLogEntry.BuildernewBuilder()static GrpcLogEntry.BuildernewBuilder(GrpcLogEntry prototype)GrpcLogEntry.BuildernewBuilderForType()protected GrpcLogEntry.BuildernewBuilderForType(GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)static GrpcLogEntryparseDelimitedFrom(InputStream input)static GrpcLogEntryparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static GrpcLogEntryparseFrom(byte[] data)static GrpcLogEntryparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static GrpcLogEntryparseFrom(ByteString data)static GrpcLogEntryparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static GrpcLogEntryparseFrom(CodedInputStream input)static GrpcLogEntryparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static GrpcLogEntryparseFrom(InputStream input)static GrpcLogEntryparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static GrpcLogEntryparseFrom(ByteBuffer data)static GrpcLogEntryparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<GrpcLogEntry>parser()GrpcLogEntry.BuildertoBuilder()voidwriteTo(CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
-
-
-
Field Detail
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CALL_ID_FIELD_NUMBER
public static final int CALL_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER
public static final int SEQUENCE_ID_WITHIN_CALL_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
-
CLIENT_HEADER_FIELD_NUMBER
public static final int CLIENT_HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVER_HEADER_FIELD_NUMBER
public static final int SERVER_HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAILER_FIELD_NUMBER
public static final int TRAILER_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
-
-
Method Detail
-
newInstance
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getPayloadCase
public GrpcLogEntry.PayloadCase getPayloadCase()
- Specified by:
getPayloadCasein interfaceGrpcLogEntryOrBuilder
-
hasTimestamp
public boolean hasTimestamp()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;- Specified by:
hasTimestampin interfaceGrpcLogEntryOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public Timestamp getTimestamp()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampin interfaceGrpcLogEntryOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public TimestampOrBuilder getTimestampOrBuilder()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampOrBuilderin interfaceGrpcLogEntryOrBuilder
-
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:
getCallIdin interfaceGrpcLogEntryOrBuilder- Returns:
- The callId.
-
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:
getSequenceIdWithinCallin interfaceGrpcLogEntryOrBuilder- Returns:
- The sequenceIdWithinCall.
-
getTypeValue
public int getTypeValue()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;- Specified by:
getTypeValuein interfaceGrpcLogEntryOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
public GrpcLogEntry.EventType getType()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;- Specified by:
getTypein interfaceGrpcLogEntryOrBuilder- Returns:
- The type.
-
getLoggerValue
public int getLoggerValue()
One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;- Specified by:
getLoggerValuein interfaceGrpcLogEntryOrBuilder- Returns:
- The enum numeric value on the wire for logger.
-
getLogger
public GrpcLogEntry.Logger getLogger()
One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;- Specified by:
getLoggerin interfaceGrpcLogEntryOrBuilder- Returns:
- The logger.
-
hasClientHeader
public boolean hasClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;- Specified by:
hasClientHeaderin interfaceGrpcLogEntryOrBuilder- Returns:
- Whether the clientHeader field is set.
-
getClientHeader
public ClientHeader getClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;- Specified by:
getClientHeaderin interfaceGrpcLogEntryOrBuilder- Returns:
- The clientHeader.
-
getClientHeaderOrBuilder
public ClientHeaderOrBuilder getClientHeaderOrBuilder()
.grpc.binarylog.v1.ClientHeader client_header = 6;- Specified by:
getClientHeaderOrBuilderin interfaceGrpcLogEntryOrBuilder
-
hasServerHeader
public boolean hasServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7;- Specified by:
hasServerHeaderin interfaceGrpcLogEntryOrBuilder- Returns:
- Whether the serverHeader field is set.
-
getServerHeader
public ServerHeader getServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7;- Specified by:
getServerHeaderin interfaceGrpcLogEntryOrBuilder- Returns:
- The serverHeader.
-
getServerHeaderOrBuilder
public ServerHeaderOrBuilder getServerHeaderOrBuilder()
.grpc.binarylog.v1.ServerHeader server_header = 7;- Specified by:
getServerHeaderOrBuilderin interfaceGrpcLogEntryOrBuilder
-
hasMessage
public boolean hasMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;- Specified by:
hasMessagein interfaceGrpcLogEntryOrBuilder- 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:
getMessagein interfaceGrpcLogEntryOrBuilder- Returns:
- The message.
-
getMessageOrBuilder
public MessageOrBuilder getMessageOrBuilder()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;- Specified by:
getMessageOrBuilderin interfaceGrpcLogEntryOrBuilder
-
hasTrailer
public boolean hasTrailer()
.grpc.binarylog.v1.Trailer trailer = 9;- Specified by:
hasTrailerin interfaceGrpcLogEntryOrBuilder- Returns:
- Whether the trailer field is set.
-
getTrailer
public Trailer getTrailer()
.grpc.binarylog.v1.Trailer trailer = 9;- Specified by:
getTrailerin interfaceGrpcLogEntryOrBuilder- Returns:
- The trailer.
-
getTrailerOrBuilder
public TrailerOrBuilder getTrailerOrBuilder()
.grpc.binarylog.v1.Trailer trailer = 9;- Specified by:
getTrailerOrBuilderin interfaceGrpcLogEntryOrBuilder
-
getPayloadTruncated
public boolean getPayloadTruncated()
true if payload does not represent the full message or metadata.
bool payload_truncated = 10;- Specified by:
getPayloadTruncatedin interfaceGrpcLogEntryOrBuilder- Returns:
- The payloadTruncated.
-
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:
hasPeerin interfaceGrpcLogEntryOrBuilder- 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:
getPeerin interfaceGrpcLogEntryOrBuilder- Returns:
- The peer.
-
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:
getPeerOrBuilderin interfaceGrpcLogEntryOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
public void writeTo(CodedOutputStream output) throws IOException
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
public static GrpcLogEntry parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GrpcLogEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GrpcLogEntry parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GrpcLogEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GrpcLogEntry parseFrom(CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GrpcLogEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GrpcLogEntry.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
public static GrpcLogEntry.Builder newBuilder()
-
newBuilder
public static GrpcLogEntry.Builder newBuilder(GrpcLogEntry prototype)
-
toBuilder
public GrpcLogEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
protected GrpcLogEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
public static GrpcLogEntry getDefaultInstance()
-
parser
public static Parser<GrpcLogEntry> parser()
-
getParserForType
public Parser<GrpcLogEntry> getParserForType()
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
public GrpcLogEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
-