services: remove v1alpha binlog (#4963)

We should use v1 everywhere.
This commit is contained in:
zpencer 2018-10-17 14:46:56 -07:00 committed by GitHub
parent 959323be97
commit 9b5115d5a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 4 additions and 6911 deletions

View File

@ -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)
}

View File

@ -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 {
/**
* <pre>
* One of the above Type enum
* </pre>
*
* <code>.grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1;</code>
*/
int getTypeValue();
/**
* <pre>
* One of the above Type enum
* </pre>
*
* <code>.grpc.binarylog.v1alpha.GrpcLogEntry.Type type = 1;</code>
*/
io.grpc.binarylog.v1alpha.GrpcLogEntry.Type getType();
/**
* <pre>
* One of the above Logger enum
* </pre>
*
* <code>.grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2;</code>
*/
int getLoggerValue();
/**
* <pre>
* One of the above Logger enum
* </pre>
*
* <code>.grpc.binarylog.v1alpha.GrpcLogEntry.Logger logger = 2;</code>
*/
io.grpc.binarylog.v1alpha.GrpcLogEntry.Logger getLogger();
/**
* <pre>
* 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.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Uint128 call_id = 3;</code>
*/
boolean hasCallId();
/**
* <pre>
* 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.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Uint128 call_id = 3;</code>
*/
io.grpc.binarylog.v1alpha.Uint128 getCallId();
/**
* <pre>
* 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.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Uint128 call_id = 3;</code>
*/
io.grpc.binarylog.v1alpha.Uint128OrBuilder getCallIdOrBuilder();
/**
* <pre>
* Used by {SEND,RECV}_INITIAL_METADATA and
* {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
* from the application.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Metadata metadata = 4;</code>
*/
boolean hasMetadata();
/**
* <pre>
* Used by {SEND,RECV}_INITIAL_METADATA and
* {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
* from the application.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Metadata metadata = 4;</code>
*/
io.grpc.binarylog.v1alpha.Metadata getMetadata();
/**
* <pre>
* Used by {SEND,RECV}_INITIAL_METADATA and
* {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
* from the application.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Metadata metadata = 4;</code>
*/
io.grpc.binarylog.v1alpha.MetadataOrBuilder getMetadataOrBuilder();
/**
* <pre>
* Used by {SEND,RECV}_MESSAGE
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Message message = 5;</code>
*/
boolean hasMessage();
/**
* <pre>
* Used by {SEND,RECV}_MESSAGE
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Message message = 5;</code>
*/
io.grpc.binarylog.v1alpha.Message getMessage();
/**
* <pre>
* Used by {SEND,RECV}_MESSAGE
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Message message = 5;</code>
*/
io.grpc.binarylog.v1alpha.MessageOrBuilder getMessageOrBuilder();
/**
* <pre>
* Peer address information, will only be recorded in SEND_INITIAL_METADATA
* and RECV_INITIAL_METADATA entries.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Peer peer = 6;</code>
*/
boolean hasPeer();
/**
* <pre>
* Peer address information, will only be recorded in SEND_INITIAL_METADATA
* and RECV_INITIAL_METADATA entries.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Peer peer = 6;</code>
*/
io.grpc.binarylog.v1alpha.Peer getPeer();
/**
* <pre>
* Peer address information, will only be recorded in SEND_INITIAL_METADATA
* and RECV_INITIAL_METADATA entries.
* </pre>
*
* <code>.grpc.binarylog.v1alpha.Peer peer = 6;</code>
*/
io.grpc.binarylog.v1alpha.PeerOrBuilder getPeerOrBuilder();
/**
* <pre>
* true if payload does not represent the full message or metadata.
* </pre>
*
* <code>bool truncated = 7;</code>
*/
boolean getTruncated();
/**
* <pre>
* The method name. Logged for the first entry:
* RECV_INITIAL_METADATA for server side or
* SEND_INITIAL_METADATA for client side.
* </pre>
*
* <code>string method_name = 8;</code>
*/
java.lang.String getMethodName();
/**
* <pre>
* The method name. Logged for the first entry:
* RECV_INITIAL_METADATA for server side or
* SEND_INITIAL_METADATA for client side.
* </pre>
*
* <code>string method_name = 8;</code>
*/
com.google.protobuf.ByteString
getMethodNameBytes();
/**
* <pre>
* status_code and status_message:
* Only present for SEND_TRAILING_METADATA on server side or
* RECV_TRAILING_METADATA on client side.
* </pre>
*
* <code>uint32 status_code = 9;</code>
*/
int getStatusCode();
/**
* <pre>
* An original status message before any transport specific
* encoding.
* </pre>
*
* <code>string status_message = 10;</code>
*/
java.lang.String getStatusMessage();
/**
* <pre>
* An original status message before any transport specific
* encoding.
* </pre>
*
* <code>string status_message = 10;</code>
*/
com.google.protobuf.ByteString
getStatusMessageBytes();
/**
* <pre>
* The value of the 'grpc-status-details-bin' metadata key. If
* present, this is always an encoded 'google.rpc.Status' message.
* </pre>
*
* <code>bytes status_details = 11;</code>
*/
com.google.protobuf.ByteString getStatusDetails();
/**
* <pre>
* the RPC timeout
* </pre>
*
* <code>.google.protobuf.Duration timeout = 12;</code>
*/
boolean hasTimeout();
/**
* <pre>
* the RPC timeout
* </pre>
*
* <code>.google.protobuf.Duration timeout = 12;</code>
*/
com.google.protobuf.Duration getTimeout();
/**
* <pre>
* the RPC timeout
* </pre>
*
* <code>.google.protobuf.Duration timeout = 12;</code>
*/
com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 sequence_id_within_call = 13;</code>
*/
int getSequenceIdWithinCall();
public io.grpc.binarylog.v1alpha.GrpcLogEntry.PayloadCase getPayloadCase();
}

View File

@ -1,642 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/binlog/v1alpha/binarylog.proto
package io.grpc.binarylog.v1alpha;
/**
* <pre>
* Message payload, used by REQUEST and RESPONSE
* </pre>
*
* 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_;
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 flags = 1;</code>
*/
public int getFlags() {
return flags_;
}
public static final int LENGTH_FIELD_NUMBER = 2;
private int length_;
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 length = 2;</code>
*/
public int getLength() {
return length_;
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* <pre>
* May be truncated or omitted.
* </pre>
*
* <code>bytes data = 3;</code>
*/
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;
}
/**
* <pre>
* Message payload, used by REQUEST and RESPONSE
* </pre>
*
* Protobuf type {@code grpc.binarylog.v1alpha.Message}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<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_ ;
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 flags = 1;</code>
*/
public int getFlags() {
return flags_;
}
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 flags = 1;</code>
*/
public Builder setFlags(int value) {
flags_ = value;
onChanged();
return this;
}
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 flags = 1;</code>
*/
public Builder clearFlags() {
flags_ = 0;
onChanged();
return this;
}
private int length_ ;
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 length = 2;</code>
*/
public int getLength() {
return length_;
}
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 length = 2;</code>
*/
public Builder setLength(int value) {
length_ = value;
onChanged();
return this;
}
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 length = 2;</code>
*/
public Builder clearLength() {
length_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* <pre>
* May be truncated or omitted.
* </pre>
*
* <code>bytes data = 3;</code>
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* <pre>
* May be truncated or omitted.
* </pre>
*
* <code>bytes data = 3;</code>
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* <pre>
* May be truncated or omitted.
* </pre>
*
* <code>bytes data = 3;</code>
*/
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<Message>
PARSER = new com.google.protobuf.AbstractParser<Message>() {
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<Message> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Message> getParserForType() {
return PARSER;
}
public io.grpc.binarylog.v1alpha.Message getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -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 {
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 flags = 1;</code>
*/
int getFlags();
/**
* <pre>
* 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.
* </pre>
*
* <code>uint32 length = 2;</code>
*/
int getLength();
/**
* <pre>
* May be truncated or omitted.
* </pre>
*
* <code>bytes data = 3;</code>
*/
com.google.protobuf.ByteString getData();
}

View File

@ -1,764 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/binlog/v1alpha/binarylog.proto
package io.grpc.binarylog.v1alpha;
/**
* <pre>
* 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
* </pre>
*
* 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<io.grpc.binarylog.v1alpha.MetadataEntry>();
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<io.grpc.binarylog.v1alpha.MetadataEntry> entry_;
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public java.util.List<io.grpc.binarylog.v1alpha.MetadataEntry> getEntryList() {
return entry_;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public java.util.List<? extends io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public int getEntryCount() {
return entry_.size();
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public io.grpc.binarylog.v1alpha.MetadataEntry getEntry(int index) {
return entry_.get(index);
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
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;
}
/**
* <pre>
* 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
* </pre>
*
* Protobuf type {@code grpc.binarylog.v1alpha.Metadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<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<io.grpc.binarylog.v1alpha.MetadataEntry> entry_ =
java.util.Collections.emptyList();
private void ensureEntryIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList<io.grpc.binarylog.v1alpha.MetadataEntry>(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_;
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public java.util.List<io.grpc.binarylog.v1alpha.MetadataEntry> getEntryList() {
if (entryBuilder_ == null) {
return java.util.Collections.unmodifiableList(entry_);
} else {
return entryBuilder_.getMessageList();
}
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public int getEntryCount() {
if (entryBuilder_ == null) {
return entry_.size();
} else {
return entryBuilder_.getCount();
}
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public io.grpc.binarylog.v1alpha.MetadataEntry getEntry(int index) {
if (entryBuilder_ == null) {
return entry_.get(index);
} else {
return entryBuilder_.getMessage(index);
}
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
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;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
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;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
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;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
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;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
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;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
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;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public Builder addAllEntry(
java.lang.Iterable<? extends io.grpc.binarylog.v1alpha.MetadataEntry> values) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entry_);
onChanged();
} else {
entryBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public Builder clearEntry() {
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entryBuilder_.clear();
}
return this;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public Builder removeEntry(int index) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.remove(index);
onChanged();
} else {
entryBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public io.grpc.binarylog.v1alpha.MetadataEntry.Builder getEntryBuilder(
int index) {
return getEntryFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder getEntryOrBuilder(
int index) {
if (entryBuilder_ == null) {
return entry_.get(index); } else {
return entryBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public java.util.List<? extends io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder>
getEntryOrBuilderList() {
if (entryBuilder_ != null) {
return entryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entry_);
}
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public io.grpc.binarylog.v1alpha.MetadataEntry.Builder addEntryBuilder() {
return getEntryFieldBuilder().addBuilder(
io.grpc.binarylog.v1alpha.MetadataEntry.getDefaultInstance());
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public io.grpc.binarylog.v1alpha.MetadataEntry.Builder addEntryBuilder(
int index) {
return getEntryFieldBuilder().addBuilder(
index, io.grpc.binarylog.v1alpha.MetadataEntry.getDefaultInstance());
}
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
public java.util.List<io.grpc.binarylog.v1alpha.MetadataEntry.Builder>
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<Metadata>
PARSER = new com.google.protobuf.AbstractParser<Metadata>() {
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<Metadata> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Metadata> getParserForType() {
return PARSER;
}
public io.grpc.binarylog.v1alpha.Metadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -1,519 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/binlog/v1alpha/binarylog.proto
package io.grpc.binarylog.v1alpha;
/**
* <pre>
* A metadata key value pair
* </pre>
*
* 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_;
/**
* <code>bytes key = 1;</code>
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
* <code>bytes value = 2;</code>
*/
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;
}
/**
* <pre>
* A metadata key value pair
* </pre>
*
* Protobuf type {@code grpc.binarylog.v1alpha.MetadataEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<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;
/**
* <code>bytes key = 1;</code>
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* <code>bytes key = 1;</code>
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* <code>bytes key = 1;</code>
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>bytes value = 2;</code>
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* <code>bytes value = 2;</code>
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* <code>bytes value = 2;</code>
*/
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<MetadataEntry>
PARSER = new com.google.protobuf.AbstractParser<MetadataEntry>() {
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<MetadataEntry> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<MetadataEntry> getParserForType() {
return PARSER;
}
public io.grpc.binarylog.v1alpha.MetadataEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -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 {
/**
* <code>bytes key = 1;</code>
*/
com.google.protobuf.ByteString getKey();
/**
* <code>bytes value = 2;</code>
*/
com.google.protobuf.ByteString getValue();
}

View File

@ -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 {
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
java.util.List<io.grpc.binarylog.v1alpha.MetadataEntry>
getEntryList();
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
io.grpc.binarylog.v1alpha.MetadataEntry getEntry(int index);
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
int getEntryCount();
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
java.util.List<? extends io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder>
getEntryOrBuilderList();
/**
* <code>repeated .grpc.binarylog.v1alpha.MetadataEntry entry = 1;</code>
*/
io.grpc.binarylog.v1alpha.MetadataEntryOrBuilder getEntryOrBuilder(
int index);
}

View File

@ -1,900 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/binlog/v1alpha/binarylog.proto
package io.grpc.binarylog.v1alpha;
/**
* <pre>
* Peer information
* </pre>
*
* 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 {
/**
* <code>UNKNOWN_PEERTYPE = 0;</code>
*/
UNKNOWN_PEERTYPE(0),
/**
* <pre>
* address is the address in 1.2.3.4 form
* </pre>
*
* <code>PEER_IPV4 = 1;</code>
*/
PEER_IPV4(1),
/**
* <pre>
* address the address in canonical form (RFC5952 section 4)
* The scope is NOT included in the peer string.
* </pre>
*
* <code>PEER_IPV6 = 2;</code>
*/
PEER_IPV6(2),
/**
* <pre>
* address is UDS string
* </pre>
*
* <code>PEER_UNIX = 3;</code>
*/
PEER_UNIX(3),
UNRECOGNIZED(-1),
;
/**
* <code>UNKNOWN_PEERTYPE = 0;</code>
*/
public static final int UNKNOWN_PEERTYPE_VALUE = 0;
/**
* <pre>
* address is the address in 1.2.3.4 form
* </pre>
*
* <code>PEER_IPV4 = 1;</code>
*/
public static final int PEER_IPV4_VALUE = 1;
/**
* <pre>
* address the address in canonical form (RFC5952 section 4)
* The scope is NOT included in the peer string.
* </pre>
*
* <code>PEER_IPV6 = 2;</code>
*/
public static final int PEER_IPV6_VALUE = 2;
/**
* <pre>
* address is UDS string
* </pre>
*
* <code>PEER_UNIX = 3;</code>
*/
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<PeerType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PeerType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<PeerType>() {
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_;
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
public int getPeerTypeValue() {
return peerType_;
}
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
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_;
/**
* <pre>
* will be removed: do not use
* </pre>
*
* <code>bytes peer = 2;</code>
*/
public com.google.protobuf.ByteString getPeer() {
return peer_;
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object address_;
/**
* <code>string address = 3;</code>
*/
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;
}
}
/**
* <code>string address = 3;</code>
*/
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_;
/**
* <pre>
* only for PEER_IPV4 and PEER_IPV6
* </pre>
*
* <code>uint32 ip_port = 4;</code>
*/
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;
}
/**
* <pre>
* Peer information
* </pre>
*
* Protobuf type {@code grpc.binarylog.v1alpha.Peer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<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;
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
public int getPeerTypeValue() {
return peerType_;
}
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
public Builder setPeerTypeValue(int value) {
peerType_ = value;
onChanged();
return this;
}
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
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;
}
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
public Builder setPeerType(io.grpc.binarylog.v1alpha.Peer.PeerType value) {
if (value == null) {
throw new NullPointerException();
}
peerType_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
public Builder clearPeerType() {
peerType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString peer_ = com.google.protobuf.ByteString.EMPTY;
/**
* <pre>
* will be removed: do not use
* </pre>
*
* <code>bytes peer = 2;</code>
*/
public com.google.protobuf.ByteString getPeer() {
return peer_;
}
/**
* <pre>
* will be removed: do not use
* </pre>
*
* <code>bytes peer = 2;</code>
*/
public Builder setPeer(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
peer_ = value;
onChanged();
return this;
}
/**
* <pre>
* will be removed: do not use
* </pre>
*
* <code>bytes peer = 2;</code>
*/
public Builder clearPeer() {
peer_ = getDefaultInstance().getPeer();
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
* <code>string address = 3;</code>
*/
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;
}
}
/**
* <code>string address = 3;</code>
*/
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;
}
}
/**
* <code>string address = 3;</code>
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* <code>string address = 3;</code>
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* <code>string address = 3;</code>
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private int ipPort_ ;
/**
* <pre>
* only for PEER_IPV4 and PEER_IPV6
* </pre>
*
* <code>uint32 ip_port = 4;</code>
*/
public int getIpPort() {
return ipPort_;
}
/**
* <pre>
* only for PEER_IPV4 and PEER_IPV6
* </pre>
*
* <code>uint32 ip_port = 4;</code>
*/
public Builder setIpPort(int value) {
ipPort_ = value;
onChanged();
return this;
}
/**
* <pre>
* only for PEER_IPV4 and PEER_IPV6
* </pre>
*
* <code>uint32 ip_port = 4;</code>
*/
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<Peer>
PARSER = new com.google.protobuf.AbstractParser<Peer>() {
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<Peer> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Peer> getParserForType() {
return PARSER;
}
public io.grpc.binarylog.v1alpha.Peer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -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 {
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
int getPeerTypeValue();
/**
* <code>.grpc.binarylog.v1alpha.Peer.PeerType peer_type = 1;</code>
*/
io.grpc.binarylog.v1alpha.Peer.PeerType getPeerType();
/**
* <pre>
* will be removed: do not use
* </pre>
*
* <code>bytes peer = 2;</code>
*/
com.google.protobuf.ByteString getPeer();
/**
* <code>string address = 3;</code>
*/
java.lang.String getAddress();
/**
* <code>string address = 3;</code>
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* <pre>
* only for PEER_IPV4 and PEER_IPV6
* </pre>
*
* <code>uint32 ip_port = 4;</code>
*/
int getIpPort();
}

View File

@ -1,515 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/binlog/v1alpha/binarylog.proto
package io.grpc.binarylog.v1alpha;
/**
* <pre>
* Used to record call_id.
* </pre>
*
* 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_;
/**
* <code>fixed64 high = 1;</code>
*/
public long getHigh() {
return high_;
}
public static final int LOW_FIELD_NUMBER = 2;
private long low_;
/**
* <code>fixed64 low = 2;</code>
*/
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;
}
/**
* <pre>
* Used to record call_id.
* </pre>
*
* Protobuf type {@code grpc.binarylog.v1alpha.Uint128}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<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_ ;
/**
* <code>fixed64 high = 1;</code>
*/
public long getHigh() {
return high_;
}
/**
* <code>fixed64 high = 1;</code>
*/
public Builder setHigh(long value) {
high_ = value;
onChanged();
return this;
}
/**
* <code>fixed64 high = 1;</code>
*/
public Builder clearHigh() {
high_ = 0L;
onChanged();
return this;
}
private long low_ ;
/**
* <code>fixed64 low = 2;</code>
*/
public long getLow() {
return low_;
}
/**
* <code>fixed64 low = 2;</code>
*/
public Builder setLow(long value) {
low_ = value;
onChanged();
return this;
}
/**
* <code>fixed64 low = 2;</code>
*/
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<Uint128>
PARSER = new com.google.protobuf.AbstractParser<Uint128>() {
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<Uint128> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Uint128> getParserForType() {
return PARSER;
}
public io.grpc.binarylog.v1alpha.Uint128 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -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 {
/**
* <code>fixed64 high = 1;</code>
*/
long getHigh();
/**
* <code>fixed64 low = 2;</code>
*/
long getLow();
}

View File

@ -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;
};

View File

@ -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());
}
}