diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/BinaryLogProto.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/BinaryLogProto.java deleted file mode 100644 index 5b6a5e67e2..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/BinaryLogProto.java +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -public final class BinaryLogProto { - private BinaryLogProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_binarylog_v1alpha_Message_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_binarylog_v1alpha_Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_binarylog_v1alpha_Metadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_binarylog_v1alpha_Metadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_binarylog_v1alpha_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_binarylog_v1alpha_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_binarylog_v1alpha_Peer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_binarylog_v1alpha_Peer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_binarylog_v1alpha_Uint128_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_binarylog_v1alpha_Uint128_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#grpc/binlog/v1alpha/binarylog.proto\022\026g" + - "rpc.binarylog.v1alpha\032\036google/protobuf/d" + - "uration.proto\"\364\005\n\014GrpcLogEntry\0227\n\004type\030\001" + - " \001(\0162).grpc.binarylog.v1alpha.GrpcLogEnt" + - "ry.Type\022;\n\006logger\030\002 \001(\0162+.grpc.binarylog" + - ".v1alpha.GrpcLogEntry.Logger\0220\n\007call_id\030" + - "\003 \001(\0132\037.grpc.binarylog.v1alpha.Uint128\0224" + - "\n\010metadata\030\004 \001(\0132 .grpc.binarylog.v1alph" + - "a.MetadataH\000\0222\n\007message\030\005 \001(\0132\037.grpc.bin" + - "arylog.v1alpha.MessageH\000\022*\n\004peer\030\006 \001(\0132\034" + - ".grpc.binarylog.v1alpha.Peer\022\021\n\ttruncate" + - "d\030\007 \001(\010\022\023\n\013method_name\030\010 \001(\t\022\023\n\013status_c" + - "ode\030\t \001(\r\022\026\n\016status_message\030\n \001(\t\022\026\n\016sta" + - "tus_details\030\013 \001(\014\022*\n\007timeout\030\014 \001(\0132\031.goo" + - "gle.protobuf.Duration\022\037\n\027sequence_id_wit" + - "hin_call\030\r \001(\r\"\252\001\n\004Type\022\020\n\014UNKNOWN_TYPE\020" + - "\000\022\031\n\025SEND_INITIAL_METADATA\020\001\022\032\n\026SEND_TRA" + - "ILING_METADATA\020\002\022\020\n\014SEND_MESSAGE\020\003\022\031\n\025RE" + - "CV_INITIAL_METADATA\020\004\022\032\n\026RECV_TRAILING_M" + - "ETADATA\020\005\022\020\n\014RECV_MESSAGE\020\006\"4\n\006Logger\022\022\n" + - "\016UNKNOWN_LOGGER\020\000\022\n\n\006CLIENT\020\001\022\n\n\006SERVER\020" + - "\002B\t\n\007payload\"6\n\007Message\022\r\n\005flags\030\001 \001(\r\022\016" + - "\n\006length\030\002 \001(\r\022\014\n\004data\030\003 \001(\014\"@\n\010Metadata" + - "\0224\n\005entry\030\001 \003(\0132%.grpc.binarylog.v1alpha" + - ".MetadataEntry\"+\n\rMetadataEntry\022\013\n\003key\030\001" + - " \001(\014\022\r\n\005value\030\002 \001(\014\"\277\001\n\004Peer\0228\n\tpeer_typ" + - "e\030\001 \001(\0162%.grpc.binarylog.v1alpha.Peer.Pe" + - "erType\022\014\n\004peer\030\002 \001(\014\022\017\n\007address\030\003 \001(\t\022\017\n" + - "\007ip_port\030\004 \001(\r\"M\n\010PeerType\022\024\n\020UNKNOWN_PE" + - "ERTYPE\020\000\022\r\n\tPEER_IPV4\020\001\022\r\n\tPEER_IPV6\020\002\022\r" + - "\n\tPEER_UNIX\020\003\"$\n\007Uint128\022\014\n\004high\030\001 \001(\006\022\013" + - "\n\003low\030\002 \001(\006B-\n\031io.grpc.binarylog.v1alpha" + - "B\016BinaryLogProtoP\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_descriptor, - new java.lang.String[] { "Type", "Logger", "CallId", "Metadata", "Message", "Peer", "Truncated", "MethodName", "StatusCode", "StatusMessage", "StatusDetails", "Timeout", "SequenceIdWithinCall", "Payload", }); - internal_static_grpc_binarylog_v1alpha_Message_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_grpc_binarylog_v1alpha_Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_binarylog_v1alpha_Message_descriptor, - new java.lang.String[] { "Flags", "Length", "Data", }); - internal_static_grpc_binarylog_v1alpha_Metadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_grpc_binarylog_v1alpha_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_binarylog_v1alpha_Metadata_descriptor, - new java.lang.String[] { "Entry", }); - internal_static_grpc_binarylog_v1alpha_MetadataEntry_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_grpc_binarylog_v1alpha_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_binarylog_v1alpha_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_binarylog_v1alpha_Peer_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_grpc_binarylog_v1alpha_Peer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_binarylog_v1alpha_Peer_descriptor, - new java.lang.String[] { "PeerType", "Peer", "Address", "IpPort", }); - internal_static_grpc_binarylog_v1alpha_Uint128_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_grpc_binarylog_v1alpha_Uint128_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_binarylog_v1alpha_Uint128_descriptor, - new java.lang.String[] { "High", "Low", }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/GrpcLogEntry.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/GrpcLogEntry.java deleted file mode 100644 index be928ad9ac..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/GrpcLogEntry.java +++ /dev/null @@ -1,2839 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -/** - *
- * Log entry we store in binary logs
- * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.GrpcLogEntry} - */ -public final class GrpcLogEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.binarylog.v1alpha.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; - truncated_ = false; - methodName_ = ""; - statusCode_ = 0; - statusMessage_ = ""; - statusDetails_ = com.google.protobuf.ByteString.EMPTY; - sequenceIdWithinCall_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GrpcLogEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - logger_ = rawValue; - break; - } - case 26: { - io.grpc.binarylog.v1alpha.Uint128.Builder subBuilder = null; - if (callId_ != null) { - subBuilder = callId_.toBuilder(); - } - callId_ = input.readMessage(io.grpc.binarylog.v1alpha.Uint128.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(callId_); - callId_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - io.grpc.binarylog.v1alpha.Metadata.Builder subBuilder = null; - if (payloadCase_ == 4) { - subBuilder = ((io.grpc.binarylog.v1alpha.Metadata) payload_).toBuilder(); - } - payload_ = - input.readMessage(io.grpc.binarylog.v1alpha.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((io.grpc.binarylog.v1alpha.Metadata) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 4; - break; - } - case 42: { - io.grpc.binarylog.v1alpha.Message.Builder subBuilder = null; - if (payloadCase_ == 5) { - subBuilder = ((io.grpc.binarylog.v1alpha.Message) payload_).toBuilder(); - } - payload_ = - input.readMessage(io.grpc.binarylog.v1alpha.Message.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((io.grpc.binarylog.v1alpha.Message) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 5; - break; - } - case 50: { - io.grpc.binarylog.v1alpha.Peer.Builder subBuilder = null; - if (peer_ != null) { - subBuilder = peer_.toBuilder(); - } - peer_ = input.readMessage(io.grpc.binarylog.v1alpha.Peer.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(peer_); - peer_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - truncated_ = input.readBool(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - methodName_ = s; - break; - } - case 72: { - - statusCode_ = input.readUInt32(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 90: { - - statusDetails_ = input.readBytes(); - break; - } - case 98: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 104: { - - sequenceIdWithinCall_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.GrpcLogEntry.class, io.grpc.binarylog.v1alpha.GrpcLogEntry.Builder.class); - } - - /** - *
-   * Enumerates the type of logs
-   * 
- * - * Protobuf enum {@code grpc.binarylog.v1alpha.GrpcLogEntry.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_TYPE = 0; - */ - UNKNOWN_TYPE(0), - /** - * SEND_INITIAL_METADATA = 1; - */ - SEND_INITIAL_METADATA(1), - /** - * SEND_TRAILING_METADATA = 2; - */ - SEND_TRAILING_METADATA(2), - /** - * SEND_MESSAGE = 3; - */ - SEND_MESSAGE(3), - /** - * RECV_INITIAL_METADATA = 4; - */ - RECV_INITIAL_METADATA(4), - /** - * RECV_TRAILING_METADATA = 5; - */ - RECV_TRAILING_METADATA(5), - /** - * RECV_MESSAGE = 6; - */ - RECV_MESSAGE(6), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_TYPE = 0; - */ - public static final int UNKNOWN_TYPE_VALUE = 0; - /** - * SEND_INITIAL_METADATA = 1; - */ - public static final int SEND_INITIAL_METADATA_VALUE = 1; - /** - * SEND_TRAILING_METADATA = 2; - */ - public static final int SEND_TRAILING_METADATA_VALUE = 2; - /** - * SEND_MESSAGE = 3; - */ - public static final int SEND_MESSAGE_VALUE = 3; - /** - * RECV_INITIAL_METADATA = 4; - */ - public static final int RECV_INITIAL_METADATA_VALUE = 4; - /** - * RECV_TRAILING_METADATA = 5; - */ - public static final int RECV_TRAILING_METADATA_VALUE = 5; - /** - * RECV_MESSAGE = 6; - */ - public static final int RECV_MESSAGE_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - public static Type forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_TYPE; - case 1: return SEND_INITIAL_METADATA; - case 2: return SEND_TRAILING_METADATA; - case 3: return SEND_MESSAGE; - case 4: return RECV_INITIAL_METADATA; - case 5: return RECV_TRAILING_METADATA; - case 6: return RECV_MESSAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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.v1alpha.GrpcLogEntry.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type 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 Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.binarylog.v1alpha.GrpcLogEntry.Type) - } - - /** - *
-   * Enumerates the entity that generates the log entry
-   * 
- * - * Protobuf enum {@code grpc.binarylog.v1alpha.GrpcLogEntry.Logger} - */ - public enum Logger - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_LOGGER = 0; - */ - UNKNOWN_LOGGER(0), - /** - * CLIENT = 1; - */ - CLIENT(1), - /** - * SERVER = 2; - */ - SERVER(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_LOGGER = 0; - */ - public static final int UNKNOWN_LOGGER_VALUE = 0; - /** - * CLIENT = 1; - */ - public static final int CLIENT_VALUE = 1; - /** - * SERVER = 2; - */ - public static final int 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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Logger valueOf(int value) { - return forNumber(value); - } - - public static Logger forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_LOGGER; - case 1: return CLIENT; - case 2: return 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() { - 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.v1alpha.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.v1alpha.GrpcLogEntry.Logger) - } - - private int payloadCase_ = 0; - private java.lang.Object payload_; - public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite { - METADATA(4), - MESSAGE(5), - PAYLOAD_NOT_SET(0); - private final int value; - private PayloadCase(int value) { - this.value = value; - } - /** - * @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 4: return METADATA; - case 5: return MESSAGE; - 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 TYPE_FIELD_NUMBER = 1; - private int type_; - /** - *
-   * One of the above Type enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-   * One of the above Type enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - public io.grpc.binarylog.v1alpha.GrpcLogEntry.Type getType() { - io.grpc.binarylog.v1alpha.GrpcLogEntry.Type result = io.grpc.binarylog.v1alpha.GrpcLogEntry.Type.valueOf(type_); - return result == null ? io.grpc.binarylog.v1alpha.GrpcLogEntry.Type.UNRECOGNIZED : result; - } - - public static final int LOGGER_FIELD_NUMBER = 2; - private int logger_; - /** - *
-   * One of the above Logger enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - public int getLoggerValue() { - return logger_; - } - /** - *
-   * One of the above Logger enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - public io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger getLogger() { - io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger result = io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger.valueOf(logger_); - return result == null ? io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger.UNRECOGNIZED : result; - } - - public static final int CALL_ID_FIELD_NUMBER = 3; - private io.grpc.binarylog.v1alpha.Uint128 callId_; - /** - *
-   * Uniquely identifies a call. Each call may have several log entries, they
-   * will share the same call_id. 128 bits split into 2 64-bit parts.
-   * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public boolean hasCallId() { - return callId_ != null; - } - /** - *
-   * Uniquely identifies a call. Each call may have several log entries, they
-   * will share the same call_id. 128 bits split into 2 64-bit parts.
-   * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public io.grpc.binarylog.v1alpha.Uint128 getCallId() { - return callId_ == null ? io.grpc.binarylog.v1alpha.Uint128.getDefaultInstance() : callId_; - } - /** - *
-   * Uniquely identifies a call. Each call may have several log entries, they
-   * will share the same call_id. 128 bits split into 2 64-bit parts.
-   * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public io.grpc.binarylog.v1alpha.Uint128OrBuilder getCallIdOrBuilder() { - return getCallId(); - } - - public static final int METADATA_FIELD_NUMBER = 4; - /** - *
-   * Used by {SEND,RECV}_INITIAL_METADATA and
-   * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-   * from the application.
-   * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public boolean hasMetadata() { - return payloadCase_ == 4; - } - /** - *
-   * Used by {SEND,RECV}_INITIAL_METADATA and
-   * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-   * from the application.
-   * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public io.grpc.binarylog.v1alpha.Metadata getMetadata() { - if (payloadCase_ == 4) { - return (io.grpc.binarylog.v1alpha.Metadata) payload_; - } - return io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance(); - } - /** - *
-   * Used by {SEND,RECV}_INITIAL_METADATA and
-   * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-   * from the application.
-   * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public io.grpc.binarylog.v1alpha.MetadataOrBuilder getMetadataOrBuilder() { - if (payloadCase_ == 4) { - return (io.grpc.binarylog.v1alpha.Metadata) payload_; - } - return io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance(); - } - - public static final int MESSAGE_FIELD_NUMBER = 5; - /** - *
-   * Used by {SEND,RECV}_MESSAGE
-   * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public boolean hasMessage() { - return payloadCase_ == 5; - } - /** - *
-   * Used by {SEND,RECV}_MESSAGE
-   * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public io.grpc.binarylog.v1alpha.Message getMessage() { - if (payloadCase_ == 5) { - return (io.grpc.binarylog.v1alpha.Message) payload_; - } - return io.grpc.binarylog.v1alpha.Message.getDefaultInstance(); - } - /** - *
-   * Used by {SEND,RECV}_MESSAGE
-   * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public io.grpc.binarylog.v1alpha.MessageOrBuilder getMessageOrBuilder() { - if (payloadCase_ == 5) { - return (io.grpc.binarylog.v1alpha.Message) payload_; - } - return io.grpc.binarylog.v1alpha.Message.getDefaultInstance(); - } - - public static final int PEER_FIELD_NUMBER = 6; - private io.grpc.binarylog.v1alpha.Peer peer_; - /** - *
-   * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-   * and RECV_INITIAL_METADATA entries.
-   * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public boolean hasPeer() { - return peer_ != null; - } - /** - *
-   * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-   * and RECV_INITIAL_METADATA entries.
-   * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public io.grpc.binarylog.v1alpha.Peer getPeer() { - return peer_ == null ? io.grpc.binarylog.v1alpha.Peer.getDefaultInstance() : peer_; - } - /** - *
-   * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-   * and RECV_INITIAL_METADATA entries.
-   * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public io.grpc.binarylog.v1alpha.PeerOrBuilder getPeerOrBuilder() { - return getPeer(); - } - - public static final int TRUNCATED_FIELD_NUMBER = 7; - private boolean truncated_; - /** - *
-   * true if payload does not represent the full message or metadata.
-   * 
- * - * bool truncated = 7; - */ - public boolean getTruncated() { - return truncated_; - } - - public static final int METHOD_NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object methodName_; - /** - *
-   * The method name. Logged for the first entry:
-   * RECV_INITIAL_METADATA for server side or
-   * SEND_INITIAL_METADATA for client side.
-   * 
- * - * string method_name = 8; - */ - public java.lang.String getMethodName() { - java.lang.Object ref = methodName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - methodName_ = s; - return s; - } - } - /** - *
-   * The method name. Logged for the first entry:
-   * RECV_INITIAL_METADATA for server side or
-   * SEND_INITIAL_METADATA for client side.
-   * 
- * - * string method_name = 8; - */ - public com.google.protobuf.ByteString - getMethodNameBytes() { - java.lang.Object ref = methodName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - methodName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_CODE_FIELD_NUMBER = 9; - private int statusCode_; - /** - *
-   * status_code and status_message:
-   * Only present for SEND_TRAILING_METADATA on server side or
-   * RECV_TRAILING_METADATA on client side.
-   * 
- * - * uint32 status_code = 9; - */ - public int getStatusCode() { - return statusCode_; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 10; - private volatile java.lang.Object statusMessage_; - /** - *
-   * An original status message before any transport specific
-   * encoding.
-   * 
- * - * string status_message = 10; - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - *
-   * An original status message before any transport specific
-   * encoding.
-   * 
- * - * string status_message = 10; - */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_DETAILS_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString statusDetails_; - /** - *
-   * The value of the 'grpc-status-details-bin' metadata key. If
-   * present, this is always an encoded 'google.rpc.Status' message.
-   * 
- * - * bytes status_details = 11; - */ - public com.google.protobuf.ByteString getStatusDetails() { - return statusDetails_; - } - - public static final int TIMEOUT_FIELD_NUMBER = 12; - private com.google.protobuf.Duration timeout_; - /** - *
-   * the RPC timeout
-   * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public boolean hasTimeout() { - return timeout_ != null; - } - /** - *
-   * the RPC timeout
-   * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public com.google.protobuf.Duration getTimeout() { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - /** - *
-   * the RPC timeout
-   * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); - } - - public static final int SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER = 13; - private int 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.
-   * 
- * - * uint32 sequence_id_within_call = 13; - */ - public int getSequenceIdWithinCall() { - return sequenceIdWithinCall_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != io.grpc.binarylog.v1alpha.GrpcLogEntry.Type.UNKNOWN_TYPE.getNumber()) { - output.writeEnum(1, type_); - } - if (logger_ != io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger.UNKNOWN_LOGGER.getNumber()) { - output.writeEnum(2, logger_); - } - if (callId_ != null) { - output.writeMessage(3, getCallId()); - } - if (payloadCase_ == 4) { - output.writeMessage(4, (io.grpc.binarylog.v1alpha.Metadata) payload_); - } - if (payloadCase_ == 5) { - output.writeMessage(5, (io.grpc.binarylog.v1alpha.Message) payload_); - } - if (peer_ != null) { - output.writeMessage(6, getPeer()); - } - if (truncated_ != false) { - output.writeBool(7, truncated_); - } - if (!getMethodNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, methodName_); - } - if (statusCode_ != 0) { - output.writeUInt32(9, statusCode_); - } - if (!getStatusMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, statusMessage_); - } - if (!statusDetails_.isEmpty()) { - output.writeBytes(11, statusDetails_); - } - if (timeout_ != null) { - output.writeMessage(12, getTimeout()); - } - if (sequenceIdWithinCall_ != 0) { - output.writeUInt32(13, sequenceIdWithinCall_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != io.grpc.binarylog.v1alpha.GrpcLogEntry.Type.UNKNOWN_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (logger_ != io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger.UNKNOWN_LOGGER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, logger_); - } - if (callId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCallId()); - } - if (payloadCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (io.grpc.binarylog.v1alpha.Metadata) payload_); - } - if (payloadCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (io.grpc.binarylog.v1alpha.Message) payload_); - } - if (peer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getPeer()); - } - if (truncated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, truncated_); - } - if (!getMethodNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, methodName_); - } - if (statusCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, statusCode_); - } - if (!getStatusMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, statusMessage_); - } - if (!statusDetails_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, statusDetails_); - } - if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTimeout()); - } - if (sequenceIdWithinCall_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, sequenceIdWithinCall_); - } - size += unknownFields.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.v1alpha.GrpcLogEntry)) { - return super.equals(obj); - } - io.grpc.binarylog.v1alpha.GrpcLogEntry other = (io.grpc.binarylog.v1alpha.GrpcLogEntry) obj; - - boolean result = true; - result = result && type_ == other.type_; - result = result && logger_ == other.logger_; - result = result && (hasCallId() == other.hasCallId()); - if (hasCallId()) { - result = result && getCallId() - .equals(other.getCallId()); - } - result = result && (hasPeer() == other.hasPeer()); - if (hasPeer()) { - result = result && getPeer() - .equals(other.getPeer()); - } - result = result && (getTruncated() - == other.getTruncated()); - result = result && getMethodName() - .equals(other.getMethodName()); - result = result && (getStatusCode() - == other.getStatusCode()); - result = result && getStatusMessage() - .equals(other.getStatusMessage()); - result = result && getStatusDetails() - .equals(other.getStatusDetails()); - result = result && (hasTimeout() == other.hasTimeout()); - if (hasTimeout()) { - result = result && getTimeout() - .equals(other.getTimeout()); - } - result = result && (getSequenceIdWithinCall() - == other.getSequenceIdWithinCall()); - result = result && getPayloadCase().equals( - other.getPayloadCase()); - if (!result) return false; - switch (payloadCase_) { - case 4: - result = result && getMetadata() - .equals(other.getMetadata()); - break; - case 5: - result = result && getMessage() - .equals(other.getMessage()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + LOGGER_FIELD_NUMBER; - hash = (53 * hash) + logger_; - if (hasCallId()) { - hash = (37 * hash) + CALL_ID_FIELD_NUMBER; - hash = (53 * hash) + getCallId().hashCode(); - } - if (hasPeer()) { - hash = (37 * hash) + PEER_FIELD_NUMBER; - hash = (53 * hash) + getPeer().hashCode(); - } - hash = (37 * hash) + TRUNCATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTruncated()); - hash = (37 * hash) + METHOD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMethodName().hashCode(); - hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER; - hash = (53 * hash) + getStatusCode(); - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - hash = (37 * hash) + STATUS_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getStatusDetails().hashCode(); - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - } - hash = (37 * hash) + SEQUENCE_ID_WITHIN_CALL_FIELD_NUMBER; - hash = (53 * hash) + getSequenceIdWithinCall(); - switch (payloadCase_) { - case 4: - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - break; - case 5: - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.grpc.binarylog.v1alpha.GrpcLogEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.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.v1alpha.GrpcLogEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.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.v1alpha.GrpcLogEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.GrpcLogEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.binarylog.v1alpha.GrpcLogEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.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.v1alpha.GrpcLogEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.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.v1alpha.GrpcLogEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.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); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.binarylog.v1alpha.GrpcLogEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - 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.v1alpha.GrpcLogEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.binarylog.v1alpha.GrpcLogEntry) - io.grpc.binarylog.v1alpha.GrpcLogEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.GrpcLogEntry.class, io.grpc.binarylog.v1alpha.GrpcLogEntry.Builder.class); - } - - // Construct using io.grpc.binarylog.v1alpha.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) { - } - } - public Builder clear() { - super.clear(); - type_ = 0; - - logger_ = 0; - - if (callIdBuilder_ == null) { - callId_ = null; - } else { - callId_ = null; - callIdBuilder_ = null; - } - if (peerBuilder_ == null) { - peer_ = null; - } else { - peer_ = null; - peerBuilder_ = null; - } - truncated_ = false; - - methodName_ = ""; - - statusCode_ = 0; - - statusMessage_ = ""; - - statusDetails_ = com.google.protobuf.ByteString.EMPTY; - - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - sequenceIdWithinCall_ = 0; - - payloadCase_ = 0; - payload_ = null; - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_GrpcLogEntry_descriptor; - } - - public io.grpc.binarylog.v1alpha.GrpcLogEntry getDefaultInstanceForType() { - return io.grpc.binarylog.v1alpha.GrpcLogEntry.getDefaultInstance(); - } - - public io.grpc.binarylog.v1alpha.GrpcLogEntry build() { - io.grpc.binarylog.v1alpha.GrpcLogEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.binarylog.v1alpha.GrpcLogEntry buildPartial() { - io.grpc.binarylog.v1alpha.GrpcLogEntry result = new io.grpc.binarylog.v1alpha.GrpcLogEntry(this); - result.type_ = type_; - result.logger_ = logger_; - if (callIdBuilder_ == null) { - result.callId_ = callId_; - } else { - result.callId_ = callIdBuilder_.build(); - } - if (payloadCase_ == 4) { - if (metadataBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = metadataBuilder_.build(); - } - } - if (payloadCase_ == 5) { - if (messageBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = messageBuilder_.build(); - } - } - if (peerBuilder_ == null) { - result.peer_ = peer_; - } else { - result.peer_ = peerBuilder_.build(); - } - result.truncated_ = truncated_; - result.methodName_ = methodName_; - result.statusCode_ = statusCode_; - result.statusMessage_ = statusMessage_; - result.statusDetails_ = statusDetails_; - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); - } - result.sequenceIdWithinCall_ = sequenceIdWithinCall_; - result.payloadCase_ = payloadCase_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.binarylog.v1alpha.GrpcLogEntry) { - return mergeFrom((io.grpc.binarylog.v1alpha.GrpcLogEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.binarylog.v1alpha.GrpcLogEntry other) { - if (other == io.grpc.binarylog.v1alpha.GrpcLogEntry.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.logger_ != 0) { - setLoggerValue(other.getLoggerValue()); - } - if (other.hasCallId()) { - mergeCallId(other.getCallId()); - } - if (other.hasPeer()) { - mergePeer(other.getPeer()); - } - if (other.getTruncated() != false) { - setTruncated(other.getTruncated()); - } - if (!other.getMethodName().isEmpty()) { - methodName_ = other.methodName_; - onChanged(); - } - if (other.getStatusCode() != 0) { - setStatusCode(other.getStatusCode()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.getStatusDetails() != com.google.protobuf.ByteString.EMPTY) { - setStatusDetails(other.getStatusDetails()); - } - if (other.hasTimeout()) { - mergeTimeout(other.getTimeout()); - } - if (other.getSequenceIdWithinCall() != 0) { - setSequenceIdWithinCall(other.getSequenceIdWithinCall()); - } - switch (other.getPayloadCase()) { - case METADATA: { - mergeMetadata(other.getMetadata()); - break; - } - case MESSAGE: { - mergeMessage(other.getMessage()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.binarylog.v1alpha.GrpcLogEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.binarylog.v1alpha.GrpcLogEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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 type_ = 0; - /** - *
-     * One of the above Type enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-     * One of the above Type enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-     * One of the above Type enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - public io.grpc.binarylog.v1alpha.GrpcLogEntry.Type getType() { - io.grpc.binarylog.v1alpha.GrpcLogEntry.Type result = io.grpc.binarylog.v1alpha.GrpcLogEntry.Type.valueOf(type_); - return result == null ? io.grpc.binarylog.v1alpha.GrpcLogEntry.Type.UNRECOGNIZED : result; - } - /** - *
-     * One of the above Type enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - public Builder setType(io.grpc.binarylog.v1alpha.GrpcLogEntry.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * One of the above Type enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private int logger_ = 0; - /** - *
-     * One of the above Logger enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - public int getLoggerValue() { - return logger_; - } - /** - *
-     * One of the above Logger enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - public Builder setLoggerValue(int value) { - logger_ = value; - onChanged(); - return this; - } - /** - *
-     * One of the above Logger enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - public io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger getLogger() { - io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger result = io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger.valueOf(logger_); - return result == null ? io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger.UNRECOGNIZED : result; - } - /** - *
-     * One of the above Logger enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - public Builder setLogger(io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger value) { - if (value == null) { - throw new NullPointerException(); - } - - logger_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * One of the above Logger enum
-     * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - public Builder clearLogger() { - - logger_ = 0; - onChanged(); - return this; - } - - private io.grpc.binarylog.v1alpha.Uint128 callId_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Uint128, io.grpc.binarylog.v1alpha.Uint128.Builder, io.grpc.binarylog.v1alpha.Uint128OrBuilder> callIdBuilder_; - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public boolean hasCallId() { - return callIdBuilder_ != null || callId_ != null; - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public io.grpc.binarylog.v1alpha.Uint128 getCallId() { - if (callIdBuilder_ == null) { - return callId_ == null ? io.grpc.binarylog.v1alpha.Uint128.getDefaultInstance() : callId_; - } else { - return callIdBuilder_.getMessage(); - } - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public Builder setCallId(io.grpc.binarylog.v1alpha.Uint128 value) { - if (callIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - callId_ = value; - onChanged(); - } else { - callIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public Builder setCallId( - io.grpc.binarylog.v1alpha.Uint128.Builder builderForValue) { - if (callIdBuilder_ == null) { - callId_ = builderForValue.build(); - onChanged(); - } else { - callIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public Builder mergeCallId(io.grpc.binarylog.v1alpha.Uint128 value) { - if (callIdBuilder_ == null) { - if (callId_ != null) { - callId_ = - io.grpc.binarylog.v1alpha.Uint128.newBuilder(callId_).mergeFrom(value).buildPartial(); - } else { - callId_ = value; - } - onChanged(); - } else { - callIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public Builder clearCallId() { - if (callIdBuilder_ == null) { - callId_ = null; - onChanged(); - } else { - callId_ = null; - callIdBuilder_ = null; - } - - return this; - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public io.grpc.binarylog.v1alpha.Uint128.Builder getCallIdBuilder() { - - onChanged(); - return getCallIdFieldBuilder().getBuilder(); - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - public io.grpc.binarylog.v1alpha.Uint128OrBuilder getCallIdOrBuilder() { - if (callIdBuilder_ != null) { - return callIdBuilder_.getMessageOrBuilder(); - } else { - return callId_ == null ? - io.grpc.binarylog.v1alpha.Uint128.getDefaultInstance() : callId_; - } - } - /** - *
-     * Uniquely identifies a call. Each call may have several log entries, they
-     * will share the same call_id. 128 bits split into 2 64-bit parts.
-     * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Uint128, io.grpc.binarylog.v1alpha.Uint128.Builder, io.grpc.binarylog.v1alpha.Uint128OrBuilder> - getCallIdFieldBuilder() { - if (callIdBuilder_ == null) { - callIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Uint128, io.grpc.binarylog.v1alpha.Uint128.Builder, io.grpc.binarylog.v1alpha.Uint128OrBuilder>( - getCallId(), - getParentForChildren(), - isClean()); - callId_ = null; - } - return callIdBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Metadata, io.grpc.binarylog.v1alpha.Metadata.Builder, io.grpc.binarylog.v1alpha.MetadataOrBuilder> metadataBuilder_; - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public boolean hasMetadata() { - return payloadCase_ == 4; - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public io.grpc.binarylog.v1alpha.Metadata getMetadata() { - if (metadataBuilder_ == null) { - if (payloadCase_ == 4) { - return (io.grpc.binarylog.v1alpha.Metadata) payload_; - } - return io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance(); - } else { - if (payloadCase_ == 4) { - return metadataBuilder_.getMessage(); - } - return io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance(); - } - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public Builder setMetadata(io.grpc.binarylog.v1alpha.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - payloadCase_ = 4; - return this; - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public Builder setMetadata( - io.grpc.binarylog.v1alpha.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 4; - return this; - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public Builder mergeMetadata(io.grpc.binarylog.v1alpha.Metadata value) { - if (metadataBuilder_ == null) { - if (payloadCase_ == 4 && - payload_ != io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance()) { - payload_ = io.grpc.binarylog.v1alpha.Metadata.newBuilder((io.grpc.binarylog.v1alpha.Metadata) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 4) { - metadataBuilder_.mergeFrom(value); - } - metadataBuilder_.setMessage(value); - } - payloadCase_ = 4; - return this; - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - if (payloadCase_ == 4) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 4) { - payloadCase_ = 0; - payload_ = null; - } - metadataBuilder_.clear(); - } - return this; - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public io.grpc.binarylog.v1alpha.Metadata.Builder getMetadataBuilder() { - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - public io.grpc.binarylog.v1alpha.MetadataOrBuilder getMetadataOrBuilder() { - if ((payloadCase_ == 4) && (metadataBuilder_ != null)) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 4) { - return (io.grpc.binarylog.v1alpha.Metadata) payload_; - } - return io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance(); - } - } - /** - *
-     * Used by {SEND,RECV}_INITIAL_METADATA and
-     * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-     * from the application.
-     * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Metadata, io.grpc.binarylog.v1alpha.Metadata.Builder, io.grpc.binarylog.v1alpha.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - if (!(payloadCase_ == 4)) { - payload_ = io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance(); - } - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Metadata, io.grpc.binarylog.v1alpha.Metadata.Builder, io.grpc.binarylog.v1alpha.MetadataOrBuilder>( - (io.grpc.binarylog.v1alpha.Metadata) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 4; - onChanged();; - return metadataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Message, io.grpc.binarylog.v1alpha.Message.Builder, io.grpc.binarylog.v1alpha.MessageOrBuilder> messageBuilder_; - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public boolean hasMessage() { - return payloadCase_ == 5; - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public io.grpc.binarylog.v1alpha.Message getMessage() { - if (messageBuilder_ == null) { - if (payloadCase_ == 5) { - return (io.grpc.binarylog.v1alpha.Message) payload_; - } - return io.grpc.binarylog.v1alpha.Message.getDefaultInstance(); - } else { - if (payloadCase_ == 5) { - return messageBuilder_.getMessage(); - } - return io.grpc.binarylog.v1alpha.Message.getDefaultInstance(); - } - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public Builder setMessage(io.grpc.binarylog.v1alpha.Message value) { - if (messageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - messageBuilder_.setMessage(value); - } - payloadCase_ = 5; - return this; - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public Builder setMessage( - io.grpc.binarylog.v1alpha.Message.Builder builderForValue) { - if (messageBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - messageBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 5; - return this; - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public Builder mergeMessage(io.grpc.binarylog.v1alpha.Message value) { - if (messageBuilder_ == null) { - if (payloadCase_ == 5 && - payload_ != io.grpc.binarylog.v1alpha.Message.getDefaultInstance()) { - payload_ = io.grpc.binarylog.v1alpha.Message.newBuilder((io.grpc.binarylog.v1alpha.Message) payload_) - .mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 5) { - messageBuilder_.mergeFrom(value); - } - messageBuilder_.setMessage(value); - } - payloadCase_ = 5; - return this; - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public Builder clearMessage() { - if (messageBuilder_ == null) { - if (payloadCase_ == 5) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 5) { - payloadCase_ = 0; - payload_ = null; - } - messageBuilder_.clear(); - } - return this; - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public io.grpc.binarylog.v1alpha.Message.Builder getMessageBuilder() { - return getMessageFieldBuilder().getBuilder(); - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - public io.grpc.binarylog.v1alpha.MessageOrBuilder getMessageOrBuilder() { - if ((payloadCase_ == 5) && (messageBuilder_ != null)) { - return messageBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 5) { - return (io.grpc.binarylog.v1alpha.Message) payload_; - } - return io.grpc.binarylog.v1alpha.Message.getDefaultInstance(); - } - } - /** - *
-     * Used by {SEND,RECV}_MESSAGE
-     * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Message, io.grpc.binarylog.v1alpha.Message.Builder, io.grpc.binarylog.v1alpha.MessageOrBuilder> - getMessageFieldBuilder() { - if (messageBuilder_ == null) { - if (!(payloadCase_ == 5)) { - payload_ = io.grpc.binarylog.v1alpha.Message.getDefaultInstance(); - } - messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Message, io.grpc.binarylog.v1alpha.Message.Builder, io.grpc.binarylog.v1alpha.MessageOrBuilder>( - (io.grpc.binarylog.v1alpha.Message) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 5; - onChanged();; - return messageBuilder_; - } - - private io.grpc.binarylog.v1alpha.Peer peer_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Peer, io.grpc.binarylog.v1alpha.Peer.Builder, io.grpc.binarylog.v1alpha.PeerOrBuilder> peerBuilder_; - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public boolean hasPeer() { - return peerBuilder_ != null || peer_ != null; - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public io.grpc.binarylog.v1alpha.Peer getPeer() { - if (peerBuilder_ == null) { - return peer_ == null ? io.grpc.binarylog.v1alpha.Peer.getDefaultInstance() : peer_; - } else { - return peerBuilder_.getMessage(); - } - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public Builder setPeer(io.grpc.binarylog.v1alpha.Peer value) { - if (peerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - peer_ = value; - onChanged(); - } else { - peerBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public Builder setPeer( - io.grpc.binarylog.v1alpha.Peer.Builder builderForValue) { - if (peerBuilder_ == null) { - peer_ = builderForValue.build(); - onChanged(); - } else { - peerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public Builder mergePeer(io.grpc.binarylog.v1alpha.Peer value) { - if (peerBuilder_ == null) { - if (peer_ != null) { - peer_ = - io.grpc.binarylog.v1alpha.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); - } else { - peer_ = value; - } - onChanged(); - } else { - peerBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public Builder clearPeer() { - if (peerBuilder_ == null) { - peer_ = null; - onChanged(); - } else { - peer_ = null; - peerBuilder_ = null; - } - - return this; - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public io.grpc.binarylog.v1alpha.Peer.Builder getPeerBuilder() { - - onChanged(); - return getPeerFieldBuilder().getBuilder(); - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - public io.grpc.binarylog.v1alpha.PeerOrBuilder getPeerOrBuilder() { - if (peerBuilder_ != null) { - return peerBuilder_.getMessageOrBuilder(); - } else { - return peer_ == null ? - io.grpc.binarylog.v1alpha.Peer.getDefaultInstance() : peer_; - } - } - /** - *
-     * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-     * and RECV_INITIAL_METADATA entries.
-     * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Peer, io.grpc.binarylog.v1alpha.Peer.Builder, io.grpc.binarylog.v1alpha.PeerOrBuilder> - getPeerFieldBuilder() { - if (peerBuilder_ == null) { - peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.grpc.binarylog.v1alpha.Peer, io.grpc.binarylog.v1alpha.Peer.Builder, io.grpc.binarylog.v1alpha.PeerOrBuilder>( - getPeer(), - getParentForChildren(), - isClean()); - peer_ = null; - } - return peerBuilder_; - } - - private boolean truncated_ ; - /** - *
-     * true if payload does not represent the full message or metadata.
-     * 
- * - * bool truncated = 7; - */ - public boolean getTruncated() { - return truncated_; - } - /** - *
-     * true if payload does not represent the full message or metadata.
-     * 
- * - * bool truncated = 7; - */ - public Builder setTruncated(boolean value) { - - truncated_ = value; - onChanged(); - return this; - } - /** - *
-     * true if payload does not represent the full message or metadata.
-     * 
- * - * bool truncated = 7; - */ - public Builder clearTruncated() { - - truncated_ = false; - onChanged(); - return this; - } - - private java.lang.Object methodName_ = ""; - /** - *
-     * The method name. Logged for the first entry:
-     * RECV_INITIAL_METADATA for server side or
-     * SEND_INITIAL_METADATA for client side.
-     * 
- * - * string method_name = 8; - */ - public java.lang.String getMethodName() { - java.lang.Object ref = methodName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - methodName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The method name. Logged for the first entry:
-     * RECV_INITIAL_METADATA for server side or
-     * SEND_INITIAL_METADATA for client side.
-     * 
- * - * string method_name = 8; - */ - public com.google.protobuf.ByteString - getMethodNameBytes() { - java.lang.Object ref = methodName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - methodName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The method name. Logged for the first entry:
-     * RECV_INITIAL_METADATA for server side or
-     * SEND_INITIAL_METADATA for client side.
-     * 
- * - * string method_name = 8; - */ - public Builder setMethodName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - methodName_ = value; - onChanged(); - return this; - } - /** - *
-     * The method name. Logged for the first entry:
-     * RECV_INITIAL_METADATA for server side or
-     * SEND_INITIAL_METADATA for client side.
-     * 
- * - * string method_name = 8; - */ - public Builder clearMethodName() { - - methodName_ = getDefaultInstance().getMethodName(); - onChanged(); - return this; - } - /** - *
-     * The method name. Logged for the first entry:
-     * RECV_INITIAL_METADATA for server side or
-     * SEND_INITIAL_METADATA for client side.
-     * 
- * - * string method_name = 8; - */ - public Builder setMethodNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - methodName_ = value; - onChanged(); - return this; - } - - private int statusCode_ ; - /** - *
-     * status_code and status_message:
-     * Only present for SEND_TRAILING_METADATA on server side or
-     * RECV_TRAILING_METADATA on client side.
-     * 
- * - * uint32 status_code = 9; - */ - public int getStatusCode() { - return statusCode_; - } - /** - *
-     * status_code and status_message:
-     * Only present for SEND_TRAILING_METADATA on server side or
-     * RECV_TRAILING_METADATA on client side.
-     * 
- * - * uint32 status_code = 9; - */ - public Builder setStatusCode(int value) { - - statusCode_ = value; - onChanged(); - return this; - } - /** - *
-     * status_code and status_message:
-     * Only present for SEND_TRAILING_METADATA on server side or
-     * RECV_TRAILING_METADATA on client side.
-     * 
- * - * uint32 status_code = 9; - */ - public Builder clearStatusCode() { - - statusCode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * An original status message before any transport specific
-     * encoding.
-     * 
- * - * string status_message = 10; - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * An original status message before any transport specific
-     * encoding.
-     * 
- * - * string status_message = 10; - */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * An original status message before any transport specific
-     * encoding.
-     * 
- * - * string status_message = 10; - */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * An original status message before any transport specific
-     * encoding.
-     * 
- * - * string status_message = 10; - */ - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * An original status message before any transport specific
-     * encoding.
-     * 
- * - * string status_message = 10; - */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString statusDetails_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * The value of the 'grpc-status-details-bin' metadata key. If
-     * present, this is always an encoded 'google.rpc.Status' message.
-     * 
- * - * bytes status_details = 11; - */ - public com.google.protobuf.ByteString getStatusDetails() { - return statusDetails_; - } - /** - *
-     * The value of the 'grpc-status-details-bin' metadata key. If
-     * present, this is always an encoded 'google.rpc.Status' message.
-     * 
- * - * bytes status_details = 11; - */ - public Builder setStatusDetails(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - statusDetails_ = value; - onChanged(); - return this; - } - /** - *
-     * The value of the 'grpc-status-details-bin' metadata key. If
-     * present, this is always an encoded 'google.rpc.Status' message.
-     * 
- * - * bytes status_details = 11; - */ - public Builder clearStatusDetails() { - - statusDetails_ = getDefaultInstance().getStatusDetails(); - onChanged(); - return this; - } - - private com.google.protobuf.Duration timeout_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public com.google.protobuf.Duration getTimeout() { - if (timeoutBuilder_ == null) { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } else { - return timeoutBuilder_.getMessage(); - } - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public Builder setTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeout_ = value; - onChanged(); - } else { - timeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (timeoutBuilder_ == null) { - timeout_ = builderForValue.build(); - onChanged(); - } else { - timeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public Builder mergeTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); - } else { - timeout_ = value; - } - onChanged(); - } else { - timeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - - return this; - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - - onChanged(); - return getTimeoutFieldBuilder().getBuilder(); - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - if (timeoutBuilder_ != null) { - return timeoutBuilder_.getMessageOrBuilder(); - } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - } - /** - *
-     * the RPC timeout
-     * 
- * - * .google.protobuf.Duration timeout = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTimeoutFieldBuilder() { - if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); - timeout_ = null; - } - return timeoutBuilder_; - } - - private int 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.
-     * 
- * - * uint32 sequence_id_within_call = 13; - */ - public int 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.
-     * 
- * - * uint32 sequence_id_within_call = 13; - */ - public Builder setSequenceIdWithinCall(int value) { - - sequenceIdWithinCall_ = value; - 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.
-     * 
- * - * uint32 sequence_id_within_call = 13; - */ - public Builder clearSequenceIdWithinCall() { - - sequenceIdWithinCall_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.binarylog.v1alpha.GrpcLogEntry) - } - - // @@protoc_insertion_point(class_scope:grpc.binarylog.v1alpha.GrpcLogEntry) - private static final io.grpc.binarylog.v1alpha.GrpcLogEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.binarylog.v1alpha.GrpcLogEntry(); - } - - public static io.grpc.binarylog.v1alpha.GrpcLogEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public GrpcLogEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GrpcLogEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.binarylog.v1alpha.GrpcLogEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/GrpcLogEntryOrBuilder.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/GrpcLogEntryOrBuilder.java deleted file mode 100644 index e4c7c6e986..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/GrpcLogEntryOrBuilder.java +++ /dev/null @@ -1,266 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -public interface GrpcLogEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.binarylog.v1alpha.GrpcLogEntry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * One of the above Type enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - int getTypeValue(); - /** - *
-   * One of the above Type enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1; - */ - io.grpc.binarylog.v1alpha.GrpcLogEntry.Type getType(); - - /** - *
-   * One of the above Logger enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - int getLoggerValue(); - /** - *
-   * One of the above Logger enum
-   * 
- * - * .grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2; - */ - io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger getLogger(); - - /** - *
-   * Uniquely identifies a call. Each call may have several log entries, they
-   * will share the same call_id. 128 bits split into 2 64-bit parts.
-   * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - boolean hasCallId(); - /** - *
-   * Uniquely identifies a call. Each call may have several log entries, they
-   * will share the same call_id. 128 bits split into 2 64-bit parts.
-   * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - io.grpc.binarylog.v1alpha.Uint128 getCallId(); - /** - *
-   * Uniquely identifies a call. Each call may have several log entries, they
-   * will share the same call_id. 128 bits split into 2 64-bit parts.
-   * 
- * - * .grpc.binarylog.v1alpha.Uint128 call_id = 3; - */ - io.grpc.binarylog.v1alpha.Uint128OrBuilder getCallIdOrBuilder(); - - /** - *
-   * Used by {SEND,RECV}_INITIAL_METADATA and
-   * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-   * from the application.
-   * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - boolean hasMetadata(); - /** - *
-   * Used by {SEND,RECV}_INITIAL_METADATA and
-   * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-   * from the application.
-   * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - io.grpc.binarylog.v1alpha.Metadata getMetadata(); - /** - *
-   * Used by {SEND,RECV}_INITIAL_METADATA and
-   * {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
-   * from the application.
-   * 
- * - * .grpc.binarylog.v1alpha.Metadata metadata = 4; - */ - io.grpc.binarylog.v1alpha.MetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-   * Used by {SEND,RECV}_MESSAGE
-   * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - boolean hasMessage(); - /** - *
-   * Used by {SEND,RECV}_MESSAGE
-   * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - io.grpc.binarylog.v1alpha.Message getMessage(); - /** - *
-   * Used by {SEND,RECV}_MESSAGE
-   * 
- * - * .grpc.binarylog.v1alpha.Message message = 5; - */ - io.grpc.binarylog.v1alpha.MessageOrBuilder getMessageOrBuilder(); - - /** - *
-   * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-   * and RECV_INITIAL_METADATA entries.
-   * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - boolean hasPeer(); - /** - *
-   * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-   * and RECV_INITIAL_METADATA entries.
-   * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - io.grpc.binarylog.v1alpha.Peer getPeer(); - /** - *
-   * Peer address information, will only be recorded in SEND_INITIAL_METADATA
-   * and RECV_INITIAL_METADATA entries.
-   * 
- * - * .grpc.binarylog.v1alpha.Peer peer = 6; - */ - io.grpc.binarylog.v1alpha.PeerOrBuilder getPeerOrBuilder(); - - /** - *
-   * true if payload does not represent the full message or metadata.
-   * 
- * - * bool truncated = 7; - */ - boolean getTruncated(); - - /** - *
-   * The method name. Logged for the first entry:
-   * RECV_INITIAL_METADATA for server side or
-   * SEND_INITIAL_METADATA for client side.
-   * 
- * - * string method_name = 8; - */ - java.lang.String getMethodName(); - /** - *
-   * The method name. Logged for the first entry:
-   * RECV_INITIAL_METADATA for server side or
-   * SEND_INITIAL_METADATA for client side.
-   * 
- * - * string method_name = 8; - */ - com.google.protobuf.ByteString - getMethodNameBytes(); - - /** - *
-   * status_code and status_message:
-   * Only present for SEND_TRAILING_METADATA on server side or
-   * RECV_TRAILING_METADATA on client side.
-   * 
- * - * uint32 status_code = 9; - */ - int getStatusCode(); - - /** - *
-   * An original status message before any transport specific
-   * encoding.
-   * 
- * - * string status_message = 10; - */ - java.lang.String getStatusMessage(); - /** - *
-   * An original status message before any transport specific
-   * encoding.
-   * 
- * - * string status_message = 10; - */ - com.google.protobuf.ByteString - getStatusMessageBytes(); - - /** - *
-   * The value of the 'grpc-status-details-bin' metadata key. If
-   * present, this is always an encoded 'google.rpc.Status' message.
-   * 
- * - * bytes status_details = 11; - */ - com.google.protobuf.ByteString getStatusDetails(); - - /** - *
-   * the RPC timeout
-   * 
- * - * .google.protobuf.Duration timeout = 12; - */ - boolean hasTimeout(); - /** - *
-   * the RPC timeout
-   * 
- * - * .google.protobuf.Duration timeout = 12; - */ - com.google.protobuf.Duration getTimeout(); - /** - *
-   * the RPC timeout
-   * 
- * - * .google.protobuf.Duration timeout = 12; - */ - com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); - - /** - *
-   * 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.
-   * 
- * - * uint32 sequence_id_within_call = 13; - */ - int getSequenceIdWithinCall(); - - public io.grpc.binarylog.v1alpha.GrpcLogEntry.PayloadCase getPayloadCase(); -} diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Message.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Message.java deleted file mode 100644 index 590b1763f4..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Message.java +++ /dev/null @@ -1,642 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -/** - *
- * Message payload, used by REQUEST and RESPONSE
- * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Message} - */ -public final class Message extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.binarylog.v1alpha.Message) - MessageOrBuilder { -private static final long serialVersionUID = 0L; - // Use Message.newBuilder() to construct. - private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Message() { - flags_ = 0; - length_ = 0; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Message( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - flags_ = input.readUInt32(); - break; - } - case 16: { - - length_ = input.readUInt32(); - break; - } - case 26: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Message_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Message.class, io.grpc.binarylog.v1alpha.Message.Builder.class); - } - - public static final int FLAGS_FIELD_NUMBER = 1; - private int flags_; - /** - *
-   * This flag is currently used to indicate whether the payload is compressed,
-   * it may contain other semantics in the future. Value of 1 indicates that the
-   * binary octet sequence of Message is compressed using the mechanism declared
-   * by the Message-Encoding header. A value of 0 indicates that no encoding of
-   * Message bytes has occurred.
-   * 
- * - * uint32 flags = 1; - */ - public int getFlags() { - return flags_; - } - - public static final int LENGTH_FIELD_NUMBER = 2; - private int length_; - /** - *
-   * Length of the message. It may not be the same as the length of the
-   * data field, as the logging payload can be truncated or omitted.
-   * 
- * - * uint32 length = 2; - */ - public int getLength() { - return length_; - } - - public static final int DATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString data_; - /** - *
-   * May be truncated or omitted.
-   * 
- * - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (flags_ != 0) { - output.writeUInt32(1, flags_); - } - if (length_ != 0) { - output.writeUInt32(2, length_); - } - if (!data_.isEmpty()) { - output.writeBytes(3, data_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (flags_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, flags_); - } - if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, length_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, data_); - } - size += unknownFields.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.v1alpha.Message)) { - return super.equals(obj); - } - io.grpc.binarylog.v1alpha.Message other = (io.grpc.binarylog.v1alpha.Message) obj; - - boolean result = true; - result = result && (getFlags() - == other.getFlags()); - result = result && (getLength() - == other.getLength()); - result = result && getData() - .equals(other.getData()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FLAGS_FIELD_NUMBER; - hash = (53 * hash) + getFlags(); - hash = (37 * hash) + LENGTH_FIELD_NUMBER; - hash = (53 * hash) + getLength(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.grpc.binarylog.v1alpha.Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Message 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.v1alpha.Message parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Message 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.v1alpha.Message parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Message parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.binarylog.v1alpha.Message parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Message 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.v1alpha.Message parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Message 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.v1alpha.Message parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Message parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.binarylog.v1alpha.Message prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - 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; - } - /** - *
-   * Message payload, used by REQUEST and RESPONSE
-   * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Message} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.binarylog.v1alpha.Message) - io.grpc.binarylog.v1alpha.MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Message_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Message.class, io.grpc.binarylog.v1alpha.Message.Builder.class); - } - - // Construct using io.grpc.binarylog.v1alpha.Message.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - flags_ = 0; - - length_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Message_descriptor; - } - - public io.grpc.binarylog.v1alpha.Message getDefaultInstanceForType() { - return io.grpc.binarylog.v1alpha.Message.getDefaultInstance(); - } - - public io.grpc.binarylog.v1alpha.Message build() { - io.grpc.binarylog.v1alpha.Message result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.binarylog.v1alpha.Message buildPartial() { - io.grpc.binarylog.v1alpha.Message result = new io.grpc.binarylog.v1alpha.Message(this); - result.flags_ = flags_; - result.length_ = length_; - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.binarylog.v1alpha.Message) { - return mergeFrom((io.grpc.binarylog.v1alpha.Message)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.binarylog.v1alpha.Message other) { - if (other == io.grpc.binarylog.v1alpha.Message.getDefaultInstance()) return this; - if (other.getFlags() != 0) { - setFlags(other.getFlags()); - } - if (other.getLength() != 0) { - setLength(other.getLength()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.binarylog.v1alpha.Message parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.binarylog.v1alpha.Message) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int flags_ ; - /** - *
-     * This flag is currently used to indicate whether the payload is compressed,
-     * it may contain other semantics in the future. Value of 1 indicates that the
-     * binary octet sequence of Message is compressed using the mechanism declared
-     * by the Message-Encoding header. A value of 0 indicates that no encoding of
-     * Message bytes has occurred.
-     * 
- * - * uint32 flags = 1; - */ - public int getFlags() { - return flags_; - } - /** - *
-     * This flag is currently used to indicate whether the payload is compressed,
-     * it may contain other semantics in the future. Value of 1 indicates that the
-     * binary octet sequence of Message is compressed using the mechanism declared
-     * by the Message-Encoding header. A value of 0 indicates that no encoding of
-     * Message bytes has occurred.
-     * 
- * - * uint32 flags = 1; - */ - public Builder setFlags(int value) { - - flags_ = value; - onChanged(); - return this; - } - /** - *
-     * This flag is currently used to indicate whether the payload is compressed,
-     * it may contain other semantics in the future. Value of 1 indicates that the
-     * binary octet sequence of Message is compressed using the mechanism declared
-     * by the Message-Encoding header. A value of 0 indicates that no encoding of
-     * Message bytes has occurred.
-     * 
- * - * uint32 flags = 1; - */ - public Builder clearFlags() { - - flags_ = 0; - onChanged(); - return this; - } - - private int length_ ; - /** - *
-     * Length of the message. It may not be the same as the length of the
-     * data field, as the logging payload can be truncated or omitted.
-     * 
- * - * uint32 length = 2; - */ - public int getLength() { - return length_; - } - /** - *
-     * Length of the message. It may not be the same as the length of the
-     * data field, as the logging payload can be truncated or omitted.
-     * 
- * - * uint32 length = 2; - */ - public Builder setLength(int value) { - - length_ = value; - onChanged(); - return this; - } - /** - *
-     * Length of the message. It may not be the same as the length of the
-     * data field, as the logging payload can be truncated or omitted.
-     * 
- * - * uint32 length = 2; - */ - public Builder clearLength() { - - length_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * May be truncated or omitted.
-     * 
- * - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-     * May be truncated or omitted.
-     * 
- * - * bytes data = 3; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-     * May be truncated or omitted.
-     * 
- * - * bytes data = 3; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.binarylog.v1alpha.Message) - } - - // @@protoc_insertion_point(class_scope:grpc.binarylog.v1alpha.Message) - private static final io.grpc.binarylog.v1alpha.Message DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.binarylog.v1alpha.Message(); - } - - public static io.grpc.binarylog.v1alpha.Message getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Message parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Message(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.binarylog.v1alpha.Message getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MessageOrBuilder.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MessageOrBuilder.java deleted file mode 100644 index 6ac17a7ff4..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MessageOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -public interface MessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.binarylog.v1alpha.Message) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * This flag is currently used to indicate whether the payload is compressed,
-   * it may contain other semantics in the future. Value of 1 indicates that the
-   * binary octet sequence of Message is compressed using the mechanism declared
-   * by the Message-Encoding header. A value of 0 indicates that no encoding of
-   * Message bytes has occurred.
-   * 
- * - * uint32 flags = 1; - */ - int getFlags(); - - /** - *
-   * Length of the message. It may not be the same as the length of the
-   * data field, as the logging payload can be truncated or omitted.
-   * 
- * - * uint32 length = 2; - */ - int getLength(); - - /** - *
-   * May be truncated or omitted.
-   * 
- * - * bytes data = 3; - */ - com.google.protobuf.ByteString getData(); -} diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Metadata.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Metadata.java deleted file mode 100644 index 25ecca1292..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Metadata.java +++ /dev/null @@ -1,764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -/** - *
- * A list of metadata pairs, used in the payload of CLIENT_INIT_METADATA,
- * SERVER_INIT_METADATA and TRAILING_METADATA
- * Implementations may omit some entries to honor the header limits
- * of GRPC_BINARY_LOG_CONFIG.
- * 
- * Implementations will not log the following entries, and this is
- * not to be treated as a truncation:
- * - entries handled by grpc that are not user visible, such as those
- *   that begin with 'grpc-' or keys like 'lb-token'
- * - transport specific entries, including but not limited to:
- *   ':path', ':authority', 'content-encoding', 'user-agent', 'te', etc
- * - entries added for call credentials
- * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Metadata} - */ -public final class Metadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.binarylog.v1alpha.Metadata) - MetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use Metadata.newBuilder() to construct. - private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Metadata() { - entry_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entry_.add( - input.readMessage(io.grpc.binarylog.v1alpha.MetadataEntry.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = java.util.Collections.unmodifiableList(entry_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Metadata.class, io.grpc.binarylog.v1alpha.Metadata.Builder.class); - } - - public static final int ENTRY_FIELD_NUMBER = 1; - private java.util.List entry_; - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public java.util.List getEntryList() { - return entry_; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public java.util.List - getEntryOrBuilderList() { - return entry_; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public int getEntryCount() { - return entry_.size(); - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public io.grpc.binarylog.v1alpha.MetadataEntry getEntry(int index) { - return entry_.get(index); - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder getEntryOrBuilder( - int index) { - return entry_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < entry_.size(); i++) { - output.writeMessage(1, entry_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entry_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entry_.get(i)); - } - size += unknownFields.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.v1alpha.Metadata)) { - return super.equals(obj); - } - io.grpc.binarylog.v1alpha.Metadata other = (io.grpc.binarylog.v1alpha.Metadata) obj; - - boolean result = true; - result = result && getEntryList() - .equals(other.getEntryList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEntryCount() > 0) { - hash = (37 * hash) + ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getEntryList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.grpc.binarylog.v1alpha.Metadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Metadata 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.v1alpha.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Metadata 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.v1alpha.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.binarylog.v1alpha.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Metadata 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.v1alpha.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Metadata 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.v1alpha.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.binarylog.v1alpha.Metadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - 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; - } - /** - *
-   * A list of metadata pairs, used in the payload of CLIENT_INIT_METADATA,
-   * SERVER_INIT_METADATA and TRAILING_METADATA
-   * Implementations may omit some entries to honor the header limits
-   * of GRPC_BINARY_LOG_CONFIG.
-   * 
-   * Implementations will not log the following entries, and this is
-   * not to be treated as a truncation:
-   * - entries handled by grpc that are not user visible, such as those
-   *   that begin with 'grpc-' or keys like 'lb-token'
-   * - transport specific entries, including but not limited to:
-   *   ':path', ':authority', 'content-encoding', 'user-agent', 'te', etc
-   * - entries added for call credentials
-   * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Metadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.binarylog.v1alpha.Metadata) - io.grpc.binarylog.v1alpha.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Metadata.class, io.grpc.binarylog.v1alpha.Metadata.Builder.class); - } - - // Construct using io.grpc.binarylog.v1alpha.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntryFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (entryBuilder_ == null) { - entry_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entryBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Metadata_descriptor; - } - - public io.grpc.binarylog.v1alpha.Metadata getDefaultInstanceForType() { - return io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance(); - } - - public io.grpc.binarylog.v1alpha.Metadata build() { - io.grpc.binarylog.v1alpha.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.binarylog.v1alpha.Metadata buildPartial() { - io.grpc.binarylog.v1alpha.Metadata result = new io.grpc.binarylog.v1alpha.Metadata(this); - int from_bitField0_ = bitField0_; - if (entryBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = java.util.Collections.unmodifiableList(entry_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entry_ = entry_; - } else { - result.entry_ = entryBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.binarylog.v1alpha.Metadata) { - return mergeFrom((io.grpc.binarylog.v1alpha.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.binarylog.v1alpha.Metadata other) { - if (other == io.grpc.binarylog.v1alpha.Metadata.getDefaultInstance()) return this; - if (entryBuilder_ == null) { - if (!other.entry_.isEmpty()) { - if (entry_.isEmpty()) { - entry_ = other.entry_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntryIsMutable(); - entry_.addAll(other.entry_); - } - onChanged(); - } - } else { - if (!other.entry_.isEmpty()) { - if (entryBuilder_.isEmpty()) { - entryBuilder_.dispose(); - entryBuilder_ = null; - entry_ = other.entry_; - bitField0_ = (bitField0_ & ~0x00000001); - entryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntryFieldBuilder() : null; - } else { - entryBuilder_.addAllMessages(other.entry_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.binarylog.v1alpha.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.binarylog.v1alpha.Metadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entry_ = - java.util.Collections.emptyList(); - private void ensureEntryIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = new java.util.ArrayList(entry_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.grpc.binarylog.v1alpha.MetadataEntry, io.grpc.binarylog.v1alpha.MetadataEntry.Builder, io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder> entryBuilder_; - - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public java.util.List getEntryList() { - if (entryBuilder_ == null) { - return java.util.Collections.unmodifiableList(entry_); - } else { - return entryBuilder_.getMessageList(); - } - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public int getEntryCount() { - if (entryBuilder_ == null) { - return entry_.size(); - } else { - return entryBuilder_.getCount(); - } - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public io.grpc.binarylog.v1alpha.MetadataEntry getEntry(int index) { - if (entryBuilder_ == null) { - return entry_.get(index); - } else { - return entryBuilder_.getMessage(index); - } - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder setEntry( - int index, io.grpc.binarylog.v1alpha.MetadataEntry value) { - if (entryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryIsMutable(); - entry_.set(index, value); - onChanged(); - } else { - entryBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder setEntry( - int index, io.grpc.binarylog.v1alpha.MetadataEntry.Builder builderForValue) { - if (entryBuilder_ == null) { - ensureEntryIsMutable(); - entry_.set(index, builderForValue.build()); - onChanged(); - } else { - entryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder addEntry(io.grpc.binarylog.v1alpha.MetadataEntry value) { - if (entryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryIsMutable(); - entry_.add(value); - onChanged(); - } else { - entryBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder addEntry( - int index, io.grpc.binarylog.v1alpha.MetadataEntry value) { - if (entryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryIsMutable(); - entry_.add(index, value); - onChanged(); - } else { - entryBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder addEntry( - io.grpc.binarylog.v1alpha.MetadataEntry.Builder builderForValue) { - if (entryBuilder_ == null) { - ensureEntryIsMutable(); - entry_.add(builderForValue.build()); - onChanged(); - } else { - entryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder addEntry( - int index, io.grpc.binarylog.v1alpha.MetadataEntry.Builder builderForValue) { - if (entryBuilder_ == null) { - ensureEntryIsMutable(); - entry_.add(index, builderForValue.build()); - onChanged(); - } else { - entryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder addAllEntry( - java.lang.Iterable values) { - if (entryBuilder_ == null) { - ensureEntryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entry_); - onChanged(); - } else { - entryBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder clearEntry() { - if (entryBuilder_ == null) { - entry_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entryBuilder_.clear(); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public Builder removeEntry(int index) { - if (entryBuilder_ == null) { - ensureEntryIsMutable(); - entry_.remove(index); - onChanged(); - } else { - entryBuilder_.remove(index); - } - return this; - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public io.grpc.binarylog.v1alpha.MetadataEntry.Builder getEntryBuilder( - int index) { - return getEntryFieldBuilder().getBuilder(index); - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder getEntryOrBuilder( - int index) { - if (entryBuilder_ == null) { - return entry_.get(index); } else { - return entryBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public java.util.List - getEntryOrBuilderList() { - if (entryBuilder_ != null) { - return entryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entry_); - } - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public io.grpc.binarylog.v1alpha.MetadataEntry.Builder addEntryBuilder() { - return getEntryFieldBuilder().addBuilder( - io.grpc.binarylog.v1alpha.MetadataEntry.getDefaultInstance()); - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public io.grpc.binarylog.v1alpha.MetadataEntry.Builder addEntryBuilder( - int index) { - return getEntryFieldBuilder().addBuilder( - index, io.grpc.binarylog.v1alpha.MetadataEntry.getDefaultInstance()); - } - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - public java.util.List - getEntryBuilderList() { - return getEntryFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.grpc.binarylog.v1alpha.MetadataEntry, io.grpc.binarylog.v1alpha.MetadataEntry.Builder, io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder> - getEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.grpc.binarylog.v1alpha.MetadataEntry, io.grpc.binarylog.v1alpha.MetadataEntry.Builder, io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder>( - entry_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - entry_ = null; - } - return entryBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.binarylog.v1alpha.Metadata) - } - - // @@protoc_insertion_point(class_scope:grpc.binarylog.v1alpha.Metadata) - private static final io.grpc.binarylog.v1alpha.Metadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.binarylog.v1alpha.Metadata(); - } - - public static io.grpc.binarylog.v1alpha.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.binarylog.v1alpha.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataEntry.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataEntry.java deleted file mode 100644 index f93f003b58..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataEntry.java +++ /dev/null @@ -1,519 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -/** - *
- * A metadata key value pair
- * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.MetadataEntry} - */ -public final class MetadataEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.binarylog.v1alpha.MetadataEntry) - MetadataEntryOrBuilder { -private static final long serialVersionUID = 0L; - // Use MetadataEntry.newBuilder() to construct. - private MetadataEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetadataEntry() { - key_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MetadataEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - key_ = input.readBytes(); - break; - } - case 18: { - - value_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_MetadataEntry_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_MetadataEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.MetadataEntry.class, io.grpc.binarylog.v1alpha.MetadataEntry.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString key_; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!key_.isEmpty()) { - output.writeBytes(1, key_); - } - if (!value_.isEmpty()) { - output.writeBytes(2, value_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, value_); - } - size += unknownFields.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.v1alpha.MetadataEntry)) { - return super.equals(obj); - } - io.grpc.binarylog.v1alpha.MetadataEntry other = (io.grpc.binarylog.v1alpha.MetadataEntry) obj; - - boolean result = true; - result = result && getKey() - .equals(other.getKey()); - result = result && getValue() - .equals(other.getValue()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.grpc.binarylog.v1alpha.MetadataEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.MetadataEntry 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.v1alpha.MetadataEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.MetadataEntry 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.v1alpha.MetadataEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.MetadataEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.binarylog.v1alpha.MetadataEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.MetadataEntry 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.v1alpha.MetadataEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.MetadataEntry 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.v1alpha.MetadataEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.MetadataEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.binarylog.v1alpha.MetadataEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - 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; - } - /** - *
-   * A metadata key value pair
-   * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.MetadataEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.binarylog.v1alpha.MetadataEntry) - io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_MetadataEntry_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_MetadataEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.MetadataEntry.class, io.grpc.binarylog.v1alpha.MetadataEntry.Builder.class); - } - - // Construct using io.grpc.binarylog.v1alpha.MetadataEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_MetadataEntry_descriptor; - } - - public io.grpc.binarylog.v1alpha.MetadataEntry getDefaultInstanceForType() { - return io.grpc.binarylog.v1alpha.MetadataEntry.getDefaultInstance(); - } - - public io.grpc.binarylog.v1alpha.MetadataEntry build() { - io.grpc.binarylog.v1alpha.MetadataEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.binarylog.v1alpha.MetadataEntry buildPartial() { - io.grpc.binarylog.v1alpha.MetadataEntry result = new io.grpc.binarylog.v1alpha.MetadataEntry(this); - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.binarylog.v1alpha.MetadataEntry) { - return mergeFrom((io.grpc.binarylog.v1alpha.MetadataEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.binarylog.v1alpha.MetadataEntry other) { - if (other == io.grpc.binarylog.v1alpha.MetadataEntry.getDefaultInstance()) return this; - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.binarylog.v1alpha.MetadataEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.binarylog.v1alpha.MetadataEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes key = 1; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * bytes key = 1; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * bytes key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 2; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 2; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.binarylog.v1alpha.MetadataEntry) - } - - // @@protoc_insertion_point(class_scope:grpc.binarylog.v1alpha.MetadataEntry) - private static final io.grpc.binarylog.v1alpha.MetadataEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.binarylog.v1alpha.MetadataEntry(); - } - - public static io.grpc.binarylog.v1alpha.MetadataEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public MetadataEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MetadataEntry(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.binarylog.v1alpha.MetadataEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataEntryOrBuilder.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataEntryOrBuilder.java deleted file mode 100644 index 78f32a0b5a..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataEntryOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -public interface MetadataEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.binarylog.v1alpha.MetadataEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes key = 1; - */ - com.google.protobuf.ByteString getKey(); - - /** - * bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); -} diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataOrBuilder.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataOrBuilder.java deleted file mode 100644 index 75cacfc9b5..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/MetadataOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.binarylog.v1alpha.Metadata) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - java.util.List - getEntryList(); - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - io.grpc.binarylog.v1alpha.MetadataEntry getEntry(int index); - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - int getEntryCount(); - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - java.util.List - getEntryOrBuilderList(); - /** - * repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1; - */ - io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder getEntryOrBuilder( - int index); -} diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Peer.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Peer.java deleted file mode 100644 index 3a29df086c..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Peer.java +++ /dev/null @@ -1,900 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -/** - *
- * Peer information
- * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Peer} - */ -public final class Peer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.binarylog.v1alpha.Peer) - PeerOrBuilder { -private static final long serialVersionUID = 0L; - // Use Peer.newBuilder() to construct. - private Peer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Peer() { - peerType_ = 0; - peer_ = com.google.protobuf.ByteString.EMPTY; - address_ = ""; - ipPort_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Peer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - peerType_ = rawValue; - break; - } - case 18: { - - peer_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - address_ = s; - break; - } - case 32: { - - ipPort_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Peer_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Peer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Peer.class, io.grpc.binarylog.v1alpha.Peer.Builder.class); - } - - /** - * Protobuf enum {@code grpc.binarylog.v1alpha.Peer.PeerType} - */ - public enum PeerType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_PEERTYPE = 0; - */ - UNKNOWN_PEERTYPE(0), - /** - *
-     * address is the address in 1.2.3.4 form
-     * 
- * - * PEER_IPV4 = 1; - */ - PEER_IPV4(1), - /** - *
-     * address the address in canonical form (RFC5952 section 4)
-     * The scope is NOT included in the peer string.
-     * 
- * - * PEER_IPV6 = 2; - */ - PEER_IPV6(2), - /** - *
-     * address is UDS string
-     * 
- * - * PEER_UNIX = 3; - */ - PEER_UNIX(3), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_PEERTYPE = 0; - */ - public static final int UNKNOWN_PEERTYPE_VALUE = 0; - /** - *
-     * address is the address in 1.2.3.4 form
-     * 
- * - * PEER_IPV4 = 1; - */ - public static final int PEER_IPV4_VALUE = 1; - /** - *
-     * address the address in canonical form (RFC5952 section 4)
-     * The scope is NOT included in the peer string.
-     * 
- * - * PEER_IPV6 = 2; - */ - public static final int PEER_IPV6_VALUE = 2; - /** - *
-     * address is UDS string
-     * 
- * - * PEER_UNIX = 3; - */ - public static final int PEER_UNIX_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PeerType valueOf(int value) { - return forNumber(value); - } - - public static PeerType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_PEERTYPE; - case 1: return PEER_IPV4; - case 2: return PEER_IPV6; - case 3: return PEER_UNIX; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PeerType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PeerType findValueByNumber(int number) { - return PeerType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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.v1alpha.Peer.getDescriptor().getEnumTypes().get(0); - } - - private static final PeerType[] VALUES = values(); - - public static PeerType 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 PeerType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.binarylog.v1alpha.Peer.PeerType) - } - - public static final int PEER_TYPE_FIELD_NUMBER = 1; - private int peerType_; - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - public int getPeerTypeValue() { - return peerType_; - } - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - public io.grpc.binarylog.v1alpha.Peer.PeerType getPeerType() { - io.grpc.binarylog.v1alpha.Peer.PeerType result = io.grpc.binarylog.v1alpha.Peer.PeerType.valueOf(peerType_); - return result == null ? io.grpc.binarylog.v1alpha.Peer.PeerType.UNRECOGNIZED : result; - } - - public static final int PEER_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString peer_; - /** - *
-   * will be removed: do not use
-   * 
- * - * bytes peer = 2; - */ - public com.google.protobuf.ByteString getPeer() { - return peer_; - } - - public static final int ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object address_; - /** - * string address = 3; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } - } - /** - * string address = 3; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_PORT_FIELD_NUMBER = 4; - private int ipPort_; - /** - *
-   * only for PEER_IPV4 and PEER_IPV6
-   * 
- * - * uint32 ip_port = 4; - */ - public int getIpPort() { - return ipPort_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (peerType_ != io.grpc.binarylog.v1alpha.Peer.PeerType.UNKNOWN_PEERTYPE.getNumber()) { - output.writeEnum(1, peerType_); - } - if (!peer_.isEmpty()) { - output.writeBytes(2, peer_); - } - if (!getAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, address_); - } - if (ipPort_ != 0) { - output.writeUInt32(4, ipPort_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (peerType_ != io.grpc.binarylog.v1alpha.Peer.PeerType.UNKNOWN_PEERTYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, peerType_); - } - if (!peer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, peer_); - } - if (!getAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, address_); - } - if (ipPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, ipPort_); - } - size += unknownFields.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.v1alpha.Peer)) { - return super.equals(obj); - } - io.grpc.binarylog.v1alpha.Peer other = (io.grpc.binarylog.v1alpha.Peer) obj; - - boolean result = true; - result = result && peerType_ == other.peerType_; - result = result && getPeer() - .equals(other.getPeer()); - result = result && getAddress() - .equals(other.getAddress()); - result = result && (getIpPort() - == other.getIpPort()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PEER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + peerType_; - hash = (37 * hash) + PEER_FIELD_NUMBER; - hash = (53 * hash) + getPeer().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + IP_PORT_FIELD_NUMBER; - hash = (53 * hash) + getIpPort(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.grpc.binarylog.v1alpha.Peer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Peer 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.v1alpha.Peer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Peer 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.v1alpha.Peer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Peer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.binarylog.v1alpha.Peer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Peer 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.v1alpha.Peer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Peer 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.v1alpha.Peer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Peer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.binarylog.v1alpha.Peer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - 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; - } - /** - *
-   * Peer information
-   * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Peer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.binarylog.v1alpha.Peer) - io.grpc.binarylog.v1alpha.PeerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Peer_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Peer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Peer.class, io.grpc.binarylog.v1alpha.Peer.Builder.class); - } - - // Construct using io.grpc.binarylog.v1alpha.Peer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - peerType_ = 0; - - peer_ = com.google.protobuf.ByteString.EMPTY; - - address_ = ""; - - ipPort_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Peer_descriptor; - } - - public io.grpc.binarylog.v1alpha.Peer getDefaultInstanceForType() { - return io.grpc.binarylog.v1alpha.Peer.getDefaultInstance(); - } - - public io.grpc.binarylog.v1alpha.Peer build() { - io.grpc.binarylog.v1alpha.Peer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.binarylog.v1alpha.Peer buildPartial() { - io.grpc.binarylog.v1alpha.Peer result = new io.grpc.binarylog.v1alpha.Peer(this); - result.peerType_ = peerType_; - result.peer_ = peer_; - result.address_ = address_; - result.ipPort_ = ipPort_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.binarylog.v1alpha.Peer) { - return mergeFrom((io.grpc.binarylog.v1alpha.Peer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.binarylog.v1alpha.Peer other) { - if (other == io.grpc.binarylog.v1alpha.Peer.getDefaultInstance()) return this; - if (other.peerType_ != 0) { - setPeerTypeValue(other.getPeerTypeValue()); - } - if (other.getPeer() != com.google.protobuf.ByteString.EMPTY) { - setPeer(other.getPeer()); - } - if (!other.getAddress().isEmpty()) { - address_ = other.address_; - onChanged(); - } - if (other.getIpPort() != 0) { - setIpPort(other.getIpPort()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.binarylog.v1alpha.Peer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.binarylog.v1alpha.Peer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int peerType_ = 0; - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - public int getPeerTypeValue() { - return peerType_; - } - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - public Builder setPeerTypeValue(int value) { - peerType_ = value; - onChanged(); - return this; - } - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - public io.grpc.binarylog.v1alpha.Peer.PeerType getPeerType() { - io.grpc.binarylog.v1alpha.Peer.PeerType result = io.grpc.binarylog.v1alpha.Peer.PeerType.valueOf(peerType_); - return result == null ? io.grpc.binarylog.v1alpha.Peer.PeerType.UNRECOGNIZED : result; - } - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - public Builder setPeerType(io.grpc.binarylog.v1alpha.Peer.PeerType value) { - if (value == null) { - throw new NullPointerException(); - } - - peerType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - public Builder clearPeerType() { - - peerType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString peer_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * will be removed: do not use
-     * 
- * - * bytes peer = 2; - */ - public com.google.protobuf.ByteString getPeer() { - return peer_; - } - /** - *
-     * will be removed: do not use
-     * 
- * - * bytes peer = 2; - */ - public Builder setPeer(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - peer_ = value; - onChanged(); - return this; - } - /** - *
-     * will be removed: do not use
-     * 
- * - * bytes peer = 2; - */ - public Builder clearPeer() { - - peer_ = getDefaultInstance().getPeer(); - onChanged(); - return this; - } - - private java.lang.Object address_ = ""; - /** - * string address = 3; - */ - public java.lang.String getAddress() { - java.lang.Object ref = address_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - address_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string address = 3; - */ - public com.google.protobuf.ByteString - getAddressBytes() { - java.lang.Object ref = address_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - address_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string address = 3; - */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * string address = 3; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - /** - * string address = 3; - */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - address_ = value; - onChanged(); - return this; - } - - private int ipPort_ ; - /** - *
-     * only for PEER_IPV4 and PEER_IPV6
-     * 
- * - * uint32 ip_port = 4; - */ - public int getIpPort() { - return ipPort_; - } - /** - *
-     * only for PEER_IPV4 and PEER_IPV6
-     * 
- * - * uint32 ip_port = 4; - */ - public Builder setIpPort(int value) { - - ipPort_ = value; - onChanged(); - return this; - } - /** - *
-     * only for PEER_IPV4 and PEER_IPV6
-     * 
- * - * uint32 ip_port = 4; - */ - public Builder clearIpPort() { - - ipPort_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.binarylog.v1alpha.Peer) - } - - // @@protoc_insertion_point(class_scope:grpc.binarylog.v1alpha.Peer) - private static final io.grpc.binarylog.v1alpha.Peer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.binarylog.v1alpha.Peer(); - } - - public static io.grpc.binarylog.v1alpha.Peer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Peer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Peer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.binarylog.v1alpha.Peer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/PeerOrBuilder.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/PeerOrBuilder.java deleted file mode 100644 index 15ec92cb3a..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/PeerOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -public interface PeerOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.binarylog.v1alpha.Peer) - com.google.protobuf.MessageOrBuilder { - - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - int getPeerTypeValue(); - /** - * .grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1; - */ - io.grpc.binarylog.v1alpha.Peer.PeerType getPeerType(); - - /** - *
-   * will be removed: do not use
-   * 
- * - * bytes peer = 2; - */ - com.google.protobuf.ByteString getPeer(); - - /** - * string address = 3; - */ - java.lang.String getAddress(); - /** - * string address = 3; - */ - com.google.protobuf.ByteString - getAddressBytes(); - - /** - *
-   * only for PEER_IPV4 and PEER_IPV6
-   * 
- * - * uint32 ip_port = 4; - */ - int getIpPort(); -} diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Uint128.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Uint128.java deleted file mode 100644 index db5949b015..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Uint128.java +++ /dev/null @@ -1,515 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -/** - *
- * Used to record call_id.
- * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Uint128} - */ -public final class Uint128 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.binarylog.v1alpha.Uint128) - Uint128OrBuilder { -private static final long serialVersionUID = 0L; - // Use Uint128.newBuilder() to construct. - private Uint128(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Uint128() { - high_ = 0L; - low_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Uint128( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 9: { - - high_ = input.readFixed64(); - break; - } - case 17: { - - low_ = input.readFixed64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Uint128_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Uint128_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Uint128.class, io.grpc.binarylog.v1alpha.Uint128.Builder.class); - } - - public static final int HIGH_FIELD_NUMBER = 1; - private long high_; - /** - * fixed64 high = 1; - */ - public long getHigh() { - return high_; - } - - public static final int LOW_FIELD_NUMBER = 2; - private long low_; - /** - * fixed64 low = 2; - */ - public long getLow() { - return low_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (high_ != 0L) { - output.writeFixed64(1, high_); - } - if (low_ != 0L) { - output.writeFixed64(2, low_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (high_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, high_); - } - if (low_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(2, low_); - } - size += unknownFields.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.v1alpha.Uint128)) { - return super.equals(obj); - } - io.grpc.binarylog.v1alpha.Uint128 other = (io.grpc.binarylog.v1alpha.Uint128) obj; - - boolean result = true; - result = result && (getHigh() - == other.getHigh()); - result = result && (getLow() - == other.getLow()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HIGH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHigh()); - hash = (37 * hash) + LOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLow()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.grpc.binarylog.v1alpha.Uint128 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Uint128 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.v1alpha.Uint128 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Uint128 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.v1alpha.Uint128 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.grpc.binarylog.v1alpha.Uint128 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.grpc.binarylog.v1alpha.Uint128 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Uint128 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.v1alpha.Uint128 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Uint128 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.v1alpha.Uint128 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.grpc.binarylog.v1alpha.Uint128 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.grpc.binarylog.v1alpha.Uint128 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - 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; - } - /** - *
-   * Used to record call_id.
-   * 
- * - * Protobuf type {@code grpc.binarylog.v1alpha.Uint128} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.binarylog.v1alpha.Uint128) - io.grpc.binarylog.v1alpha.Uint128OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Uint128_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Uint128_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.grpc.binarylog.v1alpha.Uint128.class, io.grpc.binarylog.v1alpha.Uint128.Builder.class); - } - - // Construct using io.grpc.binarylog.v1alpha.Uint128.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - high_ = 0L; - - low_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.grpc.binarylog.v1alpha.BinaryLogProto.internal_static_grpc_binarylog_v1alpha_Uint128_descriptor; - } - - public io.grpc.binarylog.v1alpha.Uint128 getDefaultInstanceForType() { - return io.grpc.binarylog.v1alpha.Uint128.getDefaultInstance(); - } - - public io.grpc.binarylog.v1alpha.Uint128 build() { - io.grpc.binarylog.v1alpha.Uint128 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public io.grpc.binarylog.v1alpha.Uint128 buildPartial() { - io.grpc.binarylog.v1alpha.Uint128 result = new io.grpc.binarylog.v1alpha.Uint128(this); - result.high_ = high_; - result.low_ = low_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.grpc.binarylog.v1alpha.Uint128) { - return mergeFrom((io.grpc.binarylog.v1alpha.Uint128)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.grpc.binarylog.v1alpha.Uint128 other) { - if (other == io.grpc.binarylog.v1alpha.Uint128.getDefaultInstance()) return this; - if (other.getHigh() != 0L) { - setHigh(other.getHigh()); - } - if (other.getLow() != 0L) { - setLow(other.getLow()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.grpc.binarylog.v1alpha.Uint128 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.grpc.binarylog.v1alpha.Uint128) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long high_ ; - /** - * fixed64 high = 1; - */ - public long getHigh() { - return high_; - } - /** - * fixed64 high = 1; - */ - public Builder setHigh(long value) { - - high_ = value; - onChanged(); - return this; - } - /** - * fixed64 high = 1; - */ - public Builder clearHigh() { - - high_ = 0L; - onChanged(); - return this; - } - - private long low_ ; - /** - * fixed64 low = 2; - */ - public long getLow() { - return low_; - } - /** - * fixed64 low = 2; - */ - public Builder setLow(long value) { - - low_ = value; - onChanged(); - return this; - } - /** - * fixed64 low = 2; - */ - public Builder clearLow() { - - low_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.binarylog.v1alpha.Uint128) - } - - // @@protoc_insertion_point(class_scope:grpc.binarylog.v1alpha.Uint128) - private static final io.grpc.binarylog.v1alpha.Uint128 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.grpc.binarylog.v1alpha.Uint128(); - } - - public static io.grpc.binarylog.v1alpha.Uint128 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Uint128 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Uint128(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public io.grpc.binarylog.v1alpha.Uint128 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Uint128OrBuilder.java b/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Uint128OrBuilder.java deleted file mode 100644 index fbd37d026c..0000000000 --- a/services/src/generated/main/java/io/grpc/binarylog/v1alpha/Uint128OrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/binlog/v1alpha/binarylog.proto - -package io.grpc.binarylog.v1alpha; - -public interface Uint128OrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.binarylog.v1alpha.Uint128) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 high = 1; - */ - long getHigh(); - - /** - * fixed64 low = 2; - */ - long getLow(); -} diff --git a/services/src/main/proto/grpc/binlog/v1alpha/binarylog.proto b/services/src/main/proto/grpc/binlog/v1alpha/binarylog.proto deleted file mode 100644 index 73df5dbfe9..0000000000 --- a/services/src/main/proto/grpc/binlog/v1alpha/binarylog.proto +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright 2018 The gRPC Authors -// All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// Service exported by server reflection - -syntax = "proto3"; - -package grpc.binarylog.v1alpha; - -import "google/protobuf/duration.proto"; - -option java_multiple_files = true; -option java_package = "io.grpc.binarylog.v1alpha"; -option java_outer_classname = "BinaryLogProto"; - -// Log entry we store in binary logs -message GrpcLogEntry { - // Enumerates the type of logs - enum Type { - UNKNOWN_TYPE = 0; - SEND_INITIAL_METADATA = 1; - SEND_TRAILING_METADATA = 2; - SEND_MESSAGE = 3; - RECV_INITIAL_METADATA = 4; - RECV_TRAILING_METADATA = 5; - RECV_MESSAGE = 6; - }; - - // Enumerates the entity that generates the log entry - enum Logger { - UNKNOWN_LOGGER = 0; - CLIENT = 1; - SERVER = 2; - } - - Type type = 1; // One of the above Type enum - Logger logger = 2; // One of the above Logger enum - - // Uniquely identifies a call. Each call may have several log entries, they - // will share the same call_id. 128 bits split into 2 64-bit parts. - Uint128 call_id = 3; - - // The logger uses one of the following fields to record the payload, - // according to the type of the log entry. - oneof payload { - // Used by {SEND,RECV}_INITIAL_METADATA and - // {SEND,RECV}_TRAILING_METADATA. This contains only the metadata - // from the application. - Metadata metadata = 4; - // Used by {SEND,RECV}_MESSAGE - Message message = 5; - } - - // Peer address information, will only be recorded in SEND_INITIAL_METADATA - // and RECV_INITIAL_METADATA entries. - Peer peer = 6; - - // true if payload does not represent the full message or metadata. - bool truncated = 7; - - // The method name. Logged for the first entry: - // RECV_INITIAL_METADATA for server side or - // SEND_INITIAL_METADATA for client side. - string method_name = 8; - - // status_code and status_message: - // Only present for SEND_TRAILING_METADATA on server side or - // RECV_TRAILING_METADATA on client side. - uint32 status_code = 9; - - // An original status message before any transport specific - // encoding. - string status_message = 10; - - // The value of the 'grpc-status-details-bin' metadata key. If - // present, this is always an encoded 'google.rpc.Status' message. - bytes status_details = 11; - - // the RPC timeout - google.protobuf.Duration timeout = 12; - - // 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. - uint32 sequence_id_within_call = 13; -}; - -// Message payload, used by REQUEST and RESPONSE -message Message { - // This flag is currently used to indicate whether the payload is compressed, - // it may contain other semantics in the future. Value of 1 indicates that the - // binary octet sequence of Message is compressed using the mechanism declared - // by the Message-Encoding header. A value of 0 indicates that no encoding of - // Message bytes has occurred. - uint32 flags = 1; // TODO(zpencer): this is changed because there is no uint8 - // Length of the message. It may not be the same as the length of the - // data field, as the logging payload can be truncated or omitted. - uint32 length = 2; - // May be truncated or omitted. - bytes data = 3; -} - -// A list of metadata pairs, used in the payload of CLIENT_INIT_METADATA, -// SERVER_INIT_METADATA and TRAILING_METADATA -// Implementations may omit some entries to honor the header limits -// of GRPC_BINARY_LOG_CONFIG. -// -// Implementations will not log the following entries, and this is -// not to be treated as a truncation: -// - entries handled by grpc that are not user visible, such as those -// that begin with 'grpc-' or keys like 'lb-token' -// - transport specific entries, including but not limited to: -// ':path', ':authority', 'content-encoding', 'user-agent', 'te', etc -// - entries added for call credentials -message Metadata { - repeated MetadataEntry entry = 1; -} - -// A metadata key value pair -message MetadataEntry { - bytes key = 1; - bytes value = 2; -} - -// Peer information -message Peer { - enum PeerType { - UNKNOWN_PEERTYPE = 0; - // address is the address in 1.2.3.4 form - PEER_IPV4 = 1; - // address the address in canonical form (RFC5952 section 4) - // The scope is NOT included in the peer string. - PEER_IPV6 = 2; - // address is UDS string - PEER_UNIX = 3; - }; - PeerType peer_type = 1; - bytes peer = 2; // will be removed: do not use - string address = 3; - // only for PEER_IPV4 and PEER_IPV6 - uint32 ip_port = 4; -} - -// Used to record call_id. -message Uint128 { - fixed64 high = 1; - fixed64 low = 2; -}; diff --git a/services/src/test/java/io/grpc/services/TempFileSinkTest.java b/services/src/test/java/io/grpc/services/TempFileSinkTest.java index 69ca39f535..f47f10569d 100644 --- a/services/src/test/java/io/grpc/services/TempFileSinkTest.java +++ b/services/src/test/java/io/grpc/services/TempFileSinkTest.java @@ -18,8 +18,7 @@ package io.grpc.services; import static org.junit.Assert.assertEquals; -import io.grpc.binarylog.v1alpha.GrpcLogEntry; -import io.grpc.binarylog.v1alpha.Uint128; +import io.grpc.binarylog.v1.GrpcLogEntry; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; @@ -36,10 +35,10 @@ public class TempFileSinkTest { public void readMyWrite() throws Exception { TempFileSink sink = new TempFileSink(); GrpcLogEntry e1 = GrpcLogEntry.newBuilder() - .setCallId(Uint128.newBuilder().setLow(1234)) + .setCallId(1234) .build(); GrpcLogEntry e2 = GrpcLogEntry.newBuilder() - .setCallId(Uint128.newBuilder().setLow(5678)) + .setCallId(5678) .build(); sink.write(e1); sink.write(e2); @@ -63,7 +62,7 @@ public class TempFileSinkTest { TempFileSink sink = new TempFileSink(); sink.close(); sink.write(GrpcLogEntry.newBuilder() - .setCallId(Uint128.newBuilder().setLow(1234)) + .setCallId(1234) .build()); } }