string code = 1;
- */
- java.lang.String getCode();
- /**
- * string code = 1;
- */
- com.google.protobuf.ByteString
- getCodeBytes();
-
- /**
- * string data = 2;
- */
- java.lang.String getData();
- /**
- * string data = 2;
- */
- com.google.protobuf.ByteString
- getDataBytes();
-
- /**
- * string info = 3;
- */
- java.lang.String getInfo();
- /**
- * string info = 3;
- */
- com.google.protobuf.ByteString
- getInfoBytes();
- }
- /**
- * Protobuf type {@code com.miti99.caro.common.entity.ClientTransferDataProtoc}
- */
- public static final class ClientTransferDataProtoc extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.miti99.caro.common.entity.ClientTransferDataProtoc)
- ClientTransferDataProtocOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ClientTransferDataProtoc.newBuilder() to construct.
- private ClientTransferDataProtoc(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private ClientTransferDataProtoc() {
- code_ = "";
- data_ = "";
- info_ = "";
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ClientTransferDataProtoc(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- code_ = s;
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- data_ = s;
- break;
- }
- case 26: {
- java.lang.String s = input.readStringRequireUtf8();
-
- info_ = s;
- break;
- }
- default: {
- if (!parseUnknownFieldProto3(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- 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 com.miti99.caro.common.entity.ClientTransferData.internal_static_org_nico_ratel_landlords_entity_ClientTransferDataProtoc_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.miti99.caro.common.entity.ClientTransferData.internal_static_org_nico_ratel_landlords_entity_ClientTransferDataProtoc_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc.class, com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc.Builder.class);
- }
-
- public static final int CODE_FIELD_NUMBER = 1;
- private volatile java.lang.Object code_;
- /**
- * string code = 1;
- */
- public java.lang.String getCode() {
- java.lang.Object ref = code_;
- 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();
- code_ = s;
- return s;
- }
- }
- /**
- * string code = 1;
- */
- public com.google.protobuf.ByteString
- getCodeBytes() {
- java.lang.Object ref = code_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- code_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DATA_FIELD_NUMBER = 2;
- private volatile java.lang.Object data_;
- /**
- * string data = 2;
- */
- public java.lang.String getData() {
- java.lang.Object ref = data_;
- 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();
- data_ = s;
- return s;
- }
- }
- /**
- * string data = 2;
- */
- public com.google.protobuf.ByteString
- getDataBytes() {
- java.lang.Object ref = data_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- data_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int INFO_FIELD_NUMBER = 3;
- private volatile java.lang.Object info_;
- /**
- * string info = 3;
- */
- public java.lang.String getInfo() {
- java.lang.Object ref = info_;
- 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();
- info_ = s;
- return s;
- }
- }
- /**
- * string info = 3;
- */
- public com.google.protobuf.ByteString
- getInfoBytes() {
- java.lang.Object ref = info_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- info_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getCodeBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
- }
- if (!getDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_);
- }
- if (!getInfoBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, info_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getCodeBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
- }
- if (!getDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_);
- }
- if (!getInfoBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, info_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc)) {
- return super.equals(obj);
- }
- com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc other = (com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc) obj;
-
- boolean result = true;
- result = result && getCode()
- .equals(other.getCode());
- result = result && getData()
- .equals(other.getData());
- result = result && getInfo()
- .equals(other.getInfo());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + CODE_FIELD_NUMBER;
- hash = (53 * hash) + getCode().hashCode();
- hash = (37 * hash) + DATA_FIELD_NUMBER;
- hash = (53 * hash) + getData().hashCode();
- hash = (37 * hash) + INFO_FIELD_NUMBER;
- hash = (53 * hash) + getInfo().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc 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.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc 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.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- 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 com.miti99.caro.common.entity.ClientTransferDataProtoc}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderstring code = 1;
- */
- public java.lang.String getCode() {
- java.lang.Object ref = code_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- code_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string code = 1;
- */
- public com.google.protobuf.ByteString
- getCodeBytes() {
- java.lang.Object ref = code_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- code_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string code = 1;
- */
- public Builder setCode(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- code_ = value;
- onChanged();
- return this;
- }
- /**
- * string code = 1;
- */
- public Builder clearCode() {
-
- code_ = getDefaultInstance().getCode();
- onChanged();
- return this;
- }
- /**
- * string code = 1;
- */
- public Builder setCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- code_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object data_ = "";
- /**
- * string data = 2;
- */
- public java.lang.String getData() {
- java.lang.Object ref = data_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- data_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string data = 2;
- */
- public com.google.protobuf.ByteString
- getDataBytes() {
- java.lang.Object ref = data_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- data_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string data = 2;
- */
- public Builder setData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- data_ = value;
- onChanged();
- return this;
- }
- /**
- * string data = 2;
- */
- public Builder clearData() {
-
- data_ = getDefaultInstance().getData();
- onChanged();
- return this;
- }
- /**
- * string data = 2;
- */
- public Builder setDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- data_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object info_ = "";
- /**
- * string info = 3;
- */
- public java.lang.String getInfo() {
- java.lang.Object ref = info_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- info_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string info = 3;
- */
- public com.google.protobuf.ByteString
- getInfoBytes() {
- java.lang.Object ref = info_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- info_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string info = 3;
- */
- public Builder setInfo(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- info_ = value;
- onChanged();
- return this;
- }
- /**
- * string info = 3;
- */
- public Builder clearInfo() {
-
- info_ = getDefaultInstance().getInfo();
- onChanged();
- return this;
- }
- /**
- * string info = 3;
- */
- public Builder setInfoBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- info_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:com.miti99.caro.common.entity.ClientTransferDataProtoc)
- }
-
- // @@protoc_insertion_point(class_scope:com.miti99.caro.common.entity.ClientTransferDataProtoc)
- private static final com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc();
- }
-
- public static com.miti99.caro.common.entity.ClientTransferData.ClientTransferDataProtoc getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserstring code = 1;
- */
- java.lang.String getCode();
-
- /**
- * string code = 1;
- */
- com.google.protobuf.ByteString
- getCodeBytes();
-
- /**
- * string data = 2;
- */
- java.lang.String getData();
-
- /**
- * string data = 2;
- */
- com.google.protobuf.ByteString
- getDataBytes();
-
- /**
- * string info = 3;
- */
- java.lang.String getInfo();
-
- /**
- * string info = 3;
- */
- com.google.protobuf.ByteString
- getInfoBytes();
- }
-
- /**
- * Protobuf type {@code com.miti99.caro.common.entity.ServerTransferDataProtoc}
- */
- public static final class ServerTransferDataProtoc extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.miti99.caro.common.entity.ServerTransferDataProtoc)
- ServerTransferDataProtocOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use ServerTransferDataProtoc.newBuilder() to construct.
- private ServerTransferDataProtoc(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private ServerTransferDataProtoc() {
- code_ = "";
- data_ = "";
- info_ = "";
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
-
- private ServerTransferDataProtoc(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- code_ = s;
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- data_ = s;
- break;
- }
- case 26: {
- java.lang.String s = input.readStringRequireUtf8();
-
- info_ = s;
- break;
- }
- default: {
- if (!parseUnknownFieldProto3(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- 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 com.miti99.caro.common.entity.ServerTransferData.internal_static_org_nico_ratel_landlords_entity_ServerTransferDataProtoc_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.miti99.caro.common.entity.ServerTransferData.internal_static_org_nico_ratel_landlords_entity_ServerTransferDataProtoc_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc.class, com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc.Builder.class);
- }
-
- public static final int CODE_FIELD_NUMBER = 1;
- private volatile java.lang.Object code_;
-
- /**
- * string code = 1;
- */
- public java.lang.String getCode() {
- java.lang.Object ref = code_;
- 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();
- code_ = s;
- return s;
- }
- }
-
- /**
- * string code = 1;
- */
- public com.google.protobuf.ByteString
- getCodeBytes() {
- java.lang.Object ref = code_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- code_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DATA_FIELD_NUMBER = 2;
- private volatile java.lang.Object data_;
-
- /**
- * string data = 2;
- */
- public java.lang.String getData() {
- java.lang.Object ref = data_;
- 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();
- data_ = s;
- return s;
- }
- }
-
- /**
- * string data = 2;
- */
- public com.google.protobuf.ByteString
- getDataBytes() {
- java.lang.Object ref = data_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- data_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int INFO_FIELD_NUMBER = 3;
- private volatile java.lang.Object info_;
-
- /**
- * string info = 3;
- */
- public java.lang.String getInfo() {
- java.lang.Object ref = info_;
- 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();
- info_ = s;
- return s;
- }
- }
-
- /**
- * string info = 3;
- */
- public com.google.protobuf.ByteString
- getInfoBytes() {
- java.lang.Object ref = info_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- info_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getCodeBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
- }
- if (!getDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_);
- }
- if (!getInfoBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, info_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getCodeBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
- }
- if (!getDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_);
- }
- if (!getInfoBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, info_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc)) {
- return super.equals(obj);
- }
- com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc other = (com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc) obj;
-
- boolean result = true;
- result = result && getCode()
- .equals(other.getCode());
- result = result && getData()
- .equals(other.getData());
- result = result && getInfo()
- .equals(other.getInfo());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + CODE_FIELD_NUMBER;
- hash = (53 * hash) + getCode().hashCode();
- hash = (37 * hash) + DATA_FIELD_NUMBER;
- hash = (53 * hash) + getData().hashCode();
- hash = (37 * hash) + INFO_FIELD_NUMBER;
- hash = (53 * hash) + getInfo().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc 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.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc 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.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- 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 com.miti99.caro.common.entity.ServerTransferDataProtoc}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderstring code = 1;
- */
- public java.lang.String getCode() {
- java.lang.Object ref = code_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- code_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * string code = 1;
- */
- public com.google.protobuf.ByteString
- getCodeBytes() {
- java.lang.Object ref = code_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- code_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * string code = 1;
- */
- public Builder setCode(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- code_ = value;
- onChanged();
- return this;
- }
-
- /**
- * string code = 1;
- */
- public Builder clearCode() {
-
- code_ = getDefaultInstance().getCode();
- onChanged();
- return this;
- }
-
- /**
- * string code = 1;
- */
- public Builder setCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- code_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object data_ = "";
-
- /**
- * string data = 2;
- */
- public java.lang.String getData() {
- java.lang.Object ref = data_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- data_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * string data = 2;
- */
- public com.google.protobuf.ByteString
- getDataBytes() {
- java.lang.Object ref = data_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- data_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * string data = 2;
- */
- public Builder setData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- data_ = value;
- onChanged();
- return this;
- }
-
- /**
- * string data = 2;
- */
- public Builder clearData() {
-
- data_ = getDefaultInstance().getData();
- onChanged();
- return this;
- }
-
- /**
- * string data = 2;
- */
- public Builder setDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- data_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object info_ = "";
-
- /**
- * string info = 3;
- */
- public java.lang.String getInfo() {
- java.lang.Object ref = info_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- info_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * string info = 3;
- */
- public com.google.protobuf.ByteString
- getInfoBytes() {
- java.lang.Object ref = info_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- info_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * string info = 3;
- */
- public Builder setInfo(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- info_ = value;
- onChanged();
- return this;
- }
-
- /**
- * string info = 3;
- */
- public Builder clearInfo() {
-
- info_ = getDefaultInstance().getInfo();
- onChanged();
- return this;
- }
-
- /**
- * string info = 3;
- */
- public Builder setInfoBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- info_ = value;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:com.miti99.caro.common.entity.ServerTransferDataProtoc)
- }
-
- // @@protoc_insertion_point(class_scope:com.miti99.caro.common.entity.ServerTransferDataProtoc)
- private static final com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc();
- }
-
- public static com.miti99.caro.common.entity.ServerTransferData.ServerTransferDataProtoc getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.ParserPhase 02a: only {@code HeartbeatRequestRecord} has a real no-op implementation;
+ * every other case throws {@link UnsupportedOperationException} pending Phase 02b.
+ */
+public final class RequestDispatcher {
+
+ private RequestDispatcher() {
+ }
+
+ public static void dispatch(ClientSide client, ClientRequest req) {
+ switch (req) {
+ case HeartbeatRequestRecord r -> {
+ /* no-op: heartbeat just refreshes IdleStateHandler */
+ }
+ case SetNicknameRequestRecord r -> throw todo("set_nickname");
+ case SetClientInfoRequestRecord r -> throw todo("set_client_info");
+ case CreateRoomRequestRecord r -> throw todo("create_room");
+ case CreatePveRoomRequestRecord r -> throw todo("create_pve_room");
+ case GetRoomsRequestRecord r -> throw todo("get_rooms");
+ case JoinRoomRequestRecord r -> throw todo("join_room");
+ case GameStartingRequestRecord r -> throw todo("game_starting");
+ case GameReadyRequestRecord r -> throw todo("game_ready");
+ case GameMoveRequestRecord r -> throw todo("game_move");
+ case GameResetRequestRecord r -> throw todo("game_reset");
+ case WatchGameRequestRecord r -> throw todo("watch_game");
+ case WatchGameExitRequestRecord r -> throw todo("watch_game_exit");
+ case ClientExitRequestRecord r -> throw todo("client_exit");
+ }
+ }
+
+ private static UnsupportedOperationException todo(String name) {
+ return new UnsupportedOperationException("TODO phase 02b: " + name);
+ }
+}
diff --git a/server/src/main/java/com/miti99/caro/server/event/ServerEventListener.java b/server/src/main/java/com/miti99/caro/server/event/ServerEventListener.java
deleted file mode 100644
index feb2270..0000000
--- a/server/src/main/java/com/miti99/caro/server/event/ServerEventListener.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.miti99.caro.server.event;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.HashMap;
-import java.util.Map;
-
-import com.miti99.caro.common.entity.ClientSide;
-import com.miti99.caro.common.enums.ServerEventCode;
-
-public interface ServerEventListener {
-
- void call(ClientSide client, String data);
-
- Map