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 logs
 
Protobuf type grpc.binarylog.v1.GrpcLogEntry
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • payloadCase_

      private int payloadCase_
    • payload_

      private Object 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_

      private Address peer_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final GrpcLogEntry DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<GrpcLogEntry> 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 class com.google.protobuf.GeneratedMessage
    • getPayloadCase

      public GrpcLogEntry.PayloadCase getPayloadCase()
      Specified by:
      getPayloadCase in interface GrpcLogEntryOrBuilder
    • hasTimestamp

      public boolean hasTimestamp()
       The timestamp of the binary log message
       
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      hasTimestamp in interface GrpcLogEntryOrBuilder
      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 interface GrpcLogEntryOrBuilder
      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 interface GrpcLogEntryOrBuilder
    • 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 interface GrpcLogEntryOrBuilder
      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 interface GrpcLogEntryOrBuilder
      Returns:
      The sequenceIdWithinCall.
    • getTypeValue

      public int getTypeValue()
      .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
      Specified by:
      getTypeValue in interface GrpcLogEntryOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public GrpcLogEntry.EventType getType()
      .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4;
      Specified by:
      getType in interface GrpcLogEntryOrBuilder
      Returns:
      The type.
    • getLoggerValue

      public int getLoggerValue()
       One of the above Logger enum
       
      .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5;
      Specified by:
      getLoggerValue in interface GrpcLogEntryOrBuilder
      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:
      getLogger in interface GrpcLogEntryOrBuilder
      Returns:
      The logger.
    • hasClientHeader

      public boolean hasClientHeader()
      .grpc.binarylog.v1.ClientHeader client_header = 6;
      Specified by:
      hasClientHeader in interface GrpcLogEntryOrBuilder
      Returns:
      Whether the clientHeader field is set.
    • getClientHeader

      public ClientHeader getClientHeader()
      .grpc.binarylog.v1.ClientHeader client_header = 6;
      Specified by:
      getClientHeader in interface GrpcLogEntryOrBuilder
      Returns:
      The clientHeader.
    • getClientHeaderOrBuilder

      public ClientHeaderOrBuilder getClientHeaderOrBuilder()
      .grpc.binarylog.v1.ClientHeader client_header = 6;
      Specified by:
      getClientHeaderOrBuilder in interface GrpcLogEntryOrBuilder
    • hasServerHeader

      public boolean hasServerHeader()
      .grpc.binarylog.v1.ServerHeader server_header = 7;
      Specified by:
      hasServerHeader in interface GrpcLogEntryOrBuilder
      Returns:
      Whether the serverHeader field is set.
    • getServerHeader

      public ServerHeader getServerHeader()
      .grpc.binarylog.v1.ServerHeader server_header = 7;
      Specified by:
      getServerHeader in interface GrpcLogEntryOrBuilder
      Returns:
      The serverHeader.
    • getServerHeaderOrBuilder

      public ServerHeaderOrBuilder getServerHeaderOrBuilder()
      .grpc.binarylog.v1.ServerHeader server_header = 7;
      Specified by:
      getServerHeaderOrBuilder in interface GrpcLogEntryOrBuilder
    • hasMessage

      public boolean hasMessage()
       Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
       
      .grpc.binarylog.v1.Message message = 8;
      Specified by:
      hasMessage in interface GrpcLogEntryOrBuilder
      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:
      getMessage in interface GrpcLogEntryOrBuilder
      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:
      getMessageOrBuilder in interface GrpcLogEntryOrBuilder
    • hasTrailer

      public boolean hasTrailer()
      .grpc.binarylog.v1.Trailer trailer = 9;
      Specified by:
      hasTrailer in interface GrpcLogEntryOrBuilder
      Returns:
      Whether the trailer field is set.
    • getTrailer

      public Trailer getTrailer()
      .grpc.binarylog.v1.Trailer trailer = 9;
      Specified by:
      getTrailer in interface GrpcLogEntryOrBuilder
      Returns:
      The trailer.
    • getTrailerOrBuilder

      public TrailerOrBuilder getTrailerOrBuilder()
      .grpc.binarylog.v1.Trailer trailer = 9;
      Specified by:
      getTrailerOrBuilder in interface GrpcLogEntryOrBuilder
    • getPayloadTruncated

      public boolean getPayloadTruncated()
       true if payload does not represent the full message or metadata.
       
      bool payload_truncated = 10;
      Specified by:
      getPayloadTruncated in interface GrpcLogEntryOrBuilder
      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 interface GrpcLogEntryOrBuilder
      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:
      getPeer in interface GrpcLogEntryOrBuilder
      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:
      getPeerOrBuilder in interface GrpcLogEntryOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static GrpcLogEntry parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcLogEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GrpcLogEntry parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GrpcLogEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcLogEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcLogEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GrpcLogEntry.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GrpcLogEntry.Builder newBuilder()
    • newBuilder

      public static GrpcLogEntry.Builder newBuilder(GrpcLogEntry prototype)
    • toBuilder

      public GrpcLogEntry.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GrpcLogEntry.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GrpcLogEntry getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GrpcLogEntry> parser()
    • getParserForType

      public com.google.protobuf.Parser<GrpcLogEntry> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GrpcLogEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder