|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: BaseRequestProto.proto
|
|
|
|
|
|
|
|
package com.crossoverjie.netty.action.common.protocol;
|
|
|
|
package com.crossoverjie.cim.common.protocol;
|
|
|
|
|
|
|
|
public final class BaseRequestProto {
|
|
|
|
private BaseRequestProto() {}
|
|
|
|
public final class CIMRequestProto {
|
|
|
|
private CIMRequestProto() {}
|
|
|
|
public static void registerAllExtensions(
|
|
|
|
com.google.protobuf.ExtensionRegistryLite registry) {
|
|
|
|
}
|
|
...
|
...
|
@@ -14,18 +14,18 @@ public final class BaseRequestProto { |
|
|
|
registerAllExtensions(
|
|
|
|
(com.google.protobuf.ExtensionRegistryLite) registry);
|
|
|
|
}
|
|
|
|
public interface RequestProtocolOrBuilder extends
|
|
|
|
// @@protoc_insertion_point(interface_extends:protocol.RequestProtocol)
|
|
|
|
public interface CIMReqProtocolOrBuilder extends
|
|
|
|
// @@protoc_insertion_point(interface_extends:protocol.CIMReqProtocol)
|
|
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
boolean hasRequestId();
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
int getRequestId();
|
|
|
|
long getRequestId();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <code>required string reqMsg = 1;</code>
|
|
...
|
...
|
@@ -40,22 +40,32 @@ public final class BaseRequestProto { |
|
|
|
*/
|
|
|
|
com.google.protobuf.ByteString
|
|
|
|
getReqMsgBytes();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
boolean hasType();
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
int getType();
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Protobuf type {@code protocol.RequestProtocol}
|
|
|
|
* Protobuf type {@code protocol.CIMReqProtocol}
|
|
|
|
*/
|
|
|
|
public static final class RequestProtocol extends
|
|
|
|
public static final class CIMReqProtocol extends
|
|
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
|
|
// @@protoc_insertion_point(message_implements:protocol.RequestProtocol)
|
|
|
|
RequestProtocolOrBuilder {
|
|
|
|
// @@protoc_insertion_point(message_implements:protocol.CIMReqProtocol)
|
|
|
|
CIMReqProtocolOrBuilder {
|
|
|
|
private static final long serialVersionUID = 0L;
|
|
|
|
// Use RequestProtocol.newBuilder() to construct.
|
|
|
|
private RequestProtocol(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
|
|
// Use CIMReqProtocol.newBuilder() to construct.
|
|
|
|
private CIMReqProtocol(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
|
|
super(builder);
|
|
|
|
}
|
|
|
|
private RequestProtocol() {
|
|
|
|
requestId_ = 0;
|
|
|
|
private CIMReqProtocol() {
|
|
|
|
requestId_ = 0L;
|
|
|
|
reqMsg_ = "";
|
|
|
|
type_ = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
...
|
...
|
@@ -63,7 +73,7 @@ public final class BaseRequestProto { |
|
|
|
getUnknownFields() {
|
|
|
|
return this.unknownFields;
|
|
|
|
}
|
|
|
|
private RequestProtocol(
|
|
|
|
private CIMReqProtocol(
|
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
...
|
...
|
@@ -97,7 +107,12 @@ public final class BaseRequestProto { |
|
|
|
}
|
|
|
|
case 16: {
|
|
|
|
bitField0_ |= 0x00000001;
|
|
|
|
requestId_ = input.readInt32();
|
|
|
|
requestId_ = input.readInt64();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 24: {
|
|
|
|
bitField0_ |= 0x00000004;
|
|
|
|
type_ = input.readInt32();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -114,29 +129,29 @@ public final class BaseRequestProto { |
|
|
|
}
|
|
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
getDescriptor() {
|
|
|
|
return BaseRequestProto.internal_static_protocol_RequestProtocol_descriptor;
|
|
|
|
return CIMRequestProto.internal_static_protocol_CIMReqProtocol_descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected FieldAccessorTable
|
|
|
|
internalGetFieldAccessorTable() {
|
|
|
|
return BaseRequestProto.internal_static_protocol_RequestProtocol_fieldAccessorTable
|
|
|
|
return CIMRequestProto.internal_static_protocol_CIMReqProtocol_fieldAccessorTable
|
|
|
|
.ensureFieldAccessorsInitialized(
|
|
|
|
RequestProtocol.class, Builder.class);
|
|
|
|
CIMReqProtocol.class, Builder.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
private int bitField0_;
|
|
|
|
public static final int REQUESTID_FIELD_NUMBER = 2;
|
|
|
|
private int requestId_;
|
|
|
|
private long requestId_;
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasRequestId() {
|
|
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
public int getRequestId() {
|
|
|
|
public long getRequestId() {
|
|
|
|
return requestId_;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -182,6 +197,21 @@ public final class BaseRequestProto { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final int TYPE_FIELD_NUMBER = 3;
|
|
|
|
private int type_;
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasType() {
|
|
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
public int getType() {
|
|
|
|
return type_;
|
|
|
|
}
|
|
|
|
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
|
|
public final boolean isInitialized() {
|
|
|
|
byte isInitialized = memoizedIsInitialized;
|
|
...
|
...
|
@@ -196,6 +226,10 @@ public final class BaseRequestProto { |
|
|
|
memoizedIsInitialized = 0;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (!hasType()) {
|
|
|
|
memoizedIsInitialized = 0;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
memoizedIsInitialized = 1;
|
|
|
|
return true;
|
|
|
|
}
|
|
...
|
...
|
@@ -206,7 +240,10 @@ public final class BaseRequestProto { |
|
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reqMsg_);
|
|
|
|
}
|
|
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
output.writeInt32(2, requestId_);
|
|
|
|
output.writeInt64(2, requestId_);
|
|
|
|
}
|
|
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
|
|
output.writeInt32(3, type_);
|
|
|
|
}
|
|
|
|
unknownFields.writeTo(output);
|
|
|
|
}
|
|
...
|
...
|
@@ -221,7 +258,11 @@ public final class BaseRequestProto { |
|
|
|
}
|
|
|
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
|
|
|
size += com.google.protobuf.CodedOutputStream
|
|
|
|
.computeInt32Size(2, requestId_);
|
|
|
|
.computeInt64Size(2, requestId_);
|
|
|
|
}
|
|
|
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
|
|
|
size += com.google.protobuf.CodedOutputStream
|
|
|
|
.computeInt32Size(3, type_);
|
|
|
|
}
|
|
|
|
size += unknownFields.getSerializedSize();
|
|
|
|
memoizedSize = size;
|
|
...
|
...
|
@@ -233,10 +274,10 @@ public final class BaseRequestProto { |
|
|
|
if (obj == this) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof RequestProtocol)) {
|
|
|
|
if (!(obj instanceof CIMReqProtocol)) {
|
|
|
|
return super.equals(obj);
|
|
|
|
}
|
|
|
|
RequestProtocol other = (RequestProtocol) obj;
|
|
|
|
CIMReqProtocol other = (CIMReqProtocol) obj;
|
|
|
|
|
|
|
|
boolean result = true;
|
|
|
|
result = result && (hasRequestId() == other.hasRequestId());
|
|
...
|
...
|
@@ -249,6 +290,11 @@ public final class BaseRequestProto { |
|
|
|
result = result && getReqMsg()
|
|
|
|
.equals(other.getReqMsg());
|
|
|
|
}
|
|
|
|
result = result && (hasType() == other.hasType());
|
|
|
|
if (hasType()) {
|
|
|
|
result = result && (getType()
|
|
|
|
== other.getType());
|
|
|
|
}
|
|
|
|
result = result && unknownFields.equals(other.unknownFields);
|
|
|
|
return result;
|
|
|
|
}
|
|
...
|
...
|
@@ -262,80 +308,85 @@ public final class BaseRequestProto { |
|
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
|
|
if (hasRequestId()) {
|
|
|
|
hash = (37 * hash) + REQUESTID_FIELD_NUMBER;
|
|
|
|
hash = (53 * hash) + getRequestId();
|
|
|
|
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
|
|
|
getRequestId());
|
|
|
|
}
|
|
|
|
if (hasReqMsg()) {
|
|
|
|
hash = (37 * hash) + REQMSG_FIELD_NUMBER;
|
|
|
|
hash = (53 * hash) + getReqMsg().hashCode();
|
|
|
|
}
|
|
|
|
if (hasType()) {
|
|
|
|
hash = (37 * hash) + TYPE_FIELD_NUMBER;
|
|
|
|
hash = (53 * hash) + getType();
|
|
|
|
}
|
|
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
|
|
memoizedHashCode = hash;
|
|
|
|
return hash;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol parseFrom(
|
|
|
|
java.nio.ByteBuffer data)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol parseFrom(
|
|
|
|
java.nio.ByteBuffer data,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol parseFrom(
|
|
|
|
com.google.protobuf.ByteString data)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol parseFrom(
|
|
|
|
com.google.protobuf.ByteString data,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(byte[] data)
|
|
|
|
public static CIMReqProtocol parseFrom(byte[] data)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol parseFrom(
|
|
|
|
byte[] data,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(java.io.InputStream input)
|
|
|
|
public static CIMReqProtocol parseFrom(java.io.InputStream input)
|
|
|
|
throws java.io.IOException {
|
|
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
|
|
.parseWithIOException(PARSER, input);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol 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 RequestProtocol parseDelimitedFrom(java.io.InputStream input)
|
|
|
|
public static CIMReqProtocol parseDelimitedFrom(java.io.InputStream input)
|
|
|
|
throws java.io.IOException {
|
|
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseDelimitedFrom(
|
|
|
|
public static CIMReqProtocol 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 RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol parseFrom(
|
|
|
|
com.google.protobuf.CodedInputStream input)
|
|
|
|
throws java.io.IOException {
|
|
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
|
|
.parseWithIOException(PARSER, input);
|
|
|
|
}
|
|
|
|
public static RequestProtocol parseFrom(
|
|
|
|
public static CIMReqProtocol parseFrom(
|
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws java.io.IOException {
|
|
...
|
...
|
@@ -347,7 +398,7 @@ public final class BaseRequestProto { |
|
|
|
public static Builder newBuilder() {
|
|
|
|
return DEFAULT_INSTANCE.toBuilder();
|
|
|
|
}
|
|
|
|
public static Builder newBuilder(RequestProtocol prototype) {
|
|
|
|
public static Builder newBuilder(CIMReqProtocol prototype) {
|
|
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
|
|
}
|
|
|
|
public Builder toBuilder() {
|
|
...
|
...
|
@@ -362,25 +413,25 @@ public final class BaseRequestProto { |
|
|
|
return builder;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Protobuf type {@code protocol.RequestProtocol}
|
|
|
|
* Protobuf type {@code protocol.CIMReqProtocol}
|
|
|
|
*/
|
|
|
|
public static final class Builder extends
|
|
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
|
|
// @@protoc_insertion_point(builder_implements:protocol.RequestProtocol)
|
|
|
|
RequestProtocolOrBuilder {
|
|
|
|
// @@protoc_insertion_point(builder_implements:protocol.CIMReqProtocol)
|
|
|
|
CIMReqProtocolOrBuilder {
|
|
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
getDescriptor() {
|
|
|
|
return BaseRequestProto.internal_static_protocol_RequestProtocol_descriptor;
|
|
|
|
return CIMRequestProto.internal_static_protocol_CIMReqProtocol_descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected FieldAccessorTable
|
|
|
|
internalGetFieldAccessorTable() {
|
|
|
|
return BaseRequestProto.internal_static_protocol_RequestProtocol_fieldAccessorTable
|
|
|
|
return CIMRequestProto.internal_static_protocol_CIMReqProtocol_fieldAccessorTable
|
|
|
|
.ensureFieldAccessorsInitialized(
|
|
|
|
RequestProtocol.class, Builder.class);
|
|
|
|
CIMReqProtocol.class, Builder.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Construct using com.crossoverjie.netty.action.protocol.BaseRequestProto.RequestProtocol.newBuilder()
|
|
|
|
// Construct using com.crossoverjie.cim.common.protocol.CIMRequestProto.CIMReqProtocol.newBuilder()
|
|
|
|
private Builder() {
|
|
|
|
maybeForceBuilderInitialization();
|
|
|
|
}
|
|
...
|
...
|
@@ -397,32 +448,34 @@ public final class BaseRequestProto { |
|
|
|
}
|
|
|
|
public Builder clear() {
|
|
|
|
super.clear();
|
|
|
|
requestId_ = 0;
|
|
|
|
requestId_ = 0L;
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
|
reqMsg_ = "";
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
|
|
type_ = 0;
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
|
|
getDescriptorForType() {
|
|
|
|
return BaseRequestProto.internal_static_protocol_RequestProtocol_descriptor;
|
|
|
|
return CIMRequestProto.internal_static_protocol_CIMReqProtocol_descriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
public RequestProtocol getDefaultInstanceForType() {
|
|
|
|
return RequestProtocol.getDefaultInstance();
|
|
|
|
public CIMReqProtocol getDefaultInstanceForType() {
|
|
|
|
return CIMReqProtocol.getDefaultInstance();
|
|
|
|
}
|
|
|
|
|
|
|
|
public RequestProtocol build() {
|
|
|
|
RequestProtocol result = buildPartial();
|
|
|
|
public CIMReqProtocol build() {
|
|
|
|
CIMReqProtocol result = buildPartial();
|
|
|
|
if (!result.isInitialized()) {
|
|
|
|
throw newUninitializedMessageException(result);
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
public RequestProtocol buildPartial() {
|
|
|
|
RequestProtocol result = new RequestProtocol(this);
|
|
|
|
public CIMReqProtocol buildPartial() {
|
|
|
|
CIMReqProtocol result = new CIMReqProtocol(this);
|
|
|
|
int from_bitField0_ = bitField0_;
|
|
|
|
int to_bitField0_ = 0;
|
|
|
|
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
|
...
|
...
|
@@ -433,6 +486,10 @@ public final class BaseRequestProto { |
|
|
|
to_bitField0_ |= 0x00000002;
|
|
|
|
}
|
|
|
|
result.reqMsg_ = reqMsg_;
|
|
|
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
|
|
|
to_bitField0_ |= 0x00000004;
|
|
|
|
}
|
|
|
|
result.type_ = type_;
|
|
|
|
result.bitField0_ = to_bitField0_;
|
|
|
|
onBuilt();
|
|
|
|
return result;
|
|
...
|
...
|
@@ -465,16 +522,16 @@ public final class BaseRequestProto { |
|
|
|
return (Builder) super.addRepeatedField(field, value);
|
|
|
|
}
|
|
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
|
|
if (other instanceof RequestProtocol) {
|
|
|
|
return mergeFrom((RequestProtocol)other);
|
|
|
|
if (other instanceof CIMReqProtocol) {
|
|
|
|
return mergeFrom((CIMReqProtocol)other);
|
|
|
|
} else {
|
|
|
|
super.mergeFrom(other);
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public Builder mergeFrom(RequestProtocol other) {
|
|
|
|
if (other == RequestProtocol.getDefaultInstance()) return this;
|
|
|
|
public Builder mergeFrom(CIMReqProtocol other) {
|
|
|
|
if (other == CIMReqProtocol.getDefaultInstance()) return this;
|
|
|
|
if (other.hasRequestId()) {
|
|
|
|
setRequestId(other.getRequestId());
|
|
|
|
}
|
|
...
|
...
|
@@ -483,6 +540,9 @@ public final class BaseRequestProto { |
|
|
|
reqMsg_ = other.reqMsg_;
|
|
|
|
onChanged();
|
|
|
|
}
|
|
|
|
if (other.hasType()) {
|
|
|
|
setType(other.getType());
|
|
|
|
}
|
|
|
|
this.mergeUnknownFields(other.unknownFields);
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
...
|
...
|
@@ -495,6 +555,9 @@ public final class BaseRequestProto { |
|
|
|
if (!hasReqMsg()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (!hasType()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -502,11 +565,11 @@ public final class BaseRequestProto { |
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws java.io.IOException {
|
|
|
|
RequestProtocol parsedMessage = null;
|
|
|
|
CIMReqProtocol parsedMessage = null;
|
|
|
|
try {
|
|
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
|
|
parsedMessage = (RequestProtocol) e.getUnfinishedMessage();
|
|
|
|
parsedMessage = (CIMReqProtocol) e.getUnfinishedMessage();
|
|
|
|
throw e.unwrapIOException();
|
|
|
|
} finally {
|
|
|
|
if (parsedMessage != null) {
|
|
...
|
...
|
@@ -517,34 +580,34 @@ public final class BaseRequestProto { |
|
|
|
}
|
|
|
|
private int bitField0_;
|
|
|
|
|
|
|
|
private int requestId_ ;
|
|
|
|
private long requestId_ ;
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasRequestId() {
|
|
|
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
public int getRequestId() {
|
|
|
|
public long getRequestId() {
|
|
|
|
return requestId_;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
public Builder setRequestId(int value) {
|
|
|
|
public Builder setRequestId(long value) {
|
|
|
|
bitField0_ |= 0x00000001;
|
|
|
|
requestId_ = value;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 requestId = 2;</code>
|
|
|
|
* <code>required int64 requestId = 2;</code>
|
|
|
|
*/
|
|
|
|
public Builder clearRequestId() {
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000001);
|
|
|
|
requestId_ = 0;
|
|
|
|
requestId_ = 0L;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
...
|
...
|
@@ -624,6 +687,38 @@ public final class BaseRequestProto { |
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
private int type_ ;
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
public boolean hasType() {
|
|
|
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
public int getType() {
|
|
|
|
return type_;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
public Builder setType(int value) {
|
|
|
|
bitField0_ |= 0x00000004;
|
|
|
|
type_ = value;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* <code>required int32 type = 3;</code>
|
|
|
|
*/
|
|
|
|
public Builder clearType() {
|
|
|
|
bitField0_ = (bitField0_ & ~0x00000004);
|
|
|
|
type_ = 0;
|
|
|
|
onChanged();
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
public final Builder setUnknownFields(
|
|
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
|
|
return super.setUnknownFields(unknownFields);
|
|
...
|
...
|
@@ -635,49 +730,49 @@ public final class BaseRequestProto { |
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:protocol.RequestProtocol)
|
|
|
|
// @@protoc_insertion_point(builder_scope:protocol.CIMReqProtocol)
|
|
|
|
}
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:protocol.RequestProtocol)
|
|
|
|
private static final RequestProtocol DEFAULT_INSTANCE;
|
|
|
|
// @@protoc_insertion_point(class_scope:protocol.CIMReqProtocol)
|
|
|
|
private static final CIMReqProtocol DEFAULT_INSTANCE;
|
|
|
|
static {
|
|
|
|
DEFAULT_INSTANCE = new RequestProtocol();
|
|
|
|
DEFAULT_INSTANCE = new CIMReqProtocol();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static RequestProtocol getDefaultInstance() {
|
|
|
|
public static CIMReqProtocol getDefaultInstance() {
|
|
|
|
return DEFAULT_INSTANCE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated public static final com.google.protobuf.Parser<RequestProtocol>
|
|
|
|
PARSER = new com.google.protobuf.AbstractParser<RequestProtocol>() {
|
|
|
|
public RequestProtocol parsePartialFrom(
|
|
|
|
@Deprecated public static final com.google.protobuf.Parser<CIMReqProtocol>
|
|
|
|
PARSER = new com.google.protobuf.AbstractParser<CIMReqProtocol>() {
|
|
|
|
public CIMReqProtocol parsePartialFrom(
|
|
|
|
com.google.protobuf.CodedInputStream input,
|
|
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
|
|
return new RequestProtocol(input, extensionRegistry);
|
|
|
|
return new CIMReqProtocol(input, extensionRegistry);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
public static com.google.protobuf.Parser<RequestProtocol> parser() {
|
|
|
|
public static com.google.protobuf.Parser<CIMReqProtocol> parser() {
|
|
|
|
return PARSER;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public com.google.protobuf.Parser<RequestProtocol> getParserForType() {
|
|
|
|
public com.google.protobuf.Parser<CIMReqProtocol> getParserForType() {
|
|
|
|
return PARSER;
|
|
|
|
}
|
|
|
|
|
|
|
|
public RequestProtocol getDefaultInstanceForType() {
|
|
|
|
public CIMReqProtocol getDefaultInstanceForType() {
|
|
|
|
return DEFAULT_INSTANCE;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
|
|
internal_static_protocol_RequestProtocol_descriptor;
|
|
|
|
internal_static_protocol_CIMReqProtocol_descriptor;
|
|
|
|
private static final
|
|
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
|
|
internal_static_protocol_RequestProtocol_fieldAccessorTable;
|
|
|
|
internal_static_protocol_CIMReqProtocol_fieldAccessorTable;
|
|
|
|
|
|
|
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
|
|
|
getDescriptor() {
|
|
...
|
...
|
@@ -687,10 +782,10 @@ public final class BaseRequestProto { |
|
|
|
descriptor;
|
|
|
|
static {
|
|
|
|
String[] descriptorData = {
|
|
|
|
"\n\026BaseRequestProto.proto\022\010protocol\"4\n\017Re" +
|
|
|
|
"questProtocol\022\021\n\trequestId\030\002 \002(\005\022\016\n\006reqM" +
|
|
|
|
"sg\030\001 \002(\tB:\n&com.crossoverjie.netty.actio" +
|
|
|
|
"n.protocolB\020BaseRequestProto"
|
|
|
|
"\n\026BaseRequestProto.proto\022\010protocol\"A\n\016CI" +
|
|
|
|
"MReqProtocol\022\021\n\trequestId\030\002 \002(\003\022\016\n\006reqMs" +
|
|
|
|
"g\030\001 \002(\t\022\014\n\004type\030\003 \002(\005B7\n$com.crossoverji" +
|
|
|
|
"e.cim.common.protocolB\017CIMRequestProto"
|
|
|
|
};
|
|
|
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
|
|
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
|
...
|
...
|
@@ -704,12 +799,12 @@ public final class BaseRequestProto { |
|
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
|
|
}, assigner);
|
|
|
|
internal_static_protocol_RequestProtocol_descriptor =
|
|
|
|
internal_static_protocol_CIMReqProtocol_descriptor =
|
|
|
|
getDescriptor().getMessageTypes().get(0);
|
|
|
|
internal_static_protocol_RequestProtocol_fieldAccessorTable = new
|
|
|
|
internal_static_protocol_CIMReqProtocol_fieldAccessorTable = new
|
|
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
|
|
internal_static_protocol_RequestProtocol_descriptor,
|
|
|
|
new String[] { "RequestId", "ReqMsg", });
|
|
|
|
internal_static_protocol_CIMReqProtocol_descriptor,
|
|
|
|
new String[] { "RequestId", "ReqMsg", "Type", });
|
|
|
|
}
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
...
|
...
|
|