com.tencent.angel.protobuf.generated.RPCProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RPC.proto
package com.tencent.angel.protobuf.generated;
public final class RPCProtos {
private RPCProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface RPCTInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 traceId = 1;
/**
* optional int64 traceId = 1;
*/
boolean hasTraceId();
/**
* optional int64 traceId = 1;
*/
long getTraceId();
// optional int64 parentId = 2;
/**
* optional int64 parentId = 2;
*/
boolean hasParentId();
/**
* optional int64 parentId = 2;
*/
long getParentId();
}
/**
* Protobuf type {@code RPCTInfo}
*/
public static final class RPCTInfo extends
com.google.protobuf.GeneratedMessage
implements RPCTInfoOrBuilder {
// Use RPCTInfo.newBuilder() to construct.
private RPCTInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RPCTInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RPCTInfo defaultInstance;
public static RPCTInfo getDefaultInstance() {
return defaultInstance;
}
public RPCTInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RPCTInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
traceId_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
parentId_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RPCTInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RPCTInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.class, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RPCTInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RPCTInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 traceId = 1;
public static final int TRACEID_FIELD_NUMBER = 1;
private long traceId_;
/**
* optional int64 traceId = 1;
*/
public boolean hasTraceId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 traceId = 1;
*/
public long getTraceId() {
return traceId_;
}
// optional int64 parentId = 2;
public static final int PARENTID_FIELD_NUMBER = 2;
private long parentId_;
/**
* optional int64 parentId = 2;
*/
public boolean hasParentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 parentId = 2;
*/
public long getParentId() {
return parentId_;
}
private void initFields() {
traceId_ = 0L;
parentId_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, traceId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, parentId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, traceId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, parentId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo)) {
return super.equals(obj);
}
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo other = (com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo) obj;
boolean result = true;
result = result && (hasTraceId() == other.hasTraceId());
if (hasTraceId()) {
result = result && (getTraceId()
== other.getTraceId());
}
result = result && (hasParentId() == other.hasParentId());
if (hasParentId()) {
result = result && (getParentId()
== other.getParentId());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTraceId()) {
hash = (37 * hash) + TRACEID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getTraceId());
}
if (hasParentId()) {
hash = (37 * hash) + PARENTID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getParentId());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code RPCTInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RPCTInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RPCTInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.class, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder.class);
}
// Construct using com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
traceId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
parentId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RPCTInfo_descriptor;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo getDefaultInstanceForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.getDefaultInstance();
}
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo build() {
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo buildPartial() {
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo result = new com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.traceId_ = traceId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.parentId_ = parentId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo) {
return mergeFrom((com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo other) {
if (other == com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.getDefaultInstance()) return this;
if (other.hasTraceId()) {
setTraceId(other.getTraceId());
}
if (other.hasParentId()) {
setParentId(other.getParentId());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 traceId = 1;
private long traceId_ ;
/**
* optional int64 traceId = 1;
*/
public boolean hasTraceId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 traceId = 1;
*/
public long getTraceId() {
return traceId_;
}
/**
* optional int64 traceId = 1;
*/
public Builder setTraceId(long value) {
bitField0_ |= 0x00000001;
traceId_ = value;
onChanged();
return this;
}
/**
* optional int64 traceId = 1;
*/
public Builder clearTraceId() {
bitField0_ = (bitField0_ & ~0x00000001);
traceId_ = 0L;
onChanged();
return this;
}
// optional int64 parentId = 2;
private long parentId_ ;
/**
* optional int64 parentId = 2;
*/
public boolean hasParentId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 parentId = 2;
*/
public long getParentId() {
return parentId_;
}
/**
* optional int64 parentId = 2;
*/
public Builder setParentId(long value) {
bitField0_ |= 0x00000002;
parentId_ = value;
onChanged();
return this;
}
/**
* optional int64 parentId = 2;
*/
public Builder clearParentId() {
bitField0_ = (bitField0_ & ~0x00000002);
parentId_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RPCTInfo)
}
static {
defaultInstance = new RPCTInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RPCTInfo)
}
public interface ConnectionHeaderOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
boolean hasProtocol();
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
java.lang.String getProtocol();
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
com.google.protobuf.ByteString
getProtocolBytes();
}
/**
* Protobuf type {@code ConnectionHeader}
*/
public static final class ConnectionHeader extends
com.google.protobuf.GeneratedMessage
implements ConnectionHeaderOrBuilder {
// Use ConnectionHeader.newBuilder() to construct.
private ConnectionHeader(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ConnectionHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ConnectionHeader defaultInstance;
public static ConnectionHeader getDefaultInstance() {
return defaultInstance;
}
public ConnectionHeader getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConnectionHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
protocol_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader.class, com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ConnectionHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConnectionHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
public static final int PROTOCOL_FIELD_NUMBER = 1;
private java.lang.Object protocol_;
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public boolean hasProtocol() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
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();
if (bs.isValidUtf8()) {
protocol_ = s;
}
return s;
}
}
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public com.google.protobuf.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
protocol_ = "com.tencent.angel.client.ClientProtocol";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getProtocolBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getProtocolBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader)) {
return super.equals(obj);
}
com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader other = (com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader) obj;
boolean result = true;
result = result && (hasProtocol() == other.hasProtocol());
if (hasProtocol()) {
result = result && getProtocol()
.equals(other.getProtocol());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasProtocol()) {
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + getProtocol().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ConnectionHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader.class, com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader.Builder.class);
}
// Construct using com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
protocol_ = "com.tencent.angel.client.ClientProtocol";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_ConnectionHeader_descriptor;
}
public com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader getDefaultInstanceForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader.getDefaultInstance();
}
public com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader build() {
com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader buildPartial() {
com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader result = new com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.protocol_ = protocol_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader) {
return mergeFrom((com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader other) {
if (other == com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader.getDefaultInstance()) return this;
if (other.hasProtocol()) {
bitField0_ |= 0x00000001;
protocol_ = other.protocol_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.tencent.angel.protobuf.generated.RPCProtos.ConnectionHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
private java.lang.Object protocol_ = "com.tencent.angel.client.ClientProtocol";
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public boolean hasProtocol() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
protocol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public com.google.protobuf.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public Builder setProtocol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
protocol_ = value;
onChanged();
return this;
}
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public Builder clearProtocol() {
bitField0_ = (bitField0_ & ~0x00000001);
protocol_ = getDefaultInstance().getProtocol();
onChanged();
return this;
}
/**
* optional string protocol = 1 [default = "com.tencent.angel.client.ClientProtocol"];
*
*
** Protocol name for next rpc layer
* the client created a proxy with this protocol name
*
*/
public Builder setProtocolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
protocol_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ConnectionHeader)
}
static {
defaultInstance = new ConnectionHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ConnectionHeader)
}
public interface RpcRequestHeaderOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .RPCTInfo tinfo = 1;
/**
* optional .RPCTInfo tinfo = 1;
*/
boolean hasTinfo();
/**
* optional .RPCTInfo tinfo = 1;
*/
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo getTinfo();
/**
* optional .RPCTInfo tinfo = 1;
*/
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfoOrBuilder getTinfoOrBuilder();
}
/**
* Protobuf type {@code RpcRequestHeader}
*
*
**
* The RPC request header
*
*/
public static final class RpcRequestHeader extends
com.google.protobuf.GeneratedMessage
implements RpcRequestHeaderOrBuilder {
// Use RpcRequestHeader.newBuilder() to construct.
private RpcRequestHeader(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RpcRequestHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RpcRequestHeader defaultInstance;
public static RpcRequestHeader getDefaultInstance() {
return defaultInstance;
}
public RpcRequestHeader getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RpcRequestHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = tinfo_.toBuilder();
}
tinfo_ = input.readMessage(com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tinfo_);
tinfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RpcRequestHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RpcRequestHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .RPCTInfo tinfo = 1;
public static final int TINFO_FIELD_NUMBER = 1;
private com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo tinfo_;
/**
* optional .RPCTInfo tinfo = 1;
*/
public boolean hasTinfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo getTinfo() {
return tinfo_;
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfoOrBuilder getTinfoOrBuilder() {
return tinfo_;
}
private void initFields() {
tinfo_ = com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, tinfo_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, tinfo_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader)) {
return super.equals(obj);
}
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader other = (com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader) obj;
boolean result = true;
result = result && (hasTinfo() == other.hasTinfo());
if (hasTinfo()) {
result = result && getTinfo()
.equals(other.getTinfo());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTinfo()) {
hash = (37 * hash) + TINFO_FIELD_NUMBER;
hash = (53 * hash) + getTinfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code RpcRequestHeader}
*
*
**
* The RPC request header
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader.Builder.class);
}
// Construct using com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTinfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (tinfoBuilder_ == null) {
tinfo_ = com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.getDefaultInstance();
} else {
tinfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestHeader_descriptor;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader getDefaultInstanceForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader.getDefaultInstance();
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader build() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader buildPartial() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader result = new com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (tinfoBuilder_ == null) {
result.tinfo_ = tinfo_;
} else {
result.tinfo_ = tinfoBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader) {
return mergeFrom((com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader other) {
if (other == com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader.getDefaultInstance()) return this;
if (other.hasTinfo()) {
mergeTinfo(other.getTinfo());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .RPCTInfo tinfo = 1;
private com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo tinfo_ = com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfoOrBuilder> tinfoBuilder_;
/**
* optional .RPCTInfo tinfo = 1;
*/
public boolean hasTinfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo getTinfo() {
if (tinfoBuilder_ == null) {
return tinfo_;
} else {
return tinfoBuilder_.getMessage();
}
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public Builder setTinfo(com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo value) {
if (tinfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tinfo_ = value;
onChanged();
} else {
tinfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public Builder setTinfo(
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder builderForValue) {
if (tinfoBuilder_ == null) {
tinfo_ = builderForValue.build();
onChanged();
} else {
tinfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public Builder mergeTinfo(com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo value) {
if (tinfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
tinfo_ != com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.getDefaultInstance()) {
tinfo_ =
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.newBuilder(tinfo_).mergeFrom(value).buildPartial();
} else {
tinfo_ = value;
}
onChanged();
} else {
tinfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public Builder clearTinfo() {
if (tinfoBuilder_ == null) {
tinfo_ = com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.getDefaultInstance();
onChanged();
} else {
tinfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder getTinfoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTinfoFieldBuilder().getBuilder();
}
/**
* optional .RPCTInfo tinfo = 1;
*/
public com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfoOrBuilder getTinfoOrBuilder() {
if (tinfoBuilder_ != null) {
return tinfoBuilder_.getMessageOrBuilder();
} else {
return tinfo_;
}
}
/**
* optional .RPCTInfo tinfo = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfoOrBuilder>
getTinfoFieldBuilder() {
if (tinfoBuilder_ == null) {
tinfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfo.Builder, com.tencent.angel.protobuf.generated.RPCProtos.RPCTInfoOrBuilder>(
tinfo_,
getParentForChildren(),
isClean());
tinfo_ = null;
}
return tinfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:RpcRequestHeader)
}
static {
defaultInstance = new RpcRequestHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpcRequestHeader)
}
public interface RpcRequestBodyOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string methodName = 1;
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
boolean hasMethodName();
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
java.lang.String getMethodName();
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
com.google.protobuf.ByteString
getMethodNameBytes();
// optional uint64 clientProtocolVersion = 2;
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
boolean hasClientProtocolVersion();
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
long getClientProtocolVersion();
// optional bytes request = 3;
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
boolean hasRequest();
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
com.google.protobuf.ByteString getRequest();
// optional string requestClassName = 4;
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
boolean hasRequestClassName();
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
java.lang.String getRequestClassName();
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
com.google.protobuf.ByteString
getRequestClassNameBytes();
}
/**
* Protobuf type {@code RpcRequestBody}
*
*
**
* The RPC request body
*
*/
public static final class RpcRequestBody extends
com.google.protobuf.GeneratedMessage
implements RpcRequestBodyOrBuilder {
// Use RpcRequestBody.newBuilder() to construct.
private RpcRequestBody(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RpcRequestBody(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RpcRequestBody defaultInstance;
public static RpcRequestBody getDefaultInstance() {
return defaultInstance;
}
public RpcRequestBody getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RpcRequestBody(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
methodName_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
clientProtocolVersion_ = input.readUInt64();
break;
}
case 26: {
bitField0_ |= 0x00000004;
request_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
requestClassName_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestBody_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RpcRequestBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RpcRequestBody(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string methodName = 1;
public static final int METHODNAME_FIELD_NUMBER = 1;
private java.lang.Object methodName_;
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public boolean hasMethodName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
methodName_ = s;
}
return s;
}
}
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public com.google.protobuf.ByteString
getMethodNameBytes() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
methodName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint64 clientProtocolVersion = 2;
public static final int CLIENTPROTOCOLVERSION_FIELD_NUMBER = 2;
private long clientProtocolVersion_;
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
public boolean hasClientProtocolVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
public long getClientProtocolVersion() {
return clientProtocolVersion_;
}
// optional bytes request = 3;
public static final int REQUEST_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString request_;
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
public com.google.protobuf.ByteString getRequest() {
return request_;
}
// optional string requestClassName = 4;
public static final int REQUESTCLASSNAME_FIELD_NUMBER = 4;
private java.lang.Object requestClassName_;
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public boolean hasRequestClassName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public java.lang.String getRequestClassName() {
java.lang.Object ref = requestClassName_;
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();
if (bs.isValidUtf8()) {
requestClassName_ = s;
}
return s;
}
}
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public com.google.protobuf.ByteString
getRequestClassNameBytes() {
java.lang.Object ref = requestClassName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
methodName_ = "";
clientProtocolVersion_ = 0L;
request_ = com.google.protobuf.ByteString.EMPTY;
requestClassName_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMethodName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getMethodNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, clientProtocolVersion_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, request_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getRequestClassNameBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getMethodNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, clientProtocolVersion_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, request_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getRequestClassNameBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody)) {
return super.equals(obj);
}
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody other = (com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody) obj;
boolean result = true;
result = result && (hasMethodName() == other.hasMethodName());
if (hasMethodName()) {
result = result && getMethodName()
.equals(other.getMethodName());
}
result = result && (hasClientProtocolVersion() == other.hasClientProtocolVersion());
if (hasClientProtocolVersion()) {
result = result && (getClientProtocolVersion()
== other.getClientProtocolVersion());
}
result = result && (hasRequest() == other.hasRequest());
if (hasRequest()) {
result = result && getRequest()
.equals(other.getRequest());
}
result = result && (hasRequestClassName() == other.hasRequestClassName());
if (hasRequestClassName()) {
result = result && getRequestClassName()
.equals(other.getRequestClassName());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasMethodName()) {
hash = (37 * hash) + METHODNAME_FIELD_NUMBER;
hash = (53 * hash) + getMethodName().hashCode();
}
if (hasClientProtocolVersion()) {
hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getClientProtocolVersion());
}
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (hasRequestClassName()) {
hash = (37 * hash) + REQUESTCLASSNAME_FIELD_NUMBER;
hash = (53 * hash) + getRequestClassName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code RpcRequestBody}
*
*
**
* The RPC request body
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestBody_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody.Builder.class);
}
// Construct using com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
methodName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
clientProtocolVersion_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
request_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
requestClassName_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcRequestBody_descriptor;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody getDefaultInstanceForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody.getDefaultInstance();
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody build() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody buildPartial() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody result = new com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.methodName_ = methodName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.clientProtocolVersion_ = clientProtocolVersion_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.request_ = request_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.requestClassName_ = requestClassName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody) {
return mergeFrom((com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody other) {
if (other == com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody.getDefaultInstance()) return this;
if (other.hasMethodName()) {
bitField0_ |= 0x00000001;
methodName_ = other.methodName_;
onChanged();
}
if (other.hasClientProtocolVersion()) {
setClientProtocolVersion(other.getClientProtocolVersion());
}
if (other.hasRequest()) {
setRequest(other.getRequest());
}
if (other.hasRequestClassName()) {
bitField0_ |= 0x00000008;
requestClassName_ = other.requestClassName_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMethodName()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.tencent.angel.protobuf.generated.RPCProtos.RpcRequestBody) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string methodName = 1;
private java.lang.Object methodName_ = "";
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public boolean hasMethodName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
methodName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public com.google.protobuf.ByteString
getMethodNameBytes() {
java.lang.Object ref = methodName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
methodName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public Builder setMethodName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
methodName_ = value;
onChanged();
return this;
}
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public Builder clearMethodName() {
bitField0_ = (bitField0_ & ~0x00000001);
methodName_ = getDefaultInstance().getMethodName();
onChanged();
return this;
}
/**
* required string methodName = 1;
*
*
** Name of the RPC method
*
*/
public Builder setMethodNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
methodName_ = value;
onChanged();
return this;
}
// optional uint64 clientProtocolVersion = 2;
private long clientProtocolVersion_ ;
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
public boolean hasClientProtocolVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
public long getClientProtocolVersion() {
return clientProtocolVersion_;
}
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
public Builder setClientProtocolVersion(long value) {
bitField0_ |= 0x00000002;
clientProtocolVersion_ = value;
onChanged();
return this;
}
/**
* optional uint64 clientProtocolVersion = 2;
*
*
** protocol version of class declaring the called method
*
*/
public Builder clearClientProtocolVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
clientProtocolVersion_ = 0L;
onChanged();
return this;
}
// optional bytes request = 3;
private com.google.protobuf.ByteString request_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
public com.google.protobuf.ByteString getRequest() {
return request_;
}
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
public Builder setRequest(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
request_ = value;
onChanged();
return this;
}
/**
* optional bytes request = 3;
*
*
** Bytes corresponding to the client protobuf request. This is the actual
* bytes corresponding to the RPC request argument.
*
*/
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000004);
request_ = getDefaultInstance().getRequest();
onChanged();
return this;
}
// optional string requestClassName = 4;
private java.lang.Object requestClassName_ = "";
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public boolean hasRequestClassName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public java.lang.String getRequestClassName() {
java.lang.Object ref = requestClassName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
requestClassName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public com.google.protobuf.ByteString
getRequestClassNameBytes() {
java.lang.Object ref = requestClassName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public Builder setRequestClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
requestClassName_ = value;
onChanged();
return this;
}
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public Builder clearRequestClassName() {
bitField0_ = (bitField0_ & ~0x00000008);
requestClassName_ = getDefaultInstance().getRequestClassName();
onChanged();
return this;
}
/**
* optional string requestClassName = 4;
*
*
** Some metainfo about the request. Helps us to treat RPCs with
* different priorities. For now this is just the classname of the request
* proto object.
*
*/
public Builder setRequestClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
requestClassName_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpcRequestBody)
}
static {
defaultInstance = new RpcRequestBody(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpcRequestBody)
}
public interface RpcResponseHeaderOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .RpcResponseHeader.Status status = 1;
/**
* required .RpcResponseHeader.Status status = 1;
*/
boolean hasStatus();
/**
* required .RpcResponseHeader.Status status = 1;
*/
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status getStatus();
}
/**
* Protobuf type {@code RpcResponseHeader}
*
*
**
* The RPC response header
*
*/
public static final class RpcResponseHeader extends
com.google.protobuf.GeneratedMessage
implements RpcResponseHeaderOrBuilder {
// Use RpcResponseHeader.newBuilder() to construct.
private RpcResponseHeader(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RpcResponseHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RpcResponseHeader defaultInstance;
public static RpcResponseHeader getDefaultInstance() {
return defaultInstance;
}
public RpcResponseHeader getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RpcResponseHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status value = com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
status_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcResponseHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcResponseHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RpcResponseHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RpcResponseHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code RpcResponseHeader.Status}
*
*
** Did the RPC execution encounter an error at the server
*
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0, 0),
/**
* ERROR = 1;
*/
ERROR(1, 1),
/**
* FATAL = 2;
*/
FATAL(2, 2),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
* ERROR = 1;
*/
public static final int ERROR_VALUE = 1;
/**
* FATAL = 2;
*/
public static final int FATAL_VALUE = 2;
public final int getNumber() { return value; }
public static Status valueOf(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return ERROR;
case 2: return FATAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Status(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:RpcResponseHeader.Status)
}
private int bitField0_;
// required .RpcResponseHeader.Status status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
private com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status status_;
/**
* required .RpcResponseHeader.Status status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .RpcResponseHeader.Status status = 1;
*/
public com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status getStatus() {
return status_;
}
private void initFields() {
status_ = com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status.SUCCESS;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, status_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader)) {
return super.equals(obj);
}
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader other = (com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader) obj;
boolean result = true;
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result &&
(getStatus() == other.getStatus());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + hashEnum(getStatus());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code RpcResponseHeader}
*
*
**
* The RPC response header
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcResponseHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcResponseHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Builder.class);
}
// Construct using com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
status_ = com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status.SUCCESS;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcResponseHeader_descriptor;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader getDefaultInstanceForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.getDefaultInstance();
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader build() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader buildPartial() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader result = new com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader) {
return mergeFrom((com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader other) {
if (other == com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.getDefaultInstance()) return this;
if (other.hasStatus()) {
setStatus(other.getStatus());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasStatus()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .RpcResponseHeader.Status status = 1;
private com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status status_ = com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status.SUCCESS;
/**
* required .RpcResponseHeader.Status status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .RpcResponseHeader.Status status = 1;
*/
public com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status getStatus() {
return status_;
}
/**
* required .RpcResponseHeader.Status status = 1;
*/
public Builder setStatus(com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value;
onChanged();
return this;
}
/**
* required .RpcResponseHeader.Status status = 1;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = com.tencent.angel.protobuf.generated.RPCProtos.RpcResponseHeader.Status.SUCCESS;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpcResponseHeader)
}
static {
defaultInstance = new RpcResponseHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpcResponseHeader)
}
public interface RpcExceptionOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string exceptionName = 1;
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
boolean hasExceptionName();
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
java.lang.String getExceptionName();
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
com.google.protobuf.ByteString
getExceptionNameBytes();
// optional string stackTrace = 2;
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
boolean hasStackTrace();
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
java.lang.String getStackTrace();
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
com.google.protobuf.ByteString
getStackTraceBytes();
}
/**
* Protobuf type {@code RpcException}
*
*
**
* At the RPC layer, this message is used to indicate
* the server side exception to the RPC client.
*
* Wasp RPC client throws an exception indicated
* by exceptionName with the stackTrace.
*
*/
public static final class RpcException extends
com.google.protobuf.GeneratedMessage
implements RpcExceptionOrBuilder {
// Use RpcException.newBuilder() to construct.
private RpcException(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RpcException(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RpcException defaultInstance;
public static RpcException getDefaultInstance() {
return defaultInstance;
}
public RpcException getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RpcException(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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 (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
exceptionName_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
stackTrace_ = 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.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcException_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcException_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcException.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcException.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RpcException parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RpcException(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string exceptionName = 1;
public static final int EXCEPTIONNAME_FIELD_NUMBER = 1;
private java.lang.Object exceptionName_;
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public boolean hasExceptionName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public java.lang.String getExceptionName() {
java.lang.Object ref = exceptionName_;
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();
if (bs.isValidUtf8()) {
exceptionName_ = s;
}
return s;
}
}
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public com.google.protobuf.ByteString
getExceptionNameBytes() {
java.lang.Object ref = exceptionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exceptionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string stackTrace = 2;
public static final int STACKTRACE_FIELD_NUMBER = 2;
private java.lang.Object stackTrace_;
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public boolean hasStackTrace() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
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();
if (bs.isValidUtf8()) {
stackTrace_ = s;
}
return s;
}
}
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
exceptionName_ = "";
stackTrace_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasExceptionName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getExceptionNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getStackTraceBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getExceptionNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getStackTraceBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcException)) {
return super.equals(obj);
}
com.tencent.angel.protobuf.generated.RPCProtos.RpcException other = (com.tencent.angel.protobuf.generated.RPCProtos.RpcException) obj;
boolean result = true;
result = result && (hasExceptionName() == other.hasExceptionName());
if (hasExceptionName()) {
result = result && getExceptionName()
.equals(other.getExceptionName());
}
result = result && (hasStackTrace() == other.hasStackTrace());
if (hasStackTrace()) {
result = result && getStackTrace()
.equals(other.getStackTrace());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasExceptionName()) {
hash = (37 * hash) + EXCEPTIONNAME_FIELD_NUMBER;
hash = (53 * hash) + getExceptionName().hashCode();
}
if (hasStackTrace()) {
hash = (37 * hash) + STACKTRACE_FIELD_NUMBER;
hash = (53 * hash) + getStackTrace().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.tencent.angel.protobuf.generated.RPCProtos.RpcException parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.tencent.angel.protobuf.generated.RPCProtos.RpcException prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code RpcException}
*
*
**
* At the RPC layer, this message is used to indicate
* the server side exception to the RPC client.
*
* Wasp RPC client throws an exception indicated
* by exceptionName with the stackTrace.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.tencent.angel.protobuf.generated.RPCProtos.RpcExceptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcException_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcException_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tencent.angel.protobuf.generated.RPCProtos.RpcException.class, com.tencent.angel.protobuf.generated.RPCProtos.RpcException.Builder.class);
}
// Construct using com.tencent.angel.protobuf.generated.RPCProtos.RpcException.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
exceptionName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
stackTrace_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.internal_static_RpcException_descriptor;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcException getDefaultInstanceForType() {
return com.tencent.angel.protobuf.generated.RPCProtos.RpcException.getDefaultInstance();
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcException build() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcException result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.tencent.angel.protobuf.generated.RPCProtos.RpcException buildPartial() {
com.tencent.angel.protobuf.generated.RPCProtos.RpcException result = new com.tencent.angel.protobuf.generated.RPCProtos.RpcException(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.exceptionName_ = exceptionName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.stackTrace_ = stackTrace_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tencent.angel.protobuf.generated.RPCProtos.RpcException) {
return mergeFrom((com.tencent.angel.protobuf.generated.RPCProtos.RpcException)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tencent.angel.protobuf.generated.RPCProtos.RpcException other) {
if (other == com.tencent.angel.protobuf.generated.RPCProtos.RpcException.getDefaultInstance()) return this;
if (other.hasExceptionName()) {
bitField0_ |= 0x00000001;
exceptionName_ = other.exceptionName_;
onChanged();
}
if (other.hasStackTrace()) {
bitField0_ |= 0x00000002;
stackTrace_ = other.stackTrace_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasExceptionName()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.tencent.angel.protobuf.generated.RPCProtos.RpcException parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.tencent.angel.protobuf.generated.RPCProtos.RpcException) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string exceptionName = 1;
private java.lang.Object exceptionName_ = "";
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public boolean hasExceptionName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public java.lang.String getExceptionName() {
java.lang.Object ref = exceptionName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
exceptionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public com.google.protobuf.ByteString
getExceptionNameBytes() {
java.lang.Object ref = exceptionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exceptionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public Builder setExceptionName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
exceptionName_ = value;
onChanged();
return this;
}
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public Builder clearExceptionName() {
bitField0_ = (bitField0_ & ~0x00000001);
exceptionName_ = getDefaultInstance().getExceptionName();
onChanged();
return this;
}
/**
* required string exceptionName = 1;
*
*
** Class name of the exception thrown from the server
*
*/
public Builder setExceptionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
exceptionName_ = value;
onChanged();
return this;
}
// optional string stackTrace = 2;
private java.lang.Object stackTrace_ = "";
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public boolean hasStackTrace() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public java.lang.String getStackTrace() {
java.lang.Object ref = stackTrace_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
stackTrace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public com.google.protobuf.ByteString
getStackTraceBytes() {
java.lang.Object ref = stackTrace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stackTrace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public Builder setStackTrace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
stackTrace_ = value;
onChanged();
return this;
}
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public Builder clearStackTrace() {
bitField0_ = (bitField0_ & ~0x00000002);
stackTrace_ = getDefaultInstance().getStackTrace();
onChanged();
return this;
}
/**
* optional string stackTrace = 2;
*
*
** Exception stack trace from the server side
*
*/
public Builder setStackTraceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
stackTrace_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpcException)
}
static {
defaultInstance = new RpcException(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpcException)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RPCTInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RPCTInfo_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ConnectionHeader_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ConnectionHeader_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RpcRequestHeader_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RpcRequestHeader_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RpcRequestBody_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RpcRequestBody_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RpcResponseHeader_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RpcResponseHeader_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_RpcException_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RpcException_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\tRPC.proto\"-\n\010RPCTInfo\022\017\n\007traceId\030\001 \001(\003" +
"\022\020\n\010parentId\030\002 \001(\003\"M\n\020ConnectionHeader\0229" +
"\n\010protocol\030\001 \001(\t:\'com.tencent.angel.clie" +
"nt.ClientProtocol\",\n\020RpcRequestHeader\022\030\n" +
"\005tinfo\030\001 \001(\0132\t.RPCTInfo\"n\n\016RpcRequestBod" +
"y\022\022\n\nmethodName\030\001 \002(\t\022\035\n\025clientProtocolV" +
"ersion\030\002 \001(\004\022\017\n\007request\030\003 \001(\014\022\030\n\020request" +
"ClassName\030\004 \001(\t\"k\n\021RpcResponseHeader\022)\n\006" +
"status\030\001 \002(\0162\031.RpcResponseHeader.Status\"" +
"+\n\006Status\022\013\n\007SUCCESS\020\000\022\t\n\005ERROR\020\001\022\t\n\005FAT",
"AL\020\002\"9\n\014RpcException\022\025\n\rexceptionName\030\001 " +
"\002(\t\022\022\n\nstackTrace\030\002 \001(\tB6\n$com.tencent.a" +
"ngel.protobuf.generatedB\tRPCProtosH\001\240\001\001"
};
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;
internal_static_RPCTInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_RPCTInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RPCTInfo_descriptor,
new java.lang.String[] { "TraceId", "ParentId", });
internal_static_ConnectionHeader_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ConnectionHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ConnectionHeader_descriptor,
new java.lang.String[] { "Protocol", });
internal_static_RpcRequestHeader_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_RpcRequestHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpcRequestHeader_descriptor,
new java.lang.String[] { "Tinfo", });
internal_static_RpcRequestBody_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_RpcRequestBody_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpcRequestBody_descriptor,
new java.lang.String[] { "MethodName", "ClientProtocolVersion", "Request", "RequestClassName", });
internal_static_RpcResponseHeader_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_RpcResponseHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpcResponseHeader_descriptor,
new java.lang.String[] { "Status", });
internal_static_RpcException_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_RpcException_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpcException_descriptor,
new java.lang.String[] { "ExceptionName", "StackTrace", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy