Package io.grpc.binarylog.v1
Interface GrpcLogEntryOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder
,MessageOrBuilder
- All Known Implementing Classes:
GrpcLogEntry
,GrpcLogEntry.Builder
public interface GrpcLogEntryOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCallId()
Uniquely identifies a call.ClientHeader
getClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;
ClientHeaderOrBuilder
getClientHeaderOrBuilder()
.grpc.binarylog.v1.ClientHeader client_header = 6;
GrpcLogEntry.Logger
getLogger()
One of the above Logger enumint
getLoggerValue()
One of the above Logger enumMessage
getMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEMessageOrBuilder
getMessageOrBuilder()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEGrpcLogEntry.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.ServerHeader
getServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7;
ServerHeaderOrBuilder
getServerHeaderOrBuilder()
.grpc.binarylog.v1.ServerHeader server_header = 7;
Timestamp
getTimestamp()
The timestamp of the binary log messageTimestampOrBuilder
getTimestampOrBuilder()
The timestamp of the binary log messageTrailer
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;
boolean
hasClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;
boolean
hasMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGEboolean
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 messageboolean
hasTrailer()
.grpc.binarylog.v1.Trailer trailer = 9;
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasTimestamp
boolean hasTimestamp()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;
- Returns:
- Whether the timestamp field is set.
-
getTimestamp
Timestamp getTimestamp()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;
- Returns:
- The timestamp.
-
getTimestampOrBuilder
TimestampOrBuilder getTimestampOrBuilder()
The timestamp of the binary log message
.google.protobuf.Timestamp timestamp = 1;
-
getCallId
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;
- Returns:
- The callId.
-
getSequenceIdWithinCall
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;
- Returns:
- The sequenceIdWithinCall.
-
getTypeValue
int getTypeValue()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
- Returns:
- The enum numeric value on the wire for type.
-
getType
GrpcLogEntry.EventType getType()
.grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
- Returns:
- The type.
-
getLoggerValue
int getLoggerValue()
One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
- Returns:
- The enum numeric value on the wire for logger.
-
getLogger
GrpcLogEntry.Logger getLogger()
One of the above Logger enum
.grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
- Returns:
- The logger.
-
hasClientHeader
boolean hasClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;
- Returns:
- Whether the clientHeader field is set.
-
getClientHeader
ClientHeader getClientHeader()
.grpc.binarylog.v1.ClientHeader client_header = 6;
- Returns:
- The clientHeader.
-
getClientHeaderOrBuilder
ClientHeaderOrBuilder getClientHeaderOrBuilder()
.grpc.binarylog.v1.ClientHeader client_header = 6;
-
hasServerHeader
boolean hasServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7;
- Returns:
- Whether the serverHeader field is set.
-
getServerHeader
ServerHeader getServerHeader()
.grpc.binarylog.v1.ServerHeader server_header = 7;
- Returns:
- The serverHeader.
-
getServerHeaderOrBuilder
ServerHeaderOrBuilder getServerHeaderOrBuilder()
.grpc.binarylog.v1.ServerHeader server_header = 7;
-
hasMessage
boolean hasMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;
- Returns:
- Whether the message field is set.
-
getMessage
Message getMessage()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;
- Returns:
- The message.
-
getMessageOrBuilder
MessageOrBuilder getMessageOrBuilder()
Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
.grpc.binarylog.v1.Message message = 8;
-
hasTrailer
boolean hasTrailer()
.grpc.binarylog.v1.Trailer trailer = 9;
- Returns:
- Whether the trailer field is set.
-
getTrailer
Trailer getTrailer()
.grpc.binarylog.v1.Trailer trailer = 9;
- Returns:
- The trailer.
-
getTrailerOrBuilder
TrailerOrBuilder getTrailerOrBuilder()
.grpc.binarylog.v1.Trailer trailer = 9;
-
getPayloadTruncated
boolean getPayloadTruncated()
true if payload does not represent the full message or metadata.
bool payload_truncated = 10;
- Returns:
- The payloadTruncated.
-
hasPeer
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;
- Returns:
- Whether the peer field is set.
-
getPeer
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;
- Returns:
- The peer.
-
getPeerOrBuilder
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;
-
getPayloadCase
GrpcLogEntry.PayloadCase getPayloadCase()
-
-