Package io.grpc.binarylog.v1
Class GrpcLogEntry
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grpc.binarylog.v1.GrpcLogEntry
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,GrpcLogEntryOrBuilder
,Serializable
public final class GrpcLogEntry
extends com.google.protobuf.GeneratedMessage
implements GrpcLogEntryOrBuilder
Log entry we store in binary logsProtobuf type
grpc.binarylog.v1.GrpcLogEntry
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Log entry we store in binary logsstatic enum
Enumerates the type of event Note the terminology is different from the RPC semantics definition, but the same meaning is expressed here.static enum
Enumerates the entity that generates the log entrystatic enum
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
static final int
private long
static final int
private static final GrpcLogEntry
private int
static final int
private byte
static final int
private static final com.google.protobuf.Parser
<GrpcLogEntry> private Object
static final int
private int
private boolean
private Address
static final int
static final int
private long
private static final long
static final int
private com.google.protobuf.Timestamp
static final int
static final int
private int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
GrpcLogEntry
(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Uniquely identifies a call..grpc.binarylog.v1.ClientHeader client_header = 6;
.grpc.binarylog.v1.ClientHeader client_header = 6;
static GrpcLogEntry
static final com.google.protobuf.Descriptors.Descriptor
One of the above Logger enumint
One of the above Logger enumUsed by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEUsed by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEcom.google.protobuf.Parser
<GrpcLogEntry> boolean
true if payload does not represent the full message or metadata.getPeer()
Peer address information, will only be recorded on the first incoming event.Peer address information, will only be recorded on the first incoming event.long
The entry sequence id for this call.int
.grpc.binarylog.v1.ServerHeader server_header = 7;
.grpc.binarylog.v1.ServerHeader server_header = 7;
com.google.protobuf.Timestamp
The timestamp of the binary log messagecom.google.protobuf.TimestampOrBuilder
The timestamp of the binary log message.grpc.binarylog.v1.Trailer trailer = 9;
.grpc.binarylog.v1.Trailer trailer = 9;
getType()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
int
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
boolean
.grpc.binarylog.v1.ClientHeader client_header = 6;
int
hashCode()
boolean
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEboolean
hasPeer()
Peer address information, will only be recorded on the first incoming event.boolean
.grpc.binarylog.v1.ServerHeader server_header = 7;
boolean
The timestamp of the binary log messageboolean
.grpc.binarylog.v1.Trailer trailer = 9;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static GrpcLogEntry.Builder
static GrpcLogEntry.Builder
newBuilder
(GrpcLogEntry prototype) protected GrpcLogEntry.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static GrpcLogEntry
parseDelimitedFrom
(InputStream input) static GrpcLogEntry
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcLogEntry
parseFrom
(byte[] data) static GrpcLogEntry
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcLogEntry
parseFrom
(com.google.protobuf.ByteString data) static GrpcLogEntry
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcLogEntry
parseFrom
(com.google.protobuf.CodedInputStream input) static GrpcLogEntry
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcLogEntry
parseFrom
(InputStream input) static GrpcLogEntry
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GrpcLogEntry
parseFrom
(ByteBuffer data) static GrpcLogEntry
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<GrpcLogEntry> parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
payloadCase_
private int payloadCase_ -
payload_
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER- See Also:
-
timestamp_
private com.google.protobuf.Timestamp timestamp_ -
CALL_ID_FIELD_NUMBER
public static final int CALL_ID_FIELD_NUMBER- See Also:
-
callId_
private long callId_ -
SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER
public static final int SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER- See Also:
-
sequenceIdWithinCall_
private long sequenceIdWithinCall_ -
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
type_
private int type_ -
LOGGER_FIELD_NUMBER
public static final int LOGGER_FIELD_NUMBER- See Also:
-
logger_
private int logger_ -
CLIENT_HEADER_FIELD_NUMBER
public static final int CLIENT_HEADER_FIELD_NUMBER- See Also:
-
SERVER_HEADER_FIELD_NUMBER
public static final int SERVER_HEADER_FIELD_NUMBER- See Also:
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER- See Also:
-
TRAILER_FIELD_NUMBER
public static final int TRAILER_FIELD_NUMBER- See Also:
-
PAYLOAD_TRUNCATED_FIELD_NUMBER
public static final int PAYLOAD_TRUNCATED_FIELD_NUMBER- See Also:
-
payloadTruncated_
private boolean payloadTruncated_ -
PEER_FIELD_NUMBER
public static final int PEER_FIELD_NUMBER- See Also:
-
peer_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
GrpcLogEntry
private GrpcLogEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
GrpcLogEntry
private GrpcLogEntry()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getPayloadCase
- Specified by:
getPayloadCase
in interfaceGrpcLogEntryOrBuilder
-
hasTimestamp
public boolean hasTimestamp()The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;
- Specified by:
hasTimestamp
in interfaceGrpcLogEntryOrBuilder
- 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 interfaceGrpcLogEntryOrBuilder
- Returns:
- The timestamp.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;
- Specified by:
getTimestampOrBuilder
in 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:
getCallId
in 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:
getSequenceIdWithinCall
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The sequenceIdWithinCall.
-
getTypeValue
public int getTypeValue().grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
- Specified by:
getTypeValue
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
getType
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
- Specified by:
getType
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The type.
-
getLoggerValue
public int getLoggerValue()One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
- Specified by:
getLoggerValue
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The enum numeric value on the wire for logger.
-
getLogger
One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
- Specified by:
getLogger
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The logger.
-
hasClientHeader
public boolean hasClientHeader().grpc.binarylog.v1.ClientHeader client_header = 6;
- Specified by:
hasClientHeader
in interfaceGrpcLogEntryOrBuilder
- Returns:
- Whether the clientHeader field is set.
-
getClientHeader
.grpc.binarylog.v1.ClientHeader client_header = 6;
- Specified by:
getClientHeader
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The clientHeader.
-
getClientHeaderOrBuilder
.grpc.binarylog.v1.ClientHeader client_header = 6;
- Specified by:
getClientHeaderOrBuilder
in interfaceGrpcLogEntryOrBuilder
-
hasServerHeader
public boolean hasServerHeader().grpc.binarylog.v1.ServerHeader server_header = 7;
- Specified by:
hasServerHeader
in interfaceGrpcLogEntryOrBuilder
- Returns:
- Whether the serverHeader field is set.
-
getServerHeader
.grpc.binarylog.v1.ServerHeader server_header = 7;
- Specified by:
getServerHeader
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The serverHeader.
-
getServerHeaderOrBuilder
.grpc.binarylog.v1.ServerHeader server_header = 7;
- Specified by:
getServerHeaderOrBuilder
in interfaceGrpcLogEntryOrBuilder
-
hasMessage
public boolean hasMessage()Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;
- Specified by:
hasMessage
in interfaceGrpcLogEntryOrBuilder
- Returns:
- Whether the message field is set.
-
getMessage
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;
- Specified by:
getMessage
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The message.
-
getMessageOrBuilder
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;
- Specified by:
getMessageOrBuilder
in interfaceGrpcLogEntryOrBuilder
-
hasTrailer
public boolean hasTrailer().grpc.binarylog.v1.Trailer trailer = 9;
- Specified by:
hasTrailer
in interfaceGrpcLogEntryOrBuilder
- Returns:
- Whether the trailer field is set.
-
getTrailer
.grpc.binarylog.v1.Trailer trailer = 9;
- Specified by:
getTrailer
in interfaceGrpcLogEntryOrBuilder
- Returns:
- The trailer.
-
getTrailerOrBuilder
.grpc.binarylog.v1.Trailer trailer = 9;
- Specified by:
getTrailerOrBuilder
in interfaceGrpcLogEntryOrBuilder
-
getPayloadTruncated
public boolean getPayloadTruncated()true if payload does not represent the full message or metadata.
bool payload_truncated = 10;
- Specified by:
getPayloadTruncated
in 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:
hasPeer
in interfaceGrpcLogEntryOrBuilder
- Returns:
- Whether the peer field is set.
-
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 interfaceGrpcLogEntryOrBuilder
- Returns:
- The peer.
-
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 interfaceGrpcLogEntryOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GrpcLogEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcLogEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GrpcLogEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GrpcLogEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GrpcLogEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GrpcLogEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-