public final class GrpcLogEntry extends com.google.protobuf.GeneratedMessageV3 implements GrpcLogEntryOrBuilder
Log entry we store in binary logsProtobuf type
grpc.binarylog.v1.GrpcLogEntry| Modifier and Type | Class and Description |
|---|---|
static class |
GrpcLogEntry.Builder
Log entry we store in binary logs
|
static class |
GrpcLogEntry.EventType
Enumerates the type of event
Note the terminology is different from the RPC semantics
definition, but the same meaning is expressed here.
|
static class |
GrpcLogEntry.Logger
Enumerates the entity that generates the log entry
|
static class |
GrpcLogEntry.PayloadCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CALL_ID_FIELD_NUMBER |
static int |
CLIENT_HEADER_FIELD_NUMBER |
static int |
LOGGER_FIELD_NUMBER |
static int |
MESSAGE_FIELD_NUMBER |
static int |
PAYLOAD_TRUNCATED_FIELD_NUMBER |
static int |
PEER_FIELD_NUMBER |
static int |
SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER |
static int |
SERVER_HEADER_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
TRAILER_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getCallId()
Uniquely identifies a call.
|
ClientHeader |
getClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6; |
ClientHeaderOrBuilder |
getClientHeaderOrBuilder()
.grpc.binarylog.v1.ClientHeader client_header = 6; |
static GrpcLogEntry |
getDefaultInstance() |
GrpcLogEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GrpcLogEntry.Logger |
getLogger()
One of the above Logger enum
|
int |
getLoggerValue()
One of the above Logger enum
|
Message |
getMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
|
MessageOrBuilder |
getMessageOrBuilder()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
|
com.google.protobuf.Parser<GrpcLogEntry> |
getParserForType() |
GrpcLogEntry.PayloadCase |
getPayloadCase() |
boolean |
getPayloadTruncated()
true if payload does not represent the full message or metadata.
|
Address |
getPeer()
Peer address information, will only be recorded on the first
incoming event.
|
AddressOrBuilder |
getPeerOrBuilder()
Peer address information, will only be recorded on the first
incoming event.
|
long |
getSequenceIdWithinCall()
The entry sequence id for this call.
|
int |
getSerializedSize() |
ServerHeader |
getServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7; |
ServerHeaderOrBuilder |
getServerHeaderOrBuilder()
.grpc.binarylog.v1.ServerHeader server_header = 7; |
com.google.protobuf.Timestamp |
getTimestamp()
The timestamp of the binary log message
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
The timestamp of the binary log message
|
Trailer |
getTrailer()
.grpc.binarylog.v1.Trailer trailer = 9; |
TrailerOrBuilder |
getTrailerOrBuilder()
.grpc.binarylog.v1.Trailer trailer = 9; |
GrpcLogEntry.EventType |
getType()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; |
int |
getTypeValue()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6; |
int |
hashCode() |
boolean |
hasMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
|
boolean |
hasPeer()
Peer address information, will only be recorded on the first
incoming event.
|
boolean |
hasServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7; |
boolean |
hasTimestamp()
The timestamp of the binary log message
|
boolean |
hasTrailer()
.grpc.binarylog.v1.Trailer trailer = 9; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GrpcLogEntry.Builder |
newBuilder() |
static GrpcLogEntry.Builder |
newBuilder(GrpcLogEntry prototype) |
GrpcLogEntry.Builder |
newBuilderForType() |
protected GrpcLogEntry.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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(ByteBuffer data) |
static GrpcLogEntry |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<GrpcLogEntry> |
parser() |
GrpcLogEntry.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TIMESTAMP_FIELD_NUMBER
public static final int CALL_ID_FIELD_NUMBER
public static final int SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int LOGGER_FIELD_NUMBER
public static final int CLIENT_HEADER_FIELD_NUMBER
public static final int SERVER_HEADER_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
public static final int TRAILER_FIELD_NUMBER
public static final int PAYLOAD_TRUNCATED_FIELD_NUMBER
public static final int PEER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public GrpcLogEntry.PayloadCase getPayloadCase()
getPayloadCase in interface GrpcLogEntryOrBuilderpublic boolean hasTimestamp()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;hasTimestamp in interface GrpcLogEntryOrBuilderpublic com.google.protobuf.Timestamp getTimestamp()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;getTimestamp in interface GrpcLogEntryOrBuilderpublic com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;getTimestampOrBuilder in interface GrpcLogEntryOrBuilderpublic 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;getCallId in interface GrpcLogEntryOrBuilderpublic 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;getSequenceIdWithinCall in interface GrpcLogEntryOrBuilderpublic int getTypeValue()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;getTypeValue in interface GrpcLogEntryOrBuilderpublic GrpcLogEntry.EventType getType()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;getType in interface GrpcLogEntryOrBuilderpublic int getLoggerValue()
One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;getLoggerValue in interface GrpcLogEntryOrBuilderpublic GrpcLogEntry.Logger getLogger()
One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;getLogger in interface GrpcLogEntryOrBuilderpublic boolean hasClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;hasClientHeader in interface GrpcLogEntryOrBuilderpublic ClientHeader getClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;getClientHeader in interface GrpcLogEntryOrBuilderpublic ClientHeaderOrBuilder getClientHeaderOrBuilder()
.grpc.binarylog.v1.ClientHeader client_header = 6;getClientHeaderOrBuilder in interface GrpcLogEntryOrBuilderpublic boolean hasServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7;hasServerHeader in interface GrpcLogEntryOrBuilderpublic ServerHeader getServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7;getServerHeader in interface GrpcLogEntryOrBuilderpublic ServerHeaderOrBuilder getServerHeaderOrBuilder()
.grpc.binarylog.v1.ServerHeader server_header = 7;getServerHeaderOrBuilder in interface GrpcLogEntryOrBuilderpublic boolean hasMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;hasMessage in interface GrpcLogEntryOrBuilderpublic Message getMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;getMessage in interface GrpcLogEntryOrBuilderpublic MessageOrBuilder getMessageOrBuilder()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;getMessageOrBuilder in interface GrpcLogEntryOrBuilderpublic boolean hasTrailer()
.grpc.binarylog.v1.Trailer trailer = 9;hasTrailer in interface GrpcLogEntryOrBuilderpublic Trailer getTrailer()
.grpc.binarylog.v1.Trailer trailer = 9;getTrailer in interface GrpcLogEntryOrBuilderpublic TrailerOrBuilder getTrailerOrBuilder()
.grpc.binarylog.v1.Trailer trailer = 9;getTrailerOrBuilder in interface GrpcLogEntryOrBuilderpublic boolean getPayloadTruncated()
true if payload does not represent the full message or metadata.
bool payload_truncated = 10;getPayloadTruncated in interface GrpcLogEntryOrBuilderpublic 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;hasPeer in interface GrpcLogEntryOrBuilderpublic 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;getPeer in interface GrpcLogEntryOrBuilderpublic 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;getPeerOrBuilder in interface GrpcLogEntryOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GrpcLogEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLogEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLogEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLogEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLogEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLogEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcLogEntry parseFrom(InputStream input) throws IOException
IOExceptionpublic static GrpcLogEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GrpcLogEntry parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GrpcLogEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GrpcLogEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GrpcLogEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GrpcLogEntry.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GrpcLogEntry.Builder newBuilder()
public static GrpcLogEntry.Builder newBuilder(GrpcLogEntry prototype)
public GrpcLogEntry.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GrpcLogEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GrpcLogEntry getDefaultInstance()
public static com.google.protobuf.Parser<GrpcLogEntry> parser()
public com.google.protobuf.Parser<GrpcLogEntry> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GrpcLogEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder