|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: BaseResponseProto.proto
|
|
|
|
|
|
|
|
package com.crossoverjie.netty.action.common.protocol;
|
|
|
|
|
|
|
|
public final class BaseResponseProto {
|
|
|
|
private BaseResponseProto() {}
|
|
|
|
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 ResponseProtocolOrBuilder extends
|
|
|
|
// @@protoc_insertion_point(interface_extends:protocol.ResponseProtocol)
|
|
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
boolean hasResponseId();
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
int getResponseId();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
boolean hasResMsg();
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
String getResMsg();
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
com.google.protobuf.ByteString
|
|
|
|
getResMsgBytes();
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Protobuf type {@code protocol.ResponseProtocol}
|
|
|
|
*/
|
|
|
|
public static final class ResponseProtocol extends
|
|
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
|
|
// @@protoc_insertion_point(message_implements:protocol.ResponseProtocol)
|
|
|
|
ResponseProtocolOrBuilder {
|
|
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
// Use ResponseProtocol.newBuilder() to construct.
|
|
|
|
private ResponseProtocol(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
|
|
super(builder);
|
|
|
|
}
|
|
|
|
private ResponseProtocol() {
|
|
|
|
responseId_ = 0;
|
|
|
|
resMsg_ = "";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
|
|
getUnknownFields() {
|
|
|
|
return this.unknownFields;
|
|
|
|
}
|
|
|
|
private ResponseProtocol(
|
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
this();
|
|
|
|
if (extensionRegistry == null) {
|
|
|
|
throw new NullPointerException();
|
|
|
|
}
|
|
|
|
int mutable_bitField0_ = 0;
|
|
|
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
|
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
|
|
try {
|
|
|
|
boolean done = false;
|
|
|
|
while (!done) {
|
|
|
|
int tag = input.readTag();
|
|
|
|
switch (tag) {
|
|
|
|
case 0:
|
|
|
|
done = true;
|
|
|
|
break;
|
|
|
|
default: {
|
|
|
|
if (!parseUnknownField(
|
|
|
|
input, unknownFields, extensionRegistry, tag)) {
|
|
|
|
done = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 10: {
|
|
|
|
com.google.protobuf.ByteString bs = input.readBytes();
|
|
|
|
bitField0_ |= 0x00000002;
|
|
|
|
resMsg_ = bs;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 16: {
|
|
|
|
bitField0_ |= 0x00000001;
|
|
|
|
responseId_ = input.readInt32();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
|
|
throw e.setUnfinishedMessage(this);
|
|
|
|
} catch (java.io.IOException e) {
|
|
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
|
|
e).setUnfinishedMessage(this);
|
|
|
|
} finally {
|
|
|
|
this.unknownFields = unknownFields.build();
|
|
|
|
makeExtensionsImmutable();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
getDescriptor() {
|
|
|
|
return BaseResponseProto.internal_static_protocol_ResponseProtocol_descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected FieldAccessorTable
|
|
|
|
internalGetFieldAccessorTable() {
|
|
|
|
return BaseResponseProto.internal_static_protocol_ResponseProtocol_fieldAccessorTable
|
|
|
|
.ensureFieldAccessorsInitialized(
|
|
|
|
ResponseProtocol.class, Builder.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
private int bitField0_;
|
|
|
|
public static final int RESPONSEID_FIELD_NUMBER = 2;
|
|
|
|
private int responseId_;
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasResponseId() {
|
|
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
public int getResponseId() {
|
|
|
|
return responseId_;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final int RESMSG_FIELD_NUMBER = 1;
|
|
|
|
private volatile Object resMsg_;
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasResMsg() {
|
|
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public String getResMsg() {
|
|
|
|
Object ref = resMsg_;
|
|
|
|
if (ref instanceof String) {
|
|
|
|
return (String) ref;
|
|
|
|
} else {
|
|
|
|
com.google.protobuf.ByteString bs =
|
|
|
|
(com.google.protobuf.ByteString) ref;
|
|
|
|
String s = bs.toStringUtf8();
|
|
|
|
if (bs.isValidUtf8()) {
|
|
|
|
resMsg_ = s;
|
|
|
|
}
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public com.google.protobuf.ByteString
|
|
|
|
getResMsgBytes() {
|
|
|
|
Object ref = resMsg_;
|
|
|
|
if (ref instanceof String) {
|
|
|
|
com.google.protobuf.ByteString b =
|
|
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
|
|
(String) ref);
|
|
|
|
resMsg_ = 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;
|
|
|
|
|
|
|
|
if (!hasResponseId()) {
|
|
|
|
memoizedIsInitialized = 0;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (!hasResMsg()) {
|
|
|
|
memoizedIsInitialized = 0;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
memoizedIsInitialized = 1;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
|
|
throws java.io.IOException {
|
|
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resMsg_);
|
|
|
|
}
|
|
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
output.writeInt32(2, responseId_);
|
|
|
|
}
|
|
|
|
unknownFields.writeTo(output);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getSerializedSize() {
|
|
|
|
int size = memoizedSize;
|
|
|
|
if (size != -1) return size;
|
|
|
|
|
|
|
|
size = 0;
|
|
|
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
|
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resMsg_);
|
|
|
|
}
|
|
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
size += com.google.protobuf.CodedOutputStream
|
|
|
|
.computeInt32Size(2, responseId_);
|
|
|
|
}
|
|
|
|
size += unknownFields.getSerializedSize();
|
|
|
|
memoizedSize = size;
|
|
|
|
return size;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean equals(final Object obj) {
|
|
|
|
if (obj == this) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof ResponseProtocol)) {
|
|
|
|
return super.equals(obj);
|
|
|
|
}
|
|
|
|
ResponseProtocol other = (ResponseProtocol) obj;
|
|
|
|
|
|
|
|
boolean result = true;
|
|
|
|
result = result && (hasResponseId() == other.hasResponseId());
|
|
|
|
if (hasResponseId()) {
|
|
|
|
result = result && (getResponseId()
|
|
|
|
== other.getResponseId());
|
|
|
|
}
|
|
|
|
result = result && (hasResMsg() == other.hasResMsg());
|
|
|
|
if (hasResMsg()) {
|
|
|
|
result = result && getResMsg()
|
|
|
|
.equals(other.getResMsg());
|
|
|
|
}
|
|
|
|
result = result && unknownFields.equals(other.unknownFields);
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int hashCode() {
|
|
|
|
if (memoizedHashCode != 0) {
|
|
|
|
return memoizedHashCode;
|
|
|
|
}
|
|
|
|
int hash = 41;
|
|
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
|
|
if (hasResponseId()) {
|
|
|
|
hash = (37 * hash) + RESPONSEID_FIELD_NUMBER;
|
|
|
|
hash = (53 * hash) + getResponseId();
|
|
|
|
}
|
|
|
|
if (hasResMsg()) {
|
|
|
|
hash = (37 * hash) + RESMSG_FIELD_NUMBER;
|
|
|
|
hash = (53 * hash) + getResMsg().hashCode();
|
|
|
|
}
|
|
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
|
|
memoizedHashCode = hash;
|
|
|
|
return hash;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static ResponseProtocol parseFrom(
|
|
|
|
java.nio.ByteBuffer data)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol parseFrom(
|
|
|
|
java.nio.ByteBuffer data,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol parseFrom(
|
|
|
|
com.google.protobuf.ByteString data)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol parseFrom(
|
|
|
|
com.google.protobuf.ByteString data,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol parseFrom(byte[] data)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol parseFrom(
|
|
|
|
byte[] data,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol parseFrom(java.io.InputStream input)
|
|
|
|
throws java.io.IOException {
|
|
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
|
|
.parseWithIOException(PARSER, input);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol 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 ResponseProtocol parseDelimitedFrom(java.io.InputStream input)
|
|
|
|
throws java.io.IOException {
|
|
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol 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 ResponseProtocol parseFrom(
|
|
|
|
com.google.protobuf.CodedInputStream input)
|
|
|
|
throws java.io.IOException {
|
|
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
|
|
.parseWithIOException(PARSER, input);
|
|
|
|
}
|
|
|
|
public static ResponseProtocol 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(ResponseProtocol prototype) {
|
|
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
|
|
}
|
|
|
|
public Builder toBuilder() {
|
|
|
|
return this == DEFAULT_INSTANCE
|
|
|
|
? new Builder() : new Builder().mergeFrom(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected Builder newBuilderForType(
|
|
|
|
BuilderParent parent) {
|
|
|
|
Builder builder = new Builder(parent);
|
|
|
|
return builder;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Protobuf type {@code protocol.ResponseProtocol}
|
|
|
|
*/
|
|
|
|
public static final class Builder extends
|
|
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
|
|
// @@protoc_insertion_point(builder_implements:protocol.ResponseProtocol)
|
|
|
|
ResponseProtocolOrBuilder {
|
|
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
getDescriptor() {
|
|
|
|
return BaseResponseProto.internal_static_protocol_ResponseProtocol_descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected FieldAccessorTable
|
|
|
|
internalGetFieldAccessorTable() {
|
|
|
|
return BaseResponseProto.internal_static_protocol_ResponseProtocol_fieldAccessorTable
|
|
|
|
.ensureFieldAccessorsInitialized(
|
|
|
|
ResponseProtocol.class, Builder.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Construct using com.crossoverjie.netty.action.protocol.BaseResponseProto.ResponseProtocol.newBuilder()
|
|
|
|
private Builder() {
|
|
|
|
maybeForceBuilderInitialization();
|
|
|
|
}
|
|
|
|
|
|
|
|
private Builder(
|
|
|
|
BuilderParent parent) {
|
|
|
|
super(parent);
|
|
|
|
maybeForceBuilderInitialization();
|
|
|
|
}
|
|
|
|
private void maybeForceBuilderInitialization() {
|
|
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
|
|
.alwaysUseFieldBuilders) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public Builder clear() {
|
|
|
|
super.clear();
|
|
|
|
responseId_ = 0;
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
|
resMsg_ = "";
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
|
|
getDescriptorForType() {
|
|
|
|
return BaseResponseProto.internal_static_protocol_ResponseProtocol_descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResponseProtocol getDefaultInstanceForType() {
|
|
|
|
return ResponseProtocol.getDefaultInstance();
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResponseProtocol build() {
|
|
|
|
ResponseProtocol result = buildPartial();
|
|
|
|
if (!result.isInitialized()) {
|
|
|
|
throw newUninitializedMessageException(result);
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResponseProtocol buildPartial() {
|
|
|
|
ResponseProtocol result = new ResponseProtocol(this);
|
|
|
|
int from_bitField0_ = bitField0_;
|
|
|
|
int to_bitField0_ = 0;
|
|
|
|
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
to_bitField0_ |= 0x00000001;
|
|
|
|
}
|
|
|
|
result.responseId_ = responseId_;
|
|
|
|
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
|
|
|
to_bitField0_ |= 0x00000002;
|
|
|
|
}
|
|
|
|
result.resMsg_ = resMsg_;
|
|
|
|
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 ResponseProtocol) {
|
|
|
|
return mergeFrom((ResponseProtocol)other);
|
|
|
|
} else {
|
|
|
|
super.mergeFrom(other);
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public Builder mergeFrom(ResponseProtocol other) {
|
|
|
|
if (other == ResponseProtocol.getDefaultInstance()) return this;
|
|
|
|
if (other.hasResponseId()) {
|
|
|
|
setResponseId(other.getResponseId());
|
|
|
|
}
|
|
|
|
if (other.hasResMsg()) {
|
|
|
|
bitField0_ |= 0x00000002;
|
|
|
|
resMsg_ = other.resMsg_;
|
|
|
|
onChanged();
|
|
|
|
}
|
|
|
|
this.mergeUnknownFields(other.unknownFields);
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean isInitialized() {
|
|
|
|
if (!hasResponseId()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (!hasResMsg()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Builder mergeFrom(
|
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws java.io.IOException {
|
|
|
|
ResponseProtocol parsedMessage = null;
|
|
|
|
try {
|
|
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
|
|
parsedMessage = (ResponseProtocol) e.getUnfinishedMessage();
|
|
|
|
throw e.unwrapIOException();
|
|
|
|
} finally {
|
|
|
|
if (parsedMessage != null) {
|
|
|
|
mergeFrom(parsedMessage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
private int bitField0_;
|
|
|
|
|
|
|
|
private int responseId_ ;
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasResponseId() {
|
|
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
public int getResponseId() {
|
|
|
|
return responseId_;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
public Builder setResponseId(int value) {
|
|
|
|
bitField0_ |= 0x00000001;
|
|
|
|
responseId_ = value;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 responseId = 2;</code>
|
|
|
|
*/
|
|
|
|
public Builder clearResponseId() {
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
|
responseId_ = 0;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
private Object resMsg_ = "";
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasResMsg() {
|
|
|
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public String getResMsg() {
|
|
|
|
Object ref = resMsg_;
|
|
|
|
if (!(ref instanceof String)) {
|
|
|
|
com.google.protobuf.ByteString bs =
|
|
|
|
(com.google.protobuf.ByteString) ref;
|
|
|
|
String s = bs.toStringUtf8();
|
|
|
|
if (bs.isValidUtf8()) {
|
|
|
|
resMsg_ = s;
|
|
|
|
}
|
|
|
|
return s;
|
|
|
|
} else {
|
|
|
|
return (String) ref;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public com.google.protobuf.ByteString
|
|
|
|
getResMsgBytes() {
|
|
|
|
Object ref = resMsg_;
|
|
|
|
if (ref instanceof String) {
|
|
|
|
com.google.protobuf.ByteString b =
|
|
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
|
|
(String) ref);
|
|
|
|
resMsg_ = b;
|
|
|
|
return b;
|
|
|
|
} else {
|
|
|
|
return (com.google.protobuf.ByteString) ref;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public Builder setResMsg(
|
|
|
|
String value) {
|
|
|
|
if (value == null) {
|
|
|
|
throw new NullPointerException();
|
|
|
|
}
|
|
|
|
bitField0_ |= 0x00000002;
|
|
|
|
resMsg_ = value;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public Builder clearResMsg() {
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
|
|
resMsg_ = getDefaultInstance().getResMsg();
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required string resMsg = 1;</code>
|
|
|
|
*/
|
|
|
|
public Builder setResMsgBytes(
|
|
|
|
com.google.protobuf.ByteString value) {
|
|
|
|
if (value == null) {
|
|
|
|
throw new NullPointerException();
|
|
|
|
}
|
|
|
|
bitField0_ |= 0x00000002;
|
|
|
|
resMsg_ = value;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
public final Builder setUnknownFields(
|
|
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
|
|
return super.setUnknownFields(unknownFields);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Builder mergeUnknownFields(
|
|
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
|
|
return super.mergeUnknownFields(unknownFields);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:protocol.ResponseProtocol)
|
|
|
|
}
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:protocol.ResponseProtocol)
|
|
|
|
private static final ResponseProtocol DEFAULT_INSTANCE;
|
|
|
|
static {
|
|
|
|
DEFAULT_INSTANCE = new ResponseProtocol();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static ResponseProtocol getDefaultInstance() {
|
|
|
|
return DEFAULT_INSTANCE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated public static final com.google.protobuf.Parser<ResponseProtocol>
|
|
|
|
PARSER = new com.google.protobuf.AbstractParser<ResponseProtocol>() {
|
|
|
|
public ResponseProtocol parsePartialFrom(
|
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return new ResponseProtocol(input, extensionRegistry);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
public static com.google.protobuf.Parser<ResponseProtocol> parser() {
|
|
|
|
return PARSER;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public com.google.protobuf.Parser<ResponseProtocol> getParserForType() {
|
|
|
|
return PARSER;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResponseProtocol getDefaultInstanceForType() {
|
|
|
|
return DEFAULT_INSTANCE;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
internal_static_protocol_ResponseProtocol_descriptor;
|
|
|
|
private static final
|
|
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
|
|
internal_static_protocol_ResponseProtocol_fieldAccessorTable;
|
|
|
|
|
|
|
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
|
|
|
getDescriptor() {
|
|
|
|
return descriptor;
|
|
|
|
}
|
|
|
|
private static com.google.protobuf.Descriptors.FileDescriptor
|
|
|
|
descriptor;
|
|
|
|
static {
|
|
|
|
String[] descriptorData = {
|
|
|
|
"\n\027BaseResponseProto.proto\022\010protocol\"6\n\020R" +
|
|
|
|
"esponseProtocol\022\022\n\nresponseId\030\002 \002(\005\022\016\n\006r" +
|
|
|
|
"esMsg\030\001 \002(\tB;\n&com.crossoverjie.netty.ac" +
|
|
|
|
"tion.protocolB\021BaseResponseProto"
|
|
|
|
};
|
|
|
|
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[] {
|
|
|
|
}, assigner);
|
|
|
|
internal_static_protocol_ResponseProtocol_descriptor =
|
|
|
|
getDescriptor().getMessageTypes().get(0);
|
|
|
|
internal_static_protocol_ResponseProtocol_fieldAccessorTable = new
|
|
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
|
|
internal_static_protocol_ResponseProtocol_descriptor,
|
|
|
|
new String[] { "ResponseId", "ResMsg", });
|
|
|
|
}
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
|
|
} |
...
|
...
|
|