// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: entities.proto
package com.dianping.pigeon.remoting.common.codec.protobuf;
public final class Entities {
private Entities() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface Pb3RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Pb3Request)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
int getSerialize();
/**
* <code>int64 seq = 2;</code>
*/
long getSeq();
/**
* <code>int32 messageType = 3;</code>
*/
int getMessageType();
/**
* <code>int32 timeout = 4;</code>
*/
int getTimeout();
/**
* <code>string serviceName = 5;</code>
*/
java.lang.String getServiceName();
/**
* <code>string serviceName = 5;</code>
*/
com.google.protobuf.ByteString
getServiceNameBytes();
/**
* <code>string methodName = 6;</code>
*/
java.lang.String getMethodName();
/**
* <code>string methodName = 6;</code>
*/
com.google.protobuf.ByteString
getMethodNameBytes();
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
java.util.List<com.google.protobuf.Any>
getParametersList();
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
com.google.protobuf.Any getParameters(int index);
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
int getParametersCount();
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
java.util.List<? extends com.google.protobuf.AnyOrBuilder>
getParametersOrBuilderList();
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
com.google.protobuf.AnyOrBuilder getParametersOrBuilder(
int index);
/**
* <code>int32 callType = 8;</code>
*/
int getCallType();
/**
* <code>string version = 9;</code>
*/
java.lang.String getVersion();
/**
* <code>string version = 9;</code>
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* <code>string app = 10;</code>
*/
java.lang.String getApp();
/**
* <code>string app = 10;</code>
*/
com.google.protobuf.ByteString
getAppBytes();
/**
* <code>map<string, string> globalValues = 11;</code>
*/
int getGlobalValuesCount();
/**
* <code>map<string, string> globalValues = 11;</code>
*/
boolean containsGlobalValues(
java.lang.String key);
/**
* Use {@link #getGlobalValuesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getGlobalValues();
/**
* <code>map<string, string> globalValues = 11;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getGlobalValuesMap();
/**
* <code>map<string, string> globalValues = 11;</code>
*/
java.lang.String getGlobalValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <code>map<string, string> globalValues = 11;</code>
*/
java.lang.String getGlobalValuesOrThrow(
java.lang.String key);
/**
* <code>map<string, string> requestValues = 12;</code>
*/
int getRequestValuesCount();
/**
* <code>map<string, string> requestValues = 12;</code>
*/
boolean containsRequestValues(
java.lang.String key);
/**
* Use {@link #getRequestValuesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getRequestValues();
/**
* <code>map<string, string> requestValues = 12;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getRequestValuesMap();
/**
* <code>map<string, string> requestValues = 12;</code>
*/
java.lang.String getRequestValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <code>map<string, string> requestValues = 12;</code>
*/
java.lang.String getRequestValuesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code Pb3Request}
*/
public static final class Pb3Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Pb3Request)
Pb3RequestOrBuilder {
// Use Pb3Request.newBuilder() to construct.
private Pb3Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Pb3Request() {
serialize_ = 0;
seq_ = 0L;
messageType_ = 0;
timeout_ = 0;
serviceName_ = "";
methodName_ = "";
parameters_ = java.util.Collections.emptyList();
callType_ = 0;
version_ = "";
app_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Pb3Request(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
serialize_ = input.readInt32();
break;
}
case 16: {
seq_ = input.readInt64();
break;
}
case 24: {
messageType_ = input.readInt32();
break;
}
case 32: {
timeout_ = input.readInt32();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
serviceName_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
methodName_ = s;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
parameters_ = new java.util.ArrayList<com.google.protobuf.Any>();
mutable_bitField0_ |= 0x00000040;
}
parameters_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
case 64: {
callType_ = input.readInt32();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
app_ = s;
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
globalValues_ = com.google.protobuf.MapField.newMapField(
GlobalValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000400;
}
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
globalValues__ = input.readMessage(
GlobalValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
globalValues_.getMutableMap().put(
globalValues__.getKey(), globalValues__.getValue());
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
requestValues_ = com.google.protobuf.MapField.newMapField(
RequestValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000800;
}
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
requestValues__ = input.readMessage(
RequestValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
requestValues_.getMutableMap().put(
requestValues__.getKey(), requestValues__.getValue());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Request_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 11:
return internalGetGlobalValues();
case 12:
return internalGetRequestValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request.class, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request.Builder.class);
}
private int bitField0_;
public static final int SERIALIZE_FIELD_NUMBER = 1;
private int serialize_;
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public int getSerialize() {
return serialize_;
}
public static final int SEQ_FIELD_NUMBER = 2;
private long seq_;
/**
* <code>int64 seq = 2;</code>
*/
public long getSeq() {
return seq_;
}
public static final int MESSAGETYPE_FIELD_NUMBER = 3;
private int messageType_;
/**
* <code>int32 messageType = 3;</code>
*/
public int getMessageType() {
return messageType_;
}
public static final int TIMEOUT_FIELD_NUMBER = 4;
private int timeout_;
/**
* <code>int32 timeout = 4;</code>
*/
public int getTimeout() {
return timeout_;
}
public static final int SERVICENAME_FIELD_NUMBER = 5;
private volatile java.lang.Object serviceName_;
/**
* <code>string serviceName = 5;</code>
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
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();
serviceName_ = s;
return s;
}
}
/**
* <code>string serviceName = 5;</code>
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METHODNAME_FIELD_NUMBER = 6;
private volatile java.lang.Object methodName_;
/**
* <code>string methodName = 6;</code>
*/
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
methodName_ = s;
return s;
}
}
/**
* <code>string methodName = 6;</code>
*/
public com.google.protobuf.ByteString
getMethodNameBytes() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
methodName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETERS_FIELD_NUMBER = 7;
private java.util.List<com.google.protobuf.Any> parameters_;
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public java.util.List<com.google.protobuf.Any> getParametersList() {
return parameters_;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public java.util.List<? extends com.google.protobuf.AnyOrBuilder>
getParametersOrBuilderList() {
return parameters_;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public int getParametersCount() {
return parameters_.size();
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public com.google.protobuf.Any getParameters(int index) {
return parameters_.get(index);
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public com.google.protobuf.AnyOrBuilder getParametersOrBuilder(
int index) {
return parameters_.get(index);
}
public static final int CALLTYPE_FIELD_NUMBER = 8;
private int callType_;
/**
* <code>int32 callType = 8;</code>
*/
public int getCallType() {
return callType_;
}
public static final int VERSION_FIELD_NUMBER = 9;
private volatile java.lang.Object version_;
/**
* <code>string version = 9;</code>
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* <code>string version = 9;</code>
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_FIELD_NUMBER = 10;
private volatile java.lang.Object app_;
/**
* <code>string app = 10;</code>
*/
public java.lang.String getApp() {
java.lang.Object ref = app_;
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();
app_ = s;
return s;
}
}
/**
* <code>string app = 10;</code>
*/
public com.google.protobuf.ByteString
getAppBytes() {
java.lang.Object ref = app_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
app_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GLOBALVALUES_FIELD_NUMBER = 11;
private static final class GlobalValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Request_GlobalValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> globalValues_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetGlobalValues() {
if (globalValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GlobalValuesDefaultEntryHolder.defaultEntry);
}
return globalValues_;
}
public int getGlobalValuesCount() {
return internalGetGlobalValues().getMap().size();
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public boolean containsGlobalValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGlobalValues().getMap().containsKey(key);
}
/**
* Use {@link #getGlobalValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getGlobalValues() {
return getGlobalValuesMap();
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getGlobalValuesMap() {
return internalGetGlobalValues().getMap();
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public java.lang.String getGlobalValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetGlobalValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public java.lang.String getGlobalValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetGlobalValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int REQUESTVALUES_FIELD_NUMBER = 12;
private static final class RequestValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Request_RequestValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> requestValues_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetRequestValues() {
if (requestValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestValuesDefaultEntryHolder.defaultEntry);
}
return requestValues_;
}
public int getRequestValuesCount() {
return internalGetRequestValues().getMap().size();
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public boolean containsRequestValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetRequestValues().getMap().containsKey(key);
}
/**
* Use {@link #getRequestValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getRequestValues() {
return getRequestValuesMap();
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getRequestValuesMap() {
return internalGetRequestValues().getMap();
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public java.lang.String getRequestValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetRequestValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public java.lang.String getRequestValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetRequestValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (serialize_ != 0) {
output.writeInt32(1, serialize_);
}
if (seq_ != 0L) {
output.writeInt64(2, seq_);
}
if (messageType_ != 0) {
output.writeInt32(3, messageType_);
}
if (timeout_ != 0) {
output.writeInt32(4, timeout_);
}
if (!getServiceNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceName_);
}
if (!getMethodNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, methodName_);
}
for (int i = 0; i < parameters_.size(); i++) {
output.writeMessage(7, parameters_.get(i));
}
if (callType_ != 0) {
output.writeInt32(8, callType_);
}
if (!getVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, version_);
}
if (!getAppBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, app_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetGlobalValues(),
GlobalValuesDefaultEntryHolder.defaultEntry,
11);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRequestValues(),
RequestValuesDefaultEntryHolder.defaultEntry,
12);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (serialize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, serialize_);
}
if (seq_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, seq_);
}
if (messageType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, messageType_);
}
if (timeout_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, timeout_);
}
if (!getServiceNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceName_);
}
if (!getMethodNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, methodName_);
}
for (int i = 0; i < parameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, parameters_.get(i));
}
if (callType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, callType_);
}
if (!getVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, version_);
}
if (!getAppBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, app_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetGlobalValues().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
globalValues__ = GlobalValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, globalValues__);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetRequestValues().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
requestValues__ = RequestValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, requestValues__);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request)) {
return super.equals(obj);
}
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request other = (com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request) obj;
boolean result = true;
result = result && (getSerialize()
== other.getSerialize());
result = result && (getSeq()
== other.getSeq());
result = result && (getMessageType()
== other.getMessageType());
result = result && (getTimeout()
== other.getTimeout());
result = result && getServiceName()
.equals(other.getServiceName());
result = result && getMethodName()
.equals(other.getMethodName());
result = result && getParametersList()
.equals(other.getParametersList());
result = result && (getCallType()
== other.getCallType());
result = result && getVersion()
.equals(other.getVersion());
result = result && getApp()
.equals(other.getApp());
result = result && internalGetGlobalValues().equals(
other.internalGetGlobalValues());
result = result && internalGetRequestValues().equals(
other.internalGetRequestValues());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SERIALIZE_FIELD_NUMBER;
hash = (53 * hash) + getSerialize();
hash = (37 * hash) + SEQ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSeq());
hash = (37 * hash) + MESSAGETYPE_FIELD_NUMBER;
hash = (53 * hash) + getMessageType();
hash = (37 * hash) + TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getTimeout();
hash = (37 * hash) + SERVICENAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
hash = (37 * hash) + METHODNAME_FIELD_NUMBER;
hash = (53 * hash) + getMethodName().hashCode();
if (getParametersCount() > 0) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParametersList().hashCode();
}
hash = (37 * hash) + CALLTYPE_FIELD_NUMBER;
hash = (53 * hash) + getCallType();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + APP_FIELD_NUMBER;
hash = (53 * hash) + getApp().hashCode();
if (!internalGetGlobalValues().getMap().isEmpty()) {
hash = (37 * hash) + GLOBALVALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetGlobalValues().hashCode();
}
if (!internalGetRequestValues().getMap().isEmpty()) {
hash = (37 * hash) + REQUESTVALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetRequestValues().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Pb3Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:Pb3Request)
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Request_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 11:
return internalGetGlobalValues();
case 12:
return internalGetRequestValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 11:
return internalGetMutableGlobalValues();
case 12:
return internalGetMutableRequestValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request.class, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request.Builder.class);
}
// Construct using com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getParametersFieldBuilder();
}
}
public Builder clear() {
super.clear();
serialize_ = 0;
seq_ = 0L;
messageType_ = 0;
timeout_ = 0;
serviceName_ = "";
methodName_ = "";
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
parametersBuilder_.clear();
}
callType_ = 0;
version_ = "";
app_ = "";
internalGetMutableGlobalValues().clear();
internalGetMutableRequestValues().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Request_descriptor;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request getDefaultInstanceForType() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request.getDefaultInstance();
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request build() {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request buildPartial() {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request result = new com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.serialize_ = serialize_;
result.seq_ = seq_;
result.messageType_ = messageType_;
result.timeout_ = timeout_;
result.serviceName_ = serviceName_;
result.methodName_ = methodName_;
if (parametersBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.build();
}
result.callType_ = callType_;
result.version_ = version_;
result.app_ = app_;
result.globalValues_ = internalGetGlobalValues();
result.globalValues_.makeImmutable();
result.requestValues_ = internalGetRequestValues();
result.requestValues_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request) {
return mergeFrom((com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request other) {
if (other == com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request.getDefaultInstance()) return this;
if (other.getSerialize() != 0) {
setSerialize(other.getSerialize());
}
if (other.getSeq() != 0L) {
setSeq(other.getSeq());
}
if (other.getMessageType() != 0) {
setMessageType(other.getMessageType());
}
if (other.getTimeout() != 0) {
setTimeout(other.getTimeout());
}
if (!other.getServiceName().isEmpty()) {
serviceName_ = other.serviceName_;
onChanged();
}
if (!other.getMethodName().isEmpty()) {
methodName_ = other.methodName_;
onChanged();
}
if (parametersBuilder_ == null) {
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
}
onChanged();
}
} else {
if (!other.parameters_.isEmpty()) {
if (parametersBuilder_.isEmpty()) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000040);
parametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParametersFieldBuilder() : null;
} else {
parametersBuilder_.addAllMessages(other.parameters_);
}
}
}
if (other.getCallType() != 0) {
setCallType(other.getCallType());
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (!other.getApp().isEmpty()) {
app_ = other.app_;
onChanged();
}
internalGetMutableGlobalValues().mergeFrom(
other.internalGetGlobalValues());
internalGetMutableRequestValues().mergeFrom(
other.internalGetRequestValues());
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int serialize_ ;
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public int getSerialize() {
return serialize_;
}
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public Builder setSerialize(int value) {
serialize_ = value;
onChanged();
return this;
}
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public Builder clearSerialize() {
serialize_ = 0;
onChanged();
return this;
}
private long seq_ ;
/**
* <code>int64 seq = 2;</code>
*/
public long getSeq() {
return seq_;
}
/**
* <code>int64 seq = 2;</code>
*/
public Builder setSeq(long value) {
seq_ = value;
onChanged();
return this;
}
/**
* <code>int64 seq = 2;</code>
*/
public Builder clearSeq() {
seq_ = 0L;
onChanged();
return this;
}
private int messageType_ ;
/**
* <code>int32 messageType = 3;</code>
*/
public int getMessageType() {
return messageType_;
}
/**
* <code>int32 messageType = 3;</code>
*/
public Builder setMessageType(int value) {
messageType_ = value;
onChanged();
return this;
}
/**
* <code>int32 messageType = 3;</code>
*/
public Builder clearMessageType() {
messageType_ = 0;
onChanged();
return this;
}
private int timeout_ ;
/**
* <code>int32 timeout = 4;</code>
*/
public int getTimeout() {
return timeout_;
}
/**
* <code>int32 timeout = 4;</code>
*/
public Builder setTimeout(int value) {
timeout_ = value;
onChanged();
return this;
}
/**
* <code>int32 timeout = 4;</code>
*/
public Builder clearTimeout() {
timeout_ = 0;
onChanged();
return this;
}
private java.lang.Object serviceName_ = "";
/**
* <code>string serviceName = 5;</code>
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string serviceName = 5;</code>
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string serviceName = 5;</code>
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceName_ = value;
onChanged();
return this;
}
/**
* <code>string serviceName = 5;</code>
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
onChanged();
return this;
}
/**
* <code>string serviceName = 5;</code>
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceName_ = value;
onChanged();
return this;
}
private java.lang.Object methodName_ = "";
/**
* <code>string methodName = 6;</code>
*/
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
methodName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string methodName = 6;</code>
*/
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;
}
}
/**
* <code>string methodName = 6;</code>
*/
public Builder setMethodName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
methodName_ = value;
onChanged();
return this;
}
/**
* <code>string methodName = 6;</code>
*/
public Builder clearMethodName() {
methodName_ = getDefaultInstance().getMethodName();
onChanged();
return this;
}
/**
* <code>string methodName = 6;</code>
*/
public Builder setMethodNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
methodName_ = value;
onChanged();
return this;
}
private java.util.List<com.google.protobuf.Any> parameters_ =
java.util.Collections.emptyList();
private void ensureParametersIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
parameters_ = new java.util.ArrayList<com.google.protobuf.Any>(parameters_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> parametersBuilder_;
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public java.util.List<com.google.protobuf.Any> getParametersList() {
if (parametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(parameters_);
} else {
return parametersBuilder_.getMessageList();
}
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public int getParametersCount() {
if (parametersBuilder_ == null) {
return parameters_.size();
} else {
return parametersBuilder_.getCount();
}
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public com.google.protobuf.Any getParameters(int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index);
} else {
return parametersBuilder_.getMessage(index);
}
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder setParameters(
int index, com.google.protobuf.Any value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.set(index, value);
onChanged();
} else {
parametersBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder setParameters(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.set(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder addParameters(com.google.protobuf.Any value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
} else {
parametersBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder addParameters(
int index, com.google.protobuf.Any value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(index, value);
onChanged();
} else {
parametersBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder addParameters(
com.google.protobuf.Any.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder addParameters(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder addAllParameters(
java.lang.Iterable<? extends com.google.protobuf.Any> values) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameters_);
onChanged();
} else {
parametersBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder clearParameters() {
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
parametersBuilder_.clear();
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public Builder removeParameters(int index) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.remove(index);
onChanged();
} else {
parametersBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public com.google.protobuf.Any.Builder getParametersBuilder(
int index) {
return getParametersFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public com.google.protobuf.AnyOrBuilder getParametersOrBuilder(
int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index); } else {
return parametersBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public java.util.List<? extends com.google.protobuf.AnyOrBuilder>
getParametersOrBuilderList() {
if (parametersBuilder_ != null) {
return parametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parameters_);
}
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public com.google.protobuf.Any.Builder addParametersBuilder() {
return getParametersFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public com.google.protobuf.Any.Builder addParametersBuilder(
int index) {
return getParametersFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
* <code>repeated .google.protobuf.Any parameters = 7;</code>
*/
public java.util.List<com.google.protobuf.Any.Builder>
getParametersBuilderList() {
return getParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getParametersFieldBuilder() {
if (parametersBuilder_ == null) {
parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
parameters_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
parameters_ = null;
}
return parametersBuilder_;
}
private int callType_ ;
/**
* <code>int32 callType = 8;</code>
*/
public int getCallType() {
return callType_;
}
/**
* <code>int32 callType = 8;</code>
*/
public Builder setCallType(int value) {
callType_ = value;
onChanged();
return this;
}
/**
* <code>int32 callType = 8;</code>
*/
public Builder clearCallType() {
callType_ = 0;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* <code>string version = 9;</code>
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string version = 9;</code>
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string version = 9;</code>
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* <code>string version = 9;</code>
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* <code>string version = 9;</code>
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private java.lang.Object app_ = "";
/**
* <code>string app = 10;</code>
*/
public java.lang.String getApp() {
java.lang.Object ref = app_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
app_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string app = 10;</code>
*/
public com.google.protobuf.ByteString
getAppBytes() {
java.lang.Object ref = app_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
app_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string app = 10;</code>
*/
public Builder setApp(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
app_ = value;
onChanged();
return this;
}
/**
* <code>string app = 10;</code>
*/
public Builder clearApp() {
app_ = getDefaultInstance().getApp();
onChanged();
return this;
}
/**
* <code>string app = 10;</code>
*/
public Builder setAppBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
app_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> globalValues_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetGlobalValues() {
if (globalValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GlobalValuesDefaultEntryHolder.defaultEntry);
}
return globalValues_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableGlobalValues() {
onChanged();;
if (globalValues_ == null) {
globalValues_ = com.google.protobuf.MapField.newMapField(
GlobalValuesDefaultEntryHolder.defaultEntry);
}
if (!globalValues_.isMutable()) {
globalValues_ = globalValues_.copy();
}
return globalValues_;
}
public int getGlobalValuesCount() {
return internalGetGlobalValues().getMap().size();
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public boolean containsGlobalValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetGlobalValues().getMap().containsKey(key);
}
/**
* Use {@link #getGlobalValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getGlobalValues() {
return getGlobalValuesMap();
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getGlobalValuesMap() {
return internalGetGlobalValues().getMap();
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public java.lang.String getGlobalValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetGlobalValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public java.lang.String getGlobalValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetGlobalValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearGlobalValues() {
internalGetMutableGlobalValues().getMutableMap()
.clear();
return this;
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public Builder removeGlobalValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGlobalValues().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableGlobalValues() {
return internalGetMutableGlobalValues().getMutableMap();
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public Builder putGlobalValues(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableGlobalValues().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map<string, string> globalValues = 11;</code>
*/
public Builder putAllGlobalValues(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableGlobalValues().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> requestValues_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetRequestValues() {
if (requestValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestValuesDefaultEntryHolder.defaultEntry);
}
return requestValues_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableRequestValues() {
onChanged();;
if (requestValues_ == null) {
requestValues_ = com.google.protobuf.MapField.newMapField(
RequestValuesDefaultEntryHolder.defaultEntry);
}
if (!requestValues_.isMutable()) {
requestValues_ = requestValues_.copy();
}
return requestValues_;
}
public int getRequestValuesCount() {
return internalGetRequestValues().getMap().size();
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public boolean containsRequestValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetRequestValues().getMap().containsKey(key);
}
/**
* Use {@link #getRequestValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getRequestValues() {
return getRequestValuesMap();
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getRequestValuesMap() {
return internalGetRequestValues().getMap();
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public java.lang.String getRequestValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetRequestValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public java.lang.String getRequestValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetRequestValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearRequestValues() {
internalGetMutableRequestValues().getMutableMap()
.clear();
return this;
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public Builder removeRequestValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableRequestValues().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableRequestValues() {
return internalGetMutableRequestValues().getMutableMap();
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public Builder putRequestValues(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableRequestValues().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map<string, string> requestValues = 12;</code>
*/
public Builder putAllRequestValues(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableRequestValues().getMutableMap()
.putAll(values);
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:Pb3Request)
}
// @@protoc_insertion_point(class_scope:Pb3Request)
private static final com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request();
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Pb3Request>
PARSER = new com.google.protobuf.AbstractParser<Pb3Request>() {
public Pb3Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pb3Request(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Pb3Request> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Pb3Request> getParserForType() {
return PARSER;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface Pb3ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Pb3Response)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
int getSerialize();
/**
* <code>int64 seq = 2;</code>
*/
long getSeq();
/**
* <code>int32 messageType = 3;</code>
*/
int getMessageType();
/**
* <code>string cause = 4;</code>
*/
java.lang.String getCause();
/**
* <code>string cause = 4;</code>
*/
com.google.protobuf.ByteString
getCauseBytes();
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
boolean hasReturnVal();
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
com.google.protobuf.Any getReturnVal();
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
com.google.protobuf.AnyOrBuilder getReturnValOrBuilder();
/**
* <code>map<string, string> responseValues = 6;</code>
*/
int getResponseValuesCount();
/**
* <code>map<string, string> responseValues = 6;</code>
*/
boolean containsResponseValues(
java.lang.String key);
/**
* Use {@link #getResponseValuesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getResponseValues();
/**
* <code>map<string, string> responseValues = 6;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getResponseValuesMap();
/**
* <code>map<string, string> responseValues = 6;</code>
*/
java.lang.String getResponseValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <code>map<string, string> responseValues = 6;</code>
*/
java.lang.String getResponseValuesOrThrow(
java.lang.String key);
/**
* <code>.Pb3Exception exception = 7;</code>
*/
boolean hasException();
/**
* <code>.Pb3Exception exception = 7;</code>
*/
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception getException();
/**
* <code>.Pb3Exception exception = 7;</code>
*/
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ExceptionOrBuilder getExceptionOrBuilder();
}
/**
* Protobuf type {@code Pb3Response}
*/
public static final class Pb3Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Pb3Response)
Pb3ResponseOrBuilder {
// Use Pb3Response.newBuilder() to construct.
private Pb3Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Pb3Response() {
serialize_ = 0;
seq_ = 0L;
messageType_ = 0;
cause_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Pb3Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
serialize_ = input.readInt32();
break;
}
case 16: {
seq_ = input.readInt64();
break;
}
case 24: {
messageType_ = input.readInt32();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
cause_ = s;
break;
}
case 42: {
com.google.protobuf.Any.Builder subBuilder = null;
if (returnVal_ != null) {
subBuilder = returnVal_.toBuilder();
}
returnVal_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(returnVal_);
returnVal_ = subBuilder.buildPartial();
}
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
responseValues_ = com.google.protobuf.MapField.newMapField(
ResponseValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
responseValues__ = input.readMessage(
ResponseValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
responseValues_.getMutableMap().put(
responseValues__.getKey(), responseValues__.getValue());
break;
}
case 58: {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder subBuilder = null;
if (exception_ != null) {
subBuilder = exception_.toBuilder();
}
exception_ = input.readMessage(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exception_);
exception_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Response_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetResponseValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response.class, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response.Builder.class);
}
private int bitField0_;
public static final int SERIALIZE_FIELD_NUMBER = 1;
private int serialize_;
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public int getSerialize() {
return serialize_;
}
public static final int SEQ_FIELD_NUMBER = 2;
private long seq_;
/**
* <code>int64 seq = 2;</code>
*/
public long getSeq() {
return seq_;
}
public static final int MESSAGETYPE_FIELD_NUMBER = 3;
private int messageType_;
/**
* <code>int32 messageType = 3;</code>
*/
public int getMessageType() {
return messageType_;
}
public static final int CAUSE_FIELD_NUMBER = 4;
private volatile java.lang.Object cause_;
/**
* <code>string cause = 4;</code>
*/
public java.lang.String getCause() {
java.lang.Object ref = cause_;
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();
cause_ = s;
return s;
}
}
/**
* <code>string cause = 4;</code>
*/
public com.google.protobuf.ByteString
getCauseBytes() {
java.lang.Object ref = cause_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RETURNVAL_FIELD_NUMBER = 5;
private com.google.protobuf.Any returnVal_;
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public boolean hasReturnVal() {
return returnVal_ != null;
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public com.google.protobuf.Any getReturnVal() {
return returnVal_ == null ? com.google.protobuf.Any.getDefaultInstance() : returnVal_;
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public com.google.protobuf.AnyOrBuilder getReturnValOrBuilder() {
return getReturnVal();
}
public static final int RESPONSEVALUES_FIELD_NUMBER = 6;
private static final class ResponseValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.String, java.lang.String>newDefaultInstance(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Response_ResponseValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> responseValues_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetResponseValues() {
if (responseValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResponseValuesDefaultEntryHolder.defaultEntry);
}
return responseValues_;
}
public int getResponseValuesCount() {
return internalGetResponseValues().getMap().size();
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public boolean containsResponseValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetResponseValues().getMap().containsKey(key);
}
/**
* Use {@link #getResponseValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getResponseValues() {
return getResponseValuesMap();
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getResponseValuesMap() {
return internalGetResponseValues().getMap();
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public java.lang.String getResponseValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetResponseValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public java.lang.String getResponseValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetResponseValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int EXCEPTION_FIELD_NUMBER = 7;
private com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception exception_;
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public boolean hasException() {
return exception_ != null;
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception getException() {
return exception_ == null ? com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.getDefaultInstance() : exception_;
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ExceptionOrBuilder getExceptionOrBuilder() {
return getException();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (serialize_ != 0) {
output.writeInt32(1, serialize_);
}
if (seq_ != 0L) {
output.writeInt64(2, seq_);
}
if (messageType_ != 0) {
output.writeInt32(3, messageType_);
}
if (!getCauseBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cause_);
}
if (returnVal_ != null) {
output.writeMessage(5, getReturnVal());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetResponseValues(),
ResponseValuesDefaultEntryHolder.defaultEntry,
6);
if (exception_ != null) {
output.writeMessage(7, getException());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (serialize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, serialize_);
}
if (seq_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, seq_);
}
if (messageType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, messageType_);
}
if (!getCauseBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cause_);
}
if (returnVal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getReturnVal());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetResponseValues().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
responseValues__ = ResponseValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, responseValues__);
}
if (exception_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getException());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response)) {
return super.equals(obj);
}
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response other = (com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response) obj;
boolean result = true;
result = result && (getSerialize()
== other.getSerialize());
result = result && (getSeq()
== other.getSeq());
result = result && (getMessageType()
== other.getMessageType());
result = result && getCause()
.equals(other.getCause());
result = result && (hasReturnVal() == other.hasReturnVal());
if (hasReturnVal()) {
result = result && getReturnVal()
.equals(other.getReturnVal());
}
result = result && internalGetResponseValues().equals(
other.internalGetResponseValues());
result = result && (hasException() == other.hasException());
if (hasException()) {
result = result && getException()
.equals(other.getException());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SERIALIZE_FIELD_NUMBER;
hash = (53 * hash) + getSerialize();
hash = (37 * hash) + SEQ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSeq());
hash = (37 * hash) + MESSAGETYPE_FIELD_NUMBER;
hash = (53 * hash) + getMessageType();
hash = (37 * hash) + CAUSE_FIELD_NUMBER;
hash = (53 * hash) + getCause().hashCode();
if (hasReturnVal()) {
hash = (37 * hash) + RETURNVAL_FIELD_NUMBER;
hash = (53 * hash) + getReturnVal().hashCode();
}
if (!internalGetResponseValues().getMap().isEmpty()) {
hash = (37 * hash) + RESPONSEVALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetResponseValues().hashCode();
}
if (hasException()) {
hash = (37 * hash) + EXCEPTION_FIELD_NUMBER;
hash = (53 * hash) + getException().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Pb3Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:Pb3Response)
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Response_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetResponseValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableResponseValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response.class, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response.Builder.class);
}
// Construct using com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
serialize_ = 0;
seq_ = 0L;
messageType_ = 0;
cause_ = "";
if (returnValBuilder_ == null) {
returnVal_ = null;
} else {
returnVal_ = null;
returnValBuilder_ = null;
}
internalGetMutableResponseValues().clear();
if (exceptionBuilder_ == null) {
exception_ = null;
} else {
exception_ = null;
exceptionBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Response_descriptor;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response getDefaultInstanceForType() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response.getDefaultInstance();
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response build() {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response buildPartial() {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response result = new com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.serialize_ = serialize_;
result.seq_ = seq_;
result.messageType_ = messageType_;
result.cause_ = cause_;
if (returnValBuilder_ == null) {
result.returnVal_ = returnVal_;
} else {
result.returnVal_ = returnValBuilder_.build();
}
result.responseValues_ = internalGetResponseValues();
result.responseValues_.makeImmutable();
if (exceptionBuilder_ == null) {
result.exception_ = exception_;
} else {
result.exception_ = exceptionBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response) {
return mergeFrom((com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response other) {
if (other == com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response.getDefaultInstance()) return this;
if (other.getSerialize() != 0) {
setSerialize(other.getSerialize());
}
if (other.getSeq() != 0L) {
setSeq(other.getSeq());
}
if (other.getMessageType() != 0) {
setMessageType(other.getMessageType());
}
if (!other.getCause().isEmpty()) {
cause_ = other.cause_;
onChanged();
}
if (other.hasReturnVal()) {
mergeReturnVal(other.getReturnVal());
}
internalGetMutableResponseValues().mergeFrom(
other.internalGetResponseValues());
if (other.hasException()) {
mergeException(other.getException());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int serialize_ ;
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public int getSerialize() {
return serialize_;
}
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public Builder setSerialize(int value) {
serialize_ = value;
onChanged();
return this;
}
/**
* <pre>
* 没有找到byte类型,用int代替
* </pre>
*
* <code>int32 serialize = 1;</code>
*/
public Builder clearSerialize() {
serialize_ = 0;
onChanged();
return this;
}
private long seq_ ;
/**
* <code>int64 seq = 2;</code>
*/
public long getSeq() {
return seq_;
}
/**
* <code>int64 seq = 2;</code>
*/
public Builder setSeq(long value) {
seq_ = value;
onChanged();
return this;
}
/**
* <code>int64 seq = 2;</code>
*/
public Builder clearSeq() {
seq_ = 0L;
onChanged();
return this;
}
private int messageType_ ;
/**
* <code>int32 messageType = 3;</code>
*/
public int getMessageType() {
return messageType_;
}
/**
* <code>int32 messageType = 3;</code>
*/
public Builder setMessageType(int value) {
messageType_ = value;
onChanged();
return this;
}
/**
* <code>int32 messageType = 3;</code>
*/
public Builder clearMessageType() {
messageType_ = 0;
onChanged();
return this;
}
private java.lang.Object cause_ = "";
/**
* <code>string cause = 4;</code>
*/
public java.lang.String getCause() {
java.lang.Object ref = cause_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cause_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string cause = 4;</code>
*/
public com.google.protobuf.ByteString
getCauseBytes() {
java.lang.Object ref = cause_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string cause = 4;</code>
*/
public Builder setCause(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cause_ = value;
onChanged();
return this;
}
/**
* <code>string cause = 4;</code>
*/
public Builder clearCause() {
cause_ = getDefaultInstance().getCause();
onChanged();
return this;
}
/**
* <code>string cause = 4;</code>
*/
public Builder setCauseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cause_ = value;
onChanged();
return this;
}
private com.google.protobuf.Any returnVal_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> returnValBuilder_;
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public boolean hasReturnVal() {
return returnValBuilder_ != null || returnVal_ != null;
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public com.google.protobuf.Any getReturnVal() {
if (returnValBuilder_ == null) {
return returnVal_ == null ? com.google.protobuf.Any.getDefaultInstance() : returnVal_;
} else {
return returnValBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public Builder setReturnVal(com.google.protobuf.Any value) {
if (returnValBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
returnVal_ = value;
onChanged();
} else {
returnValBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public Builder setReturnVal(
com.google.protobuf.Any.Builder builderForValue) {
if (returnValBuilder_ == null) {
returnVal_ = builderForValue.build();
onChanged();
} else {
returnValBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public Builder mergeReturnVal(com.google.protobuf.Any value) {
if (returnValBuilder_ == null) {
if (returnVal_ != null) {
returnVal_ =
com.google.protobuf.Any.newBuilder(returnVal_).mergeFrom(value).buildPartial();
} else {
returnVal_ = value;
}
onChanged();
} else {
returnValBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public Builder clearReturnVal() {
if (returnValBuilder_ == null) {
returnVal_ = null;
onChanged();
} else {
returnVal_ = null;
returnValBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public com.google.protobuf.Any.Builder getReturnValBuilder() {
onChanged();
return getReturnValFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
public com.google.protobuf.AnyOrBuilder getReturnValOrBuilder() {
if (returnValBuilder_ != null) {
return returnValBuilder_.getMessageOrBuilder();
} else {
return returnVal_ == null ?
com.google.protobuf.Any.getDefaultInstance() : returnVal_;
}
}
/**
* <code>.google.protobuf.Any returnVal = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getReturnValFieldBuilder() {
if (returnValBuilder_ == null) {
returnValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getReturnVal(),
getParentForChildren(),
isClean());
returnVal_ = null;
}
return returnValBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> responseValues_;
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetResponseValues() {
if (responseValues_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResponseValuesDefaultEntryHolder.defaultEntry);
}
return responseValues_;
}
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableResponseValues() {
onChanged();;
if (responseValues_ == null) {
responseValues_ = com.google.protobuf.MapField.newMapField(
ResponseValuesDefaultEntryHolder.defaultEntry);
}
if (!responseValues_.isMutable()) {
responseValues_ = responseValues_.copy();
}
return responseValues_;
}
public int getResponseValuesCount() {
return internalGetResponseValues().getMap().size();
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public boolean containsResponseValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetResponseValues().getMap().containsKey(key);
}
/**
* Use {@link #getResponseValuesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getResponseValues() {
return getResponseValuesMap();
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getResponseValuesMap() {
return internalGetResponseValues().getMap();
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public java.lang.String getResponseValuesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetResponseValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public java.lang.String getResponseValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetResponseValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearResponseValues() {
internalGetMutableResponseValues().getMutableMap()
.clear();
return this;
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public Builder removeResponseValues(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableResponseValues().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String>
getMutableResponseValues() {
return internalGetMutableResponseValues().getMutableMap();
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public Builder putResponseValues(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableResponseValues().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map<string, string> responseValues = 6;</code>
*/
public Builder putAllResponseValues(
java.util.Map<java.lang.String, java.lang.String> values) {
internalGetMutableResponseValues().getMutableMap()
.putAll(values);
return this;
}
private com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception exception_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ExceptionOrBuilder> exceptionBuilder_;
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public boolean hasException() {
return exceptionBuilder_ != null || exception_ != null;
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception getException() {
if (exceptionBuilder_ == null) {
return exception_ == null ? com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.getDefaultInstance() : exception_;
} else {
return exceptionBuilder_.getMessage();
}
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public Builder setException(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception value) {
if (exceptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exception_ = value;
onChanged();
} else {
exceptionBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public Builder setException(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder builderForValue) {
if (exceptionBuilder_ == null) {
exception_ = builderForValue.build();
onChanged();
} else {
exceptionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public Builder mergeException(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception value) {
if (exceptionBuilder_ == null) {
if (exception_ != null) {
exception_ =
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.newBuilder(exception_).mergeFrom(value).buildPartial();
} else {
exception_ = value;
}
onChanged();
} else {
exceptionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public Builder clearException() {
if (exceptionBuilder_ == null) {
exception_ = null;
onChanged();
} else {
exception_ = null;
exceptionBuilder_ = null;
}
return this;
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder getExceptionBuilder() {
onChanged();
return getExceptionFieldBuilder().getBuilder();
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ExceptionOrBuilder getExceptionOrBuilder() {
if (exceptionBuilder_ != null) {
return exceptionBuilder_.getMessageOrBuilder();
} else {
return exception_ == null ?
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.getDefaultInstance() : exception_;
}
}
/**
* <code>.Pb3Exception exception = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ExceptionOrBuilder>
getExceptionFieldBuilder() {
if (exceptionBuilder_ == null) {
exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ExceptionOrBuilder>(
getException(),
getParentForChildren(),
isClean());
exception_ = null;
}
return exceptionBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:Pb3Response)
}
// @@protoc_insertion_point(class_scope:Pb3Response)
private static final com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response();
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Pb3Response>
PARSER = new com.google.protobuf.AbstractParser<Pb3Response>() {
public Pb3Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pb3Response(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Pb3Response> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Pb3Response> getParserForType() {
return PARSER;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface Pb3ExceptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Pb3Exception)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string cause = 1;</code>
*/
java.lang.String getCause();
/**
* <code>string cause = 1;</code>
*/
com.google.protobuf.ByteString
getCauseBytes();
/**
* <code>string detailMessage = 2;</code>
*/
java.lang.String getDetailMessage();
/**
* <code>string detailMessage = 2;</code>
*/
com.google.protobuf.ByteString
getDetailMessageBytes();
}
/**
* Protobuf type {@code Pb3Exception}
*/
public static final class Pb3Exception extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Pb3Exception)
Pb3ExceptionOrBuilder {
// Use Pb3Exception.newBuilder() to construct.
private Pb3Exception(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Pb3Exception() {
cause_ = "";
detailMessage_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Pb3Exception(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
cause_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
detailMessage_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Exception_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Exception_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.class, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder.class);
}
public static final int CAUSE_FIELD_NUMBER = 1;
private volatile java.lang.Object cause_;
/**
* <code>string cause = 1;</code>
*/
public java.lang.String getCause() {
java.lang.Object ref = cause_;
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();
cause_ = s;
return s;
}
}
/**
* <code>string cause = 1;</code>
*/
public com.google.protobuf.ByteString
getCauseBytes() {
java.lang.Object ref = cause_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DETAILMESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object detailMessage_;
/**
* <code>string detailMessage = 2;</code>
*/
public java.lang.String getDetailMessage() {
java.lang.Object ref = detailMessage_;
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();
detailMessage_ = s;
return s;
}
}
/**
* <code>string detailMessage = 2;</code>
*/
public com.google.protobuf.ByteString
getDetailMessageBytes() {
java.lang.Object ref = detailMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detailMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCauseBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cause_);
}
if (!getDetailMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detailMessage_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCauseBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cause_);
}
if (!getDetailMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detailMessage_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception)) {
return super.equals(obj);
}
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception other = (com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception) obj;
boolean result = true;
result = result && getCause()
.equals(other.getCause());
result = result && getDetailMessage()
.equals(other.getDetailMessage());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CAUSE_FIELD_NUMBER;
hash = (53 * hash) + getCause().hashCode();
hash = (37 * hash) + DETAILMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getDetailMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Pb3Exception}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:Pb3Exception)
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3ExceptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Exception_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Exception_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.class, com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.Builder.class);
}
// Construct using com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cause_ = "";
detailMessage_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.internal_static_Pb3Exception_descriptor;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception getDefaultInstanceForType() {
return com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.getDefaultInstance();
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception build() {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception buildPartial() {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception result = new com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception(this);
result.cause_ = cause_;
result.detailMessage_ = detailMessage_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception) {
return mergeFrom((com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception other) {
if (other == com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception.getDefaultInstance()) return this;
if (!other.getCause().isEmpty()) {
cause_ = other.cause_;
onChanged();
}
if (!other.getDetailMessage().isEmpty()) {
detailMessage_ = other.detailMessage_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object cause_ = "";
/**
* <code>string cause = 1;</code>
*/
public java.lang.String getCause() {
java.lang.Object ref = cause_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cause_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string cause = 1;</code>
*/
public com.google.protobuf.ByteString
getCauseBytes() {
java.lang.Object ref = cause_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cause_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string cause = 1;</code>
*/
public Builder setCause(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cause_ = value;
onChanged();
return this;
}
/**
* <code>string cause = 1;</code>
*/
public Builder clearCause() {
cause_ = getDefaultInstance().getCause();
onChanged();
return this;
}
/**
* <code>string cause = 1;</code>
*/
public Builder setCauseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cause_ = value;
onChanged();
return this;
}
private java.lang.Object detailMessage_ = "";
/**
* <code>string detailMessage = 2;</code>
*/
public java.lang.String getDetailMessage() {
java.lang.Object ref = detailMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
detailMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string detailMessage = 2;</code>
*/
public com.google.protobuf.ByteString
getDetailMessageBytes() {
java.lang.Object ref = detailMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detailMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string detailMessage = 2;</code>
*/
public Builder setDetailMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
detailMessage_ = value;
onChanged();
return this;
}
/**
* <code>string detailMessage = 2;</code>
*/
public Builder clearDetailMessage() {
detailMessage_ = getDefaultInstance().getDetailMessage();
onChanged();
return this;
}
/**
* <code>string detailMessage = 2;</code>
*/
public Builder setDetailMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
detailMessage_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:Pb3Exception)
}
// @@protoc_insertion_point(class_scope:Pb3Exception)
private static final com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception();
}
public static com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Pb3Exception>
PARSER = new com.google.protobuf.AbstractParser<Pb3Exception>() {
public Pb3Exception parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pb3Exception(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Pb3Exception> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Pb3Exception> getParserForType() {
return PARSER;
}
public com.dianping.pigeon.remoting.common.codec.protobuf.Entities.Pb3Exception getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Pb3Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Pb3Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Pb3Request_GlobalValuesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Pb3Request_GlobalValuesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Pb3Request_RequestValuesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Pb3Request_RequestValuesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Pb3Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Pb3Response_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Pb3Response_ResponseValuesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Pb3Response_ResponseValuesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Pb3Exception_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Pb3Exception_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\016entities.proto\032\031google/protobuf/any.pr" +
"oto\"\254\003\n\nPb3Request\022\021\n\tserialize\030\001 \001(\005\022\013\n" +
"\003seq\030\002 \001(\003\022\023\n\013messageType\030\003 \001(\005\022\017\n\007timeo" +
"ut\030\004 \001(\005\022\023\n\013serviceName\030\005 \001(\t\022\022\n\nmethodN" +
"ame\030\006 \001(\t\022(\n\nparameters\030\007 \003(\0132\024.google.p" +
"rotobuf.Any\022\020\n\010callType\030\010 \001(\005\022\017\n\007version" +
"\030\t \001(\t\022\013\n\003app\030\n \001(\t\0223\n\014globalValues\030\013 \003(" +
"\0132\035.Pb3Request.GlobalValuesEntry\0225\n\rrequ" +
"estValues\030\014 \003(\0132\036.Pb3Request.RequestValu" +
"esEntry\0323\n\021GlobalValuesEntry\022\013\n\003key\030\001 \001(",
"\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022RequestValuesEnt" +
"ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\215\002\n\013P" +
"b3Response\022\021\n\tserialize\030\001 \001(\005\022\013\n\003seq\030\002 \001" +
"(\003\022\023\n\013messageType\030\003 \001(\005\022\r\n\005cause\030\004 \001(\t\022\'" +
"\n\treturnVal\030\005 \001(\0132\024.google.protobuf.Any\022" +
"8\n\016responseValues\030\006 \003(\0132 .Pb3Response.Re" +
"sponseValuesEntry\022 \n\texception\030\007 \001(\0132\r.P" +
"b3Exception\0325\n\023ResponseValuesEntry\022\013\n\003ke" +
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"4\n\014Pb3Excepti" +
"on\022\r\n\005cause\030\001 \001(\t\022\025\n\rdetailMessage\030\002 \001(\t",
"B4\n2com.dianping.pigeon.remoting.common." +
"codec.protobufb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.AnyProto.getDescriptor(),
}, assigner);
internal_static_Pb3Request_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Pb3Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Pb3Request_descriptor,
new java.lang.String[] { "Serialize", "Seq", "MessageType", "Timeout", "ServiceName", "MethodName", "Parameters", "CallType", "Version", "App", "GlobalValues", "RequestValues", });
internal_static_Pb3Request_GlobalValuesEntry_descriptor =
internal_static_Pb3Request_descriptor.getNestedTypes().get(0);
internal_static_Pb3Request_GlobalValuesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Pb3Request_GlobalValuesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_Pb3Request_RequestValuesEntry_descriptor =
internal_static_Pb3Request_descriptor.getNestedTypes().get(1);
internal_static_Pb3Request_RequestValuesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Pb3Request_RequestValuesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_Pb3Response_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Pb3Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Pb3Response_descriptor,
new java.lang.String[] { "Serialize", "Seq", "MessageType", "Cause", "ReturnVal", "ResponseValues", "Exception", });
internal_static_Pb3Response_ResponseValuesEntry_descriptor =
internal_static_Pb3Response_descriptor.getNestedTypes().get(0);
internal_static_Pb3Response_ResponseValuesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Pb3Response_ResponseValuesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_Pb3Exception_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Pb3Exception_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Pb3Exception_descriptor,
new java.lang.String[] { "Cause", "DetailMessage", });
com.google.protobuf.AnyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}