All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shade.polaris.io.grpc.binarylog.v1.GrpcLogEntry Maven / Gradle / Ivy

There is a newer version: 2.0.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/binlog/v1/binarylog.proto

package io.grpc.binarylog.v1;

/**
 * 
 * Log entry we store in binary logs
 * 
* * Protobuf type {@code grpc.binarylog.v1.GrpcLogEntry} */ public final class GrpcLogEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.binarylog.v1.GrpcLogEntry) GrpcLogEntryOrBuilder { private static final long serialVersionUID = 0L; // Use GrpcLogEntry.newBuilder() to construct. private GrpcLogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GrpcLogEntry() { type_ = 0; logger_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GrpcLogEntry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.binarylog.v1.BinaryLogProto.internal_static_grpc_binarylog_v1_GrpcLogEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.binarylog.v1.BinaryLogProto.internal_static_grpc_binarylog_v1_GrpcLogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.binarylog.v1.GrpcLogEntry.class, io.grpc.binarylog.v1.GrpcLogEntry.Builder.class); } /** *
   * Enumerates the type of event
   * Note the terminology is different from the RPC semantics
   * definition, but the same meaning is expressed here.
   * 
* * Protobuf enum {@code grpc.binarylog.v1.GrpcLogEntry.EventType} */ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { /** * EVENT_TYPE_UNKNOWN = 0; */ EVENT_TYPE_UNKNOWN(0), /** *
     * Header sent from client to server
     * 
* * EVENT_TYPE_CLIENT_HEADER = 1; */ EVENT_TYPE_CLIENT_HEADER(1), /** *
     * Header sent from server to client
     * 
* * EVENT_TYPE_SERVER_HEADER = 2; */ EVENT_TYPE_SERVER_HEADER(2), /** *
     * Message sent from client to server
     * 
* * EVENT_TYPE_CLIENT_MESSAGE = 3; */ EVENT_TYPE_CLIENT_MESSAGE(3), /** *
     * Message sent from server to client
     * 
* * EVENT_TYPE_SERVER_MESSAGE = 4; */ EVENT_TYPE_SERVER_MESSAGE(4), /** *
     * A signal that client is done sending
     * 
* * EVENT_TYPE_CLIENT_HALF_CLOSE = 5; */ EVENT_TYPE_CLIENT_HALF_CLOSE(5), /** *
     * Trailer indicates the end of the RPC.
     * On client side, this event means a trailer was either received
     * from the network or the gRPC library locally generated a status
     * to inform the application about a failure.
     * On server side, this event means the server application requested
     * to send a trailer. Note: EVENT_TYPE_CANCEL may still arrive after
     * this due to races on server side.
     * 
* * EVENT_TYPE_SERVER_TRAILER = 6; */ EVENT_TYPE_SERVER_TRAILER(6), /** *
     * A signal that the RPC is cancelled. On client side, this
     * indicates the client application requests a cancellation.
     * On server side, this indicates that cancellation was detected.
     * Note: This marks the end of the RPC. Events may arrive after
     * this due to races. For example, on client side a trailer
     * may arrive even though the application requested to cancel the RPC.
     * 
* * EVENT_TYPE_CANCEL = 7; */ EVENT_TYPE_CANCEL(7), UNRECOGNIZED(-1), ; /** * EVENT_TYPE_UNKNOWN = 0; */ public static final int EVENT_TYPE_UNKNOWN_VALUE = 0; /** *
     * Header sent from client to server
     * 
* * EVENT_TYPE_CLIENT_HEADER = 1; */ public static final int EVENT_TYPE_CLIENT_HEADER_VALUE = 1; /** *
     * Header sent from server to client
     * 
* * EVENT_TYPE_SERVER_HEADER = 2; */ public static final int EVENT_TYPE_SERVER_HEADER_VALUE = 2; /** *
     * Message sent from client to server
     * 
* * EVENT_TYPE_CLIENT_MESSAGE = 3; */ public static final int EVENT_TYPE_CLIENT_MESSAGE_VALUE = 3; /** *
     * Message sent from server to client
     * 
* * EVENT_TYPE_SERVER_MESSAGE = 4; */ public static final int EVENT_TYPE_SERVER_MESSAGE_VALUE = 4; /** *
     * A signal that client is done sending
     * 
* * EVENT_TYPE_CLIENT_HALF_CLOSE = 5; */ public static final int EVENT_TYPE_CLIENT_HALF_CLOSE_VALUE = 5; /** *
     * Trailer indicates the end of the RPC.
     * On client side, this event means a trailer was either received
     * from the network or the gRPC library locally generated a status
     * to inform the application about a failure.
     * On server side, this event means the server application requested
     * to send a trailer. Note: EVENT_TYPE_CANCEL may still arrive after
     * this due to races on server side.
     * 
* * EVENT_TYPE_SERVER_TRAILER = 6; */ public static final int EVENT_TYPE_SERVER_TRAILER_VALUE = 6; /** *
     * A signal that the RPC is cancelled. On client side, this
     * indicates the client application requests a cancellation.
     * On server side, this indicates that cancellation was detected.
     * Note: This marks the end of the RPC. Events may arrive after
     * this due to races. For example, on client side a trailer
     * may arrive even though the application requested to cancel the RPC.
     * 
* * EVENT_TYPE_CANCEL = 7; */ public static final int EVENT_TYPE_CANCEL_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static EventType forNumber(int value) { switch (value) { case 0: return EVENT_TYPE_UNKNOWN; case 1: return EVENT_TYPE_CLIENT_HEADER; case 2: return EVENT_TYPE_SERVER_HEADER; case 3: return EVENT_TYPE_CLIENT_MESSAGE; case 4: return EVENT_TYPE_SERVER_MESSAGE; case 5: return EVENT_TYPE_CLIENT_HALF_CLOSE; case 6: return EVENT_TYPE_SERVER_TRAILER; case 7: return EVENT_TYPE_CANCEL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< EventType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EventType findValueByNumber(int number) { return EventType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.grpc.binarylog.v1.GrpcLogEntry.getDescriptor().getEnumTypes().get(0); } private static final EventType[] VALUES = values(); public static EventType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private EventType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.binarylog.v1.GrpcLogEntry.EventType) } /** *
   * Enumerates the entity that generates the log entry
   * 
* * Protobuf enum {@code grpc.binarylog.v1.GrpcLogEntry.Logger} */ public enum Logger implements com.google.protobuf.ProtocolMessageEnum { /** * LOGGER_UNKNOWN = 0; */ LOGGER_UNKNOWN(0), /** * LOGGER_CLIENT = 1; */ LOGGER_CLIENT(1), /** * LOGGER_SERVER = 2; */ LOGGER_SERVER(2), UNRECOGNIZED(-1), ; /** * LOGGER_UNKNOWN = 0; */ public static final int LOGGER_UNKNOWN_VALUE = 0; /** * LOGGER_CLIENT = 1; */ public static final int LOGGER_CLIENT_VALUE = 1; /** * LOGGER_SERVER = 2; */ public static final int LOGGER_SERVER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Logger valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Logger forNumber(int value) { switch (value) { case 0: return LOGGER_UNKNOWN; case 1: return LOGGER_CLIENT; case 2: return LOGGER_SERVER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Logger> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Logger findValueByNumber(int number) { return Logger.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.grpc.binarylog.v1.GrpcLogEntry.getDescriptor().getEnumTypes().get(1); } private static final Logger[] VALUES = values(); public static Logger valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Logger(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.binarylog.v1.GrpcLogEntry.Logger) } private int bitField0_; private int payloadCase_ = 0; @SuppressWarnings("serial") private java.lang.Object payload_; public enum PayloadCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLIENT_HEADER(6), SERVER_HEADER(7), MESSAGE(8), TRAILER(9), PAYLOAD_NOT_SET(0); private final int value; private PayloadCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PayloadCase valueOf(int value) { return forNumber(value); } public static PayloadCase forNumber(int value) { switch (value) { case 6: return CLIENT_HEADER; case 7: return SERVER_HEADER; case 8: return MESSAGE; case 9: return TRAILER; case 0: return PAYLOAD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp timestamp_; /** *
   * The timestamp of the binary log message
   * 
* * .google.protobuf.Timestamp timestamp = 1; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The timestamp of the binary log message
   * 
* * .google.protobuf.Timestamp timestamp = 1; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
   * The timestamp of the binary log message
   * 
* * .google.protobuf.Timestamp timestamp = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } public static final int CALL_ID_FIELD_NUMBER = 2; private long callId_ = 0L; /** *
   * 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; * @return The callId. */ @java.lang.Override public long getCallId() { return callId_; } public static final int SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER = 3; private long sequenceIdWithinCall_ = 0L; /** *
   * 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; * @return The sequenceIdWithinCall. */ @java.lang.Override public long getSequenceIdWithinCall() { return sequenceIdWithinCall_; } public static final int TYPE_FIELD_NUMBER = 4; private int type_ = 0; /** * .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; * @return The type. */ @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry.EventType getType() { io.grpc.binarylog.v1.GrpcLogEntry.EventType result = io.grpc.binarylog.v1.GrpcLogEntry.EventType.forNumber(type_); return result == null ? io.grpc.binarylog.v1.GrpcLogEntry.EventType.UNRECOGNIZED : result; } public static final int LOGGER_FIELD_NUMBER = 5; private int logger_ = 0; /** *
   * One of the above Logger enum
   * 
* * .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5; * @return The enum numeric value on the wire for logger. */ @java.lang.Override public int getLoggerValue() { return logger_; } /** *
   * One of the above Logger enum
   * 
* * .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5; * @return The logger. */ @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry.Logger getLogger() { io.grpc.binarylog.v1.GrpcLogEntry.Logger result = io.grpc.binarylog.v1.GrpcLogEntry.Logger.forNumber(logger_); return result == null ? io.grpc.binarylog.v1.GrpcLogEntry.Logger.UNRECOGNIZED : result; } public static final int CLIENT_HEADER_FIELD_NUMBER = 6; /** * .grpc.binarylog.v1.ClientHeader client_header = 6; * @return Whether the clientHeader field is set. */ @java.lang.Override public boolean hasClientHeader() { return payloadCase_ == 6; } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; * @return The clientHeader. */ @java.lang.Override public io.grpc.binarylog.v1.ClientHeader getClientHeader() { if (payloadCase_ == 6) { return (io.grpc.binarylog.v1.ClientHeader) payload_; } return io.grpc.binarylog.v1.ClientHeader.getDefaultInstance(); } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ @java.lang.Override public io.grpc.binarylog.v1.ClientHeaderOrBuilder getClientHeaderOrBuilder() { if (payloadCase_ == 6) { return (io.grpc.binarylog.v1.ClientHeader) payload_; } return io.grpc.binarylog.v1.ClientHeader.getDefaultInstance(); } public static final int SERVER_HEADER_FIELD_NUMBER = 7; /** * .grpc.binarylog.v1.ServerHeader server_header = 7; * @return Whether the serverHeader field is set. */ @java.lang.Override public boolean hasServerHeader() { return payloadCase_ == 7; } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; * @return The serverHeader. */ @java.lang.Override public io.grpc.binarylog.v1.ServerHeader getServerHeader() { if (payloadCase_ == 7) { return (io.grpc.binarylog.v1.ServerHeader) payload_; } return io.grpc.binarylog.v1.ServerHeader.getDefaultInstance(); } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ @java.lang.Override public io.grpc.binarylog.v1.ServerHeaderOrBuilder getServerHeaderOrBuilder() { if (payloadCase_ == 7) { return (io.grpc.binarylog.v1.ServerHeader) payload_; } return io.grpc.binarylog.v1.ServerHeader.getDefaultInstance(); } public static final int MESSAGE_FIELD_NUMBER = 8; /** *
   * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
   * 
* * .grpc.binarylog.v1.Message message = 8; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return payloadCase_ == 8; } /** *
   * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
   * 
* * .grpc.binarylog.v1.Message message = 8; * @return The message. */ @java.lang.Override public io.grpc.binarylog.v1.Message getMessage() { if (payloadCase_ == 8) { return (io.grpc.binarylog.v1.Message) payload_; } return io.grpc.binarylog.v1.Message.getDefaultInstance(); } /** *
   * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
   * 
* * .grpc.binarylog.v1.Message message = 8; */ @java.lang.Override public io.grpc.binarylog.v1.MessageOrBuilder getMessageOrBuilder() { if (payloadCase_ == 8) { return (io.grpc.binarylog.v1.Message) payload_; } return io.grpc.binarylog.v1.Message.getDefaultInstance(); } public static final int TRAILER_FIELD_NUMBER = 9; /** * .grpc.binarylog.v1.Trailer trailer = 9; * @return Whether the trailer field is set. */ @java.lang.Override public boolean hasTrailer() { return payloadCase_ == 9; } /** * .grpc.binarylog.v1.Trailer trailer = 9; * @return The trailer. */ @java.lang.Override public io.grpc.binarylog.v1.Trailer getTrailer() { if (payloadCase_ == 9) { return (io.grpc.binarylog.v1.Trailer) payload_; } return io.grpc.binarylog.v1.Trailer.getDefaultInstance(); } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ @java.lang.Override public io.grpc.binarylog.v1.TrailerOrBuilder getTrailerOrBuilder() { if (payloadCase_ == 9) { return (io.grpc.binarylog.v1.Trailer) payload_; } return io.grpc.binarylog.v1.Trailer.getDefaultInstance(); } public static final int PAYLOAD_TRUNCATED_FIELD_NUMBER = 10; private boolean payloadTruncated_ = false; /** *
   * true if payload does not represent the full message or metadata.
   * 
* * bool payload_truncated = 10; * @return The payloadTruncated. */ @java.lang.Override public boolean getPayloadTruncated() { return payloadTruncated_; } public static final int PEER_FIELD_NUMBER = 11; private io.grpc.binarylog.v1.Address peer_; /** *
   * 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; * @return Whether the peer field is set. */ @java.lang.Override public boolean hasPeer() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * 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; * @return The peer. */ @java.lang.Override public io.grpc.binarylog.v1.Address getPeer() { return peer_ == null ? io.grpc.binarylog.v1.Address.getDefaultInstance() : peer_; } /** *
   * 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; */ @java.lang.Override public io.grpc.binarylog.v1.AddressOrBuilder getPeerOrBuilder() { return peer_ == null ? io.grpc.binarylog.v1.Address.getDefaultInstance() : peer_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTimestamp()); } if (callId_ != 0L) { output.writeUInt64(2, callId_); } if (sequenceIdWithinCall_ != 0L) { output.writeUInt64(3, sequenceIdWithinCall_); } if (type_ != io.grpc.binarylog.v1.GrpcLogEntry.EventType.EVENT_TYPE_UNKNOWN.getNumber()) { output.writeEnum(4, type_); } if (logger_ != io.grpc.binarylog.v1.GrpcLogEntry.Logger.LOGGER_UNKNOWN.getNumber()) { output.writeEnum(5, logger_); } if (payloadCase_ == 6) { output.writeMessage(6, (io.grpc.binarylog.v1.ClientHeader) payload_); } if (payloadCase_ == 7) { output.writeMessage(7, (io.grpc.binarylog.v1.ServerHeader) payload_); } if (payloadCase_ == 8) { output.writeMessage(8, (io.grpc.binarylog.v1.Message) payload_); } if (payloadCase_ == 9) { output.writeMessage(9, (io.grpc.binarylog.v1.Trailer) payload_); } if (payloadTruncated_ != false) { output.writeBool(10, payloadTruncated_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getPeer()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTimestamp()); } if (callId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, callId_); } if (sequenceIdWithinCall_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, sequenceIdWithinCall_); } if (type_ != io.grpc.binarylog.v1.GrpcLogEntry.EventType.EVENT_TYPE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_); } if (logger_ != io.grpc.binarylog.v1.GrpcLogEntry.Logger.LOGGER_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, logger_); } if (payloadCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.grpc.binarylog.v1.ClientHeader) payload_); } if (payloadCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.grpc.binarylog.v1.ServerHeader) payload_); } if (payloadCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.grpc.binarylog.v1.Message) payload_); } if (payloadCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.grpc.binarylog.v1.Trailer) payload_); } if (payloadTruncated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, payloadTruncated_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getPeer()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.grpc.binarylog.v1.GrpcLogEntry)) { return super.equals(obj); } io.grpc.binarylog.v1.GrpcLogEntry other = (io.grpc.binarylog.v1.GrpcLogEntry) obj; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (getCallId() != other.getCallId()) return false; if (getSequenceIdWithinCall() != other.getSequenceIdWithinCall()) return false; if (type_ != other.type_) return false; if (logger_ != other.logger_) return false; if (getPayloadTruncated() != other.getPayloadTruncated()) return false; if (hasPeer() != other.hasPeer()) return false; if (hasPeer()) { if (!getPeer() .equals(other.getPeer())) return false; } if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 6: if (!getClientHeader() .equals(other.getClientHeader())) return false; break; case 7: if (!getServerHeader() .equals(other.getServerHeader())) return false; break; case 8: if (!getMessage() .equals(other.getMessage())) return false; break; case 9: if (!getTrailer() .equals(other.getTrailer())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + CALL_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallId()); hash = (37 * hash) + SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequenceIdWithinCall()); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + LOGGER_FIELD_NUMBER; hash = (53 * hash) + logger_; hash = (37 * hash) + PAYLOAD_TRUNCATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPayloadTruncated()); if (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } switch (payloadCase_) { case 6: hash = (37 * hash) + CLIENT_HEADER_FIELD_NUMBER; hash = (53 * hash) + getClientHeader().hashCode(); break; case 7: hash = (37 * hash) + SERVER_HEADER_FIELD_NUMBER; hash = (53 * hash) + getServerHeader().hashCode(); break; case 8: hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); break; case 9: hash = (37 * hash) + TRAILER_FIELD_NUMBER; hash = (53 * hash) + getTrailer().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.binarylog.v1.GrpcLogEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.binarylog.v1.GrpcLogEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.binarylog.v1.GrpcLogEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.grpc.binarylog.v1.GrpcLogEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Log entry we store in binary logs
   * 
* * Protobuf type {@code grpc.binarylog.v1.GrpcLogEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.binarylog.v1.GrpcLogEntry) io.grpc.binarylog.v1.GrpcLogEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.binarylog.v1.BinaryLogProto.internal_static_grpc_binarylog_v1_GrpcLogEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.binarylog.v1.BinaryLogProto.internal_static_grpc_binarylog_v1_GrpcLogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.binarylog.v1.GrpcLogEntry.class, io.grpc.binarylog.v1.GrpcLogEntry.Builder.class); } // Construct using io.grpc.binarylog.v1.GrpcLogEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTimestampFieldBuilder(); getPeerFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } callId_ = 0L; sequenceIdWithinCall_ = 0L; type_ = 0; logger_ = 0; if (clientHeaderBuilder_ != null) { clientHeaderBuilder_.clear(); } if (serverHeaderBuilder_ != null) { serverHeaderBuilder_.clear(); } if (messageBuilder_ != null) { messageBuilder_.clear(); } if (trailerBuilder_ != null) { trailerBuilder_.clear(); } payloadTruncated_ = false; peer_ = null; if (peerBuilder_ != null) { peerBuilder_.dispose(); peerBuilder_ = null; } payloadCase_ = 0; payload_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.binarylog.v1.BinaryLogProto.internal_static_grpc_binarylog_v1_GrpcLogEntry_descriptor; } @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry getDefaultInstanceForType() { return io.grpc.binarylog.v1.GrpcLogEntry.getDefaultInstance(); } @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry build() { io.grpc.binarylog.v1.GrpcLogEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry buildPartial() { io.grpc.binarylog.v1.GrpcLogEntry result = new io.grpc.binarylog.v1.GrpcLogEntry(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.grpc.binarylog.v1.GrpcLogEntry result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.callId_ = callId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sequenceIdWithinCall_ = sequenceIdWithinCall_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.logger_ = logger_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.payloadTruncated_ = payloadTruncated_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.peer_ = peerBuilder_ == null ? peer_ : peerBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(io.grpc.binarylog.v1.GrpcLogEntry result) { result.payloadCase_ = payloadCase_; result.payload_ = this.payload_; if (payloadCase_ == 6 && clientHeaderBuilder_ != null) { result.payload_ = clientHeaderBuilder_.build(); } if (payloadCase_ == 7 && serverHeaderBuilder_ != null) { result.payload_ = serverHeaderBuilder_.build(); } if (payloadCase_ == 8 && messageBuilder_ != null) { result.payload_ = messageBuilder_.build(); } if (payloadCase_ == 9 && trailerBuilder_ != null) { result.payload_ = trailerBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grpc.binarylog.v1.GrpcLogEntry) { return mergeFrom((io.grpc.binarylog.v1.GrpcLogEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.binarylog.v1.GrpcLogEntry other) { if (other == io.grpc.binarylog.v1.GrpcLogEntry.getDefaultInstance()) return this; if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getCallId() != 0L) { setCallId(other.getCallId()); } if (other.getSequenceIdWithinCall() != 0L) { setSequenceIdWithinCall(other.getSequenceIdWithinCall()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.logger_ != 0) { setLoggerValue(other.getLoggerValue()); } if (other.getPayloadTruncated() != false) { setPayloadTruncated(other.getPayloadTruncated()); } if (other.hasPeer()) { mergePeer(other.getPeer()); } switch (other.getPayloadCase()) { case CLIENT_HEADER: { mergeClientHeader(other.getClientHeader()); break; } case SERVER_HEADER: { mergeServerHeader(other.getServerHeader()); break; } case MESSAGE: { mergeMessage(other.getMessage()); break; } case TRAILER: { mergeTrailer(other.getTrailer()); break; } case PAYLOAD_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTimestampFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { callId_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { sequenceIdWithinCall_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { type_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { logger_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage( getClientHeaderFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 6; break; } // case 50 case 58: { input.readMessage( getServerHeaderFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 7; break; } // case 58 case 66: { input.readMessage( getMessageFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 8; break; } // case 66 case 74: { input.readMessage( getTrailerFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 9; break; } // case 74 case 80: { payloadTruncated_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { input.readMessage( getPeerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int payloadCase_ = 0; private java.lang.Object payload_; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public Builder clearPayload() { payloadCase_ = 0; payload_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; } else { timestampBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); } else { timestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && timestamp_ != null && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; } } else { timestampBuilder_.mergeFrom(value); } if (timestamp_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } onChanged(); return this; } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
     * The timestamp of the binary log message
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private long callId_ ; /** *
     * 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; * @return The callId. */ @java.lang.Override public long getCallId() { return callId_; } /** *
     * 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; * @param value The callId to set. * @return This builder for chaining. */ public Builder setCallId(long value) { callId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearCallId() { bitField0_ = (bitField0_ & ~0x00000002); callId_ = 0L; onChanged(); return this; } private long sequenceIdWithinCall_ ; /** *
     * 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; * @return The sequenceIdWithinCall. */ @java.lang.Override public long getSequenceIdWithinCall() { return sequenceIdWithinCall_; } /** *
     * 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; * @param value The sequenceIdWithinCall to set. * @return This builder for chaining. */ public Builder setSequenceIdWithinCall(long value) { sequenceIdWithinCall_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearSequenceIdWithinCall() { bitField0_ = (bitField0_ & ~0x00000004); sequenceIdWithinCall_ = 0L; onChanged(); return this; } private int type_ = 0; /** * .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; * @return The type. */ @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry.EventType getType() { io.grpc.binarylog.v1.GrpcLogEntry.EventType result = io.grpc.binarylog.v1.GrpcLogEntry.EventType.forNumber(type_); return result == null ? io.grpc.binarylog.v1.GrpcLogEntry.EventType.UNRECOGNIZED : result; } /** * .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.grpc.binarylog.v1.GrpcLogEntry.EventType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; } /** * .grpc.binarylog.v1.GrpcLogEntry.EventType type = 4; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; onChanged(); return this; } private int logger_ = 0; /** *
     * One of the above Logger enum
     * 
* * .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5; * @return The enum numeric value on the wire for logger. */ @java.lang.Override public int getLoggerValue() { return logger_; } /** *
     * One of the above Logger enum
     * 
* * .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5; * @param value The enum numeric value on the wire for logger to set. * @return This builder for chaining. */ public Builder setLoggerValue(int value) { logger_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * One of the above Logger enum
     * 
* * .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5; * @return The logger. */ @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry.Logger getLogger() { io.grpc.binarylog.v1.GrpcLogEntry.Logger result = io.grpc.binarylog.v1.GrpcLogEntry.Logger.forNumber(logger_); return result == null ? io.grpc.binarylog.v1.GrpcLogEntry.Logger.UNRECOGNIZED : result; } /** *
     * One of the above Logger enum
     * 
* * .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5; * @param value The logger to set. * @return This builder for chaining. */ public Builder setLogger(io.grpc.binarylog.v1.GrpcLogEntry.Logger value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; logger_ = value.getNumber(); onChanged(); return this; } /** *
     * One of the above Logger enum
     * 
* * .grpc.binarylog.v1.GrpcLogEntry.Logger logger = 5; * @return This builder for chaining. */ public Builder clearLogger() { bitField0_ = (bitField0_ & ~0x00000010); logger_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.ClientHeader, io.grpc.binarylog.v1.ClientHeader.Builder, io.grpc.binarylog.v1.ClientHeaderOrBuilder> clientHeaderBuilder_; /** * .grpc.binarylog.v1.ClientHeader client_header = 6; * @return Whether the clientHeader field is set. */ @java.lang.Override public boolean hasClientHeader() { return payloadCase_ == 6; } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; * @return The clientHeader. */ @java.lang.Override public io.grpc.binarylog.v1.ClientHeader getClientHeader() { if (clientHeaderBuilder_ == null) { if (payloadCase_ == 6) { return (io.grpc.binarylog.v1.ClientHeader) payload_; } return io.grpc.binarylog.v1.ClientHeader.getDefaultInstance(); } else { if (payloadCase_ == 6) { return clientHeaderBuilder_.getMessage(); } return io.grpc.binarylog.v1.ClientHeader.getDefaultInstance(); } } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ public Builder setClientHeader(io.grpc.binarylog.v1.ClientHeader value) { if (clientHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { clientHeaderBuilder_.setMessage(value); } payloadCase_ = 6; return this; } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ public Builder setClientHeader( io.grpc.binarylog.v1.ClientHeader.Builder builderForValue) { if (clientHeaderBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { clientHeaderBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 6; return this; } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ public Builder mergeClientHeader(io.grpc.binarylog.v1.ClientHeader value) { if (clientHeaderBuilder_ == null) { if (payloadCase_ == 6 && payload_ != io.grpc.binarylog.v1.ClientHeader.getDefaultInstance()) { payload_ = io.grpc.binarylog.v1.ClientHeader.newBuilder((io.grpc.binarylog.v1.ClientHeader) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 6) { clientHeaderBuilder_.mergeFrom(value); } else { clientHeaderBuilder_.setMessage(value); } } payloadCase_ = 6; return this; } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ public Builder clearClientHeader() { if (clientHeaderBuilder_ == null) { if (payloadCase_ == 6) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 6) { payloadCase_ = 0; payload_ = null; } clientHeaderBuilder_.clear(); } return this; } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ public io.grpc.binarylog.v1.ClientHeader.Builder getClientHeaderBuilder() { return getClientHeaderFieldBuilder().getBuilder(); } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ @java.lang.Override public io.grpc.binarylog.v1.ClientHeaderOrBuilder getClientHeaderOrBuilder() { if ((payloadCase_ == 6) && (clientHeaderBuilder_ != null)) { return clientHeaderBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 6) { return (io.grpc.binarylog.v1.ClientHeader) payload_; } return io.grpc.binarylog.v1.ClientHeader.getDefaultInstance(); } } /** * .grpc.binarylog.v1.ClientHeader client_header = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.ClientHeader, io.grpc.binarylog.v1.ClientHeader.Builder, io.grpc.binarylog.v1.ClientHeaderOrBuilder> getClientHeaderFieldBuilder() { if (clientHeaderBuilder_ == null) { if (!(payloadCase_ == 6)) { payload_ = io.grpc.binarylog.v1.ClientHeader.getDefaultInstance(); } clientHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.ClientHeader, io.grpc.binarylog.v1.ClientHeader.Builder, io.grpc.binarylog.v1.ClientHeaderOrBuilder>( (io.grpc.binarylog.v1.ClientHeader) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 6; onChanged(); return clientHeaderBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.ServerHeader, io.grpc.binarylog.v1.ServerHeader.Builder, io.grpc.binarylog.v1.ServerHeaderOrBuilder> serverHeaderBuilder_; /** * .grpc.binarylog.v1.ServerHeader server_header = 7; * @return Whether the serverHeader field is set. */ @java.lang.Override public boolean hasServerHeader() { return payloadCase_ == 7; } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; * @return The serverHeader. */ @java.lang.Override public io.grpc.binarylog.v1.ServerHeader getServerHeader() { if (serverHeaderBuilder_ == null) { if (payloadCase_ == 7) { return (io.grpc.binarylog.v1.ServerHeader) payload_; } return io.grpc.binarylog.v1.ServerHeader.getDefaultInstance(); } else { if (payloadCase_ == 7) { return serverHeaderBuilder_.getMessage(); } return io.grpc.binarylog.v1.ServerHeader.getDefaultInstance(); } } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ public Builder setServerHeader(io.grpc.binarylog.v1.ServerHeader value) { if (serverHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { serverHeaderBuilder_.setMessage(value); } payloadCase_ = 7; return this; } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ public Builder setServerHeader( io.grpc.binarylog.v1.ServerHeader.Builder builderForValue) { if (serverHeaderBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { serverHeaderBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 7; return this; } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ public Builder mergeServerHeader(io.grpc.binarylog.v1.ServerHeader value) { if (serverHeaderBuilder_ == null) { if (payloadCase_ == 7 && payload_ != io.grpc.binarylog.v1.ServerHeader.getDefaultInstance()) { payload_ = io.grpc.binarylog.v1.ServerHeader.newBuilder((io.grpc.binarylog.v1.ServerHeader) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 7) { serverHeaderBuilder_.mergeFrom(value); } else { serverHeaderBuilder_.setMessage(value); } } payloadCase_ = 7; return this; } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ public Builder clearServerHeader() { if (serverHeaderBuilder_ == null) { if (payloadCase_ == 7) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 7) { payloadCase_ = 0; payload_ = null; } serverHeaderBuilder_.clear(); } return this; } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ public io.grpc.binarylog.v1.ServerHeader.Builder getServerHeaderBuilder() { return getServerHeaderFieldBuilder().getBuilder(); } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ @java.lang.Override public io.grpc.binarylog.v1.ServerHeaderOrBuilder getServerHeaderOrBuilder() { if ((payloadCase_ == 7) && (serverHeaderBuilder_ != null)) { return serverHeaderBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 7) { return (io.grpc.binarylog.v1.ServerHeader) payload_; } return io.grpc.binarylog.v1.ServerHeader.getDefaultInstance(); } } /** * .grpc.binarylog.v1.ServerHeader server_header = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.ServerHeader, io.grpc.binarylog.v1.ServerHeader.Builder, io.grpc.binarylog.v1.ServerHeaderOrBuilder> getServerHeaderFieldBuilder() { if (serverHeaderBuilder_ == null) { if (!(payloadCase_ == 7)) { payload_ = io.grpc.binarylog.v1.ServerHeader.getDefaultInstance(); } serverHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.ServerHeader, io.grpc.binarylog.v1.ServerHeader.Builder, io.grpc.binarylog.v1.ServerHeaderOrBuilder>( (io.grpc.binarylog.v1.ServerHeader) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 7; onChanged(); return serverHeaderBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Message, io.grpc.binarylog.v1.Message.Builder, io.grpc.binarylog.v1.MessageOrBuilder> messageBuilder_; /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return payloadCase_ == 8; } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; * @return The message. */ @java.lang.Override public io.grpc.binarylog.v1.Message getMessage() { if (messageBuilder_ == null) { if (payloadCase_ == 8) { return (io.grpc.binarylog.v1.Message) payload_; } return io.grpc.binarylog.v1.Message.getDefaultInstance(); } else { if (payloadCase_ == 8) { return messageBuilder_.getMessage(); } return io.grpc.binarylog.v1.Message.getDefaultInstance(); } } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; */ public Builder setMessage(io.grpc.binarylog.v1.Message value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { messageBuilder_.setMessage(value); } payloadCase_ = 8; return this; } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; */ public Builder setMessage( io.grpc.binarylog.v1.Message.Builder builderForValue) { if (messageBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 8; return this; } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; */ public Builder mergeMessage(io.grpc.binarylog.v1.Message value) { if (messageBuilder_ == null) { if (payloadCase_ == 8 && payload_ != io.grpc.binarylog.v1.Message.getDefaultInstance()) { payload_ = io.grpc.binarylog.v1.Message.newBuilder((io.grpc.binarylog.v1.Message) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 8) { messageBuilder_.mergeFrom(value); } else { messageBuilder_.setMessage(value); } } payloadCase_ = 8; return this; } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; */ public Builder clearMessage() { if (messageBuilder_ == null) { if (payloadCase_ == 8) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 8) { payloadCase_ = 0; payload_ = null; } messageBuilder_.clear(); } return this; } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; */ public io.grpc.binarylog.v1.Message.Builder getMessageBuilder() { return getMessageFieldBuilder().getBuilder(); } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; */ @java.lang.Override public io.grpc.binarylog.v1.MessageOrBuilder getMessageOrBuilder() { if ((payloadCase_ == 8) && (messageBuilder_ != null)) { return messageBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 8) { return (io.grpc.binarylog.v1.Message) payload_; } return io.grpc.binarylog.v1.Message.getDefaultInstance(); } } /** *
     * Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE
     * 
* * .grpc.binarylog.v1.Message message = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Message, io.grpc.binarylog.v1.Message.Builder, io.grpc.binarylog.v1.MessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { if (!(payloadCase_ == 8)) { payload_ = io.grpc.binarylog.v1.Message.getDefaultInstance(); } messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Message, io.grpc.binarylog.v1.Message.Builder, io.grpc.binarylog.v1.MessageOrBuilder>( (io.grpc.binarylog.v1.Message) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 8; onChanged(); return messageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Trailer, io.grpc.binarylog.v1.Trailer.Builder, io.grpc.binarylog.v1.TrailerOrBuilder> trailerBuilder_; /** * .grpc.binarylog.v1.Trailer trailer = 9; * @return Whether the trailer field is set. */ @java.lang.Override public boolean hasTrailer() { return payloadCase_ == 9; } /** * .grpc.binarylog.v1.Trailer trailer = 9; * @return The trailer. */ @java.lang.Override public io.grpc.binarylog.v1.Trailer getTrailer() { if (trailerBuilder_ == null) { if (payloadCase_ == 9) { return (io.grpc.binarylog.v1.Trailer) payload_; } return io.grpc.binarylog.v1.Trailer.getDefaultInstance(); } else { if (payloadCase_ == 9) { return trailerBuilder_.getMessage(); } return io.grpc.binarylog.v1.Trailer.getDefaultInstance(); } } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ public Builder setTrailer(io.grpc.binarylog.v1.Trailer value) { if (trailerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { trailerBuilder_.setMessage(value); } payloadCase_ = 9; return this; } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ public Builder setTrailer( io.grpc.binarylog.v1.Trailer.Builder builderForValue) { if (trailerBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { trailerBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 9; return this; } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ public Builder mergeTrailer(io.grpc.binarylog.v1.Trailer value) { if (trailerBuilder_ == null) { if (payloadCase_ == 9 && payload_ != io.grpc.binarylog.v1.Trailer.getDefaultInstance()) { payload_ = io.grpc.binarylog.v1.Trailer.newBuilder((io.grpc.binarylog.v1.Trailer) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 9) { trailerBuilder_.mergeFrom(value); } else { trailerBuilder_.setMessage(value); } } payloadCase_ = 9; return this; } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ public Builder clearTrailer() { if (trailerBuilder_ == null) { if (payloadCase_ == 9) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 9) { payloadCase_ = 0; payload_ = null; } trailerBuilder_.clear(); } return this; } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ public io.grpc.binarylog.v1.Trailer.Builder getTrailerBuilder() { return getTrailerFieldBuilder().getBuilder(); } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ @java.lang.Override public io.grpc.binarylog.v1.TrailerOrBuilder getTrailerOrBuilder() { if ((payloadCase_ == 9) && (trailerBuilder_ != null)) { return trailerBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 9) { return (io.grpc.binarylog.v1.Trailer) payload_; } return io.grpc.binarylog.v1.Trailer.getDefaultInstance(); } } /** * .grpc.binarylog.v1.Trailer trailer = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Trailer, io.grpc.binarylog.v1.Trailer.Builder, io.grpc.binarylog.v1.TrailerOrBuilder> getTrailerFieldBuilder() { if (trailerBuilder_ == null) { if (!(payloadCase_ == 9)) { payload_ = io.grpc.binarylog.v1.Trailer.getDefaultInstance(); } trailerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Trailer, io.grpc.binarylog.v1.Trailer.Builder, io.grpc.binarylog.v1.TrailerOrBuilder>( (io.grpc.binarylog.v1.Trailer) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 9; onChanged(); return trailerBuilder_; } private boolean payloadTruncated_ ; /** *
     * true if payload does not represent the full message or metadata.
     * 
* * bool payload_truncated = 10; * @return The payloadTruncated. */ @java.lang.Override public boolean getPayloadTruncated() { return payloadTruncated_; } /** *
     * true if payload does not represent the full message or metadata.
     * 
* * bool payload_truncated = 10; * @param value The payloadTruncated to set. * @return This builder for chaining. */ public Builder setPayloadTruncated(boolean value) { payloadTruncated_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * true if payload does not represent the full message or metadata.
     * 
* * bool payload_truncated = 10; * @return This builder for chaining. */ public Builder clearPayloadTruncated() { bitField0_ = (bitField0_ & ~0x00000200); payloadTruncated_ = false; onChanged(); return this; } private io.grpc.binarylog.v1.Address peer_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Address, io.grpc.binarylog.v1.Address.Builder, io.grpc.binarylog.v1.AddressOrBuilder> peerBuilder_; /** *
     * 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; * @return Whether the peer field is set. */ public boolean hasPeer() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * 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; * @return The peer. */ public io.grpc.binarylog.v1.Address getPeer() { if (peerBuilder_ == null) { return peer_ == null ? io.grpc.binarylog.v1.Address.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setPeer(io.grpc.binarylog.v1.Address value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; } else { peerBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * 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; */ public Builder setPeer( io.grpc.binarylog.v1.Address.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); } else { peerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * 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; */ public Builder mergePeer(io.grpc.binarylog.v1.Address value) { if (peerBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && peer_ != null && peer_ != io.grpc.binarylog.v1.Address.getDefaultInstance()) { getPeerBuilder().mergeFrom(value); } else { peer_ = value; } } else { peerBuilder_.mergeFrom(value); } if (peer_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** *
     * 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; */ public Builder clearPeer() { bitField0_ = (bitField0_ & ~0x00000400); peer_ = null; if (peerBuilder_ != null) { peerBuilder_.dispose(); peerBuilder_ = null; } onChanged(); return this; } /** *
     * 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; */ public io.grpc.binarylog.v1.Address.Builder getPeerBuilder() { bitField0_ |= 0x00000400; onChanged(); return getPeerFieldBuilder().getBuilder(); } /** *
     * 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; */ public io.grpc.binarylog.v1.AddressOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? io.grpc.binarylog.v1.Address.getDefaultInstance() : peer_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Address, io.grpc.binarylog.v1.Address.Builder, io.grpc.binarylog.v1.AddressOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.binarylog.v1.Address, io.grpc.binarylog.v1.Address.Builder, io.grpc.binarylog.v1.AddressOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.binarylog.v1.GrpcLogEntry) } // @@protoc_insertion_point(class_scope:grpc.binarylog.v1.GrpcLogEntry) private static final io.grpc.binarylog.v1.GrpcLogEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.binarylog.v1.GrpcLogEntry(); } public static io.grpc.binarylog.v1.GrpcLogEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GrpcLogEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grpc.binarylog.v1.GrpcLogEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy