diff --git a/src/main/java/net/iGap/proto/ProtoCallInfo.java b/src/main/java/net/iGap/proto/ProtoCallInfo.java new file mode 100644 index 0000000..926fe80 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoCallInfo.java @@ -0,0 +1,1799 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CallInfo.proto + +package net.iGap.proto; + +public final class ProtoCallInfo { + private ProtoCallInfo() {} + 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 CallInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.CallInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional int64 call_id = 2; + */ + long getCallId(); + } + /** + * Protobuf type {@code proto.CallInfo} + */ + public static final class CallInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.CallInfo) + CallInfoOrBuilder { + // Use CallInfo.newBuilder() to construct. + private CallInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CallInfo() { + callId_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CallInfo( + 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: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + callId_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfo.class, net.iGap.proto.ProtoCallInfo.CallInfo.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int CALL_ID_FIELD_NUMBER = 2; + private long callId_; + /** + * optional int64 call_id = 2; + */ + public long getCallId() { + return callId_; + } + + 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (callId_ != 0L) { + output.writeInt64(2, callId_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (callId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, callId_); + } + 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 net.iGap.proto.ProtoCallInfo.CallInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallInfo.CallInfo other = (net.iGap.proto.ProtoCallInfo.CallInfo) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && (getCallId() + == other.getCallId()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + CALL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCallId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo 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 net.iGap.proto.ProtoCallInfo.CallInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo 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 net.iGap.proto.ProtoCallInfo.CallInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallInfo.CallInfo 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(net.iGap.proto.ProtoCallInfo.CallInfo 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 proto.CallInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.CallInfo) + net.iGap.proto.ProtoCallInfo.CallInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfo.class, net.iGap.proto.ProtoCallInfo.CallInfo.Builder.class); + } + + // Construct using net.iGap.proto.ProtoCallInfo.CallInfo.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(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + callId_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfo_descriptor; + } + + public net.iGap.proto.ProtoCallInfo.CallInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallInfo.CallInfo.getDefaultInstance(); + } + + public net.iGap.proto.ProtoCallInfo.CallInfo build() { + net.iGap.proto.ProtoCallInfo.CallInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoCallInfo.CallInfo buildPartial() { + net.iGap.proto.ProtoCallInfo.CallInfo result = new net.iGap.proto.ProtoCallInfo.CallInfo(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.callId_ = callId_; + 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 net.iGap.proto.ProtoCallInfo.CallInfo) { + return mergeFrom((net.iGap.proto.ProtoCallInfo.CallInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoCallInfo.CallInfo other) { + if (other == net.iGap.proto.ProtoCallInfo.CallInfo.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getCallId() != 0L) { + setCallId(other.getCallId()); + } + 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 { + net.iGap.proto.ProtoCallInfo.CallInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallInfo.CallInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private long callId_ ; + /** + * optional int64 call_id = 2; + */ + public long getCallId() { + return callId_; + } + /** + * optional int64 call_id = 2; + */ + public Builder setCallId(long value) { + + callId_ = value; + onChanged(); + return this; + } + /** + * optional int64 call_id = 2; + */ + public Builder clearCallId() { + + callId_ = 0L; + 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:proto.CallInfo) + } + + // @@protoc_insertion_point(class_scope:proto.CallInfo) + private static final net.iGap.proto.ProtoCallInfo.CallInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallInfo.CallInfo(); + } + + public static net.iGap.proto.ProtoCallInfo.CallInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CallInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoCallInfo.CallInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CallInfoResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.CallInfoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * optional int64 create_at = 2; + */ + long getCreateAt(); + + /** + * optional int64 call_id = 3; + */ + long getCallId(); + + /** + * optional int64 phone_number = 4; + */ + long getPhoneNumber(); + + /** + * optional uint32 duration = 5; + */ + int getDuration(); + + /** + * optional uint32 price = 6; + */ + int getPrice(); + + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + int getFinalStateValue(); + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum getFinalState(); + } + /** + * Protobuf type {@code proto.CallInfoResponse} + */ + public static final class CallInfoResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.CallInfoResponse) + CallInfoResponseOrBuilder { + // Use CallInfoResponse.newBuilder() to construct. + private CallInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CallInfoResponse() { + createAt_ = 0L; + callId_ = 0L; + phoneNumber_ = 0L; + duration_ = 0; + price_ = 0; + finalState_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CallInfoResponse( + 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: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + createAt_ = input.readInt64(); + break; + } + case 24: { + + callId_ = input.readInt64(); + break; + } + case 32: { + + phoneNumber_ = input.readInt64(); + break; + } + case 40: { + + duration_ = input.readUInt32(); + break; + } + case 48: { + + price_ = input.readUInt32(); + break; + } + case 56: { + int rawValue = input.readEnum(); + + finalState_ = rawValue; + 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 net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfoResponse.class, net.iGap.proto.ProtoCallInfo.CallInfoResponse.Builder.class); + } + + /** + * Protobuf enum {@code proto.CallInfoResponse.FinalStateEnum} + */ + public enum FinalStateEnum + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * DONE = 1; + */ + DONE(1), + /** + * BUSY = 2; + */ + BUSY(2), + /** + * ROUTE_ERROR = 3; + */ + ROUTE_ERROR(3), + /** + * REJECT = 4; + */ + REJECT(4), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * DONE = 1; + */ + public static final int DONE_VALUE = 1; + /** + * BUSY = 2; + */ + public static final int BUSY_VALUE = 2; + /** + * ROUTE_ERROR = 3; + */ + public static final int ROUTE_ERROR_VALUE = 3; + /** + * REJECT = 4; + */ + public static final int REJECT_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FinalStateEnum valueOf(int value) { + return forNumber(value); + } + + public static FinalStateEnum forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return DONE; + case 2: return BUSY; + case 3: return ROUTE_ERROR; + case 4: return REJECT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FinalStateEnum> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FinalStateEnum findValueByNumber(int number) { + return FinalStateEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.CallInfoResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final FinalStateEnum[] VALUES = values(); + + public static FinalStateEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FinalStateEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.CallInfoResponse.FinalStateEnum) + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int CREATE_AT_FIELD_NUMBER = 2; + private long createAt_; + /** + * optional int64 create_at = 2; + */ + public long getCreateAt() { + return createAt_; + } + + public static final int CALL_ID_FIELD_NUMBER = 3; + private long callId_; + /** + * optional int64 call_id = 3; + */ + public long getCallId() { + return callId_; + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 4; + private long phoneNumber_; + /** + * optional int64 phone_number = 4; + */ + public long getPhoneNumber() { + return phoneNumber_; + } + + public static final int DURATION_FIELD_NUMBER = 5; + private int duration_; + /** + * optional uint32 duration = 5; + */ + public int getDuration() { + return duration_; + } + + public static final int PRICE_FIELD_NUMBER = 6; + private int price_; + /** + * optional uint32 price = 6; + */ + public int getPrice() { + return price_; + } + + public static final int FINALSTATE_FIELD_NUMBER = 7; + private int finalState_; + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + public int getFinalStateValue() { + return finalState_; + } + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + public net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum getFinalState() { + net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum result = net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.valueOf(finalState_); + return result == null ? net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.UNRECOGNIZED : result; + } + + 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (createAt_ != 0L) { + output.writeInt64(2, createAt_); + } + if (callId_ != 0L) { + output.writeInt64(3, callId_); + } + if (phoneNumber_ != 0L) { + output.writeInt64(4, phoneNumber_); + } + if (duration_ != 0) { + output.writeUInt32(5, duration_); + } + if (price_ != 0) { + output.writeUInt32(6, price_); + } + if (finalState_ != net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.UNKNOWN.getNumber()) { + output.writeEnum(7, finalState_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + if (createAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, createAt_); + } + if (callId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, callId_); + } + if (phoneNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, phoneNumber_); + } + if (duration_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, duration_); + } + if (price_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, price_); + } + if (finalState_ != net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, finalState_); + } + 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 net.iGap.proto.ProtoCallInfo.CallInfoResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallInfo.CallInfoResponse other = (net.iGap.proto.ProtoCallInfo.CallInfoResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && (getCreateAt() + == other.getCreateAt()); + result = result && (getCallId() + == other.getCallId()); + result = result && (getPhoneNumber() + == other.getPhoneNumber()); + result = result && (getDuration() + == other.getDuration()); + result = result && (getPrice() + == other.getPrice()); + result = result && finalState_ == other.finalState_; + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CREATE_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreateAt()); + hash = (37 * hash) + CALL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCallId()); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhoneNumber()); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice(); + hash = (37 * hash) + FINALSTATE_FIELD_NUMBER; + hash = (53 * hash) + finalState_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse 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 net.iGap.proto.ProtoCallInfo.CallInfoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse 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 net.iGap.proto.ProtoCallInfo.CallInfoResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse 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(net.iGap.proto.ProtoCallInfo.CallInfoResponse 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 proto.CallInfoResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.CallInfoResponse) + net.iGap.proto.ProtoCallInfo.CallInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallInfo.CallInfoResponse.class, net.iGap.proto.ProtoCallInfo.CallInfoResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoCallInfo.CallInfoResponse.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(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + createAt_ = 0L; + + callId_ = 0L; + + phoneNumber_ = 0L; + + duration_ = 0; + + price_ = 0; + + finalState_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallInfo.internal_static_proto_CallInfoResponse_descriptor; + } + + public net.iGap.proto.ProtoCallInfo.CallInfoResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallInfo.CallInfoResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoCallInfo.CallInfoResponse build() { + net.iGap.proto.ProtoCallInfo.CallInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoCallInfo.CallInfoResponse buildPartial() { + net.iGap.proto.ProtoCallInfo.CallInfoResponse result = new net.iGap.proto.ProtoCallInfo.CallInfoResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.createAt_ = createAt_; + result.callId_ = callId_; + result.phoneNumber_ = phoneNumber_; + result.duration_ = duration_; + result.price_ = price_; + result.finalState_ = finalState_; + 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 net.iGap.proto.ProtoCallInfo.CallInfoResponse) { + return mergeFrom((net.iGap.proto.ProtoCallInfo.CallInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoCallInfo.CallInfoResponse other) { + if (other == net.iGap.proto.ProtoCallInfo.CallInfoResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getCreateAt() != 0L) { + setCreateAt(other.getCreateAt()); + } + if (other.getCallId() != 0L) { + setCallId(other.getCallId()); + } + if (other.getPhoneNumber() != 0L) { + setPhoneNumber(other.getPhoneNumber()); + } + if (other.getDuration() != 0) { + setDuration(other.getDuration()); + } + if (other.getPrice() != 0) { + setPrice(other.getPrice()); + } + if (other.finalState_ != 0) { + setFinalStateValue(other.getFinalStateValue()); + } + 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 { + net.iGap.proto.ProtoCallInfo.CallInfoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallInfo.CallInfoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private long createAt_ ; + /** + * optional int64 create_at = 2; + */ + public long getCreateAt() { + return createAt_; + } + /** + * optional int64 create_at = 2; + */ + public Builder setCreateAt(long value) { + + createAt_ = value; + onChanged(); + return this; + } + /** + * optional int64 create_at = 2; + */ + public Builder clearCreateAt() { + + createAt_ = 0L; + onChanged(); + return this; + } + + private long callId_ ; + /** + * optional int64 call_id = 3; + */ + public long getCallId() { + return callId_; + } + /** + * optional int64 call_id = 3; + */ + public Builder setCallId(long value) { + + callId_ = value; + onChanged(); + return this; + } + /** + * optional int64 call_id = 3; + */ + public Builder clearCallId() { + + callId_ = 0L; + onChanged(); + return this; + } + + private long phoneNumber_ ; + /** + * optional int64 phone_number = 4; + */ + public long getPhoneNumber() { + return phoneNumber_; + } + /** + * optional int64 phone_number = 4; + */ + public Builder setPhoneNumber(long value) { + + phoneNumber_ = value; + onChanged(); + return this; + } + /** + * optional int64 phone_number = 4; + */ + public Builder clearPhoneNumber() { + + phoneNumber_ = 0L; + onChanged(); + return this; + } + + private int duration_ ; + /** + * optional uint32 duration = 5; + */ + public int getDuration() { + return duration_; + } + /** + * optional uint32 duration = 5; + */ + public Builder setDuration(int value) { + + duration_ = value; + onChanged(); + return this; + } + /** + * optional uint32 duration = 5; + */ + public Builder clearDuration() { + + duration_ = 0; + onChanged(); + return this; + } + + private int price_ ; + /** + * optional uint32 price = 6; + */ + public int getPrice() { + return price_; + } + /** + * optional uint32 price = 6; + */ + public Builder setPrice(int value) { + + price_ = value; + onChanged(); + return this; + } + /** + * optional uint32 price = 6; + */ + public Builder clearPrice() { + + price_ = 0; + onChanged(); + return this; + } + + private int finalState_ = 0; + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + public int getFinalStateValue() { + return finalState_; + } + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + public Builder setFinalStateValue(int value) { + finalState_ = value; + onChanged(); + return this; + } + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + public net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum getFinalState() { + net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum result = net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.valueOf(finalState_); + return result == null ? net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum.UNRECOGNIZED : result; + } + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + public Builder setFinalState(net.iGap.proto.ProtoCallInfo.CallInfoResponse.FinalStateEnum value) { + if (value == null) { + throw new NullPointerException(); + } + + finalState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.CallInfoResponse.FinalStateEnum finalState = 7; + */ + public Builder clearFinalState() { + + finalState_ = 0; + 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:proto.CallInfoResponse) + } + + // @@protoc_insertion_point(class_scope:proto.CallInfoResponse) + private static final net.iGap.proto.ProtoCallInfo.CallInfoResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallInfo.CallInfoResponse(); + } + + public static net.iGap.proto.ProtoCallInfo.CallInfoResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CallInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallInfoResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoCallInfo.CallInfoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallInfoResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallInfoResponse_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\016CallInfo.proto\022\005proto\032\rRequest.proto\032\016" + + "Response.proto\"<\n\010CallInfo\022\037\n\007request\030\001 " + + "\001(\0132\016.proto.Request\022\017\n\007call_id\030\002 \001(\003\"\234\002\n" + + "\020CallInfoResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\021\n\tcreate_at\030\002 \001(\003\022\017\n\007call_" + + "id\030\003 \001(\003\022\024\n\014phone_number\030\004 \001(\003\022\020\n\010durati" + + "on\030\005 \001(\r\022\r\n\005price\030\006 \001(\r\022:\n\nfinalState\030\007 " + + "\001(\0162&.proto.CallInfoResponse.FinalStateE" + + "num\"N\n\016FinalStateEnum\022\013\n\007UNKNOWN\020\000\022\010\n\004DO" + + "NE\020\001\022\010\n\004BUSY\020\002\022\017\n\013ROUTE_ERROR\020\003\022\n\n\006REJEC", + "T\020\004B\037\n\016net.iGap.protoB\rProtoCallInfob\006pr" + + "oto3" + }; + 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[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }, assigner); + internal_static_proto_CallInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_CallInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallInfo_descriptor, + new java.lang.String[] { "Request", "CallId", }); + internal_static_proto_CallInfoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_CallInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallInfoResponse_descriptor, + new java.lang.String[] { "Response", "CreateAt", "CallId", "PhoneNumber", "Duration", "Price", "FinalState", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoCallRequest.java b/src/main/java/net/iGap/proto/ProtoCallRequest.java new file mode 100644 index 0000000..674d1a4 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoCallRequest.java @@ -0,0 +1,2403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CallRequest.proto + +package net.iGap.proto; + +public final class ProtoCallRequest { + private ProtoCallRequest() {} + 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 CallRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.CallRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional int64 phone_number = 2; + */ + long getPhoneNumber(); + + /** + * optional double lat = 3; + */ + double getLat(); + + /** + * optional double lon = 4; + */ + double getLon(); + } + /** + * Protobuf type {@code proto.CallRequest} + */ + public static final class CallRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.CallRequest) + CallRequestOrBuilder { + // Use CallRequest.newBuilder() to construct. + private CallRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CallRequest() { + phoneNumber_ = 0L; + lat_ = 0D; + lon_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CallRequest( + 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: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + phoneNumber_ = input.readInt64(); + break; + } + case 25: { + + lat_ = input.readDouble(); + break; + } + case 33: { + + lon_ = input.readDouble(); + 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 net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequest.class, net.iGap.proto.ProtoCallRequest.CallRequest.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 2; + private long phoneNumber_; + /** + * optional int64 phone_number = 2; + */ + public long getPhoneNumber() { + return phoneNumber_; + } + + public static final int LAT_FIELD_NUMBER = 3; + private double lat_; + /** + * optional double lat = 3; + */ + public double getLat() { + return lat_; + } + + public static final int LON_FIELD_NUMBER = 4; + private double lon_; + /** + * optional double lon = 4; + */ + public double getLon() { + return lon_; + } + + 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (phoneNumber_ != 0L) { + output.writeInt64(2, phoneNumber_); + } + if (lat_ != 0D) { + output.writeDouble(3, lat_); + } + if (lon_ != 0D) { + output.writeDouble(4, lon_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (phoneNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, phoneNumber_); + } + if (lat_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, lat_); + } + if (lon_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, lon_); + } + 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 net.iGap.proto.ProtoCallRequest.CallRequest)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallRequest.CallRequest other = (net.iGap.proto.ProtoCallRequest.CallRequest) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && (getPhoneNumber() + == other.getPhoneNumber()); + result = result && ( + java.lang.Double.doubleToLongBits(getLat()) + == java.lang.Double.doubleToLongBits( + other.getLat())); + result = result && ( + java.lang.Double.doubleToLongBits(getLon()) + == java.lang.Double.doubleToLongBits( + other.getLon())); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPhoneNumber()); + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLat())); + hash = (37 * hash) + LON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLon())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest 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 net.iGap.proto.ProtoCallRequest.CallRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest 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 net.iGap.proto.ProtoCallRequest.CallRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallRequest.CallRequest 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(net.iGap.proto.ProtoCallRequest.CallRequest 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 proto.CallRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.CallRequest) + net.iGap.proto.ProtoCallRequest.CallRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequest.class, net.iGap.proto.ProtoCallRequest.CallRequest.Builder.class); + } + + // Construct using net.iGap.proto.ProtoCallRequest.CallRequest.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(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phoneNumber_ = 0L; + + lat_ = 0D; + + lon_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequest_descriptor; + } + + public net.iGap.proto.ProtoCallRequest.CallRequest getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallRequest.CallRequest.getDefaultInstance(); + } + + public net.iGap.proto.ProtoCallRequest.CallRequest build() { + net.iGap.proto.ProtoCallRequest.CallRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoCallRequest.CallRequest buildPartial() { + net.iGap.proto.ProtoCallRequest.CallRequest result = new net.iGap.proto.ProtoCallRequest.CallRequest(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + result.lat_ = lat_; + result.lon_ = lon_; + 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 net.iGap.proto.ProtoCallRequest.CallRequest) { + return mergeFrom((net.iGap.proto.ProtoCallRequest.CallRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoCallRequest.CallRequest other) { + if (other == net.iGap.proto.ProtoCallRequest.CallRequest.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getPhoneNumber() != 0L) { + setPhoneNumber(other.getPhoneNumber()); + } + if (other.getLat() != 0D) { + setLat(other.getLat()); + } + if (other.getLon() != 0D) { + setLon(other.getLon()); + } + 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 { + net.iGap.proto.ProtoCallRequest.CallRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallRequest.CallRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private long phoneNumber_ ; + /** + * optional int64 phone_number = 2; + */ + public long getPhoneNumber() { + return phoneNumber_; + } + /** + * optional int64 phone_number = 2; + */ + public Builder setPhoneNumber(long value) { + + phoneNumber_ = value; + onChanged(); + return this; + } + /** + * optional int64 phone_number = 2; + */ + public Builder clearPhoneNumber() { + + phoneNumber_ = 0L; + onChanged(); + return this; + } + + private double lat_ ; + /** + * optional double lat = 3; + */ + public double getLat() { + return lat_; + } + /** + * optional double lat = 3; + */ + public Builder setLat(double value) { + + lat_ = value; + onChanged(); + return this; + } + /** + * optional double lat = 3; + */ + public Builder clearLat() { + + lat_ = 0D; + onChanged(); + return this; + } + + private double lon_ ; + /** + * optional double lon = 4; + */ + public double getLon() { + return lon_; + } + /** + * optional double lon = 4; + */ + public Builder setLon(double value) { + + lon_ = value; + onChanged(); + return this; + } + /** + * optional double lon = 4; + */ + public Builder clearLon() { + + lon_ = 0D; + 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:proto.CallRequest) + } + + // @@protoc_insertion_point(class_scope:proto.CallRequest) + private static final net.iGap.proto.ProtoCallRequest.CallRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallRequest.CallRequest(); + } + + public static net.iGap.proto.ProtoCallRequest.CallRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CallRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoCallRequest.CallRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CallRequestResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.CallRequestResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * optional int64 created_at = 2; + */ + long getCreatedAt(); + + /** + * optional int64 call_id = 3; + */ + long getCallId(); + + /** + * optional string switch_ip = 4; + */ + java.lang.String getSwitchIp(); + /** + * optional string switch_ip = 4; + */ + com.google.protobuf.ByteString + getSwitchIpBytes(); + + /** + * optional uint32 switch_port = 5; + */ + int getSwitchPort(); + + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + int getSwitchProtocolValue(); + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum getSwitchProtocol(); + + /** + * optional string tvt = 7; + */ + java.lang.String getTvt(); + /** + * optional string tvt = 7; + */ + com.google.protobuf.ByteString + getTvtBytes(); + + /** + * optional double price_per_minute = 8; + */ + double getPricePerMinute(); + + /** + * optional string source_operator = 9; + */ + java.lang.String getSourceOperator(); + /** + * optional string source_operator = 9; + */ + com.google.protobuf.ByteString + getSourceOperatorBytes(); + + /** + * optional string destination_operator = 10; + */ + java.lang.String getDestinationOperator(); + /** + * optional string destination_operator = 10; + */ + com.google.protobuf.ByteString + getDestinationOperatorBytes(); + } + /** + * Protobuf type {@code proto.CallRequestResponse} + */ + public static final class CallRequestResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.CallRequestResponse) + CallRequestResponseOrBuilder { + // Use CallRequestResponse.newBuilder() to construct. + private CallRequestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CallRequestResponse() { + createdAt_ = 0L; + callId_ = 0L; + switchIp_ = ""; + switchPort_ = 0; + switchProtocol_ = 0; + tvt_ = ""; + pricePerMinute_ = 0D; + sourceOperator_ = ""; + destinationOperator_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CallRequestResponse( + 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: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + createdAt_ = input.readInt64(); + break; + } + case 24: { + + callId_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + switchIp_ = s; + break; + } + case 40: { + + switchPort_ = input.readUInt32(); + break; + } + case 48: { + int rawValue = input.readEnum(); + + switchProtocol_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + tvt_ = s; + break; + } + case 65: { + + pricePerMinute_ = input.readDouble(); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceOperator_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + destinationOperator_ = 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 net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequestResponse.class, net.iGap.proto.ProtoCallRequest.CallRequestResponse.Builder.class); + } + + /** + * Protobuf enum {@code proto.CallRequestResponse.SwitchTransportProtocolEnum} + */ + public enum SwitchTransportProtocolEnum + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TCP = 0; + */ + TCP(0), + /** + * UDP = 1; + */ + UDP(1), + /** + * TLS = 2; + */ + TLS(2), + UNRECOGNIZED(-1), + ; + + /** + * TCP = 0; + */ + public static final int TCP_VALUE = 0; + /** + * UDP = 1; + */ + public static final int UDP_VALUE = 1; + /** + * TLS = 2; + */ + public static final int TLS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SwitchTransportProtocolEnum valueOf(int value) { + return forNumber(value); + } + + public static SwitchTransportProtocolEnum forNumber(int value) { + switch (value) { + case 0: return TCP; + case 1: return UDP; + case 2: return TLS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SwitchTransportProtocolEnum> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SwitchTransportProtocolEnum findValueByNumber(int number) { + return SwitchTransportProtocolEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.CallRequestResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final SwitchTransportProtocolEnum[] VALUES = values(); + + public static SwitchTransportProtocolEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SwitchTransportProtocolEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.CallRequestResponse.SwitchTransportProtocolEnum) + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private long createdAt_; + /** + * optional int64 created_at = 2; + */ + public long getCreatedAt() { + return createdAt_; + } + + public static final int CALL_ID_FIELD_NUMBER = 3; + private long callId_; + /** + * optional int64 call_id = 3; + */ + public long getCallId() { + return callId_; + } + + public static final int SWITCH_IP_FIELD_NUMBER = 4; + private volatile java.lang.Object switchIp_; + /** + * optional string switch_ip = 4; + */ + public java.lang.String getSwitchIp() { + java.lang.Object ref = switchIp_; + 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(); + switchIp_ = s; + return s; + } + } + /** + * optional string switch_ip = 4; + */ + public com.google.protobuf.ByteString + getSwitchIpBytes() { + java.lang.Object ref = switchIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + switchIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SWITCH_PORT_FIELD_NUMBER = 5; + private int switchPort_; + /** + * optional uint32 switch_port = 5; + */ + public int getSwitchPort() { + return switchPort_; + } + + public static final int SWITCH_PROTOCOL_FIELD_NUMBER = 6; + private int switchProtocol_; + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + public int getSwitchProtocolValue() { + return switchProtocol_; + } + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + public net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum getSwitchProtocol() { + net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum result = net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.valueOf(switchProtocol_); + return result == null ? net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.UNRECOGNIZED : result; + } + + public static final int TVT_FIELD_NUMBER = 7; + private volatile java.lang.Object tvt_; + /** + * optional string tvt = 7; + */ + public java.lang.String getTvt() { + java.lang.Object ref = tvt_; + 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(); + tvt_ = s; + return s; + } + } + /** + * optional string tvt = 7; + */ + public com.google.protobuf.ByteString + getTvtBytes() { + java.lang.Object ref = tvt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tvt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRICE_PER_MINUTE_FIELD_NUMBER = 8; + private double pricePerMinute_; + /** + * optional double price_per_minute = 8; + */ + public double getPricePerMinute() { + return pricePerMinute_; + } + + public static final int SOURCE_OPERATOR_FIELD_NUMBER = 9; + private volatile java.lang.Object sourceOperator_; + /** + * optional string source_operator = 9; + */ + public java.lang.String getSourceOperator() { + java.lang.Object ref = sourceOperator_; + 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(); + sourceOperator_ = s; + return s; + } + } + /** + * optional string source_operator = 9; + */ + public com.google.protobuf.ByteString + getSourceOperatorBytes() { + java.lang.Object ref = sourceOperator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_OPERATOR_FIELD_NUMBER = 10; + private volatile java.lang.Object destinationOperator_; + /** + * optional string destination_operator = 10; + */ + public java.lang.String getDestinationOperator() { + java.lang.Object ref = destinationOperator_; + 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(); + destinationOperator_ = s; + return s; + } + } + /** + * optional string destination_operator = 10; + */ + public com.google.protobuf.ByteString + getDestinationOperatorBytes() { + java.lang.Object ref = destinationOperator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destinationOperator_ = 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (createdAt_ != 0L) { + output.writeInt64(2, createdAt_); + } + if (callId_ != 0L) { + output.writeInt64(3, callId_); + } + if (!getSwitchIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, switchIp_); + } + if (switchPort_ != 0) { + output.writeUInt32(5, switchPort_); + } + if (switchProtocol_ != net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.TCP.getNumber()) { + output.writeEnum(6, switchProtocol_); + } + if (!getTvtBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tvt_); + } + if (pricePerMinute_ != 0D) { + output.writeDouble(8, pricePerMinute_); + } + if (!getSourceOperatorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceOperator_); + } + if (!getDestinationOperatorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, destinationOperator_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + if (createdAt_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, createdAt_); + } + if (callId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, callId_); + } + if (!getSwitchIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, switchIp_); + } + if (switchPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, switchPort_); + } + if (switchProtocol_ != net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.TCP.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, switchProtocol_); + } + if (!getTvtBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tvt_); + } + if (pricePerMinute_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, pricePerMinute_); + } + if (!getSourceOperatorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceOperator_); + } + if (!getDestinationOperatorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, destinationOperator_); + } + 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 net.iGap.proto.ProtoCallRequest.CallRequestResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoCallRequest.CallRequestResponse other = (net.iGap.proto.ProtoCallRequest.CallRequestResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && (getCreatedAt() + == other.getCreatedAt()); + result = result && (getCallId() + == other.getCallId()); + result = result && getSwitchIp() + .equals(other.getSwitchIp()); + result = result && (getSwitchPort() + == other.getSwitchPort()); + result = result && switchProtocol_ == other.switchProtocol_; + result = result && getTvt() + .equals(other.getTvt()); + result = result && ( + java.lang.Double.doubleToLongBits(getPricePerMinute()) + == java.lang.Double.doubleToLongBits( + other.getPricePerMinute())); + result = result && getSourceOperator() + .equals(other.getSourceOperator()); + result = result && getDestinationOperator() + .equals(other.getDestinationOperator()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreatedAt()); + hash = (37 * hash) + CALL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCallId()); + hash = (37 * hash) + SWITCH_IP_FIELD_NUMBER; + hash = (53 * hash) + getSwitchIp().hashCode(); + hash = (37 * hash) + SWITCH_PORT_FIELD_NUMBER; + hash = (53 * hash) + getSwitchPort(); + hash = (37 * hash) + SWITCH_PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + switchProtocol_; + hash = (37 * hash) + TVT_FIELD_NUMBER; + hash = (53 * hash) + getTvt().hashCode(); + hash = (37 * hash) + PRICE_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPricePerMinute())); + hash = (37 * hash) + SOURCE_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getSourceOperator().hashCode(); + hash = (37 * hash) + DESTINATION_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getDestinationOperator().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse 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 net.iGap.proto.ProtoCallRequest.CallRequestResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse 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 net.iGap.proto.ProtoCallRequest.CallRequestResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse 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(net.iGap.proto.ProtoCallRequest.CallRequestResponse 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 proto.CallRequestResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.CallRequestResponse) + net.iGap.proto.ProtoCallRequest.CallRequestResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoCallRequest.CallRequestResponse.class, net.iGap.proto.ProtoCallRequest.CallRequestResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoCallRequest.CallRequestResponse.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(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + createdAt_ = 0L; + + callId_ = 0L; + + switchIp_ = ""; + + switchPort_ = 0; + + switchProtocol_ = 0; + + tvt_ = ""; + + pricePerMinute_ = 0D; + + sourceOperator_ = ""; + + destinationOperator_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoCallRequest.internal_static_proto_CallRequestResponse_descriptor; + } + + public net.iGap.proto.ProtoCallRequest.CallRequestResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoCallRequest.CallRequestResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoCallRequest.CallRequestResponse build() { + net.iGap.proto.ProtoCallRequest.CallRequestResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoCallRequest.CallRequestResponse buildPartial() { + net.iGap.proto.ProtoCallRequest.CallRequestResponse result = new net.iGap.proto.ProtoCallRequest.CallRequestResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.createdAt_ = createdAt_; + result.callId_ = callId_; + result.switchIp_ = switchIp_; + result.switchPort_ = switchPort_; + result.switchProtocol_ = switchProtocol_; + result.tvt_ = tvt_; + result.pricePerMinute_ = pricePerMinute_; + result.sourceOperator_ = sourceOperator_; + result.destinationOperator_ = destinationOperator_; + 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 net.iGap.proto.ProtoCallRequest.CallRequestResponse) { + return mergeFrom((net.iGap.proto.ProtoCallRequest.CallRequestResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoCallRequest.CallRequestResponse other) { + if (other == net.iGap.proto.ProtoCallRequest.CallRequestResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getCreatedAt() != 0L) { + setCreatedAt(other.getCreatedAt()); + } + if (other.getCallId() != 0L) { + setCallId(other.getCallId()); + } + if (!other.getSwitchIp().isEmpty()) { + switchIp_ = other.switchIp_; + onChanged(); + } + if (other.getSwitchPort() != 0) { + setSwitchPort(other.getSwitchPort()); + } + if (other.switchProtocol_ != 0) { + setSwitchProtocolValue(other.getSwitchProtocolValue()); + } + if (!other.getTvt().isEmpty()) { + tvt_ = other.tvt_; + onChanged(); + } + if (other.getPricePerMinute() != 0D) { + setPricePerMinute(other.getPricePerMinute()); + } + if (!other.getSourceOperator().isEmpty()) { + sourceOperator_ = other.sourceOperator_; + onChanged(); + } + if (!other.getDestinationOperator().isEmpty()) { + destinationOperator_ = other.destinationOperator_; + 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 { + net.iGap.proto.ProtoCallRequest.CallRequestResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoCallRequest.CallRequestResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private long createdAt_ ; + /** + * optional int64 created_at = 2; + */ + public long getCreatedAt() { + return createdAt_; + } + /** + * optional int64 created_at = 2; + */ + public Builder setCreatedAt(long value) { + + createdAt_ = value; + onChanged(); + return this; + } + /** + * optional int64 created_at = 2; + */ + public Builder clearCreatedAt() { + + createdAt_ = 0L; + onChanged(); + return this; + } + + private long callId_ ; + /** + * optional int64 call_id = 3; + */ + public long getCallId() { + return callId_; + } + /** + * optional int64 call_id = 3; + */ + public Builder setCallId(long value) { + + callId_ = value; + onChanged(); + return this; + } + /** + * optional int64 call_id = 3; + */ + public Builder clearCallId() { + + callId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object switchIp_ = ""; + /** + * optional string switch_ip = 4; + */ + public java.lang.String getSwitchIp() { + java.lang.Object ref = switchIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + switchIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string switch_ip = 4; + */ + public com.google.protobuf.ByteString + getSwitchIpBytes() { + java.lang.Object ref = switchIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + switchIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string switch_ip = 4; + */ + public Builder setSwitchIp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + switchIp_ = value; + onChanged(); + return this; + } + /** + * optional string switch_ip = 4; + */ + public Builder clearSwitchIp() { + + switchIp_ = getDefaultInstance().getSwitchIp(); + onChanged(); + return this; + } + /** + * optional string switch_ip = 4; + */ + public Builder setSwitchIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + switchIp_ = value; + onChanged(); + return this; + } + + private int switchPort_ ; + /** + * optional uint32 switch_port = 5; + */ + public int getSwitchPort() { + return switchPort_; + } + /** + * optional uint32 switch_port = 5; + */ + public Builder setSwitchPort(int value) { + + switchPort_ = value; + onChanged(); + return this; + } + /** + * optional uint32 switch_port = 5; + */ + public Builder clearSwitchPort() { + + switchPort_ = 0; + onChanged(); + return this; + } + + private int switchProtocol_ = 0; + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + public int getSwitchProtocolValue() { + return switchProtocol_; + } + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + public Builder setSwitchProtocolValue(int value) { + switchProtocol_ = value; + onChanged(); + return this; + } + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + public net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum getSwitchProtocol() { + net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum result = net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.valueOf(switchProtocol_); + return result == null ? net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum.UNRECOGNIZED : result; + } + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + public Builder setSwitchProtocol(net.iGap.proto.ProtoCallRequest.CallRequestResponse.SwitchTransportProtocolEnum value) { + if (value == null) { + throw new NullPointerException(); + } + + switchProtocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.CallRequestResponse.SwitchTransportProtocolEnum switch_protocol = 6; + */ + public Builder clearSwitchProtocol() { + + switchProtocol_ = 0; + onChanged(); + return this; + } + + private java.lang.Object tvt_ = ""; + /** + * optional string tvt = 7; + */ + public java.lang.String getTvt() { + java.lang.Object ref = tvt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tvt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string tvt = 7; + */ + public com.google.protobuf.ByteString + getTvtBytes() { + java.lang.Object ref = tvt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tvt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string tvt = 7; + */ + public Builder setTvt( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tvt_ = value; + onChanged(); + return this; + } + /** + * optional string tvt = 7; + */ + public Builder clearTvt() { + + tvt_ = getDefaultInstance().getTvt(); + onChanged(); + return this; + } + /** + * optional string tvt = 7; + */ + public Builder setTvtBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tvt_ = value; + onChanged(); + return this; + } + + private double pricePerMinute_ ; + /** + * optional double price_per_minute = 8; + */ + public double getPricePerMinute() { + return pricePerMinute_; + } + /** + * optional double price_per_minute = 8; + */ + public Builder setPricePerMinute(double value) { + + pricePerMinute_ = value; + onChanged(); + return this; + } + /** + * optional double price_per_minute = 8; + */ + public Builder clearPricePerMinute() { + + pricePerMinute_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object sourceOperator_ = ""; + /** + * optional string source_operator = 9; + */ + public java.lang.String getSourceOperator() { + java.lang.Object ref = sourceOperator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceOperator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string source_operator = 9; + */ + public com.google.protobuf.ByteString + getSourceOperatorBytes() { + java.lang.Object ref = sourceOperator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string source_operator = 9; + */ + public Builder setSourceOperator( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourceOperator_ = value; + onChanged(); + return this; + } + /** + * optional string source_operator = 9; + */ + public Builder clearSourceOperator() { + + sourceOperator_ = getDefaultInstance().getSourceOperator(); + onChanged(); + return this; + } + /** + * optional string source_operator = 9; + */ + public Builder setSourceOperatorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceOperator_ = value; + onChanged(); + return this; + } + + private java.lang.Object destinationOperator_ = ""; + /** + * optional string destination_operator = 10; + */ + public java.lang.String getDestinationOperator() { + java.lang.Object ref = destinationOperator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationOperator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string destination_operator = 10; + */ + public com.google.protobuf.ByteString + getDestinationOperatorBytes() { + java.lang.Object ref = destinationOperator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destinationOperator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string destination_operator = 10; + */ + public Builder setDestinationOperator( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + destinationOperator_ = value; + onChanged(); + return this; + } + /** + * optional string destination_operator = 10; + */ + public Builder clearDestinationOperator() { + + destinationOperator_ = getDefaultInstance().getDestinationOperator(); + onChanged(); + return this; + } + /** + * optional string destination_operator = 10; + */ + public Builder setDestinationOperatorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destinationOperator_ = 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:proto.CallRequestResponse) + } + + // @@protoc_insertion_point(class_scope:proto.CallRequestResponse) + private static final net.iGap.proto.ProtoCallRequest.CallRequestResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoCallRequest.CallRequestResponse(); + } + + public static net.iGap.proto.ProtoCallRequest.CallRequestResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CallRequestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallRequestResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoCallRequest.CallRequestResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_CallRequestResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_CallRequestResponse_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\021CallRequest.proto\022\005proto\032\rRequest.prot" + + "o\032\016Response.proto\"^\n\013CallRequest\022\037\n\007requ" + + "est\030\001 \001(\0132\016.proto.Request\022\024\n\014phone_numbe" + + "r\030\002 \001(\003\022\013\n\003lat\030\003 \001(\001\022\013\n\003lon\030\004 \001(\001\"\356\002\n\023Ca" + + "llRequestResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\022\n\ncreated_at\030\002 \001(\003\022\017\n\007call" + + "_id\030\003 \001(\003\022\021\n\tswitch_ip\030\004 \001(\t\022\023\n\013switch_p" + + "ort\030\005 \001(\r\022O\n\017switch_protocol\030\006 \001(\01626.pro" + + "to.CallRequestResponse.SwitchTransportPr" + + "otocolEnum\022\013\n\003tvt\030\007 \001(\t\022\030\n\020price_per_min", + "ute\030\010 \001(\001\022\027\n\017source_operator\030\t \001(\t\022\034\n\024de" + + "stination_operator\030\n \001(\t\"8\n\033SwitchTransp" + + "ortProtocolEnum\022\007\n\003TCP\020\000\022\007\n\003UDP\020\001\022\007\n\003TLS" + + "\020\002B\"\n\016net.iGap.protoB\020ProtoCallRequestb\006" + + "proto3" + }; + 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[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }, assigner); + internal_static_proto_CallRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_CallRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallRequest_descriptor, + new java.lang.String[] { "Request", "PhoneNumber", "Lat", "Lon", }); + internal_static_proto_CallRequestResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_CallRequestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_CallRequestResponse_descriptor, + new java.lang.String[] { "Response", "CreatedAt", "CallId", "SwitchIp", "SwitchPort", "SwitchProtocol", "Tvt", "PricePerMinute", "SourceOperator", "DestinationOperator", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java b/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java index 5d32397..4aa9c13 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChannelEditMessage.java @@ -55,6 +55,19 @@ public interface ChannelEditMessageOrBuilder extends * optional uint64 document_id = 5; */ long getDocumentId(); + + /** + * optional .proto.TextSigns text_signs = 6; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChannelEditMessage} @@ -133,6 +146,19 @@ private ChannelEditMessage( documentId_ = input.readUInt64(); break; } + case 50: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -238,6 +264,27 @@ public long getDocumentId() { return documentId_; } + public static final int TEXT_SIGNS_FIELD_NUMBER = 6; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 6; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,6 +312,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + if (textSigns_ != null) { + output.writeMessage(6, getTextSigns()); + } } public int getSerializedSize() { @@ -291,6 +341,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTextSigns()); + } memoizedSize = size; return size; } @@ -320,6 +374,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getMessage()); result = result && (getDocumentId() == other.getDocumentId()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -345,6 +404,10 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -477,6 +540,12 @@ public Builder clear() { documentId_ = 0L; + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -508,6 +577,11 @@ public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessage buildPartial() result.messageId_ = messageId_; result.message_ = message_; result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } onBuilt(); return result; } @@ -565,6 +639,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessa if (other.getDocumentId() != 0L) { setDocumentId(other.getDocumentId()); } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } onChanged(); return this; } @@ -854,6 +931,123 @@ public Builder clearDocumentId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 6; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -958,6 +1152,19 @@ public interface ChannelEditMessageResponseOrBuilder extends * optional uint64 document_id = 7; */ long getDocumentId(); + + /** + * optional .proto.TextSigns text_signs = 8; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChannelEditMessageResponse} @@ -1049,6 +1256,19 @@ private ChannelEditMessageResponse( documentId_ = input.readUInt64(); break; } + case 66: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1179,6 +1399,27 @@ public long getDocumentId() { return documentId_; } + public static final int TEXT_SIGNS_FIELD_NUMBER = 8; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 8; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1212,6 +1453,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(7, documentId_); } + if (textSigns_ != null) { + output.writeMessage(8, getTextSigns()); + } } public int getSerializedSize() { @@ -1246,6 +1490,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, documentId_); } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getTextSigns()); + } memoizedSize = size; return size; } @@ -1278,6 +1526,11 @@ public boolean equals(final java.lang.Object obj) { result = result && messageType_ == other.messageType_; result = result && (getDocumentId() == other.getDocumentId()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -1308,6 +1561,10 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1444,6 +1701,12 @@ public Builder clear() { documentId_ = 0L; + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -1477,6 +1740,11 @@ public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse buildPa result.message_ = message_; result.messageType_ = messageType_; result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } onBuilt(); return result; } @@ -1540,6 +1808,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessa if (other.getDocumentId() != 0L) { setDocumentId(other.getDocumentId()); } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } onChanged(); return this; } @@ -1899,6 +2170,123 @@ public Builder clearDocumentId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 8; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -1968,17 +2356,19 @@ public net.iGap.proto.ProtoChannelEditMessage.ChannelEditMessageResponse getDefa static { java.lang.String[] descriptorData = { "\n\030ChannelEditMessage.proto\022\005proto\032\rReque" + - "st.proto\032\016Response.proto\032\014Global.proto\"\200" + + "st.proto\032\016Response.proto\032\014Global.proto\"\246" + "\001\n\022ChannelEditMessage\022\037\n\007request\030\001 \001(\0132\016" + ".proto.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessa" + "ge_id\030\003 \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document" + - "_id\030\005 \001(\004\"\321\001\n\032ChannelEditMessageResponse" + - "\022!\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007r" + - "oom_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\027\n\017mess" + - "age_version\030\004 \001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014me" + - "ssage_type\030\006 \001(\0162\026.proto.RoomMessageType", - "\022\023\n\013document_id\030\007 \001(\004B)\n\016net.iGap.protoB" + - "\027ProtoChannelEditMessageb\006proto3" + "_id\030\005 \001(\004\022$\n\ntext_signs\030\006 \001(\0132\020.proto.Te" + + "xtSigns\"\367\001\n\032ChannelEditMessageResponse\022!" + + "\n\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007roo" + + "m_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\027\n\017messag" + + "e_version\030\004 \001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014mess", + "age_type\030\006 \001(\0162\026.proto.RoomMessageType\022\023" + + "\n\013document_id\030\007 \001(\004\022$\n\ntext_signs\030\010 \001(\0132" + + "\020.proto.TextSignsB)\n\016net.iGap.protoB\027Pro" + + "toChannelEditMessageb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2000,13 +2390,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ChannelEditMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChannelEditMessage_descriptor, - new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", }); + new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", "TextSigns", }); internal_static_proto_ChannelEditMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_ChannelEditMessageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChannelEditMessageResponse_descriptor, - new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", }); + new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", "TextSigns", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); net.iGap.proto.ProtoGlobal.getDescriptor(); diff --git a/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java b/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java index ba4ee0e..6581906 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java +++ b/src/main/java/net/iGap/proto/ProtoChannelGetMemberList.java @@ -1199,6 +1199,19 @@ public interface MemberOrBuilder extends * optional .proto.ChannelAddAdmin.AdminRights adminRights = 3; */ net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder getAdminRightsOrBuilder(); + + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + boolean hasUserInfo(); + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo(); + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder(); } /** * Protobuf type {@code proto.ChannelGetMemberListResponse.Member} @@ -1263,6 +1276,19 @@ private Member( adminRights_ = subBuilder.buildPartial(); } + break; + } + case 34: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (userInfo_ != null) { + subBuilder = userInfo_.toBuilder(); + } + userInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userInfo_); + userInfo_ = subBuilder.buildPartial(); + } + break; } } @@ -1334,6 +1360,27 @@ public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder return getAdminRights(); } + public static final int USERINFO_FIELD_NUMBER = 4; + private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_; + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public boolean hasUserInfo() { + return userInfo_ != null; + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { + return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + return getUserInfo(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1355,6 +1402,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (adminRights_ != null) { output.writeMessage(3, getAdminRights()); } + if (userInfo_ != null) { + output.writeMessage(4, getUserInfo()); + } } public int getSerializedSize() { @@ -1374,6 +1424,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAdminRights()); } + if (userInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUserInfo()); + } memoizedSize = size; return size; } @@ -1398,6 +1452,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getAdminRights() .equals(other.getAdminRights()); } + result = result && (hasUserInfo() == other.hasUserInfo()); + if (hasUserInfo()) { + result = result && getUserInfo() + .equals(other.getUserInfo()); + } return result; } @@ -1417,6 +1476,10 @@ public int hashCode() { hash = (37 * hash) + ADMINRIGHTS_FIELD_NUMBER; hash = (53 * hash) + getAdminRights().hashCode(); } + if (hasUserInfo()) { + hash = (37 * hash) + USERINFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1545,6 +1608,12 @@ public Builder clear() { adminRights_ = null; adminRightsBuilder_ = null; } + if (userInfoBuilder_ == null) { + userInfo_ = null; + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } return this; } @@ -1574,6 +1643,11 @@ public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse.Mem } else { result.adminRights_ = adminRightsBuilder_.build(); } + if (userInfoBuilder_ == null) { + result.userInfo_ = userInfo_; + } else { + result.userInfo_ = userInfoBuilder_.build(); + } onBuilt(); return result; } @@ -1624,6 +1698,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemb if (other.hasAdminRights()) { mergeAdminRights(other.getAdminRights()); } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } onChanged(); return this; } @@ -1836,6 +1913,123 @@ public net.iGap.proto.ProtoChannelAddAdmin.ChannelAddAdmin.AdminRightsOrBuilder } return adminRightsBuilder_; } + + private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userInfoBuilder_; + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public boolean hasUserInfo() { + return userInfoBuilder_ != null || userInfo_ != null; + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public Builder setUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + onChanged(); + } else { + userInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public Builder setUserInfo( + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + onChanged(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public Builder mergeUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + if (userInfoBuilder_ == null) { + if (userInfo_ != null) { + userInfo_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(userInfo_).mergeFrom(value).buildPartial(); + } else { + userInfo_ = value; + } + onChanged(); + } else { + userInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public Builder clearUserInfo() { + if (userInfoBuilder_ == null) { + userInfo_ = null; + onChanged(); + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserInfoBuilder() { + + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } + } + /** + * optional .proto.RegisteredUser userInfo = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -2720,15 +2914,16 @@ public net.iGap.proto.ProtoChannelGetMemberList.ChannelGetMemberListResponse get "&.proto.ChannelGetMemberList.FilterRole\022" + "%\n\npagination\030\004 \001(\0132\021.proto.Pagination\";" + "\n\nFilterRole\022\007\n\003ALL\020\000\022\n\n\006MEMBER\020\001\022\r\n\tMOD" + - "ERATOR\020\002\022\t\n\005ADMIN\020\003\"\367\001\n\034ChannelGetMember" + + "ERATOR\020\002\022\t\n\005ADMIN\020\003\"\241\002\n\034ChannelGetMember" + "ListResponse\022!\n\010response\030\001 \001(\0132\017.proto.R", "esponse\022:\n\006member\030\002 \003(\0132*.proto.ChannelG" + - "etMemberListResponse.Member\032x\n\006Member\022\016\n" + - "\006userId\030\001 \001(\004\022%\n\004role\030\002 \001(\0162\027.proto.Chan" + - "nelRoom.Role\0227\n\013adminRights\030\003 \001(\0132\".prot" + - "o.ChannelAddAdmin.AdminRightsB+\n\016net.iGa" + - "p.protoB\031ProtoChannelGetMemberListb\006prot" + - "o3" + "etMemberListResponse.Member\032\241\001\n\006Member\022\016" + + "\n\006userId\030\001 \001(\004\022%\n\004role\030\002 \001(\0162\027.proto.Cha" + + "nnelRoom.Role\0227\n\013adminRights\030\003 \001(\0132\".pro" + + "to.ChannelAddAdmin.AdminRights\022\'\n\010userIn" + + "fo\030\004 \001(\0132\025.proto.RegisteredUserB+\n\016net.i" + + "Gap.protoB\031ProtoChannelGetMemberListb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2763,7 +2958,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ChannelGetMemberListResponse_Member_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChannelGetMemberListResponse_Member_descriptor, - new java.lang.String[] { "UserId", "Role", "AdminRights", }); + new java.lang.String[] { "UserId", "Role", "AdminRights", "UserInfo", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); net.iGap.proto.ProtoGlobal.getDescriptor(); diff --git a/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java b/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java index e09abe7..803fda4 100644 --- a/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChannelSendMessage.java @@ -128,6 +128,69 @@ public interface ChannelSendMessageOrBuilder extends */ com.google.protobuf.ByteString getAdditionalDataBytes(); + + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + boolean hasSticker(); + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); + + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + boolean hasCardToCard(); + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + java.util.List + getBotActionListsList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); + + /** + * optional .proto.TextSigns text_signs = 16; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 16; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 16; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChannelSendMessage} @@ -149,6 +212,7 @@ private ChannelSendMessage() { randomId_ = 0L; additionalType_ = 0; additionalData_ = ""; + botActionLists_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -272,6 +336,54 @@ private ChannelSendMessage( additionalData_ = s; break; } + case 106: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00004000; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 130: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -280,6 +392,9 @@ private ChannelSendMessage( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } makeExtensionsImmutable(); } } @@ -295,6 +410,7 @@ private ChannelSendMessage( net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.class, net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage.Builder.class); } + private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** @@ -533,6 +649,104 @@ public java.lang.String getAdditionalData() { } } + public static final int STICKER_FIELD_NUMBER = 13; + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public boolean hasSticker() { + return sticker_ != null; + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); + } + + public static final int CARD_TO_CARD_FIELD_NUMBER = 14; + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public boolean hasCardToCard() { + return cardToCard_ != null; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); + } + + public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 15; + private java.util.List botActionLists_; + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public java.util.List getBotActionListsList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public java.util.List + getBotActionListsOrBuilderList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public int getBotActionListsCount() { + return botActionLists_.size(); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + return botActionLists_.get(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + return botActionLists_.get(index); + } + + public static final int TEXT_SIGNS_FIELD_NUMBER = 16; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 16; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -581,6 +795,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getAdditionalDataBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, additionalData_); } + if (sticker_ != null) { + output.writeMessage(13, getSticker()); + } + if (cardToCard_ != null) { + output.writeMessage(14, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + output.writeMessage(15, botActionLists_.get(i)); + } + if (textSigns_ != null) { + output.writeMessage(16, getTextSigns()); + } } public int getSerializedSize() { @@ -633,6 +859,22 @@ public int getSerializedSize() { if (!getAdditionalDataBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, additionalData_); } + if (sticker_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getSticker()); + } + if (cardToCard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, botActionLists_.get(i)); + } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getTextSigns()); + } memoizedSize = size; return size; } @@ -684,6 +926,23 @@ public boolean equals(final java.lang.Object obj) { == other.getAdditionalType()); result = result && getAdditionalData() .equals(other.getAdditionalData()); + result = result && (hasSticker() == other.hasSticker()); + if (hasSticker()) { + result = result && getSticker() + .equals(other.getSticker()); + } + result = result && (hasCardToCard() == other.hasCardToCard()); + if (hasCardToCard()) { + result = result && getCardToCard() + .equals(other.getCardToCard()); + } + result = result && getBotActionListsList() + .equals(other.getBotActionListsList()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -729,6 +988,22 @@ public int hashCode() { hash = (53 * hash) + getAdditionalType(); hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; hash = (53 * hash) + getAdditionalData().hashCode(); + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -843,6 +1118,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); } } public Builder clear() { @@ -887,6 +1163,30 @@ public Builder clear() { additionalData_ = ""; + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -909,6 +1209,8 @@ public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage build() { public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage buildPartial() { net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage result = new net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (requestBuilder_ == null) { result.request_ = request_; } else { @@ -937,6 +1239,31 @@ public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessage buildPartial() result.randomId_ = randomId_; result.additionalType_ = additionalType_; result.additionalData_ = additionalData_; + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x00004000) == 0x00004000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1017,6 +1344,41 @@ public Builder mergeFrom(net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessa additionalData_ = other.additionalData_; onChanged(); } + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00004000); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } onChanged(); return this; } @@ -1042,6 +1404,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private net.iGap.proto.ProtoRequest.Request request_ = null; private com.google.protobuf.SingleFieldBuilderV3< @@ -1865,6 +2228,597 @@ public Builder setAdditionalDataBytes( onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public boolean hasSticker() { + return stickerBuilder_ != null || sticker_ != null; + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public Builder setSticker( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { + + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * optional .proto.RoomMessageSticker sticker = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public boolean hasCardToCard() { + return cardToCardBuilder_ != null || cardToCard_ != null; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public Builder setCardToCard( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { + + onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public java.util.List getBotActionListsList() { + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public int getBotActionListsCount() { + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder addBotActionLists( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder addAllBotActionLists( + java.lang.Iterable values) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder clearBotActionLists() { + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public Builder removeBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 15; + */ + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x00004000) == 0x00004000), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; + } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 16; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -2752,8 +3706,8 @@ public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse getDefa static { java.lang.String[] descriptorData = { "\n\030ChannelSendMessage.proto\022\005proto\032\rReque" + - "st.proto\032\016Response.proto\032\014Global.proto\"\377" + - "\002\n\022ChannelSendMessage\022\037\n\007request\030\001 \001(\0132\016" + + "st.proto\032\016Response.proto\032\014Global.proto\"\300" + + "\004\n\022ChannelSendMessage\022\037\n\007request\030\001 \001(\0132\016" + ".proto.Request\022,\n\014message_type\030\002 \001(\0162\026.p" + "roto.RoomMessageType\022\017\n\007room_id\030\003 \001(\004\022\017\n" + "\007message\030\004 \001(\t\022\022\n\nattachment\030\005 \001(\t\022,\n\010lo" + @@ -2762,11 +3716,16 @@ public net.iGap.proto.ProtoChannelSendMessage.ChannelSendMessageResponse getDefa "tact\022\020\n\010reply_to\030\010 \001(\004\0223\n\014forward_from\030\t" + " \001(\0132\035.proto.RoomMessageForwardFrom\022\021\n\tr", "andom_id\030\n \001(\004\022\027\n\017additional_type\030\013 \001(\r\022" + - "\027\n\017additional_data\030\014 \001(\t\"z\n\032ChannelSendM" + - "essageResponse\022!\n\010response\030\001 \001(\0132\017.proto" + - ".Response\022\017\n\007room_id\030\002 \001(\004\022(\n\014room_messa" + - "ge\030\003 \001(\0132\022.proto.RoomMessageB)\n\016net.iGap" + - ".protoB\027ProtoChannelSendMessageb\006proto3" + "\027\n\017additional_data\030\014 \001(\t\022*\n\007sticker\030\r \001(" + + "\0132\031.proto.RoomMessageSticker\0222\n\014card_to_" + + "card\030\016 \001(\0132\034.proto.RoomMessageCardToCard" + + "\0229\n\020bot_action_lists\030\017 \003(\0132\037.proto.RoomM" + + "essageBotActionList\022$\n\ntext_signs\030\020 \001(\0132" + + "\020.proto.TextSigns\"z\n\032ChannelSendMessageR" + + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + + "se\022\017\n\007room_id\030\002 \001(\004\022(\n\014room_message\030\003 \001(" + + "\0132\022.proto.RoomMessageB)\n\016net.iGap.protoB", + "\027ProtoChannelSendMessageb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2788,7 +3747,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ChannelSendMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChannelSendMessage_descriptor, - new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "AdditionalType", "AdditionalData", }); + new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "AdditionalType", "AdditionalData", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); internal_static_proto_ChannelSendMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_ChannelSendMessageResponse_fieldAccessorTable = new diff --git a/src/main/java/net/iGap/proto/ProtoChatClearMessage.java b/src/main/java/net/iGap/proto/ProtoChatClearMessage.java index 905ec5f..5c84154 100644 --- a/src/main/java/net/iGap/proto/ProtoChatClearMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChatClearMessage.java @@ -37,9 +37,14 @@ public interface ChatClearMessageOrBuilder extends long getRoomId(); /** - * optional uint64 clear_id = 3; + * optional uint64 clear_message_id = 3; */ - long getClearId(); + long getClearMessageId(); + + /** + * optional uint64 clear_document_id = 4; + */ + long getClearDocumentId(); } /** * Protobuf type {@code proto.ChatClearMessage} @@ -54,7 +59,8 @@ private ChatClearMessage(com.google.protobuf.GeneratedMessageV3.Builder build } private ChatClearMessage() { roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + clearDocumentId_ = 0L; } @java.lang.Override @@ -102,7 +108,12 @@ private ChatClearMessage( } case 24: { - clearId_ = input.readUInt64(); + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); break; } } @@ -158,13 +169,22 @@ public long getRoomId() { return roomId_; } - public static final int CLEAR_ID_FIELD_NUMBER = 3; - private long clearId_; + public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; + private long clearMessageId_; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + + public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; + private long clearDocumentId_; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } private byte memoizedIsInitialized = -1; @@ -185,8 +205,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (clearId_ != 0L) { - output.writeUInt64(3, clearId_); + if (clearMessageId_ != 0L) { + output.writeUInt64(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { + output.writeUInt64(4, clearDocumentId_); } } @@ -203,9 +226,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (clearId_ != 0L) { + if (clearMessageId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, clearId_); + .computeUInt64Size(4, clearDocumentId_); } memoizedSize = size; return size; @@ -230,8 +257,10 @@ public boolean equals(final java.lang.Object obj) { } result = result && (getRoomId() == other.getRoomId()); - result = result && (getClearId() - == other.getClearId()); + result = result && (getClearMessageId() + == other.getClearMessageId()); + result = result && (getClearDocumentId() + == other.getClearDocumentId()); return result; } @@ -249,9 +278,12 @@ public int hashCode() { hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRoomId()); - hash = (37 * hash) + CLEAR_ID_FIELD_NUMBER; + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClearId()); + getClearDocumentId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -378,7 +410,9 @@ public Builder clear() { } roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + + clearDocumentId_ = 0L; return this; } @@ -408,7 +442,8 @@ public net.iGap.proto.ProtoChatClearMessage.ChatClearMessage buildPartial() { result.request_ = requestBuilder_.build(); } result.roomId_ = roomId_; - result.clearId_ = clearId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; onBuilt(); return result; } @@ -456,8 +491,11 @@ public Builder mergeFrom(net.iGap.proto.ProtoChatClearMessage.ChatClearMessage o if (other.getRoomId() != 0L) { setRoomId(other.getRoomId()); } - if (other.getClearId() != 0L) { - setClearId(other.getClearId()); + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); } onChanged(); return this; @@ -628,28 +666,54 @@ public Builder clearRoomId() { return this; } - private long clearId_ ; + private long clearMessageId_ ; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder setClearMessageId(long value) { + + clearMessageId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder clearClearMessageId() { + + clearMessageId_ = 0L; + onChanged(); + return this; + } + + private long clearDocumentId_ ; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder setClearId(long value) { + public Builder setClearDocumentId(long value) { - clearId_ = value; + clearDocumentId_ = value; onChanged(); return this; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder clearClearId() { + public Builder clearClearDocumentId() { - clearId_ = 0L; + clearDocumentId_ = 0L; onChanged(); return this; } @@ -725,9 +789,14 @@ public interface ChatClearMessageResponseOrBuilder extends long getRoomId(); /** - * optional uint64 clear_id = 3; + * optional uint64 clear_message_id = 3; */ - long getClearId(); + long getClearMessageId(); + + /** + * optional uint64 clear_document_id = 4; + */ + long getClearDocumentId(); } /** * Protobuf type {@code proto.ChatClearMessageResponse} @@ -742,7 +811,8 @@ private ChatClearMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder< } private ChatClearMessageResponse() { roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + clearDocumentId_ = 0L; } @java.lang.Override @@ -790,7 +860,12 @@ private ChatClearMessageResponse( } case 24: { - clearId_ = input.readUInt64(); + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); break; } } @@ -846,13 +921,22 @@ public long getRoomId() { return roomId_; } - public static final int CLEAR_ID_FIELD_NUMBER = 3; - private long clearId_; + public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; + private long clearMessageId_; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + + public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; + private long clearDocumentId_; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } private byte memoizedIsInitialized = -1; @@ -873,8 +957,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (clearId_ != 0L) { - output.writeUInt64(3, clearId_); + if (clearMessageId_ != 0L) { + output.writeUInt64(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { + output.writeUInt64(4, clearDocumentId_); } } @@ -891,9 +978,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (clearId_ != 0L) { + if (clearMessageId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, clearId_); + .computeUInt64Size(4, clearDocumentId_); } memoizedSize = size; return size; @@ -918,8 +1009,10 @@ public boolean equals(final java.lang.Object obj) { } result = result && (getRoomId() == other.getRoomId()); - result = result && (getClearId() - == other.getClearId()); + result = result && (getClearMessageId() + == other.getClearMessageId()); + result = result && (getClearDocumentId() + == other.getClearDocumentId()); return result; } @@ -937,9 +1030,12 @@ public int hashCode() { hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRoomId()); - hash = (37 * hash) + CLEAR_ID_FIELD_NUMBER; + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClearId()); + getClearDocumentId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1066,7 +1162,9 @@ public Builder clear() { } roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + + clearDocumentId_ = 0L; return this; } @@ -1096,7 +1194,8 @@ public net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse buildPartia result.response_ = responseBuilder_.build(); } result.roomId_ = roomId_; - result.clearId_ = clearId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; onBuilt(); return result; } @@ -1144,8 +1243,11 @@ public Builder mergeFrom(net.iGap.proto.ProtoChatClearMessage.ChatClearMessageRe if (other.getRoomId() != 0L) { setRoomId(other.getRoomId()); } - if (other.getClearId() != 0L) { - setClearId(other.getClearId()); + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); } onChanged(); return this; @@ -1316,28 +1418,54 @@ public Builder clearRoomId() { return this; } - private long clearId_ ; + private long clearMessageId_ ; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder setClearMessageId(long value) { + + clearMessageId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder clearClearMessageId() { + + clearMessageId_ = 0L; + onChanged(); + return this; + } + + private long clearDocumentId_ ; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder setClearId(long value) { + public Builder setClearDocumentId(long value) { - clearId_ = value; + clearDocumentId_ = value; onChanged(); return this; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder clearClearId() { + public Builder clearClearDocumentId() { - clearId_ = 0L; + clearDocumentId_ = 0L; onChanged(); return this; } @@ -1410,13 +1538,15 @@ public net.iGap.proto.ProtoChatClearMessage.ChatClearMessageResponse getDefaultI static { java.lang.String[] descriptorData = { "\n\026ChatClearMessage.proto\022\005proto\032\rRequest" + - ".proto\032\016Response.proto\"V\n\020ChatClearMessa" + + ".proto\032\016Response.proto\"y\n\020ChatClearMessa" + "ge\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n\007r" + - "oom_id\030\002 \001(\004\022\020\n\010clear_id\030\003 \001(\004\"`\n\030ChatCl" + - "earMessageResponse\022!\n\010response\030\001 \001(\0132\017.p" + - "roto.Response\022\017\n\007room_id\030\002 \001(\004\022\020\n\010clear_" + - "id\030\003 \001(\004B\'\n\016net.iGap.protoB\025ProtoChatCle" + - "arMessageb\006proto3" + "oom_id\030\002 \001(\004\022\030\n\020clear_message_id\030\003 \001(\004\022\031" + + "\n\021clear_document_id\030\004 \001(\004\"\203\001\n\030ChatClearM" + + "essageResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022\017\n\007room_id\030\002 \001(\004\022\030\n\020clear_mess" + + "age_id\030\003 \001(\004\022\031\n\021clear_document_id\030\004 \001(\004B" + + "\'\n\016net.iGap.protoB\025ProtoChatClearMessage" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1437,13 +1567,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ChatClearMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChatClearMessage_descriptor, - new java.lang.String[] { "Request", "RoomId", "ClearId", }); + new java.lang.String[] { "Request", "RoomId", "ClearMessageId", "ClearDocumentId", }); internal_static_proto_ChatClearMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_ChatClearMessageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChatClearMessageResponse_descriptor, - new java.lang.String[] { "Response", "RoomId", "ClearId", }); + new java.lang.String[] { "Response", "RoomId", "ClearMessageId", "ClearDocumentId", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); } diff --git a/src/main/java/net/iGap/proto/ProtoChatEditMessage.java b/src/main/java/net/iGap/proto/ProtoChatEditMessage.java index 517fce8..f5dfc3a 100644 --- a/src/main/java/net/iGap/proto/ProtoChatEditMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChatEditMessage.java @@ -55,6 +55,19 @@ public interface ChatEditMessageOrBuilder extends * optional uint64 document_id = 5; */ long getDocumentId(); + + /** + * optional .proto.TextSigns text_signs = 6; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChatEditMessage} @@ -133,6 +146,19 @@ private ChatEditMessage( documentId_ = input.readUInt64(); break; } + case 50: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -238,6 +264,27 @@ public long getDocumentId() { return documentId_; } + public static final int TEXT_SIGNS_FIELD_NUMBER = 6; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 6; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,6 +312,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + if (textSigns_ != null) { + output.writeMessage(6, getTextSigns()); + } } public int getSerializedSize() { @@ -291,6 +341,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTextSigns()); + } memoizedSize = size; return size; } @@ -320,6 +374,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getMessage()); result = result && (getDocumentId() == other.getDocumentId()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -345,6 +404,10 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -477,6 +540,12 @@ public Builder clear() { documentId_ = 0L; + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -508,6 +577,11 @@ public net.iGap.proto.ProtoChatEditMessage.ChatEditMessage buildPartial() { result.messageId_ = messageId_; result.message_ = message_; result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } onBuilt(); return result; } @@ -565,6 +639,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoChatEditMessage.ChatEditMessage oth if (other.getDocumentId() != 0L) { setDocumentId(other.getDocumentId()); } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } onChanged(); return this; } @@ -854,6 +931,123 @@ public Builder clearDocumentId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 6; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -960,9 +1154,17 @@ public interface ChatEditMessageResponseOrBuilder extends long getDocumentId(); /** - * optional uint64 version_document_id = 8; + * optional .proto.TextSigns text_signs = 8; */ - long getVersionDocumentId(); + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChatEditMessageResponse} @@ -982,7 +1184,6 @@ private ChatEditMessageResponse() { message_ = ""; messageType_ = 0; documentId_ = 0L; - versionDocumentId_ = 0L; } @java.lang.Override @@ -1055,9 +1256,17 @@ private ChatEditMessageResponse( documentId_ = input.readUInt64(); break; } - case 64: { + case 66: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } - versionDocumentId_ = input.readUInt64(); break; } } @@ -1190,13 +1399,25 @@ public long getDocumentId() { return documentId_; } - public static final int VERSION_DOCUMENT_ID_FIELD_NUMBER = 8; - private long versionDocumentId_; + public static final int TEXT_SIGNS_FIELD_NUMBER = 8; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; /** - * optional uint64 version_document_id = 8; + * optional .proto.TextSigns text_signs = 8; */ - public long getVersionDocumentId() { - return versionDocumentId_; + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } private byte memoizedIsInitialized = -1; @@ -1232,8 +1453,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(7, documentId_); } - if (versionDocumentId_ != 0L) { - output.writeUInt64(8, versionDocumentId_); + if (textSigns_ != null) { + output.writeMessage(8, getTextSigns()); } } @@ -1269,9 +1490,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, documentId_); } - if (versionDocumentId_ != 0L) { + if (textSigns_ != null) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, versionDocumentId_); + .computeMessageSize(8, getTextSigns()); } memoizedSize = size; return size; @@ -1305,8 +1526,11 @@ public boolean equals(final java.lang.Object obj) { result = result && messageType_ == other.messageType_; result = result && (getDocumentId() == other.getDocumentId()); - result = result && (getVersionDocumentId() - == other.getVersionDocumentId()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -1337,9 +1561,10 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); - hash = (37 * hash) + VERSION_DOCUMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersionDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1476,8 +1701,12 @@ public Builder clear() { documentId_ = 0L; - versionDocumentId_ = 0L; - + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -1511,7 +1740,11 @@ public net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse buildPartial( result.message_ = message_; result.messageType_ = messageType_; result.documentId_ = documentId_; - result.versionDocumentId_ = versionDocumentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } onBuilt(); return result; } @@ -1575,8 +1808,8 @@ public Builder mergeFrom(net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResp if (other.getDocumentId() != 0L) { setDocumentId(other.getDocumentId()); } - if (other.getVersionDocumentId() != 0L) { - setVersionDocumentId(other.getVersionDocumentId()); + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); } onChanged(); return this; @@ -1938,30 +2171,121 @@ public Builder clearDocumentId() { return this; } - private long versionDocumentId_ ; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional uint64 version_document_id = 8; + * optional .proto.TextSigns text_signs = 8; */ - public long getVersionDocumentId() { - return versionDocumentId_; + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; } /** - * optional uint64 version_document_id = 8; + * optional .proto.TextSigns text_signs = 8; */ - public Builder setVersionDocumentId(long value) { - - versionDocumentId_ = value; - onChanged(); + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional uint64 version_document_id = 8; + * optional .proto.TextSigns text_signs = 8; */ - public Builder clearVersionDocumentId() { + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { - versionDocumentId_ = 0L; onChanged(); - return this; + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2032,18 +2356,19 @@ public net.iGap.proto.ProtoChatEditMessage.ChatEditMessageResponse getDefaultIns static { java.lang.String[] descriptorData = { "\n\025ChatEditMessage.proto\022\005proto\032\rRequest." + - "proto\032\016Response.proto\032\014Global.proto\"}\n\017C" + - "hatEditMessage\022\037\n\007request\030\001 \001(\0132\016.proto." + - "Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003" + - " \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document_id\030\005 \001" + - "(\004\"\353\001\n\027ChatEditMessageResponse\022!\n\010respon" + - "se\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001" + - "(\004\022\022\n\nmessage_id\030\003 \001(\004\022\027\n\017message_versio" + - "n\030\004 \001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014message_type" + - "\030\006 \001(\0162\026.proto.RoomMessageType\022\023\n\013docume", - "nt_id\030\007 \001(\004\022\033\n\023version_document_id\030\010 \001(\004" + - "B&\n\016net.iGap.protoB\024ProtoChatEditMessage" + - "b\006proto3" + "proto\032\016Response.proto\032\014Global.proto\"\243\001\n\017" + + "ChatEditMessage\022\037\n\007request\030\001 \001(\0132\016.proto" + + ".Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030" + + "\003 \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document_id\030\005 " + + "\001(\004\022$\n\ntext_signs\030\006 \001(\0132\020.proto.TextSign" + + "s\"\364\001\n\027ChatEditMessageResponse\022!\n\010respons" + + "e\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(" + + "\004\022\022\n\nmessage_id\030\003 \001(\004\022\027\n\017message_version" + + "\030\004 \001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014message_type\030", + "\006 \001(\0162\026.proto.RoomMessageType\022\023\n\013documen" + + "t_id\030\007 \001(\004\022$\n\ntext_signs\030\010 \001(\0132\020.proto.T" + + "extSignsB&\n\016net.iGap.protoB\024ProtoChatEdi" + + "tMessageb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2065,13 +2390,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ChatEditMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChatEditMessage_descriptor, - new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", }); + new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", "TextSigns", }); internal_static_proto_ChatEditMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_ChatEditMessageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChatEditMessageResponse_descriptor, - new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", "VersionDocumentId", }); + new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", "TextSigns", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); net.iGap.proto.ProtoGlobal.getDescriptor(); diff --git a/src/main/java/net/iGap/proto/ProtoChatSendMessage.java b/src/main/java/net/iGap/proto/ProtoChatSendMessage.java index f5208a7..d9d604b 100644 --- a/src/main/java/net/iGap/proto/ProtoChatSendMessage.java +++ b/src/main/java/net/iGap/proto/ProtoChatSendMessage.java @@ -114,6 +114,21 @@ public interface ChatSendMessageOrBuilder extends */ long getRandomId(); + /** + * optional uint32 additional_type = 11; + */ + int getAdditionalType(); + + /** + * optional string additional_data = 12; + */ + java.lang.String getAdditionalData(); + /** + * optional string additional_data = 12; + */ + com.google.protobuf.ByteString + getAdditionalDataBytes(); + /** * optional .proto.RoomMessageStoryReply story_reply = 13; */ @@ -141,19 +156,67 @@ public interface ChatSendMessageOrBuilder extends net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder(); /** - * optional uint32 additional_type = 11; + * optional .proto.RoomMessageSticker sticker = 15; */ - int getAdditionalType(); + boolean hasSticker(); + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); /** - * optional string additional_data = 12; + * optional .proto.RoomMessageCardToCard card_to_card = 16; */ - java.lang.String getAdditionalData(); + boolean hasCardToCard(); /** - * optional string additional_data = 12; + * optional .proto.RoomMessageCardToCard card_to_card = 16; */ - com.google.protobuf.ByteString - getAdditionalDataBytes(); + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + java.util.List + getBotActionListsList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); + + /** + * optional .proto.TextSigns text_signs = 18; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 18; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 18; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ChatSendMessage} @@ -175,6 +238,7 @@ private ChatSendMessage() { randomId_ = 0L; additionalType_ = 0; additionalData_ = ""; + botActionLists_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -322,6 +386,54 @@ private ChatSendMessage( storyForward_ = subBuilder.buildPartial(); } + break; + } + case 122: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00010000; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 146: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + break; } } @@ -332,6 +444,9 @@ private ChatSendMessage( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } makeExtensionsImmutable(); } } @@ -347,6 +462,7 @@ private ChatSendMessage( net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.class, net.iGap.proto.ProtoChatSendMessage.ChatSendMessage.Builder.class); } + private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** @@ -542,6 +658,49 @@ public long getRandomId() { return randomId_; } + public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 11; + private int additionalType_; + /** + * optional uint32 additional_type = 11; + */ + public int getAdditionalType() { + return additionalType_; + } + + public static final int ADDITIONAL_DATA_FIELD_NUMBER = 12; + private volatile java.lang.Object additionalData_; + /** + * optional string additional_data = 12; + */ + public java.lang.String getAdditionalData() { + java.lang.Object ref = additionalData_; + 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(); + additionalData_ = s; + return s; + } + } + /** + * optional string additional_data = 12; + */ + public com.google.protobuf.ByteString + getAdditionalDataBytes() { + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STORY_REPLY_FIELD_NUMBER = 13; private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_; /** @@ -584,47 +743,102 @@ public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwa return getStoryForward(); } - public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 11; - private int additionalType_; + public static final int STICKER_FIELD_NUMBER = 15; + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; /** - * optional uint32 additional_type = 11; + * optional .proto.RoomMessageSticker sticker = 15; */ - public int getAdditionalType() { - return additionalType_; + public boolean hasSticker() { + return sticker_ != null; + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); } - public static final int ADDITIONAL_DATA_FIELD_NUMBER = 12; - private volatile java.lang.Object additionalData_; + public static final int CARD_TO_CARD_FIELD_NUMBER = 16; + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; /** - * optional string additional_data = 12; + * optional .proto.RoomMessageCardToCard card_to_card = 16; */ - public java.lang.String getAdditionalData() { - java.lang.Object ref = additionalData_; - 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(); - additionalData_ = s; - return s; - } + public boolean hasCardToCard() { + return cardToCard_ != null; } /** - * optional string additional_data = 12; + * optional .proto.RoomMessageCardToCard card_to_card = 16; */ - public com.google.protobuf.ByteString - getAdditionalDataBytes() { - java.lang.Object ref = additionalData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - additionalData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); + } + + public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 17; + private java.util.List botActionLists_; + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public java.util.List getBotActionListsList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public java.util.List + getBotActionListsOrBuilderList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public int getBotActionListsCount() { + return botActionLists_.size(); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + return botActionLists_.get(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + return botActionLists_.get(index); + } + + public static final int TEXT_SIGNS_FIELD_NUMBER = 18; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 18; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 18; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 18; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } private byte memoizedIsInitialized = -1; @@ -681,6 +895,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (storyForward_ != null) { output.writeMessage(14, getStoryForward()); } + if (sticker_ != null) { + output.writeMessage(15, getSticker()); + } + if (cardToCard_ != null) { + output.writeMessage(16, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + output.writeMessage(17, botActionLists_.get(i)); + } + if (textSigns_ != null) { + output.writeMessage(18, getTextSigns()); + } } public int getSerializedSize() { @@ -741,6 +967,22 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getStoryForward()); } + if (sticker_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getSticker()); + } + if (cardToCard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, botActionLists_.get(i)); + } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getTextSigns()); + } memoizedSize = size; return size; } @@ -788,6 +1030,10 @@ public boolean equals(final java.lang.Object obj) { } result = result && (getRandomId() == other.getRandomId()); + result = result && (getAdditionalType() + == other.getAdditionalType()); + result = result && getAdditionalData() + .equals(other.getAdditionalData()); result = result && (hasStoryReply() == other.hasStoryReply()); if (hasStoryReply()) { result = result && getStoryReply() @@ -798,10 +1044,23 @@ public boolean equals(final java.lang.Object obj) { result = result && getStoryForward() .equals(other.getStoryForward()); } - result = result && (getAdditionalType() - == other.getAdditionalType()); - result = result && getAdditionalData() - .equals(other.getAdditionalData()); + result = result && (hasSticker() == other.hasSticker()); + if (hasSticker()) { + result = result && getSticker() + .equals(other.getSticker()); + } + result = result && (hasCardToCard() == other.hasCardToCard()); + if (hasCardToCard()) { + result = result && getCardToCard() + .equals(other.getCardToCard()); + } + result = result && getBotActionListsList() + .equals(other.getBotActionListsList()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -843,6 +1102,10 @@ public int hashCode() { hash = (37 * hash) + RANDOM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRandomId()); + hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalType(); + hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalData().hashCode(); if (hasStoryReply()) { hash = (37 * hash) + STORY_REPLY_FIELD_NUMBER; hash = (53 * hash) + getStoryReply().hashCode(); @@ -851,10 +1114,22 @@ public int hashCode() { hash = (37 * hash) + STORY_FORWARD_FIELD_NUMBER; hash = (53 * hash) + getStoryForward().hashCode(); } - hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalType(); - hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalData().hashCode(); + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -969,6 +1244,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); } } public Builder clear() { @@ -1009,6 +1285,10 @@ public Builder clear() { } randomId_ = 0L; + additionalType_ = 0; + + additionalData_ = ""; + if (storyReplyBuilder_ == null) { storyReply_ = null; } else { @@ -1021,10 +1301,30 @@ public Builder clear() { storyForward_ = null; storyForwardBuilder_ = null; } - additionalType_ = 0; - - additionalData_ = ""; - + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -1047,6 +1347,8 @@ public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage build() { public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage buildPartial() { net.iGap.proto.ProtoChatSendMessage.ChatSendMessage result = new net.iGap.proto.ProtoChatSendMessage.ChatSendMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (requestBuilder_ == null) { result.request_ = request_; } else { @@ -1073,6 +1375,8 @@ public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage buildPartial() { result.forwardFrom_ = forwardFromBuilder_.build(); } result.randomId_ = randomId_; + result.additionalType_ = additionalType_; + result.additionalData_ = additionalData_; if (storyReplyBuilder_ == null) { result.storyReply_ = storyReply_; } else { @@ -1083,8 +1387,31 @@ public net.iGap.proto.ProtoChatSendMessage.ChatSendMessage buildPartial() { } else { result.storyForward_ = storyForwardBuilder_.build(); } - result.additionalType_ = additionalType_; - result.additionalData_ = additionalData_; + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x00010000) == 0x00010000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1158,21 +1485,56 @@ public Builder mergeFrom(net.iGap.proto.ProtoChatSendMessage.ChatSendMessage oth if (other.getRandomId() != 0L) { setRandomId(other.getRandomId()); } + if (other.getAdditionalType() != 0) { + setAdditionalType(other.getAdditionalType()); + } + if (!other.getAdditionalData().isEmpty()) { + additionalData_ = other.additionalData_; + onChanged(); + } if (other.hasStoryReply()) { mergeStoryReply(other.getStoryReply()); } if (other.hasStoryForward()) { mergeStoryForward(other.getStoryForward()); } - if (other.getAdditionalType() != 0) { - setAdditionalType(other.getAdditionalType()); + if (other.hasSticker()) { + mergeSticker(other.getSticker()); } - if (!other.getAdditionalData().isEmpty()) { - additionalData_ = other.additionalData_; - onChanged(); + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); } - onChanged(); - return this; + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00010000); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + onChanged(); + return this; } public final boolean isInitialized() { @@ -1196,6 +1558,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private net.iGap.proto.ProtoRequest.Request request_ = null; private com.google.protobuf.SingleFieldBuilderV3< @@ -1925,6 +2288,101 @@ public Builder clearRandomId() { return this; } + private int additionalType_ ; + /** + * optional uint32 additional_type = 11; + */ + public int getAdditionalType() { + return additionalType_; + } + /** + * optional uint32 additional_type = 11; + */ + public Builder setAdditionalType(int value) { + + additionalType_ = value; + onChanged(); + return this; + } + /** + * optional uint32 additional_type = 11; + */ + public Builder clearAdditionalType() { + + additionalType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object additionalData_ = ""; + /** + * optional string additional_data = 12; + */ + public java.lang.String getAdditionalData() { + java.lang.Object ref = additionalData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string additional_data = 12; + */ + public com.google.protobuf.ByteString + getAdditionalDataBytes() { + java.lang.Object ref = additionalData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string additional_data = 12; + */ + public Builder setAdditionalData( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + additionalData_ = value; + onChanged(); + return this; + } + /** + * optional string additional_data = 12; + */ + public Builder clearAdditionalData() { + + additionalData_ = getDefaultInstance().getAdditionalData(); + onChanged(); + return this; + } + /** + * optional string additional_data = 12; + */ + public Builder setAdditionalDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + additionalData_ = value; + onChanged(); + return this; + } + private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_ = null; private com.google.protobuf.SingleFieldBuilderV3< net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder> storyReplyBuilder_; @@ -2159,99 +2617,595 @@ public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwa return storyForwardBuilder_; } - private int additionalType_ ; + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; /** - * optional uint32 additional_type = 11; + * optional .proto.RoomMessageSticker sticker = 15; */ - public int getAdditionalType() { - return additionalType_; + public boolean hasSticker() { + return stickerBuilder_ != null || sticker_ != null; } /** - * optional uint32 additional_type = 11; + * optional .proto.RoomMessageSticker sticker = 15; */ - public Builder setAdditionalType(int value) { + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public Builder setSticker( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { - additionalType_ = value; onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * optional .proto.RoomMessageSticker sticker = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public boolean hasCardToCard() { + return cardToCardBuilder_ != null || cardToCard_ != null; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); + } + return this; } /** - * optional uint32 additional_type = 11; + * optional .proto.RoomMessageCardToCard card_to_card = 16; */ - public Builder clearAdditionalType() { + public Builder setCardToCard( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { - additionalType_ = 0; onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x00010000) == 0x00010000)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public java.util.List getBotActionListsList() { + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public int getBotActionListsCount() { + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } return this; } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addBotActionLists( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder addAllBotActionLists( + java.lang.Iterable values) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder clearBotActionLists() { + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public Builder removeBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 17; + */ + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x00010000) == 0x00010000), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; + } - private java.lang.Object additionalData_ = ""; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; /** - * optional string additional_data = 12; + * optional .proto.TextSigns text_signs = 18; */ - public java.lang.String getAdditionalData() { - java.lang.Object ref = additionalData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - additionalData_ = s; - return s; + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 18; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; } else { - return (java.lang.String) ref; + return textSignsBuilder_.getMessage(); } } /** - * optional string additional_data = 12; + * optional .proto.TextSigns text_signs = 18; */ - public com.google.protobuf.ByteString - getAdditionalDataBytes() { - java.lang.Object ref = additionalData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - additionalData_ = b; - return b; + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 18; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); } + + return this; } /** - * optional string additional_data = 12; + * optional .proto.TextSigns text_signs = 18; */ - public Builder setAdditionalData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - additionalData_ = value; - onChanged(); + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + return this; } /** - * optional string additional_data = 12; + * optional .proto.TextSigns text_signs = 18; */ - public Builder clearAdditionalData() { - - additionalData_ = getDefaultInstance().getAdditionalData(); - onChanged(); + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; } /** - * optional string additional_data = 12; + * optional .proto.TextSigns text_signs = 18; */ - public Builder setAdditionalDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { - additionalData_ = value; onChanged(); - return this; + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 18; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3140,7 +4094,7 @@ public net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse getDefaultIns static { java.lang.String[] descriptorData = { "\n\025ChatSendMessage.proto\022\005proto\032\rRequest." + - "proto\032\016Response.proto\032\014Global.proto\"\346\003\n\017" + + "proto\032\016Response.proto\032\014Global.proto\"\247\005\n\017" + "ChatSendMessage\022\037\n\007request\030\001 \001(\0132\016.proto" + ".Request\022,\n\014message_type\030\002 \001(\0162\026.proto.R" + "oomMessageType\022\017\n\007room_id\030\003 \001(\004\022\017\n\007messa" + @@ -3149,15 +4103,20 @@ public net.iGap.proto.ProtoChatSendMessage.ChatSendMessageResponse getDefaultIns "ntact\030\007 \001(\0132\031.proto.RoomMessageContact\022\020" + "\n\010reply_to\030\010 \001(\004\0223\n\014forward_from\030\t \001(\0132\035" + ".proto.RoomMessageForwardFrom\022\021\n\trandom_", - "id\030\n \001(\004\0221\n\013story_reply\030\r \001(\0132\034.proto.Ro" + - "omMessageStoryReply\0225\n\rstory_forward\030\016 \001" + - "(\0132\036.proto.RoomMessageStoryForward\022\027\n\017ad" + - "ditional_type\030\013 \001(\r\022\027\n\017additional_data\030\014" + - " \001(\t\"w\n\027ChatSendMessageResponse\022!\n\010respo" + - "nse\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 " + - "\001(\004\022(\n\014room_message\030\003 \001(\0132\022.proto.RoomMe" + - "ssageB&\n\016net.iGap.protoB\024ProtoChatSendMe" + - "ssageb\006proto3" + "id\030\n \001(\004\022\027\n\017additional_type\030\013 \001(\r\022\027\n\017add" + + "itional_data\030\014 \001(\t\0221\n\013story_reply\030\r \001(\0132" + + "\034.proto.RoomMessageStoryReply\0225\n\rstory_f" + + "orward\030\016 \001(\0132\036.proto.RoomMessageStoryFor" + + "ward\022*\n\007sticker\030\017 \001(\0132\031.proto.RoomMessag" + + "eSticker\0222\n\014card_to_card\030\020 \001(\0132\034.proto.R" + + "oomMessageCardToCard\0229\n\020bot_action_lists" + + "\030\021 \003(\0132\037.proto.RoomMessageBotActionList\022" + + "$\n\ntext_signs\030\022 \001(\0132\020.proto.TextSigns\"w\n" + + "\027ChatSendMessageResponse\022!\n\010response\030\001 \001", + "(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022(\n\014" + + "room_message\030\003 \001(\0132\022.proto.RoomMessageB&" + + "\n\016net.iGap.protoB\024ProtoChatSendMessageb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3179,7 +4138,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ChatSendMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChatSendMessage_descriptor, - new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "StoryReply", "StoryForward", "AdditionalType", "AdditionalData", }); + new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "AdditionalType", "AdditionalData", "StoryReply", "StoryForward", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); internal_static_proto_ChatSendMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_ChatSendMessageResponse_fieldAccessorTable = new diff --git a/src/main/java/net/iGap/proto/ProtoClientCondition.java b/src/main/java/net/iGap/proto/ProtoClientCondition.java index 37e28ba..14585d4 100644 --- a/src/main/java/net/iGap/proto/ProtoClientCondition.java +++ b/src/main/java/net/iGap/proto/ProtoClientCondition.java @@ -620,6 +620,32 @@ public interface OfflineEditedOrBuilder extends * optional uint64 document_id = 3; */ long getDocumentId(); + + /** + * optional .proto.Mention mentions = 4; + */ + boolean hasMentions(); + /** + * optional .proto.Mention mentions = 4; + */ + net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * optional .proto.Mention mentions = 4; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); + + /** + * optional .proto.TextSigns text_signs = 5; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 5; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 5; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.ClientCondition.Room.OfflineEdited} @@ -679,6 +705,32 @@ private OfflineEdited( documentId_ = input.readUInt64(); break; } + case 34: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -754,6 +806,48 @@ public long getDocumentId() { return documentId_; } + public static final int MENTIONS_FIELD_NUMBER = 4; + private net.iGap.proto.ProtoGlobal.Mention mentions_; + /** + * optional .proto.Mention mentions = 4; + */ + public boolean hasMentions() { + return mentions_ != null; + } + /** + * optional .proto.Mention mentions = 4; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + /** + * optional .proto.Mention mentions = 4; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); + } + + public static final int TEXT_SIGNS_FIELD_NUMBER = 5; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 5; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -775,6 +869,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(3, documentId_); } + if (mentions_ != null) { + output.writeMessage(4, getMentions()); + } + if (textSigns_ != null) { + output.writeMessage(5, getTextSigns()); + } } public int getSerializedSize() { @@ -793,6 +893,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, documentId_); } + if (mentions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMentions()); + } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTextSigns()); + } memoizedSize = size; return size; } @@ -815,6 +923,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getMessage()); result = result && (getDocumentId() == other.getDocumentId()); + result = result && (hasMentions() == other.hasMentions()); + if (hasMentions()) { + result = result && getMentions() + .equals(other.getMentions()); + } + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -833,6 +951,14 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -957,6 +1083,18 @@ public Builder clear() { documentId_ = 0L; + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -982,6 +1120,16 @@ public net.iGap.proto.ProtoClientCondition.ClientCondition.Room.OfflineEdited bu result.messageId_ = messageId_; result.message_ = message_; result.documentId_ = documentId_; + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } onBuilt(); return result; } @@ -1033,6 +1181,12 @@ public Builder mergeFrom(net.iGap.proto.ProtoClientCondition.ClientCondition.Roo if (other.getDocumentId() != 0L) { setDocumentId(other.getDocumentId()); } + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } onChanged(); return this; } @@ -1179,6 +1333,240 @@ public Builder clearDocumentId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.Mention mentions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; + /** + * optional .proto.Mention mentions = 4; + */ + public boolean hasMentions() { + return mentionsBuilder_ != null || mentions_ != null; + } + /** + * optional .proto.Mention mentions = 4; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } + } + /** + * optional .proto.Mention mentions = 4; + */ + public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 4; + */ + public Builder setMentions( + net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Mention mentions = 4; + */ + public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 4; + */ + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Mention mentions = 4; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * optional .proto.Mention mentions = 4; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + } + /** + * optional .proto.Mention mentions = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; + } + return mentionsBuilder_; + } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 5; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -4996,28 +5384,31 @@ public net.iGap.proto.ProtoClientCondition.ClientConditionResponse getDefaultIns static { java.lang.String[] descriptorData = { "\n\025ClientCondition.proto\022\005proto\032\rRequest." + - "proto\032\016Response.proto\"\352\005\n\017ClientConditio" + - "n\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022*\n\005ro" + - "oms\030\002 \003(\0132\033.proto.ClientCondition.Room\032\211" + - "\005\n\004Room\022\017\n\007room_id\030\002 \001(\004\022\027\n\017message_vers" + - "ion\030\003 \001(\004\022\026\n\016status_version\030\004 \001(\004\022\026\n\016del" + - "ete_version\030\005 \001(\004\022&\n\032offline_deleted_dep" + - "recated\030\006 \003(\004B\002\030\001\022A\n\016offline_edited\030\007 \003(" + - "\0132).proto.ClientCondition.Room.OfflineEd" + - "ited\022\024\n\014offline_seen\030\010 \003(\004\022\020\n\010clear_id\030\t", - " \001(\004\022\026\n\016cache_start_id\030\n \001(\004\022\024\n\014cache_en" + - "d_id\030\013 \001(\004\022=\n\014offline_mute\030\014 \001(\0162\'.proto" + - ".ClientCondition.Room.OfflineMute\022\030\n\020off" + - "line_listened\030\r \003(\004\022C\n\017offline_deleted\030\016" + - " \003(\0132*.proto.ClientCondition.Room.Offlin" + - "eDeleted\032I\n\rOfflineEdited\022\022\n\nmessage_id\030" + - "\001 \001(\004\022\017\n\007message\030\002 \001(\t\022\023\n\013document_id\030\003 " + - "\001(\004\032G\n\016OfflineDeleted\022\022\n\nmessage_id\030\001 \001(" + - "\004\022\014\n\004both\030\004 \001(\010\022\023\n\013document_id\030\005 \001(\004\"4\n\013" + - "OfflineMute\022\r\n\tUNCHANGED\020\000\022\t\n\005MUTED\020\001\022\013\n", - "\007UNMUTED\020\002\"<\n\027ClientConditionResponse\022!\n" + - "\010response\030\001 \001(\0132\017.proto.ResponseB&\n\016net." + - "iGap.protoB\024ProtoClientConditionb\006proto3" + "proto\032\016Response.proto\032\014Global.proto\"\263\006\n\017" + + "ClientCondition\022\037\n\007request\030\001 \001(\0132\016.proto" + + ".Request\022*\n\005rooms\030\002 \003(\0132\033.proto.ClientCo" + + "ndition.Room\032\322\005\n\004Room\022\017\n\007room_id\030\002 \001(\004\022\027" + + "\n\017message_version\030\003 \001(\004\022\026\n\016status_versio" + + "n\030\004 \001(\004\022\026\n\016delete_version\030\005 \001(\004\022&\n\032offli" + + "ne_deleted_deprecated\030\006 \003(\004B\002\030\001\022A\n\016offli" + + "ne_edited\030\007 \003(\0132).proto.ClientCondition." + + "Room.OfflineEdited\022\024\n\014offline_seen\030\010 \003(\004", + "\022\020\n\010clear_id\030\t \001(\004\022\026\n\016cache_start_id\030\n \001" + + "(\004\022\024\n\014cache_end_id\030\013 \001(\004\022=\n\014offline_mute" + + "\030\014 \001(\0162\'.proto.ClientCondition.Room.Offl" + + "ineMute\022\030\n\020offline_listened\030\r \003(\004\022C\n\017off" + + "line_deleted\030\016 \003(\0132*.proto.ClientConditi" + + "on.Room.OfflineDeleted\032\221\001\n\rOfflineEdited" + + "\022\022\n\nmessage_id\030\001 \001(\004\022\017\n\007message\030\002 \001(\t\022\023\n" + + "\013document_id\030\003 \001(\004\022 \n\010mentions\030\004 \001(\0132\016.p" + + "roto.Mention\022$\n\ntext_signs\030\005 \001(\0132\020.proto" + + ".TextSigns\032G\n\016OfflineDeleted\022\022\n\nmessage_", + "id\030\001 \001(\004\022\014\n\004both\030\004 \001(\010\022\023\n\013document_id\030\005 " + + "\001(\004\"4\n\013OfflineMute\022\r\n\tUNCHANGED\020\000\022\t\n\005MUT" + + "ED\020\001\022\013\n\007UNMUTED\020\002\"<\n\027ClientConditionResp" + + "onse\022!\n\010response\030\001 \001(\0132\017.proto.ResponseB" + + "&\n\016net.iGap.protoB\024ProtoClientConditionb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5032,6 +5423,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { net.iGap.proto.ProtoRequest.getDescriptor(), net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), }, assigner); internal_static_proto_ClientCondition_descriptor = getDescriptor().getMessageTypes().get(0); @@ -5050,7 +5442,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ClientCondition_Room_OfflineEdited_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ClientCondition_Room_OfflineEdited_descriptor, - new java.lang.String[] { "MessageId", "Message", "DocumentId", }); + new java.lang.String[] { "MessageId", "Message", "DocumentId", "Mentions", "TextSigns", }); internal_static_proto_ClientCondition_Room_OfflineDeleted_descriptor = internal_static_proto_ClientCondition_Room_descriptor.getNestedTypes().get(1); internal_static_proto_ClientCondition_Room_OfflineDeleted_fieldAccessorTable = new @@ -5065,6 +5457,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Response", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java b/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java index c2d3c24..86b36ec 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetRoomHistory.java @@ -56,7 +56,7 @@ public interface ClientGetRoomHistoryOrBuilder extends int getLimit(); /** - * optional uint64 document_id = 6; + * optional uint64 documentId = 6; */ long getDocumentId(); } @@ -328,10 +328,10 @@ public int getLimit() { return limit_; } - public static final int DOCUMENT_ID_FIELD_NUMBER = 6; + public static final int DOCUMENTID_FIELD_NUMBER = 6; private long documentId_; /** - * optional uint64 document_id = 6; + * optional uint64 documentId = 6; */ public long getDocumentId() { return documentId_; @@ -452,7 +452,7 @@ public int hashCode() { hash = (53 * hash) + direction_; hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); - hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); hash = (29 * hash) + unknownFields.hashCode(); @@ -947,13 +947,13 @@ public Builder clearLimit() { private long documentId_ ; /** - * optional uint64 document_id = 6; + * optional uint64 documentId = 6; */ public long getDocumentId() { return documentId_; } /** - * optional uint64 document_id = 6; + * optional uint64 documentId = 6; */ public Builder setDocumentId(long value) { @@ -962,7 +962,7 @@ public Builder setDocumentId(long value) { return this; } /** - * optional uint64 document_id = 6; + * optional uint64 documentId = 6; */ public Builder clearDocumentId() { @@ -1972,16 +1972,16 @@ public net.iGap.proto.ProtoClientGetRoomHistory.ClientGetRoomHistoryResponse get java.lang.String[] descriptorData = { "\n\032ClientGetRoomHistory.proto\022\005proto\032\rReq" + "uest.proto\032\016Response.proto\032\014Global.proto" + - "\"\337\001\n\024ClientGetRoomHistory\022\037\n\007request\030\001 \001" + + "\"\336\001\n\024ClientGetRoomHistory\022\037\n\007request\030\001 \001" + "(\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\030\n\020f" + "irst_message_id\030\003 \001(\004\0228\n\tdirection\030\004 \001(\016" + "2%.proto.ClientGetRoomHistory.Direction\022" + - "\r\n\005limit\030\005 \001(\r\022\023\n\013document_id\030\006 \001(\004\"\035\n\tD" + - "irection\022\006\n\002UP\020\000\022\010\n\004DOWN\020\001\"f\n\034ClientGetR" + - "oomHistoryResponse\022!\n\010response\030\001 \001(\0132\017.p" + - "roto.Response\022#\n\007message\030\002 \003(\0132\022.proto.R", - "oomMessageB+\n\016net.iGap.protoB\031ProtoClien" + - "tGetRoomHistoryb\006proto3" + "\r\n\005limit\030\005 \001(\r\022\022\n\ndocumentId\030\006 \001(\004\"\035\n\tDi" + + "rection\022\006\n\002UP\020\000\022\010\n\004DOWN\020\001\"f\n\034ClientGetRo" + + "omHistoryResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022#\n\007message\030\002 \003(\0132\022.proto.Ro", + "omMessageB+\n\016net.iGap.protoB\031ProtoClient" + + "GetRoomHistoryb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java b/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java index 2562221..9751a30 100644 --- a/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java +++ b/src/main/java/net/iGap/proto/ProtoClientGetRoomMessage.java @@ -42,7 +42,7 @@ public interface ClientGetRoomMessageOrBuilder extends long getMessageId(); /** - * optional uint64 document_id = 4; + * optional uint64 documentId = 4; */ long getDocumentId(); } @@ -178,10 +178,10 @@ public long getMessageId() { return messageId_; } - public static final int DOCUMENT_ID_FIELD_NUMBER = 4; + public static final int DOCUMENTID_FIELD_NUMBER = 4; private long documentId_; /** - * optional uint64 document_id = 4; + * optional uint64 documentId = 4; */ public long getDocumentId() { return documentId_; @@ -281,7 +281,7 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMessageId()); - hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); hash = (29 * hash) + unknownFields.hashCode(); @@ -694,13 +694,13 @@ public Builder clearMessageId() { private long documentId_ ; /** - * optional uint64 document_id = 4; + * optional uint64 documentId = 4; */ public long getDocumentId() { return documentId_; } /** - * optional uint64 document_id = 4; + * optional uint64 documentId = 4; */ public Builder setDocumentId(long value) { @@ -709,7 +709,7 @@ public Builder setDocumentId(long value) { return this; } /** - * optional uint64 document_id = 4; + * optional uint64 documentId = 4; */ public Builder clearDocumentId() { @@ -1541,13 +1541,13 @@ public net.iGap.proto.ProtoClientGetRoomMessage.ClientGetRoomMessageResponse get java.lang.String[] descriptorData = { "\n\032ClientGetRoomMessage.proto\022\005proto\032\rReq" + "uest.proto\032\016Response.proto\032\014Global.proto" + - "\"q\n\024ClientGetRoomMessage\022\037\n\007request\030\001 \001(" + + "\"p\n\024ClientGetRoomMessage\022\037\n\007request\030\001 \001(" + "\0132\016.proto.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nme" + - "ssage_id\030\003 \001(\004\022\023\n\013document_id\030\004 \001(\004\"f\n\034C" + - "lientGetRoomMessageResponse\022!\n\010response\030" + - "\001 \001(\0132\017.proto.Response\022#\n\007message\030\002 \001(\0132" + - "\022.proto.RoomMessageB+\n\016net.iGap.protoB\031P" + - "rotoClientGetRoomMessageb\006proto3" + "ssage_id\030\003 \001(\004\022\022\n\ndocumentId\030\004 \001(\004\"f\n\034Cl" + + "ientGetRoomMessageResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022#\n\007message\030\002 \001(\0132\022" + + ".proto.RoomMessageB+\n\016net.iGap.protoB\031Pr" + + "otoClientGetRoomMessageb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java b/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java index b380dfe..660e9c2 100644 --- a/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java +++ b/src/main/java/net/iGap/proto/ProtoClientJoinByUsername.java @@ -727,6 +727,16 @@ public interface ClientJoinByUsernameResponseOrBuilder extends * optional .proto.Response response = 1; */ net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * optional uint64 room_id = 2; + */ + long getRoomId(); + + /** + * optional uint64 user_id = 3; + */ + long getUserId(); } /** * Protobuf type {@code proto.ClientJoinByUsernameResponse} @@ -740,6 +750,8 @@ private ClientJoinByUsernameResponse(com.google.protobuf.GeneratedMessageV3.Buil super(builder); } private ClientJoinByUsernameResponse() { + roomId_ = 0L; + userId_ = 0L; } @java.lang.Override @@ -780,6 +792,16 @@ private ClientJoinByUsernameResponse( break; } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + userId_ = input.readUInt64(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -824,6 +846,24 @@ public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { return getResponse(); } + public static final int ROOM_ID_FIELD_NUMBER = 2; + private long roomId_; + /** + * optional uint64 room_id = 2; + */ + public long getRoomId() { + return roomId_; + } + + public static final int USER_ID_FIELD_NUMBER = 3; + private long userId_; + /** + * optional uint64 user_id = 3; + */ + public long getUserId() { + return userId_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -839,6 +879,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (response_ != null) { output.writeMessage(1, getResponse()); } + if (roomId_ != 0L) { + output.writeUInt64(2, roomId_); + } + if (userId_ != 0L) { + output.writeUInt64(3, userId_); + } } public int getSerializedSize() { @@ -850,6 +896,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } + if (roomId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, roomId_); + } + if (userId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, userId_); + } memoizedSize = size; return size; } @@ -871,6 +925,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getResponse() .equals(other.getResponse()); } + result = result && (getRoomId() + == other.getRoomId()); + result = result && (getUserId() + == other.getUserId()); return result; } @@ -885,6 +943,12 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1009,6 +1073,10 @@ public Builder clear() { response_ = null; responseBuilder_ = null; } + roomId_ = 0L; + + userId_ = 0L; + return this; } @@ -1036,6 +1104,8 @@ public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse bui } else { result.response_ = responseBuilder_.build(); } + result.roomId_ = roomId_; + result.userId_ = userId_; onBuilt(); return result; } @@ -1080,6 +1150,12 @@ public Builder mergeFrom(net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUs if (other.hasResponse()) { mergeResponse(other.getResponse()); } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } onChanged(); return this; } @@ -1222,6 +1298,58 @@ public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { } return responseBuilder_; } + + private long roomId_ ; + /** + * optional uint64 room_id = 2; + */ + public long getRoomId() { + return roomId_; + } + /** + * optional uint64 room_id = 2; + */ + public Builder setRoomId(long value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 room_id = 2; + */ + public Builder clearRoomId() { + + roomId_ = 0L; + onChanged(); + return this; + } + + private long userId_ ; + /** + * optional uint64 user_id = 3; + */ + public long getUserId() { + return userId_; + } + /** + * optional uint64 user_id = 3; + */ + public Builder setUserId(long value) { + + userId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 user_id = 3; + */ + public Builder clearUserId() { + + userId_ = 0L; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -1293,10 +1421,11 @@ public net.iGap.proto.ProtoClientJoinByUsername.ClientJoinByUsernameResponse get "\n\032ClientJoinByUsername.proto\022\005proto\032\rReq" + "uest.proto\032\016Response.proto\"I\n\024ClientJoin" + "ByUsername\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + - "est\022\020\n\010username\030\002 \001(\t\"A\n\034ClientJoinByUse" + + "est\022\020\n\010username\030\002 \001(\t\"c\n\034ClientJoinByUse" + "rnameResponse\022!\n\010response\030\001 \001(\0132\017.proto." + - "ResponseB+\n\016net.iGap.protoB\031ProtoClientJ" + - "oinByUsernameb\006proto3" + "Response\022\017\n\007room_id\030\002 \001(\004\022\017\n\007user_id\030\003 \001" + + "(\004B+\n\016net.iGap.protoB\031ProtoClientJoinByU" + + "sernameb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1323,7 +1452,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ClientJoinByUsernameResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ClientJoinByUsernameResponse_descriptor, - new java.lang.String[] { "Response", }); + new java.lang.String[] { "Response", "RoomId", "UserId", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); } diff --git a/src/main/java/net/iGap/proto/ProtoClientPinRoom.java b/src/main/java/net/iGap/proto/ProtoClientPinRoom.java index 4c7ec49..71807da 100644 --- a/src/main/java/net/iGap/proto/ProtoClientPinRoom.java +++ b/src/main/java/net/iGap/proto/ProtoClientPinRoom.java @@ -720,14 +720,27 @@ public interface ClientPinRoomResponseOrBuilder extends net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 room_id = 2; + * optional uint64 room_id = 2 [deprecated = true]; */ - long getRoomId(); + @java.lang.Deprecated long getRoomId(); /** * optional uint64 pin_id = 3; */ long getPinId(); + + /** + * optional .proto.Room room = 4; + */ + boolean hasRoom(); + /** + * optional .proto.Room room = 4; + */ + net.iGap.proto.ProtoGlobal.Room getRoom(); + /** + * optional .proto.Room room = 4; + */ + net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder(); } /** * Protobuf type {@code proto.ClientPinRoomResponse} @@ -793,6 +806,19 @@ private ClientPinRoomResponse( pinId_ = input.readUInt64(); break; } + case 34: { + net.iGap.proto.ProtoGlobal.Room.Builder subBuilder = null; + if (room_ != null) { + subBuilder = room_.toBuilder(); + } + room_ = input.readMessage(net.iGap.proto.ProtoGlobal.Room.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(room_); + room_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -840,9 +866,9 @@ public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { public static final int ROOM_ID_FIELD_NUMBER = 2; private long roomId_; /** - * optional uint64 room_id = 2; + * optional uint64 room_id = 2 [deprecated = true]; */ - public long getRoomId() { + @java.lang.Deprecated public long getRoomId() { return roomId_; } @@ -855,6 +881,27 @@ public long getPinId() { return pinId_; } + public static final int ROOM_FIELD_NUMBER = 4; + private net.iGap.proto.ProtoGlobal.Room room_; + /** + * optional .proto.Room room = 4; + */ + public boolean hasRoom() { + return room_ != null; + } + /** + * optional .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room getRoom() { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } + /** + * optional .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + return getRoom(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -876,6 +923,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pinId_ != 0L) { output.writeUInt64(3, pinId_); } + if (room_ != null) { + output.writeMessage(4, getRoom()); + } } public int getSerializedSize() { @@ -895,6 +945,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, pinId_); } + if (room_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRoom()); + } memoizedSize = size; return size; } @@ -920,6 +974,11 @@ public boolean equals(final java.lang.Object obj) { == other.getRoomId()); result = result && (getPinId() == other.getPinId()); + result = result && (hasRoom() == other.hasRoom()); + if (hasRoom()) { + result = result && getRoom() + .equals(other.getRoom()); + } return result; } @@ -940,6 +999,10 @@ public int hashCode() { hash = (37 * hash) + PIN_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPinId()); + if (hasRoom()) { + hash = (37 * hash) + ROOM_FIELD_NUMBER; + hash = (53 * hash) + getRoom().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1068,6 +1131,12 @@ public Builder clear() { pinId_ = 0L; + if (roomBuilder_ == null) { + room_ = null; + } else { + room_ = null; + roomBuilder_ = null; + } return this; } @@ -1097,6 +1166,11 @@ public net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse buildPartial() { } result.roomId_ = roomId_; result.pinId_ = pinId_; + if (roomBuilder_ == null) { + result.room_ = room_; + } else { + result.room_ = roomBuilder_.build(); + } onBuilt(); return result; } @@ -1147,6 +1221,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse if (other.getPinId() != 0L) { setPinId(other.getPinId()); } + if (other.hasRoom()) { + mergeRoom(other.getRoom()); + } onChanged(); return this; } @@ -1292,24 +1369,24 @@ public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { private long roomId_ ; /** - * optional uint64 room_id = 2; + * optional uint64 room_id = 2 [deprecated = true]; */ - public long getRoomId() { + @java.lang.Deprecated public long getRoomId() { return roomId_; } /** - * optional uint64 room_id = 2; + * optional uint64 room_id = 2 [deprecated = true]; */ - public Builder setRoomId(long value) { + @java.lang.Deprecated public Builder setRoomId(long value) { roomId_ = value; onChanged(); return this; } /** - * optional uint64 room_id = 2; + * optional uint64 room_id = 2 [deprecated = true]; */ - public Builder clearRoomId() { + @java.lang.Deprecated public Builder clearRoomId() { roomId_ = 0L; onChanged(); @@ -1341,6 +1418,123 @@ public Builder clearPinId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.Room room_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> roomBuilder_; + /** + * optional .proto.Room room = 4; + */ + public boolean hasRoom() { + return roomBuilder_ != null || room_ != null; + } + /** + * optional .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room getRoom() { + if (roomBuilder_ == null) { + return room_ == null ? net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } else { + return roomBuilder_.getMessage(); + } + } + /** + * optional .proto.Room room = 4; + */ + public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { + if (roomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + onChanged(); + } else { + roomBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Room room = 4; + */ + public Builder setRoom( + net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { + if (roomBuilder_ == null) { + room_ = builderForValue.build(); + onChanged(); + } else { + roomBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Room room = 4; + */ + public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { + if (roomBuilder_ == null) { + if (room_ != null) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + onChanged(); + } else { + roomBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Room room = 4; + */ + public Builder clearRoom() { + if (roomBuilder_ == null) { + room_ = null; + onChanged(); + } else { + room_ = null; + roomBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room.Builder getRoomBuilder() { + + onChanged(); + return getRoomFieldBuilder().getBuilder(); + } + /** + * optional .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.RoomOrBuilder getRoomOrBuilder() { + if (roomBuilder_ != null) { + return roomBuilder_.getMessageOrBuilder(); + } else { + return room_ == null ? + net.iGap.proto.ProtoGlobal.Room.getDefaultInstance() : room_; + } + } + /** + * optional .proto.Room room = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder> + getRoomFieldBuilder() { + if (roomBuilder_ == null) { + roomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Room, net.iGap.proto.ProtoGlobal.Room.Builder, net.iGap.proto.ProtoGlobal.RoomOrBuilder>( + getRoom(), + getParentForChildren(), + isClean()); + room_ = null; + } + return roomBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -1410,12 +1604,14 @@ public net.iGap.proto.ProtoClientPinRoom.ClientPinRoomResponse getDefaultInstanc static { java.lang.String[] descriptorData = { "\n\023ClientPinRoom.proto\022\005proto\032\rRequest.pr" + - "oto\032\016Response.proto\"N\n\rClientPinRoom\022\037\n\007" + - "request\030\001 \001(\0132\016.proto.Request\022\017\n\007room_id" + - "\030\002 \001(\004\022\013\n\003pin\030\003 \001(\010\"[\n\025ClientPinRoomResp" + - "onse\022!\n\010response\030\001 \001(\0132\017.proto.Response\022" + - "\017\n\007room_id\030\002 \001(\004\022\016\n\006pin_id\030\003 \001(\004B$\n\016net." + - "iGap.protoB\022ProtoClientPinRoomb\006proto3" + "oto\032\016Response.proto\032\014Global.proto\"N\n\rCli" + + "entPinRoom\022\037\n\007request\030\001 \001(\0132\016.proto.Requ" + + "est\022\017\n\007room_id\030\002 \001(\004\022\013\n\003pin\030\003 \001(\010\"z\n\025Cli" + + "entPinRoomResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.Response\022\023\n\007room_id\030\002 \001(\004B\002\030\001\022\016\n\006pi" + + "n_id\030\003 \001(\004\022\031\n\004room\030\004 \001(\0132\013.proto.RoomB$\n" + + "\016net.iGap.protoB\022ProtoClientPinRoomb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1430,6 +1626,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { net.iGap.proto.ProtoRequest.getDescriptor(), net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), }, assigner); internal_static_proto_ClientPinRoom_descriptor = getDescriptor().getMessageTypes().get(0); @@ -1442,9 +1639,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ClientPinRoomResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ClientPinRoomResponse_descriptor, - new java.lang.String[] { "Response", "RoomId", "PinId", }); + new java.lang.String[] { "Response", "RoomId", "PinId", "Room", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java b/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java index 0ee8c39..7e3cad7 100644 --- a/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java +++ b/src/main/java/net/iGap/proto/ProtoClientRoomChangeOwner.java @@ -720,9 +720,9 @@ public interface ClientRoomChangeOwnerResponseOrBuilder extends net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); /** - * optional uint64 user_id = 2; + * optional uint64 old_owner_id = 2; */ - long getUserId(); + long getOldOwnerId(); /** * optional uint64 room_id = 3; @@ -741,6 +741,11 @@ public interface ClientRoomChangeOwnerResponseOrBuilder extends * optional .proto.RoomAccess permission = 4; */ net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder(); + + /** + * optional uint64 new_owner_id = 5; + */ + long getNewOwnerId(); } /** * Protobuf type {@code proto.ClientRoomChangeOwnerResponse} @@ -754,8 +759,9 @@ private ClientRoomChangeOwnerResponse(com.google.protobuf.GeneratedMessageV3.Bui super(builder); } private ClientRoomChangeOwnerResponse() { - userId_ = 0L; + oldOwnerId_ = 0L; roomId_ = 0L; + newOwnerId_ = 0L; } @java.lang.Override @@ -798,7 +804,7 @@ private ClientRoomChangeOwnerResponse( } case 16: { - userId_ = input.readUInt64(); + oldOwnerId_ = input.readUInt64(); break; } case 24: { @@ -819,6 +825,11 @@ private ClientRoomChangeOwnerResponse( break; } + case 40: { + + newOwnerId_ = input.readUInt64(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -863,13 +874,13 @@ public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { return getResponse(); } - public static final int USER_ID_FIELD_NUMBER = 2; - private long userId_; + public static final int OLD_OWNER_ID_FIELD_NUMBER = 2; + private long oldOwnerId_; /** - * optional uint64 user_id = 2; + * optional uint64 old_owner_id = 2; */ - public long getUserId() { - return userId_; + public long getOldOwnerId() { + return oldOwnerId_; } public static final int ROOM_ID_FIELD_NUMBER = 3; @@ -902,6 +913,15 @@ public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder() { return getPermission(); } + public static final int NEW_OWNER_ID_FIELD_NUMBER = 5; + private long newOwnerId_; + /** + * optional uint64 new_owner_id = 5; + */ + public long getNewOwnerId() { + return newOwnerId_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -917,8 +937,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (response_ != null) { output.writeMessage(1, getResponse()); } - if (userId_ != 0L) { - output.writeUInt64(2, userId_); + if (oldOwnerId_ != 0L) { + output.writeUInt64(2, oldOwnerId_); } if (roomId_ != 0L) { output.writeUInt64(3, roomId_); @@ -926,6 +946,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (permission_ != null) { output.writeMessage(4, getPermission()); } + if (newOwnerId_ != 0L) { + output.writeUInt64(5, newOwnerId_); + } } public int getSerializedSize() { @@ -937,9 +960,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResponse()); } - if (userId_ != 0L) { + if (oldOwnerId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, userId_); + .computeUInt64Size(2, oldOwnerId_); } if (roomId_ != 0L) { size += com.google.protobuf.CodedOutputStream @@ -949,6 +972,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPermission()); } + if (newOwnerId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, newOwnerId_); + } memoizedSize = size; return size; } @@ -970,8 +997,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getResponse() .equals(other.getResponse()); } - result = result && (getUserId() - == other.getUserId()); + result = result && (getOldOwnerId() + == other.getOldOwnerId()); result = result && (getRoomId() == other.getRoomId()); result = result && (hasPermission() == other.hasPermission()); @@ -979,6 +1006,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getPermission() .equals(other.getPermission()); } + result = result && (getNewOwnerId() + == other.getNewOwnerId()); return result; } @@ -993,9 +1022,9 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } - hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (37 * hash) + OLD_OWNER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserId()); + getOldOwnerId()); hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRoomId()); @@ -1003,6 +1032,9 @@ public int hashCode() { hash = (37 * hash) + PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getPermission().hashCode(); } + hash = (37 * hash) + NEW_OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNewOwnerId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1127,7 +1159,7 @@ public Builder clear() { response_ = null; responseBuilder_ = null; } - userId_ = 0L; + oldOwnerId_ = 0L; roomId_ = 0L; @@ -1137,6 +1169,8 @@ public Builder clear() { permission_ = null; permissionBuilder_ = null; } + newOwnerId_ = 0L; + return this; } @@ -1164,13 +1198,14 @@ public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse b } else { result.response_ = responseBuilder_.build(); } - result.userId_ = userId_; + result.oldOwnerId_ = oldOwnerId_; result.roomId_ = roomId_; if (permissionBuilder_ == null) { result.permission_ = permission_; } else { result.permission_ = permissionBuilder_.build(); } + result.newOwnerId_ = newOwnerId_; onBuilt(); return result; } @@ -1215,8 +1250,8 @@ public Builder mergeFrom(net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomCha if (other.hasResponse()) { mergeResponse(other.getResponse()); } - if (other.getUserId() != 0L) { - setUserId(other.getUserId()); + if (other.getOldOwnerId() != 0L) { + setOldOwnerId(other.getOldOwnerId()); } if (other.getRoomId() != 0L) { setRoomId(other.getRoomId()); @@ -1224,6 +1259,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomCha if (other.hasPermission()) { mergePermission(other.getPermission()); } + if (other.getNewOwnerId() != 0L) { + setNewOwnerId(other.getNewOwnerId()); + } onChanged(); return this; } @@ -1367,28 +1405,28 @@ public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { return responseBuilder_; } - private long userId_ ; + private long oldOwnerId_ ; /** - * optional uint64 user_id = 2; + * optional uint64 old_owner_id = 2; */ - public long getUserId() { - return userId_; + public long getOldOwnerId() { + return oldOwnerId_; } /** - * optional uint64 user_id = 2; + * optional uint64 old_owner_id = 2; */ - public Builder setUserId(long value) { + public Builder setOldOwnerId(long value) { - userId_ = value; + oldOwnerId_ = value; onChanged(); return this; } /** - * optional uint64 user_id = 2; + * optional uint64 old_owner_id = 2; */ - public Builder clearUserId() { + public Builder clearOldOwnerId() { - userId_ = 0L; + oldOwnerId_ = 0L; onChanged(); return this; } @@ -1535,6 +1573,32 @@ public net.iGap.proto.ProtoGlobal.RoomAccessOrBuilder getPermissionOrBuilder() { } return permissionBuilder_; } + + private long newOwnerId_ ; + /** + * optional uint64 new_owner_id = 5; + */ + public long getNewOwnerId() { + return newOwnerId_; + } + /** + * optional uint64 new_owner_id = 5; + */ + public Builder setNewOwnerId(long value) { + + newOwnerId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 new_owner_id = 5; + */ + public Builder clearNewOwnerId() { + + newOwnerId_ = 0L; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -1607,12 +1671,12 @@ public net.iGap.proto.ProtoClientRoomChangeOwner.ClientRoomChangeOwnerResponse g "quest.proto\032\016Response.proto\032\014Global.prot" + "o\"Z\n\025ClientRoomChangeOwner\022\037\n\007request\030\001 " + "\001(\0132\016.proto.Request\022\017\n\007user_id\030\002 \001(\004\022\017\n\007" + - "room_id\030\003 \001(\004\"\213\001\n\035ClientRoomChangeOwnerR" + + "room_id\030\003 \001(\004\"\246\001\n\035ClientRoomChangeOwnerR" + "esponse\022!\n\010response\030\001 \001(\0132\017.proto.Respon" + - "se\022\017\n\007user_id\030\002 \001(\004\022\017\n\007room_id\030\003 \001(\004\022%\n\n" + - "permission\030\004 \001(\0132\021.proto.RoomAccessB,\n\016n" + - "et.iGap.protoB\032ProtoClientRoomChangeOwne" + - "rb\006proto3" + "se\022\024\n\014old_owner_id\030\002 \001(\004\022\017\n\007room_id\030\003 \001(" + + "\004\022%\n\npermission\030\004 \001(\0132\021.proto.RoomAccess" + + "\022\024\n\014new_owner_id\030\005 \001(\004B,\n\016net.iGap.proto" + + "B\032ProtoClientRoomChangeOwnerb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1640,7 +1704,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ClientRoomChangeOwnerResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ClientRoomChangeOwnerResponse_descriptor, - new java.lang.String[] { "Response", "UserId", "RoomId", "Permission", }); + new java.lang.String[] { "Response", "OldOwnerId", "RoomId", "Permission", "NewOwnerId", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); net.iGap.proto.ProtoGlobal.getDescriptor(); diff --git a/src/main/java/net/iGap/proto/ProtoClientSearchMessage.java b/src/main/java/net/iGap/proto/ProtoClientSearchMessage.java new file mode 100644 index 0000000..228cc48 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoClientSearchMessage.java @@ -0,0 +1,2886 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientSearchMessage.proto + +package net.iGap.proto; + +public final class ProtoClientSearchMessage { + private ProtoClientSearchMessage() {} + 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 ClientSearchMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientSearchMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional string query = 2; + */ + java.lang.String getQuery(); + /** + * optional string query = 2; + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * optional uint64 roomId = 3; + */ + long getRoomId(); + + /** + * optional uint64 start_time = 4; + */ + long getStartTime(); + + /** + * optional uint64 end_time = 5; + */ + long getEndTime(); + + /** + * optional uint32 room_offset = 6; + */ + int getRoomOffset(); + + /** + * optional uint32 room_limit = 7; + */ + int getRoomLimit(); + + /** + * optional .proto.SearchType type = 8; + */ + int getTypeValue(); + /** + * optional .proto.SearchType type = 8; + */ + net.iGap.proto.ProtoGlobal.SearchType getType(); + } + /** + * Protobuf type {@code proto.ClientSearchMessage} + */ + public static final class ClientSearchMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.ClientSearchMessage) + ClientSearchMessageOrBuilder { + // Use ClientSearchMessage.newBuilder() to construct. + private ClientSearchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClientSearchMessage() { + query_ = ""; + roomId_ = 0L; + startTime_ = 0L; + endTime_ = 0L; + roomOffset_ = 0; + roomLimit_ = 0; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientSearchMessage( + 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: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 24: { + + roomId_ = input.readUInt64(); + break; + } + case 32: { + + startTime_ = input.readUInt64(); + break; + } + case 40: { + + endTime_ = input.readUInt64(); + break; + } + case 48: { + + roomOffset_ = input.readUInt32(); + break; + } + case 56: { + + roomLimit_ = input.readUInt32(); + break; + } + case 64: { + int rawValue = input.readEnum(); + + type_ = rawValue; + 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 net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object query_; + /** + * optional string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * optional string query = 2; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOMID_FIELD_NUMBER = 3; + private long roomId_; + /** + * optional uint64 roomId = 3; + */ + public long getRoomId() { + return roomId_; + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private long startTime_; + /** + * optional uint64 start_time = 4; + */ + public long getStartTime() { + return startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 5; + private long endTime_; + /** + * optional uint64 end_time = 5; + */ + public long getEndTime() { + return endTime_; + } + + public static final int ROOM_OFFSET_FIELD_NUMBER = 6; + private int roomOffset_; + /** + * optional uint32 room_offset = 6; + */ + public int getRoomOffset() { + return roomOffset_; + } + + public static final int ROOM_LIMIT_FIELD_NUMBER = 7; + private int roomLimit_; + /** + * optional uint32 room_limit = 7; + */ + public int getRoomLimit() { + return roomLimit_; + } + + public static final int TYPE_FIELD_NUMBER = 8; + private int type_; + /** + * optional .proto.SearchType type = 8; + */ + public int getTypeValue() { + return type_; + } + /** + * optional .proto.SearchType type = 8; + */ + public net.iGap.proto.ProtoGlobal.SearchType getType() { + net.iGap.proto.ProtoGlobal.SearchType result = net.iGap.proto.ProtoGlobal.SearchType.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.SearchType.UNRECOGNIZED : result; + } + + 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (roomId_ != 0L) { + output.writeUInt64(3, roomId_); + } + if (startTime_ != 0L) { + output.writeUInt64(4, startTime_); + } + if (endTime_ != 0L) { + output.writeUInt64(5, endTime_); + } + if (roomOffset_ != 0) { + output.writeUInt32(6, roomOffset_); + } + if (roomLimit_ != 0) { + output.writeUInt32(7, roomLimit_); + } + if (type_ != net.iGap.proto.ProtoGlobal.SearchType.SEARCH_ALL_TYPES.getNumber()) { + output.writeEnum(8, type_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (roomId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, roomId_); + } + if (startTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, startTime_); + } + if (endTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, endTime_); + } + if (roomOffset_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, roomOffset_); + } + if (roomLimit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, roomLimit_); + } + if (type_ != net.iGap.proto.ProtoGlobal.SearchType.SEARCH_ALL_TYPES.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, type_); + } + 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && getQuery() + .equals(other.getQuery()); + result = result && (getRoomId() + == other.getRoomId()); + result = result && (getStartTime() + == other.getStartTime()); + result = result && (getEndTime() + == other.getEndTime()); + result = result && (getRoomOffset() + == other.getRoomOffset()); + result = result && (getRoomLimit() + == other.getRoomLimit()); + result = result && type_ == other.type_; + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + ROOMID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartTime()); + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEndTime()); + hash = (37 * hash) + ROOM_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getRoomOffset(); + hash = (37 * hash) + ROOM_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getRoomLimit(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage 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(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage 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 proto.ClientSearchMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.ClientSearchMessage) + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.Builder.class); + } + + // Construct using net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.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(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + query_ = ""; + + roomId_ = 0L; + + startTime_ = 0L; + + endTime_ = 0L; + + roomOffset_ = 0; + + roomLimit_ = 0; + + type_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessage_descriptor; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.getDefaultInstance(); + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage build() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage buildPartial() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage result = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.query_ = query_; + result.roomId_ = roomId_; + result.startTime_ = startTime_; + result.endTime_ = endTime_; + result.roomOffset_ = roomOffset_; + result.roomLimit_ = roomLimit_; + result.type_ = type_; + 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage) { + return mergeFrom((net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage other) { + if (other == net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getStartTime() != 0L) { + setStartTime(other.getStartTime()); + } + if (other.getEndTime() != 0L) { + setEndTime(other.getEndTime()); + } + if (other.getRoomOffset() != 0) { + setRoomOffset(other.getRoomOffset()); + } + if (other.getRoomLimit() != 0) { + setRoomLimit(other.getRoomLimit()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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 { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.lang.Object query_ = ""; + /** + * optional string query = 2; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string query = 2; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string query = 2; + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * optional string query = 2; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * optional string query = 2; + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private long roomId_ ; + /** + * optional uint64 roomId = 3; + */ + public long getRoomId() { + return roomId_; + } + /** + * optional uint64 roomId = 3; + */ + public Builder setRoomId(long value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 roomId = 3; + */ + public Builder clearRoomId() { + + roomId_ = 0L; + onChanged(); + return this; + } + + private long startTime_ ; + /** + * optional uint64 start_time = 4; + */ + public long getStartTime() { + return startTime_; + } + /** + * optional uint64 start_time = 4; + */ + public Builder setStartTime(long value) { + + startTime_ = value; + onChanged(); + return this; + } + /** + * optional uint64 start_time = 4; + */ + public Builder clearStartTime() { + + startTime_ = 0L; + onChanged(); + return this; + } + + private long endTime_ ; + /** + * optional uint64 end_time = 5; + */ + public long getEndTime() { + return endTime_; + } + /** + * optional uint64 end_time = 5; + */ + public Builder setEndTime(long value) { + + endTime_ = value; + onChanged(); + return this; + } + /** + * optional uint64 end_time = 5; + */ + public Builder clearEndTime() { + + endTime_ = 0L; + onChanged(); + return this; + } + + private int roomOffset_ ; + /** + * optional uint32 room_offset = 6; + */ + public int getRoomOffset() { + return roomOffset_; + } + /** + * optional uint32 room_offset = 6; + */ + public Builder setRoomOffset(int value) { + + roomOffset_ = value; + onChanged(); + return this; + } + /** + * optional uint32 room_offset = 6; + */ + public Builder clearRoomOffset() { + + roomOffset_ = 0; + onChanged(); + return this; + } + + private int roomLimit_ ; + /** + * optional uint32 room_limit = 7; + */ + public int getRoomLimit() { + return roomLimit_; + } + /** + * optional uint32 room_limit = 7; + */ + public Builder setRoomLimit(int value) { + + roomLimit_ = value; + onChanged(); + return this; + } + /** + * optional uint32 room_limit = 7; + */ + public Builder clearRoomLimit() { + + roomLimit_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * optional .proto.SearchType type = 8; + */ + public int getTypeValue() { + return type_; + } + /** + * optional .proto.SearchType type = 8; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * optional .proto.SearchType type = 8; + */ + public net.iGap.proto.ProtoGlobal.SearchType getType() { + net.iGap.proto.ProtoGlobal.SearchType result = net.iGap.proto.ProtoGlobal.SearchType.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.SearchType.UNRECOGNIZED : result; + } + /** + * optional .proto.SearchType type = 8; + */ + public Builder setType(net.iGap.proto.ProtoGlobal.SearchType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.SearchType type = 8; + */ + public Builder clearType() { + + type_ = 0; + 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:proto.ClientSearchMessage) + } + + // @@protoc_insertion_point(class_scope:proto.ClientSearchMessage) + private static final net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage(); + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientSearchMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClientSearchMessageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientSearchMessageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + java.util.List + getResultList(); + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getResult(int index); + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + int getResultCount(); + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + java.util.List + getResultOrBuilderList(); + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder getResultOrBuilder( + int index); + + /** + * optional bool rooms_continues = 3; + */ + boolean getRoomsContinues(); + + /** + * optional uint32 total = 4; + */ + int getTotal(); + } + /** + * Protobuf type {@code proto.ClientSearchMessageResponse} + */ + public static final class ClientSearchMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.ClientSearchMessageResponse) + ClientSearchMessageResponseOrBuilder { + // Use ClientSearchMessageResponse.newBuilder() to construct. + private ClientSearchMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClientSearchMessageResponse() { + result_ = java.util.Collections.emptyList(); + roomsContinues_ = false; + total_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientSearchMessageResponse( + 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: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + result_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + result_.add( + input.readMessage(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.parser(), extensionRegistry)); + break; + } + case 24: { + + roomsContinues_ = input.readBool(); + break; + } + case 32: { + + total_ = input.readUInt32(); + 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_ & 0x00000002) == 0x00000002)) { + result_ = java.util.Collections.unmodifiableList(result_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Builder.class); + } + + public interface ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientSearchMessageResponse.Result) + com.google.protobuf.MessageOrBuilder { + + /** + * optional uint64 room_id = 1; + */ + long getRoomId(); + + /** + * optional .proto.RoomMessage message = 2; + */ + boolean hasMessage(); + /** + * optional .proto.RoomMessage message = 2; + */ + net.iGap.proto.ProtoGlobal.RoomMessage getMessage(); + /** + * optional .proto.RoomMessage message = 2; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder(); + } + /** + * Protobuf type {@code proto.ClientSearchMessageResponse.Result} + */ + public static final class Result extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.ClientSearchMessageResponse.Result) + ResultOrBuilder { + // Use Result.newBuilder() to construct. + private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Result() { + roomId_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Result( + 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: { + + roomId_ = input.readUInt64(); + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = 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 net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder.class); + } + + public static final int ROOM_ID_FIELD_NUMBER = 1; + private long roomId_; + /** + * optional uint64 room_id = 1; + */ + public long getRoomId() { + return roomId_; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private net.iGap.proto.ProtoGlobal.RoomMessage message_; + /** + * optional .proto.RoomMessage message = 2; + */ + public boolean hasMessage() { + return message_ != null; + } + /** + * optional .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage getMessage() { + return message_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; + } + /** + * optional .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder() { + return getMessage(); + } + + 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 (roomId_ != 0L) { + output.writeUInt64(1, roomId_); + } + if (message_ != null) { + output.writeMessage(2, getMessage()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (roomId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, roomId_); + } + if (message_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMessage()); + } + 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result) obj; + + boolean result = true; + result = result && (getRoomId() + == other.getRoomId()); + result = result && (hasMessage() == other.hasMessage()); + if (hasMessage()) { + result = result && getMessage() + .equals(other.getMessage()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result 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(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result 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 proto.ClientSearchMessageResponse.Result} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.ClientSearchMessageResponse.Result) + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder.class); + } + + // Construct using net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.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(); + roomId_ = 0L; + + if (messageBuilder_ == null) { + message_ = null; + } else { + message_ = null; + messageBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_Result_descriptor; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance(); + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result build() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result buildPartial() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result result = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result(this); + result.roomId_ = roomId_; + if (messageBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result) { + return mergeFrom((net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result other) { + if (other == net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance()) return this; + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + 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 { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long roomId_ ; + /** + * optional uint64 room_id = 1; + */ + public long getRoomId() { + return roomId_; + } + /** + * optional uint64 room_id = 1; + */ + public Builder setRoomId(long value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 room_id = 1; + */ + public Builder clearRoomId() { + + roomId_ = 0L; + onChanged(); + return this; + } + + private net.iGap.proto.ProtoGlobal.RoomMessage message_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> messageBuilder_; + /** + * optional .proto.RoomMessage message = 2; + */ + public boolean hasMessage() { + return messageBuilder_ != null || message_ != null; + } + /** + * optional .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage getMessage() { + if (messageBuilder_ == null) { + return message_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessage message = 2; + */ + public Builder setMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + messageBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessage message = 2; + */ + public Builder setMessage( + net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessage message = 2; + */ + public Builder mergeMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { + if (messageBuilder_ == null) { + if (message_ != null) { + message_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(message_).mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + messageBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessage message = 2; + */ + public Builder clearMessage() { + if (messageBuilder_ == null) { + message_ = null; + onChanged(); + } else { + message_ = null; + messageBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getMessageBuilder() { + + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessage message = 2; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : message_; + } + } + /** + * optional .proto.RoomMessage message = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); + message_ = null; + } + return messageBuilder_; + } + 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:proto.ClientSearchMessageResponse.Result) + } + + // @@protoc_insertion_point(class_scope:proto.ClientSearchMessageResponse.Result) + private static final net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result(); + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Result parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Result(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int RESULT_FIELD_NUMBER = 2; + private java.util.List result_; + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public java.util.List getResultList() { + return result_; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public java.util.List + getResultOrBuilderList() { + return result_; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public int getResultCount() { + return result_.size(); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getResult(int index) { + return result_.get(index); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder getResultOrBuilder( + int index) { + return result_.get(index); + } + + public static final int ROOMS_CONTINUES_FIELD_NUMBER = 3; + private boolean roomsContinues_; + /** + * optional bool rooms_continues = 3; + */ + public boolean getRoomsContinues() { + return roomsContinues_; + } + + public static final int TOTAL_FIELD_NUMBER = 4; + private int total_; + /** + * optional uint32 total = 4; + */ + public int getTotal() { + return total_; + } + + 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + for (int i = 0; i < result_.size(); i++) { + output.writeMessage(2, result_.get(i)); + } + if (roomsContinues_ != false) { + output.writeBool(3, roomsContinues_); + } + if (total_ != 0) { + output.writeUInt32(4, total_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + for (int i = 0; i < result_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, result_.get(i)); + } + if (roomsContinues_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, roomsContinues_); + } + if (total_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, total_); + } + 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse other = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && getResultList() + .equals(other.getResultList()); + result = result && (getRoomsContinues() + == other.getRoomsContinues()); + result = result && (getTotal() + == other.getTotal()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (37 * hash) + ROOMS_CONTINUES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRoomsContinues()); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse 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(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse 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 proto.ClientSearchMessageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.ClientSearchMessageResponse) + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.class, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resultBuilder_.clear(); + } + roomsContinues_ = false; + + total_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientSearchMessage.internal_static_proto_ClientSearchMessageResponse_descriptor; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse build() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse buildPartial() { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse result = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + result.roomsContinues_ = roomsContinues_; + result.total_ = total_; + 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 net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse other) { + if (other == net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000002); + resultBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + if (other.getRoomsContinues() != false) { + setRoomsContinues(other.getRoomsContinues()); + } + if (other.getTotal() != 0) { + setTotal(other.getTotal()); + } + 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 { + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List result_ = + java.util.Collections.emptyList(); + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder> resultBuilder_; + + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public java.util.List getResultList() { + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public int getResultCount() { + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result getResult(int index) { + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder setResult( + int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder setResult( + int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder addResult(net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder addResult( + int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder addResult( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder addResult( + int index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder addAllResult( + java.lang.Iterable values) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resultBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public Builder removeResult(int index) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder getResultBuilder( + int index) { + return getResultFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder getResultOrBuilder( + int index) { + if (resultBuilder_ == null) { + return result_.get(index); } else { + return resultBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public java.util.List + getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); + } + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder( + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder addResultBuilder( + int index) { + return getResultFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.getDefaultInstance()); + } + /** + * repeated .proto.ClientSearchMessageResponse.Result result = 2; + */ + public java.util.List + getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.Result.Builder, net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse.ResultOrBuilder>( + result_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + + private boolean roomsContinues_ ; + /** + * optional bool rooms_continues = 3; + */ + public boolean getRoomsContinues() { + return roomsContinues_; + } + /** + * optional bool rooms_continues = 3; + */ + public Builder setRoomsContinues(boolean value) { + + roomsContinues_ = value; + onChanged(); + return this; + } + /** + * optional bool rooms_continues = 3; + */ + public Builder clearRoomsContinues() { + + roomsContinues_ = false; + onChanged(); + return this; + } + + private int total_ ; + /** + * optional uint32 total = 4; + */ + public int getTotal() { + return total_; + } + /** + * optional uint32 total = 4; + */ + public Builder setTotal(int value) { + + total_ = value; + onChanged(); + return this; + } + /** + * optional uint32 total = 4; + */ + public Builder clearTotal() { + + total_ = 0; + 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:proto.ClientSearchMessageResponse) + } + + // @@protoc_insertion_point(class_scope:proto.ClientSearchMessageResponse) + private static final net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse(); + } + + public static net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientSearchMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientSearchMessageResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoClientSearchMessage.ClientSearchMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientSearchMessageResponse_Result_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientSearchMessageResponse_Result_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\031ClientSearchMessage.proto\022\005proto\032\rRequ" + + "est.proto\032\016Response.proto\032\014Global.proto\"" + + "\305\001\n\023ClientSearchMessage\022\037\n\007request\030\001 \001(\013" + + "2\016.proto.Request\022\r\n\005query\030\002 \001(\t\022\016\n\006roomI" + + "d\030\003 \001(\004\022\022\n\nstart_time\030\004 \001(\004\022\020\n\010end_time\030" + + "\005 \001(\004\022\023\n\013room_offset\030\006 \001(\r\022\022\n\nroom_limit" + + "\030\007 \001(\r\022\037\n\004type\030\010 \001(\0162\021.proto.SearchType\"" + + "\343\001\n\033ClientSearchMessageResponse\022!\n\010respo" + + "nse\030\001 \001(\0132\017.proto.Response\0229\n\006result\030\002 \003" + + "(\0132).proto.ClientSearchMessageResponse.R", + "esult\022\027\n\017rooms_continues\030\003 \001(\010\022\r\n\005total\030" + + "\004 \001(\r\032>\n\006Result\022\017\n\007room_id\030\001 \001(\004\022#\n\007mess" + + "age\030\002 \001(\0132\022.proto.RoomMessageB*\n\016net.iGa" + + "p.protoB\030ProtoClientSearchMessageb\006proto" + + "3" + }; + 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[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }, assigner); + internal_static_proto_ClientSearchMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientSearchMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchMessage_descriptor, + new java.lang.String[] { "Request", "Query", "RoomId", "StartTime", "EndTime", "RoomOffset", "RoomLimit", "Type", }); + internal_static_proto_ClientSearchMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientSearchMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchMessageResponse_descriptor, + new java.lang.String[] { "Response", "Result", "RoomsContinues", "Total", }); + internal_static_proto_ClientSearchMessageResponse_Result_descriptor = + internal_static_proto_ClientSearchMessageResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_ClientSearchMessageResponse_Result_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientSearchMessageResponse_Result_descriptor, + new java.lang.String[] { "RoomId", "Message", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoError.java b/src/main/java/net/iGap/proto/ProtoError.java index 89e19e9..b7178e6 100644 --- a/src/main/java/net/iGap/proto/ProtoError.java +++ b/src/main/java/net/iGap/proto/ProtoError.java @@ -55,6 +55,11 @@ public interface ErrorResponseOrBuilder extends */ com.google.protobuf.ByteString getMessageBytes(); + + /** + * optional uint64 request_action_id = 6; + */ + long getRequestActionId(); } /** * Protobuf type {@code proto.ErrorResponse} @@ -72,6 +77,7 @@ private ErrorResponse() { minorCode_ = 0; wait_ = 0; message_ = ""; + requestActionId_ = 0L; } @java.lang.Override @@ -133,6 +139,11 @@ private ErrorResponse( message_ = s; break; } + case 48: { + + requestActionId_ = input.readUInt64(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -238,6 +249,15 @@ public java.lang.String getMessage() { } } + public static final int REQUEST_ACTION_ID_FIELD_NUMBER = 6; + private long requestActionId_; + /** + * optional uint64 request_action_id = 6; + */ + public long getRequestActionId() { + return requestActionId_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,6 +285,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } + if (requestActionId_ != 0L) { + output.writeUInt64(6, requestActionId_); + } } public int getSerializedSize() { @@ -291,6 +314,10 @@ public int getSerializedSize() { if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } + if (requestActionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, requestActionId_); + } memoizedSize = size; return size; } @@ -320,6 +347,8 @@ public boolean equals(final java.lang.Object obj) { == other.getWait()); result = result && getMessage() .equals(other.getMessage()); + result = result && (getRequestActionId() + == other.getRequestActionId()); return result; } @@ -342,6 +371,9 @@ public int hashCode() { hash = (53 * hash) + getWait(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + REQUEST_ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestActionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -474,6 +506,8 @@ public Builder clear() { message_ = ""; + requestActionId_ = 0L; + return this; } @@ -505,6 +539,7 @@ public net.iGap.proto.ProtoError.ErrorResponse buildPartial() { result.minorCode_ = minorCode_; result.wait_ = wait_; result.message_ = message_; + result.requestActionId_ = requestActionId_; onBuilt(); return result; } @@ -562,6 +597,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoError.ErrorResponse other) { message_ = other.message_; onChanged(); } + if (other.getRequestActionId() != 0L) { + setRequestActionId(other.getRequestActionId()); + } onChanged(); return this; } @@ -851,6 +889,32 @@ public Builder setMessageBytes( onChanged(); return this; } + + private long requestActionId_ ; + /** + * optional uint64 request_action_id = 6; + */ + public long getRequestActionId() { + return requestActionId_; + } + /** + * optional uint64 request_action_id = 6; + */ + public Builder setRequestActionId(long value) { + + requestActionId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 request_action_id = 6; + */ + public Builder clearRequestActionId() { + + requestActionId_ = 0L; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -914,11 +978,12 @@ public net.iGap.proto.ProtoError.ErrorResponse getDefaultInstanceForType() { descriptor; static { java.lang.String[] descriptorData = { - "\n\013Error.proto\022\005proto\032\016Response.proto\"y\n\r" + - "ErrorResponse\022!\n\010response\030\001 \001(\0132\017.proto." + - "Response\022\022\n\nmajor_code\030\002 \001(\r\022\022\n\nminor_co" + - "de\030\003 \001(\r\022\014\n\004wait\030\004 \001(\r\022\017\n\007message\030\005 \001(\tB" + - "\034\n\016net.iGap.protoB\nProtoErrorb\006proto3" + "\n\013Error.proto\022\005proto\032\016Response.proto\"\224\001\n" + + "\rErrorResponse\022!\n\010response\030\001 \001(\0132\017.proto" + + ".Response\022\022\n\nmajor_code\030\002 \001(\r\022\022\n\nminor_c" + + "ode\030\003 \001(\r\022\014\n\004wait\030\004 \001(\r\022\017\n\007message\030\005 \001(\t" + + "\022\031\n\021request_action_id\030\006 \001(\004B\034\n\016net.iGap." + + "protoB\nProtoErrorb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -938,7 +1003,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ErrorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ErrorResponse_descriptor, - new java.lang.String[] { "Response", "MajorCode", "MinorCode", "Wait", "Message", }); + new java.lang.String[] { "Response", "MajorCode", "MinorCode", "Wait", "Message", "RequestActionId", }); net.iGap.proto.ProtoResponse.getDescriptor(); } diff --git a/src/main/java/net/iGap/proto/ProtoGlobal.java b/src/main/java/net/iGap/proto/ProtoGlobal.java index 1861b83..2e363a5 100644 --- a/src/main/java/net/iGap/proto/ProtoGlobal.java +++ b/src/main/java/net/iGap/proto/ProtoGlobal.java @@ -559,6 +559,14 @@ public enum RoomMessageType * STORY_REPLY = 18; */ STORY_REPLY(18), + /** + * CARD_TO_CARD = 19; + */ + CARD_TO_CARD(19), + /** + * BOT = 20; + */ + BOT(20), UNRECOGNIZED(-1), ; @@ -638,6 +646,14 @@ public enum RoomMessageType * STORY_REPLY = 18; */ public static final int STORY_REPLY_VALUE = 18; + /** + * CARD_TO_CARD = 19; + */ + public static final int CARD_TO_CARD_VALUE = 19; + /** + * BOT = 20; + */ + public static final int BOT_VALUE = 20; public final int getNumber() { @@ -677,6 +693,8 @@ public static RoomMessageType forNumber(int value) { case 16: return STICKER; case 17: return STORY; case 18: return STORY_REPLY; + case 19: return CARD_TO_CARD; + case 20: return BOT; default: return null; } } @@ -961,6 +979,175 @@ private RoomMessageReaction(int value) { // @@protoc_insertion_point(enum_scope:proto.RoomMessageReaction) } + /** + * Protobuf enum {@code proto.SearchType} + */ + public enum SearchType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SEARCH_ALL_TYPES = 0; + */ + SEARCH_ALL_TYPES(0), + /** + * SEARCH_IMAGE = 1; + */ + SEARCH_IMAGE(1), + /** + * SEARCH_VIDEO = 2; + */ + SEARCH_VIDEO(2), + /** + * SEARCH_AUDIO = 3; + */ + SEARCH_AUDIO(3), + /** + * SEARCH_FILE = 4; + */ + SEARCH_FILE(4), + /** + * SEARCH_VOICE = 5; + */ + SEARCH_VOICE(5), + /** + * SEARCH_GIF = 6; + */ + SEARCH_GIF(6), + /** + * SEARCH_CONTACT = 7; + */ + SEARCH_CONTACT(7), + /** + *
+     * video & image & gif
+     * 
+ * + * SEARCH_MEDIA = 8; + */ + SEARCH_MEDIA(8), + UNRECOGNIZED(-1), + ; + + /** + * SEARCH_ALL_TYPES = 0; + */ + public static final int SEARCH_ALL_TYPES_VALUE = 0; + /** + * SEARCH_IMAGE = 1; + */ + public static final int SEARCH_IMAGE_VALUE = 1; + /** + * SEARCH_VIDEO = 2; + */ + public static final int SEARCH_VIDEO_VALUE = 2; + /** + * SEARCH_AUDIO = 3; + */ + public static final int SEARCH_AUDIO_VALUE = 3; + /** + * SEARCH_FILE = 4; + */ + public static final int SEARCH_FILE_VALUE = 4; + /** + * SEARCH_VOICE = 5; + */ + public static final int SEARCH_VOICE_VALUE = 5; + /** + * SEARCH_GIF = 6; + */ + public static final int SEARCH_GIF_VALUE = 6; + /** + * SEARCH_CONTACT = 7; + */ + public static final int SEARCH_CONTACT_VALUE = 7; + /** + *
+     * video & image & gif
+     * 
+ * + * SEARCH_MEDIA = 8; + */ + public static final int SEARCH_MEDIA_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SearchType valueOf(int value) { + return forNumber(value); + } + + public static SearchType forNumber(int value) { + switch (value) { + case 0: return SEARCH_ALL_TYPES; + case 1: return SEARCH_IMAGE; + case 2: return SEARCH_VIDEO; + case 3: return SEARCH_AUDIO; + case 4: return SEARCH_FILE; + case 5: return SEARCH_VOICE; + case 6: return SEARCH_GIF; + case 7: return SEARCH_CONTACT; + case 8: return SEARCH_MEDIA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SearchType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchType findValueByNumber(int number) { + return SearchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(7); + } + + private static final SearchType[] VALUES = values(); + + public static SearchType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SearchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.SearchType) + } + /** * Protobuf enum {@code proto.Originator} */ @@ -1033,7 +1220,7 @@ public Originator findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(7); + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(8); } private static final Originator[] VALUES = values(); @@ -1248,7 +1435,7 @@ public ClientAction findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(8); + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(9); } private static final ClientAction[] VALUES = values(); @@ -1373,7 +1560,7 @@ public RoomType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(9); + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(10); } private static final RoomType[] VALUES = values(); @@ -1471,7 +1658,7 @@ public RoomMute findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(10); + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(11); } private static final RoomMute[] VALUES = values(); @@ -1623,7 +1810,7 @@ public PrivacyType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(11); + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(12); } private static final PrivacyType[] VALUES = values(); @@ -1730,7 +1917,7 @@ public PrivacyLevel findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(12); + return net.iGap.proto.ProtoGlobal.getDescriptor().getEnumTypes().get(13); } private static final PrivacyLevel[] VALUES = values(); @@ -17320,6 +17507,11 @@ public interface RegisteredUserOrBuilder extends * optional bool bot = 18; */ boolean getBot(); + + /** + * optional bool mxb_enable = 19; + */ + boolean getMxbEnable(); } /** * Protobuf type {@code proto.RegisteredUser} @@ -17350,6 +17542,7 @@ private RegisteredUser() { bio_ = ""; verified_ = false; bot_ = false; + mxbEnable_ = false; } @java.lang.Override @@ -17484,6 +17677,11 @@ private RegisteredUser( bot_ = input.readBool(); break; } + case 152: { + + mxbEnable_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -18040,6 +18238,15 @@ public boolean getBot() { return bot_; } + public static final int MXB_ENABLE_FIELD_NUMBER = 19; + private boolean mxbEnable_; + /** + * optional bool mxb_enable = 19; + */ + public boolean getMxbEnable() { + return mxbEnable_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -18106,6 +18313,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (bot_ != false) { output.writeBool(18, bot_); } + if (mxbEnable_ != false) { + output.writeBool(19, mxbEnable_); + } } public int getSerializedSize() { @@ -18177,6 +18387,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(18, bot_); } + if (mxbEnable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, mxbEnable_); + } memoizedSize = size; return size; } @@ -18231,6 +18445,8 @@ public boolean equals(final java.lang.Object obj) { == other.getVerified()); result = result && (getBot() == other.getBot()); + result = result && (getMxbEnable() + == other.getMxbEnable()); return result; } @@ -18285,6 +18501,9 @@ public int hashCode() { hash = (37 * hash) + BOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBot()); + hash = (37 * hash) + MXB_ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMxbEnable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -18443,6 +18662,8 @@ public Builder clear() { bot_ = false; + mxbEnable_ = false; + return this; } @@ -18487,6 +18708,7 @@ public net.iGap.proto.ProtoGlobal.RegisteredUser buildPartial() { result.bio_ = bio_; result.verified_ = verified_; result.bot_ = bot_; + result.mxbEnable_ = mxbEnable_; onBuilt(); return result; } @@ -18590,6 +18812,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RegisteredUser other) { if (other.getBot() != false) { setBot(other.getBot()); } + if (other.getMxbEnable() != false) { + setMxbEnable(other.getMxbEnable()); + } onChanged(); return this; } @@ -19536,6 +19761,32 @@ public Builder clearBot() { onChanged(); return this; } + + private boolean mxbEnable_ ; + /** + * optional bool mxb_enable = 19; + */ + public boolean getMxbEnable() { + return mxbEnable_; + } + /** + * optional bool mxb_enable = 19; + */ + public Builder setMxbEnable(boolean value) { + + mxbEnable_ = value; + onChanged(); + return this; + } + /** + * optional bool mxb_enable = 19; + */ + public Builder clearMxbEnable() { + + mxbEnable_ = false; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -20454,6 +20705,82 @@ public interface RoomMessageOrBuilder extends * optional uint64 version_document_id = 28; */ long getVersionDocumentId(); + + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + boolean hasGroupExtra(); + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getGroupExtra(); + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder getGroupExtraOrBuilder(); + + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + boolean hasSticker(); + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); + + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + boolean hasCardToCard(); + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + java.util.List + getBotActionListsList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); + + /** + * optional .proto.TextSigns text_signs = 33; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 33; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 33; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.RoomMessage} @@ -20485,6 +20812,7 @@ private RoomMessage() { extraType_ = 0; documentId_ = 0L; versionDocumentId_ = 0L; + botActionLists_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -20498,6 +20826,7 @@ private RoomMessage( throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; + int mutable_bitField1_ = 0; try { boolean done = false; while (!done) { @@ -20737,6 +21066,67 @@ private RoomMessage( versionDocumentId_ = input.readUInt64(); break; } + case 234: { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder subBuilder = null; + if (groupExtra_ != null) { + subBuilder = groupExtra_.toBuilder(); + } + groupExtra_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(groupExtra_); + groupExtra_ = subBuilder.buildPartial(); + } + + break; + } + case 242: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 250: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 258: { + if (!((mutable_bitField0_ & 0x80000000) == 0x80000000)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x80000000; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 266: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -20745,6 +21135,9 @@ private RoomMessage( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x80000000) == 0x80000000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } makeExtensionsImmutable(); } } @@ -23660,433 +24053,994 @@ public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getDefaultInstanceFor } - public static final int ROOM_ID_FIELD_NUMBER = 26; - private long roomId_; - /** - * optional uint64 room_id = 26; - */ - public long getRoomId() { - return roomId_; - } + public interface GroupExtraOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.RoomMessage.GroupExtra) + com.google.protobuf.MessageOrBuilder { - public static final int MESSAGE_ID_FIELD_NUMBER = 1; - private long messageId_; - /** - * optional uint64 message_id = 1 [jstype = JS_STRING]; - */ - public long getMessageId() { - return messageId_; + /** + * optional .proto.Mention mentions = 1; + */ + boolean hasMentions(); + /** + * optional .proto.Mention mentions = 1; + */ + net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * optional .proto.Mention mentions = 1; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); } - - public static final int MESSAGE_VERSION_FIELD_NUMBER = 2; - private long messageVersion_; /** - * optional uint64 message_version = 2 [jstype = JS_STRING]; + * Protobuf type {@code proto.RoomMessage.GroupExtra} */ - public long getMessageVersion() { - return messageVersion_; - } + public static final class GroupExtra extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.RoomMessage.GroupExtra) + GroupExtraOrBuilder { + // Use GroupExtra.newBuilder() to construct. + private GroupExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GroupExtra() { + } - public static final int STATUS_FIELD_NUMBER = 3; - private int status_; - /** - * optional .proto.RoomMessageStatus status = 3; - */ - public int getStatusValue() { - return status_; - } - /** - * optional .proto.RoomMessageStatus status = 3; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { - net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); - return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private GroupExtra( + 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: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } - public static final int STATUS_VERSION_FIELD_NUMBER = 4; - private long statusVersion_; - /** - * optional uint64 status_version = 4 [jstype = JS_STRING]; - */ - public long getStatusVersion() { - return statusVersion_; - } + 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 net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_descriptor; + } - public static final int MESSAGE_TYPE_FIELD_NUMBER = 5; - private int messageType_; - /** - * optional .proto.RoomMessageType message_type = 5; - */ - public int getMessageTypeValue() { - return messageType_; - } - /** - * optional .proto.RoomMessageType message_type = 5; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { - net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); - return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.class, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder.class); + } - public static final int MESSAGE_FIELD_NUMBER = 6; - private volatile java.lang.Object message_; - /** - * optional string message = 6; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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(); - message_ = s; - return s; + public static final int MENTIONS_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoGlobal.Mention mentions_; + /** + * optional .proto.Mention mentions = 1; + */ + public boolean hasMentions() { + return mentions_ != null; } - } - /** - * optional string message = 6; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * optional .proto.Mention mentions = 1; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + /** + * optional .proto.Mention mentions = 1; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); } - } - public static final int ATTACHMENT_FIELD_NUMBER = 7; - private net.iGap.proto.ProtoGlobal.File attachment_; - /** - * optional .proto.File attachment = 7; - */ - public boolean hasAttachment() { - return attachment_ != null; - } - /** - * optional .proto.File attachment = 7; - */ - public net.iGap.proto.ProtoGlobal.File getAttachment() { - return attachment_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : attachment_; - } - /** - * optional .proto.File attachment = 7; - */ - public net.iGap.proto.ProtoGlobal.FileOrBuilder getAttachmentOrBuilder() { - return getAttachment(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int AUTHOR_FIELD_NUMBER = 8; - private net.iGap.proto.ProtoGlobal.RoomMessage.Author author_; - /** - * optional .proto.RoomMessage.Author author = 8; - */ - public boolean hasAuthor() { - return author_ != null; - } - /** - * optional .proto.RoomMessage.Author author = 8; - */ - public net.iGap.proto.ProtoGlobal.RoomMessage.Author getAuthor() { - return author_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance() : author_; - } - /** - * optional .proto.RoomMessage.Author author = 8; - */ - public net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder getAuthorOrBuilder() { - return getAuthor(); - } + memoizedIsInitialized = 1; + return true; + } - public static final int LOCATION_FIELD_NUMBER = 9; - private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; - /** - * optional .proto.RoomMessageLocation location = 9; - */ - public boolean hasLocation() { - return location_ != null; - } - /** - * optional .proto.RoomMessageLocation location = 9; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { - return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; - } - /** - * optional .proto.RoomMessageLocation location = 9; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { - return getLocation(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mentions_ != null) { + output.writeMessage(1, getMentions()); + } + } - public static final int LOG_FIELD_NUMBER = 10; - private net.iGap.proto.ProtoGlobal.RoomMessageLog log_; - /** - * optional .proto.RoomMessageLog log = 10; - */ - public boolean hasLog() { - return log_ != null; - } - /** - * optional .proto.RoomMessageLog log = 10; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageLog getLog() { - return log_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance() : log_; - } - /** - * optional .proto.RoomMessageLog log = 10; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder getLogOrBuilder() { - return getLog(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int CONTACT_FIELD_NUMBER = 11; - private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; - /** - * optional .proto.RoomMessageContact contact = 11; - */ - public boolean hasContact() { - return contact_ != null; - } - /** - * optional .proto.RoomMessageContact contact = 11; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { - return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; - } - /** - * optional .proto.RoomMessageContact contact = 11; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { - return getContact(); - } + size = 0; + if (mentions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMentions()); + } + memoizedSize = size; + return size; + } - public static final int WALLET_FIELD_NUMBER = 22; - private net.iGap.proto.ProtoGlobal.RoomMessageWallet wallet_; - /** - * optional .proto.RoomMessageWallet wallet = 22; - */ - public boolean hasWallet() { - return wallet_ != null; - } - /** - * optional .proto.RoomMessageWallet wallet = 22; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageWallet getWallet() { - return wallet_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance() : wallet_; - } - /** - * optional .proto.RoomMessageWallet wallet = 22; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder getWalletOrBuilder() { - return getWallet(); - } + 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 net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra other = (net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra) obj; - public static final int EDITED_FIELD_NUMBER = 12; - private boolean edited_; - /** - * optional bool edited = 12; - */ - public boolean getEdited() { - return edited_; - } + boolean result = true; + result = result && (hasMentions() == other.hasMentions()); + if (hasMentions()) { + result = result && getMentions() + .equals(other.getMentions()); + } + return result; + } - public static final int CREATE_TIME_FIELD_NUMBER = 13; - private int createTime_; - /** - * optional uint32 create_time = 13; - */ - public int getCreateTime() { - return createTime_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int UPDATE_TIME_FIELD_NUMBER = 14; - private int updateTime_; - /** - * optional uint32 update_time = 14; - */ - public int getUpdateTime() { - return updateTime_; - } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra 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 net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra 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 net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra 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 static final int DELETED_FIELD_NUMBER = 15; - private boolean deleted_; - /** - * optional bool deleted = 15; - */ - public boolean getDeleted() { - return deleted_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int FORWARD_FROM_FIELD_NUMBER = 16; - private net.iGap.proto.ProtoGlobal.RoomMessage forwardFrom_; - /** - * optional .proto.RoomMessage forward_from = 16; - */ - public boolean hasForwardFrom() { - return forwardFrom_ != null; - } - /** - * optional .proto.RoomMessage forward_from = 16; - */ - public net.iGap.proto.ProtoGlobal.RoomMessage getForwardFrom() { - return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : forwardFrom_; - } - /** - * optional .proto.RoomMessage forward_from = 16; - */ - public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getForwardFromOrBuilder() { - return getForwardFrom(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.RoomMessage.GroupExtra} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.RoomMessage.GroupExtra) + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.class, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.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(); + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessage_GroupExtra_descriptor; + } + + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra build() { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra result = new net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra(this); + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + 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 net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance()) return this; + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } + 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 { + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoGlobal.Mention mentions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; + /** + * optional .proto.Mention mentions = 1; + */ + public boolean hasMentions() { + return mentionsBuilder_ != null || mentions_ != null; + } + /** + * optional .proto.Mention mentions = 1; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } + } + /** + * optional .proto.Mention mentions = 1; + */ + public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 1; + */ + public Builder setMentions( + net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Mention mentions = 1; + */ + public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 1; + */ + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Mention mentions = 1; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * optional .proto.Mention mentions = 1; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + } + /** + * optional .proto.Mention mentions = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; + } + return mentionsBuilder_; + } + 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:proto.RoomMessage.GroupExtra) + } + + // @@protoc_insertion_point(class_scope:proto.RoomMessage.GroupExtra) + private static final net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra(); + } + + public static net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public GroupExtra parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupExtra(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int REPLY_TO_FIELD_NUMBER = 17; - private net.iGap.proto.ProtoGlobal.RoomMessage replyTo_; - /** - * optional .proto.RoomMessage reply_to = 17; - */ - public boolean hasReplyTo() { - return replyTo_ != null; } + + private int bitField0_; + public static final int ROOM_ID_FIELD_NUMBER = 26; + private long roomId_; /** - * optional .proto.RoomMessage reply_to = 17; + * optional uint64 room_id = 26; */ - public net.iGap.proto.ProtoGlobal.RoomMessage getReplyTo() { - return replyTo_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : replyTo_; + public long getRoomId() { + return roomId_; } + + public static final int MESSAGE_ID_FIELD_NUMBER = 1; + private long messageId_; /** - * optional .proto.RoomMessage reply_to = 17; + * optional uint64 message_id = 1 [jstype = JS_STRING]; */ - public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getReplyToOrBuilder() { - return getReplyTo(); + public long getMessageId() { + return messageId_; } - public static final int STORY_FIELD_NUMBER = 25; - private net.iGap.proto.ProtoGlobal.RoomMessageStory story_; + public static final int MESSAGE_VERSION_FIELD_NUMBER = 2; + private long messageVersion_; /** - * optional .proto.RoomMessageStory story = 25; + * optional uint64 message_version = 2 [jstype = JS_STRING]; */ - public boolean hasStory() { - return story_ != null; + public long getMessageVersion() { + return messageVersion_; } + + public static final int STATUS_FIELD_NUMBER = 3; + private int status_; /** - * optional .proto.RoomMessageStory story = 25; + * optional .proto.RoomMessageStatus status = 3; */ - public net.iGap.proto.ProtoGlobal.RoomMessageStory getStory() { - return story_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance() : story_; + public int getStatusValue() { + return status_; } /** - * optional .proto.RoomMessageStory story = 25; + * optional .proto.RoomMessageStatus status = 3; */ - public net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder getStoryOrBuilder() { - return getStory(); + public net.iGap.proto.ProtoGlobal.RoomMessageStatus getStatus() { + net.iGap.proto.ProtoGlobal.RoomMessageStatus result = net.iGap.proto.ProtoGlobal.RoomMessageStatus.valueOf(status_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageStatus.UNRECOGNIZED : result; } - public static final int PREVIOUS_MESSAGE_ID_FIELD_NUMBER = 18; - private long previousMessageId_; + public static final int STATUS_VERSION_FIELD_NUMBER = 4; + private long statusVersion_; /** - * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; + * optional uint64 status_version = 4 [jstype = JS_STRING]; */ - public long getPreviousMessageId() { - return previousMessageId_; + public long getStatusVersion() { + return statusVersion_; } - public static final int RANDOM_ID_FIELD_NUMBER = 21; - private long randomId_; + public static final int MESSAGE_TYPE_FIELD_NUMBER = 5; + private int messageType_; /** - * optional uint64 random_id = 21 [jstype = JS_STRING]; + * optional .proto.RoomMessageType message_type = 5; */ - public long getRandomId() { - return randomId_; + public int getMessageTypeValue() { + return messageType_; } - - public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 23; - private int additionalType_; /** - * optional uint32 additional_type = 23; + * optional .proto.RoomMessageType message_type = 5; */ - public int getAdditionalType() { - return additionalType_; + public net.iGap.proto.ProtoGlobal.RoomMessageType getMessageType() { + net.iGap.proto.ProtoGlobal.RoomMessageType result = net.iGap.proto.ProtoGlobal.RoomMessageType.valueOf(messageType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageType.UNRECOGNIZED : result; } - public static final int ADDITIONAL_DATA_FIELD_NUMBER = 24; - private volatile java.lang.Object additionalData_; + public static final int MESSAGE_FIELD_NUMBER = 6; + private volatile java.lang.Object message_; /** - * optional string additional_data = 24; + * optional string message = 6; */ - public java.lang.String getAdditionalData() { - java.lang.Object ref = additionalData_; + public java.lang.String getMessage() { + java.lang.Object ref = message_; 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(); - additionalData_ = s; + message_ = s; return s; } } /** - * optional string additional_data = 24; + * optional string message = 6; */ public com.google.protobuf.ByteString - getAdditionalDataBytes() { - java.lang.Object ref = additionalData_; + getMessageBytes() { + java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - additionalData_ = b; + message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int EXTRA_TYPE_FIELD_NUMBER = 19; - private int extraType_; + public static final int ATTACHMENT_FIELD_NUMBER = 7; + private net.iGap.proto.ProtoGlobal.File attachment_; /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * optional .proto.File attachment = 7; */ - public int getExtraTypeValue() { - return extraType_; + public boolean hasAttachment() { + return attachment_ != null; } /** - * optional .proto.RoomMessage.ExtraType extra_type = 19; + * optional .proto.File attachment = 7; */ - public net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType getExtraType() { - net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.valueOf(extraType_); - return result == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.UNRECOGNIZED : result; + public net.iGap.proto.ProtoGlobal.File getAttachment() { + return attachment_ == null ? net.iGap.proto.ProtoGlobal.File.getDefaultInstance() : attachment_; + } + /** + * optional .proto.File attachment = 7; + */ + public net.iGap.proto.ProtoGlobal.FileOrBuilder getAttachmentOrBuilder() { + return getAttachment(); } - public static final int CHANNEL_EXTRA_FIELD_NUMBER = 20; - private net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra channelExtra_; + public static final int AUTHOR_FIELD_NUMBER = 8; + private net.iGap.proto.ProtoGlobal.RoomMessage.Author author_; /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * optional .proto.RoomMessage.Author author = 8; */ - public boolean hasChannelExtra() { - return channelExtra_ != null; + public boolean hasAuthor() { + return author_ != null; } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * optional .proto.RoomMessage.Author author = 8; */ - public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getChannelExtra() { - return channelExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance() : channelExtra_; + public net.iGap.proto.ProtoGlobal.RoomMessage.Author getAuthor() { + return author_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.Author.getDefaultInstance() : author_; } /** - * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + * optional .proto.RoomMessage.Author author = 8; */ - public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder getChannelExtraOrBuilder() { - return getChannelExtra(); + public net.iGap.proto.ProtoGlobal.RoomMessage.AuthorOrBuilder getAuthorOrBuilder() { + return getAuthor(); } - public static final int DOCUMENT_ID_FIELD_NUMBER = 27; - private long documentId_; + public static final int LOCATION_FIELD_NUMBER = 9; + private net.iGap.proto.ProtoGlobal.RoomMessageLocation location_; + /** + * optional .proto.RoomMessageLocation location = 9; + */ + public boolean hasLocation() { + return location_ != null; + } + /** + * optional .proto.RoomMessageLocation location = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocation getLocation() { + return location_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLocation.getDefaultInstance() : location_; + } + /** + * optional .proto.RoomMessageLocation location = 9; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLocationOrBuilder getLocationOrBuilder() { + return getLocation(); + } + + public static final int LOG_FIELD_NUMBER = 10; + private net.iGap.proto.ProtoGlobal.RoomMessageLog log_; + /** + * optional .proto.RoomMessageLog log = 10; + */ + public boolean hasLog() { + return log_ != null; + } + /** + * optional .proto.RoomMessageLog log = 10; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLog getLog() { + return log_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageLog.getDefaultInstance() : log_; + } + /** + * optional .proto.RoomMessageLog log = 10; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageLogOrBuilder getLogOrBuilder() { + return getLog(); + } + + public static final int CONTACT_FIELD_NUMBER = 11; + private net.iGap.proto.ProtoGlobal.RoomMessageContact contact_; + /** + * optional .proto.RoomMessageContact contact = 11; + */ + public boolean hasContact() { + return contact_ != null; + } + /** + * optional .proto.RoomMessageContact contact = 11; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContact getContact() { + return contact_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageContact.getDefaultInstance() : contact_; + } + /** + * optional .proto.RoomMessageContact contact = 11; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageContactOrBuilder getContactOrBuilder() { + return getContact(); + } + + public static final int WALLET_FIELD_NUMBER = 22; + private net.iGap.proto.ProtoGlobal.RoomMessageWallet wallet_; + /** + * optional .proto.RoomMessageWallet wallet = 22; + */ + public boolean hasWallet() { + return wallet_ != null; + } + /** + * optional .proto.RoomMessageWallet wallet = 22; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWallet getWallet() { + return wallet_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageWallet.getDefaultInstance() : wallet_; + } + /** + * optional .proto.RoomMessageWallet wallet = 22; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageWalletOrBuilder getWalletOrBuilder() { + return getWallet(); + } + + public static final int EDITED_FIELD_NUMBER = 12; + private boolean edited_; + /** + * optional bool edited = 12; + */ + public boolean getEdited() { + return edited_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 13; + private int createTime_; + /** + * optional uint32 create_time = 13; + */ + public int getCreateTime() { + return createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 14; + private int updateTime_; + /** + * optional uint32 update_time = 14; + */ + public int getUpdateTime() { + return updateTime_; + } + + public static final int DELETED_FIELD_NUMBER = 15; + private boolean deleted_; + /** + * optional bool deleted = 15; + */ + public boolean getDeleted() { + return deleted_; + } + + public static final int FORWARD_FROM_FIELD_NUMBER = 16; + private net.iGap.proto.ProtoGlobal.RoomMessage forwardFrom_; + /** + * optional .proto.RoomMessage forward_from = 16; + */ + public boolean hasForwardFrom() { + return forwardFrom_ != null; + } + /** + * optional .proto.RoomMessage forward_from = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage getForwardFrom() { + return forwardFrom_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : forwardFrom_; + } + /** + * optional .proto.RoomMessage forward_from = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getForwardFromOrBuilder() { + return getForwardFrom(); + } + + public static final int REPLY_TO_FIELD_NUMBER = 17; + private net.iGap.proto.ProtoGlobal.RoomMessage replyTo_; + /** + * optional .proto.RoomMessage reply_to = 17; + */ + public boolean hasReplyTo() { + return replyTo_ != null; + } + /** + * optional .proto.RoomMessage reply_to = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage getReplyTo() { + return replyTo_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : replyTo_; + } + /** + * optional .proto.RoomMessage reply_to = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getReplyToOrBuilder() { + return getReplyTo(); + } + + public static final int STORY_FIELD_NUMBER = 25; + private net.iGap.proto.ProtoGlobal.RoomMessageStory story_; + /** + * optional .proto.RoomMessageStory story = 25; + */ + public boolean hasStory() { + return story_ != null; + } + /** + * optional .proto.RoomMessageStory story = 25; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStory getStory() { + return story_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageStory.getDefaultInstance() : story_; + } + /** + * optional .proto.RoomMessageStory story = 25; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStoryOrBuilder getStoryOrBuilder() { + return getStory(); + } + + public static final int PREVIOUS_MESSAGE_ID_FIELD_NUMBER = 18; + private long previousMessageId_; + /** + * optional uint64 previous_message_id = 18 [jstype = JS_STRING]; + */ + public long getPreviousMessageId() { + return previousMessageId_; + } + + public static final int RANDOM_ID_FIELD_NUMBER = 21; + private long randomId_; + /** + * optional uint64 random_id = 21 [jstype = JS_STRING]; + */ + public long getRandomId() { + return randomId_; + } + + public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 23; + private int additionalType_; + /** + * optional uint32 additional_type = 23; + */ + public int getAdditionalType() { + return additionalType_; + } + + public static final int ADDITIONAL_DATA_FIELD_NUMBER = 24; + private volatile java.lang.Object additionalData_; + /** + * optional string additional_data = 24; + */ + public java.lang.String getAdditionalData() { + java.lang.Object ref = additionalData_; + 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(); + additionalData_ = s; + return s; + } + } + /** + * optional string additional_data = 24; + */ + public com.google.protobuf.ByteString + getAdditionalDataBytes() { + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTRA_TYPE_FIELD_NUMBER = 19; + private int extraType_; + /** + * optional .proto.RoomMessage.ExtraType extra_type = 19; + */ + public int getExtraTypeValue() { + return extraType_; + } + /** + * optional .proto.RoomMessage.ExtraType extra_type = 19; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType getExtraType() { + net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType result = net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.valueOf(extraType_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ExtraType.UNRECOGNIZED : result; + } + + public static final int CHANNEL_EXTRA_FIELD_NUMBER = 20; + private net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra channelExtra_; + /** + * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + */ + public boolean hasChannelExtra() { + return channelExtra_ != null; + } + /** + * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra getChannelExtra() { + return channelExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtra.getDefaultInstance() : channelExtra_; + } + /** + * optional .proto.RoomMessage.ChannelExtra channel_extra = 20; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.ChannelExtraOrBuilder getChannelExtraOrBuilder() { + return getChannelExtra(); + } + + public static final int DOCUMENT_ID_FIELD_NUMBER = 27; + private long documentId_; /** * optional uint64 document_id = 27; */ @@ -24103,6 +25057,125 @@ public long getVersionDocumentId() { return versionDocumentId_; } + public static final int GROUP_EXTRA_FIELD_NUMBER = 29; + private net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra groupExtra_; + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public boolean hasGroupExtra() { + return groupExtra_ != null; + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getGroupExtra() { + return groupExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance() : groupExtra_; + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder getGroupExtraOrBuilder() { + return getGroupExtra(); + } + + public static final int STICKER_FIELD_NUMBER = 30; + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public boolean hasSticker() { + return sticker_ != null; + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); + } + + public static final int CARD_TO_CARD_FIELD_NUMBER = 31; + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public boolean hasCardToCard() { + return cardToCard_ != null; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); + } + + public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 32; + private java.util.List botActionLists_; + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public java.util.List getBotActionListsList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public java.util.List + getBotActionListsOrBuilderList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public int getBotActionListsCount() { + return botActionLists_.size(); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + return botActionLists_.get(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + return botActionLists_.get(index); + } + + public static final int TEXT_SIGNS_FIELD_NUMBER = 33; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 33; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -24199,6 +25272,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (versionDocumentId_ != 0L) { output.writeUInt64(28, versionDocumentId_); } + if (groupExtra_ != null) { + output.writeMessage(29, getGroupExtra()); + } + if (sticker_ != null) { + output.writeMessage(30, getSticker()); + } + if (cardToCard_ != null) { + output.writeMessage(31, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + output.writeMessage(32, botActionLists_.get(i)); + } + if (textSigns_ != null) { + output.writeMessage(33, getTextSigns()); + } } public int getSerializedSize() { @@ -24316,6 +25404,26 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(28, versionDocumentId_); } + if (groupExtra_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getGroupExtra()); + } + if (sticker_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getSticker()); + } + if (cardToCard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, botActionLists_.get(i)); + } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, getTextSigns()); + } memoizedSize = size; return size; } @@ -24415,6 +25523,28 @@ public boolean equals(final java.lang.Object obj) { == other.getDocumentId()); result = result && (getVersionDocumentId() == other.getVersionDocumentId()); + result = result && (hasGroupExtra() == other.hasGroupExtra()); + if (hasGroupExtra()) { + result = result && getGroupExtra() + .equals(other.getGroupExtra()); + } + result = result && (hasSticker() == other.hasSticker()); + if (hasSticker()) { + result = result && getSticker() + .equals(other.getSticker()); + } + result = result && (hasCardToCard() == other.hasCardToCard()); + if (hasCardToCard()) { + result = result && getCardToCard() + .equals(other.getCardToCard()); + } + result = result && getBotActionListsList() + .equals(other.getBotActionListsList()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -24511,6 +25641,26 @@ public int hashCode() { hash = (37 * hash) + VERSION_DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersionDocumentId()); + if (hasGroupExtra()) { + hash = (37 * hash) + GROUP_EXTRA_FIELD_NUMBER; + hash = (53 * hash) + getGroupExtra().hashCode(); + } + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -24625,6 +25775,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); } } public Builder clear() { @@ -24725,6 +25876,36 @@ public Builder clear() { versionDocumentId_ = 0L; + if (groupExtraBuilder_ == null) { + groupExtra_ = null; + } else { + groupExtra_ = null; + groupExtraBuilder_ = null; + } + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x80000000); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } return this; } @@ -24747,6 +25928,9 @@ public net.iGap.proto.ProtoGlobal.RoomMessage build() { public net.iGap.proto.ProtoGlobal.RoomMessage buildPartial() { net.iGap.proto.ProtoGlobal.RoomMessage result = new net.iGap.proto.ProtoGlobal.RoomMessage(this); + int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; result.roomId_ = roomId_; result.messageId_ = messageId_; result.messageVersion_ = messageVersion_; @@ -24815,6 +25999,36 @@ public net.iGap.proto.ProtoGlobal.RoomMessage buildPartial() { } result.documentId_ = documentId_; result.versionDocumentId_ = versionDocumentId_; + if (groupExtraBuilder_ == null) { + result.groupExtra_ = groupExtra_; + } else { + result.groupExtra_ = groupExtraBuilder_.build(); + } + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x80000000) == 0x80000000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x80000000); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -24942,6 +26156,44 @@ public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessage other) { if (other.getVersionDocumentId() != 0L) { setVersionDocumentId(other.getVersionDocumentId()); } + if (other.hasGroupExtra()) { + mergeGroupExtra(other.getGroupExtra()); + } + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x80000000); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x80000000); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } onChanged(); return this; } @@ -24967,6 +26219,8 @@ public Builder mergeFrom( } return this; } + private int bitField0_; + private int bitField1_; private long roomId_ ; /** @@ -26745,6 +27999,714 @@ public Builder clearVersionDocumentId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra groupExtra_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder> groupExtraBuilder_; + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public boolean hasGroupExtra() { + return groupExtraBuilder_ != null || groupExtra_ != null; + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra getGroupExtra() { + if (groupExtraBuilder_ == null) { + return groupExtra_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance() : groupExtra_; + } else { + return groupExtraBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public Builder setGroupExtra(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra value) { + if (groupExtraBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groupExtra_ = value; + onChanged(); + } else { + groupExtraBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public Builder setGroupExtra( + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder builderForValue) { + if (groupExtraBuilder_ == null) { + groupExtra_ = builderForValue.build(); + onChanged(); + } else { + groupExtraBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public Builder mergeGroupExtra(net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra value) { + if (groupExtraBuilder_ == null) { + if (groupExtra_ != null) { + groupExtra_ = + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.newBuilder(groupExtra_).mergeFrom(value).buildPartial(); + } else { + groupExtra_ = value; + } + onChanged(); + } else { + groupExtraBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public Builder clearGroupExtra() { + if (groupExtraBuilder_ == null) { + groupExtra_ = null; + onChanged(); + } else { + groupExtra_ = null; + groupExtraBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder getGroupExtraBuilder() { + + onChanged(); + return getGroupExtraFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder getGroupExtraOrBuilder() { + if (groupExtraBuilder_ != null) { + return groupExtraBuilder_.getMessageOrBuilder(); + } else { + return groupExtra_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.getDefaultInstance() : groupExtra_; + } + } + /** + * optional .proto.RoomMessage.GroupExtra group_extra = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder> + getGroupExtraFieldBuilder() { + if (groupExtraBuilder_ == null) { + groupExtraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtra.Builder, net.iGap.proto.ProtoGlobal.RoomMessage.GroupExtraOrBuilder>( + getGroupExtra(), + getParentForChildren(), + isClean()); + groupExtra_ = null; + } + return groupExtraBuilder_; + } + + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public boolean hasSticker() { + return stickerBuilder_ != null || sticker_ != null; + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public Builder setSticker( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { + + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * optional .proto.RoomMessageSticker sticker = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public boolean hasCardToCard() { + return cardToCardBuilder_ != null || cardToCard_ != null; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public Builder setCardToCard( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { + + onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x80000000) == 0x80000000)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x80000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public java.util.List getBotActionListsList() { + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public int getBotActionListsCount() { + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder addBotActionLists( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder addAllBotActionLists( + java.lang.Iterable values) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder clearBotActionLists() { + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x80000000); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public Builder removeBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 32; + */ + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x80000000) == 0x80000000), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; + } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 33; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 33; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -30505,6 +32467,19 @@ public interface ChatRoomOrBuilder extends * optional .proto.RegisteredUser peer = 1; */ net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder(); + + /** + * optional .proto.BotInfo botInfo = 2; + */ + boolean hasBotInfo(); + /** + * optional .proto.BotInfo botInfo = 2; + */ + net.iGap.proto.ProtoGlobal.BotInfo getBotInfo(); + /** + * optional .proto.BotInfo botInfo = 2; + */ + net.iGap.proto.ProtoGlobal.BotInfoOrBuilder getBotInfoOrBuilder(); } /** * Protobuf type {@code proto.ChatRoom} @@ -30556,6 +32531,19 @@ private ChatRoom( peer_ = subBuilder.buildPartial(); } + break; + } + case 18: { + net.iGap.proto.ProtoGlobal.BotInfo.Builder subBuilder = null; + if (botInfo_ != null) { + subBuilder = botInfo_.toBuilder(); + } + botInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.BotInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(botInfo_); + botInfo_ = subBuilder.buildPartial(); + } + break; } } @@ -30602,6 +32590,27 @@ public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder() { return getPeer(); } + public static final int BOTINFO_FIELD_NUMBER = 2; + private net.iGap.proto.ProtoGlobal.BotInfo botInfo_; + /** + * optional .proto.BotInfo botInfo = 2; + */ + public boolean hasBotInfo() { + return botInfo_ != null; + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public net.iGap.proto.ProtoGlobal.BotInfo getBotInfo() { + return botInfo_ == null ? net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance() : botInfo_; + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public net.iGap.proto.ProtoGlobal.BotInfoOrBuilder getBotInfoOrBuilder() { + return getBotInfo(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -30617,6 +32626,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (peer_ != null) { output.writeMessage(1, getPeer()); } + if (botInfo_ != null) { + output.writeMessage(2, getBotInfo()); + } } public int getSerializedSize() { @@ -30628,6 +32640,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPeer()); } + if (botInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBotInfo()); + } memoizedSize = size; return size; } @@ -30649,6 +32665,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getPeer() .equals(other.getPeer()); } + result = result && (hasBotInfo() == other.hasBotInfo()); + if (hasBotInfo()) { + result = result && getBotInfo() + .equals(other.getBotInfo()); + } return result; } @@ -30663,6 +32684,10 @@ public int hashCode() { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } + if (hasBotInfo()) { + hash = (37 * hash) + BOTINFO_FIELD_NUMBER; + hash = (53 * hash) + getBotInfo().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -30787,6 +32812,12 @@ public Builder clear() { peer_ = null; peerBuilder_ = null; } + if (botInfoBuilder_ == null) { + botInfo_ = null; + } else { + botInfo_ = null; + botInfoBuilder_ = null; + } return this; } @@ -30814,6 +32845,11 @@ public net.iGap.proto.ProtoGlobal.ChatRoom buildPartial() { } else { result.peer_ = peerBuilder_.build(); } + if (botInfoBuilder_ == null) { + result.botInfo_ = botInfo_; + } else { + result.botInfo_ = botInfoBuilder_.build(); + } onBuilt(); return result; } @@ -30858,6 +32894,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoGlobal.ChatRoom other) { if (other.hasPeer()) { mergePeer(other.getPeer()); } + if (other.hasBotInfo()) { + mergeBotInfo(other.getBotInfo()); + } onChanged(); return this; } @@ -31000,6 +33039,123 @@ public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getPeerOrBuilder() { } return peerBuilder_; } + + private net.iGap.proto.ProtoGlobal.BotInfo botInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo, net.iGap.proto.ProtoGlobal.BotInfo.Builder, net.iGap.proto.ProtoGlobal.BotInfoOrBuilder> botInfoBuilder_; + /** + * optional .proto.BotInfo botInfo = 2; + */ + public boolean hasBotInfo() { + return botInfoBuilder_ != null || botInfo_ != null; + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public net.iGap.proto.ProtoGlobal.BotInfo getBotInfo() { + if (botInfoBuilder_ == null) { + return botInfo_ == null ? net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance() : botInfo_; + } else { + return botInfoBuilder_.getMessage(); + } + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public Builder setBotInfo(net.iGap.proto.ProtoGlobal.BotInfo value) { + if (botInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + botInfo_ = value; + onChanged(); + } else { + botInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public Builder setBotInfo( + net.iGap.proto.ProtoGlobal.BotInfo.Builder builderForValue) { + if (botInfoBuilder_ == null) { + botInfo_ = builderForValue.build(); + onChanged(); + } else { + botInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public Builder mergeBotInfo(net.iGap.proto.ProtoGlobal.BotInfo value) { + if (botInfoBuilder_ == null) { + if (botInfo_ != null) { + botInfo_ = + net.iGap.proto.ProtoGlobal.BotInfo.newBuilder(botInfo_).mergeFrom(value).buildPartial(); + } else { + botInfo_ = value; + } + onChanged(); + } else { + botInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public Builder clearBotInfo() { + if (botInfoBuilder_ == null) { + botInfo_ = null; + onChanged(); + } else { + botInfo_ = null; + botInfoBuilder_ = null; + } + + return this; + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.Builder getBotInfoBuilder() { + + onChanged(); + return getBotInfoFieldBuilder().getBuilder(); + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + public net.iGap.proto.ProtoGlobal.BotInfoOrBuilder getBotInfoOrBuilder() { + if (botInfoBuilder_ != null) { + return botInfoBuilder_.getMessageOrBuilder(); + } else { + return botInfo_ == null ? + net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance() : botInfo_; + } + } + /** + * optional .proto.BotInfo botInfo = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo, net.iGap.proto.ProtoGlobal.BotInfo.Builder, net.iGap.proto.ProtoGlobal.BotInfoOrBuilder> + getBotInfoFieldBuilder() { + if (botInfoBuilder_ == null) { + botInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo, net.iGap.proto.ProtoGlobal.BotInfo.Builder, net.iGap.proto.ProtoGlobal.BotInfoOrBuilder>( + getBotInfo(), + getParentForChildren(), + isClean()); + botInfo_ = null; + } + return botInfoBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -31167,6 +33323,11 @@ public interface GroupRoomOrBuilder extends * optional .proto.GroupChangeMemberRights.MemberRights room_rights = 12; */ net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getRoomRightsOrBuilder(); + + /** + * optional bool is_mention = 13; + */ + boolean getIsMention(); } /** * Protobuf type {@code proto.GroupRoom} @@ -31188,6 +33349,7 @@ private GroupRoom() { participantsCountLimitLabel_ = ""; description_ = ""; avatarCount_ = 0; + isMention_ = false; } @java.lang.Override @@ -31312,6 +33474,11 @@ private GroupRoom( break; } + case 104: { + + isMention_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -32937,6 +35104,15 @@ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.Membe return getRoomRights(); } + public static final int IS_MENTION_FIELD_NUMBER = 13; + private boolean isMention_; + /** + * optional bool is_mention = 13; + */ + public boolean getIsMention() { + return isMention_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -32985,6 +35161,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomRights_ != null) { output.writeMessage(12, getRoomRights()); } + if (isMention_ != false) { + output.writeBool(13, isMention_); + } } public int getSerializedSize() { @@ -33037,6 +35216,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getRoomRights()); } + if (isMention_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, isMention_); + } memoizedSize = size; return size; } @@ -33087,6 +35270,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getRoomRights() .equals(other.getRoomRights()); } + result = result && (getIsMention() + == other.getIsMention()); return result; } @@ -33129,6 +35314,9 @@ public int hashCode() { hash = (37 * hash) + ROOM_RIGHTS_FIELD_NUMBER; hash = (53 * hash) + getRoomRights().hashCode(); } + hash = (37 * hash) + IS_MENTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMention()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -33287,6 +35475,8 @@ public Builder clear() { roomRights_ = null; roomRightsBuilder_ = null; } + isMention_ = false; + return this; } @@ -33337,6 +35527,7 @@ public net.iGap.proto.ProtoGlobal.GroupRoom buildPartial() { } else { result.roomRights_ = roomRightsBuilder_.build(); } + result.isMention_ = isMention_; onBuilt(); return result; } @@ -33417,6 +35608,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoGlobal.GroupRoom other) { if (other.hasRoomRights()) { mergeRoomRights(other.getRoomRights()); } + if (other.getIsMention() != false) { + setIsMention(other.getIsMention()); + } onChanged(); return this; } @@ -34283,6 +36477,32 @@ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.Membe } return roomRightsBuilder_; } + + private boolean isMention_ ; + /** + * optional bool is_mention = 13; + */ + public boolean getIsMention() { + return isMention_; + } + /** + * optional bool is_mention = 13; + */ + public Builder setIsMention(boolean value) { + + isMention_ = value; + onChanged(); + return this; + } + /** + * optional bool is_mention = 13; + */ + public Builder clearIsMention() { + + isMention_ = false; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -55878,135 +58098,10289 @@ public static com.google.protobuf.Parser parser() { return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CardToCardOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MplTransaction.CardToCard) + com.google.protobuf.MessageOrBuilder { + + /** + * optional uint32 Status = 1; + */ + int getStatus(); + + /** + * optional uint64 Amount = 2 [jstype = JS_STRING]; + */ + long getAmount(); + + /** + * optional string SourceCardNumber = 3; + */ + java.lang.String getSourceCardNumber(); + /** + * optional string SourceCardNumber = 3; + */ + com.google.protobuf.ByteString + getSourceCardNumberBytes(); + + /** + * optional string DestCardNumber = 4; + */ + java.lang.String getDestCardNumber(); + /** + * optional string DestCardNumber = 4; + */ + com.google.protobuf.ByteString + getDestCardNumberBytes(); + + /** + * optional string BankName = 5; + */ + java.lang.String getBankName(); + /** + * optional string BankName = 5; + */ + com.google.protobuf.ByteString + getBankNameBytes(); + + /** + * optional string DestBankName = 6; + */ + java.lang.String getDestBankName(); + /** + * optional string DestBankName = 6; + */ + com.google.protobuf.ByteString + getDestBankNameBytes(); + + /** + * optional string CardOwnerName = 7; + */ + java.lang.String getCardOwnerName(); + /** + * optional string CardOwnerName = 7; + */ + com.google.protobuf.ByteString + getCardOwnerNameBytes(); + + /** + * optional uint64 OrderId = 8 [jstype = JS_STRING]; + */ + long getOrderId(); + + /** + * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + */ + long getRequestDateTime(); + + /** + * optional uint64 RRN = 10 [jstype = JS_STRING]; + */ + long getRRN(); + + /** + * optional string StatusDescription = 11; + */ + java.lang.String getStatusDescription(); + /** + * optional string StatusDescription = 11; + */ + com.google.protobuf.ByteString + getStatusDescriptionBytes(); + + /** + * optional uint32 TraceNo = 13; + */ + int getTraceNo(); + } + /** + * Protobuf type {@code proto.MplTransaction.CardToCard} + */ + public static final class CardToCard extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MplTransaction.CardToCard) + CardToCardOrBuilder { + // Use CardToCard.newBuilder() to construct. + private CardToCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CardToCard() { + status_ = 0; + amount_ = 0L; + sourceCardNumber_ = ""; + destCardNumber_ = ""; + bankName_ = ""; + destBankName_ = ""; + cardOwnerName_ = ""; + orderId_ = 0L; + requestDateTime_ = 0L; + rRN_ = 0L; + statusDescription_ = ""; + traceNo_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CardToCard( + 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: { + + status_ = input.readUInt32(); + break; + } + case 16: { + + amount_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceCardNumber_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + destCardNumber_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + bankName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + destBankName_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + cardOwnerName_ = s; + break; + } + case 64: { + + orderId_ = input.readUInt64(); + break; + } + case 72: { + + requestDateTime_ = input.readUInt64(); + break; + } + case 80: { + + rRN_ = input.readUInt64(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDescription_ = s; + break; + } + case 104: { + + traceNo_ = input.readUInt32(); + 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 net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.class, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private int status_; + /** + * optional uint32 Status = 1; + */ + public int getStatus() { + return status_; + } + + public static final int AMOUNT_FIELD_NUMBER = 2; + private long amount_; + /** + * optional uint64 Amount = 2 [jstype = JS_STRING]; + */ + public long getAmount() { + return amount_; + } + + public static final int SOURCECARDNUMBER_FIELD_NUMBER = 3; + private volatile java.lang.Object sourceCardNumber_; + /** + * optional string SourceCardNumber = 3; + */ + public java.lang.String getSourceCardNumber() { + java.lang.Object ref = sourceCardNumber_; + 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(); + sourceCardNumber_ = s; + return s; + } + } + /** + * optional string SourceCardNumber = 3; + */ + public com.google.protobuf.ByteString + getSourceCardNumberBytes() { + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTCARDNUMBER_FIELD_NUMBER = 4; + private volatile java.lang.Object destCardNumber_; + /** + * optional string DestCardNumber = 4; + */ + public java.lang.String getDestCardNumber() { + java.lang.Object ref = destCardNumber_; + 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(); + destCardNumber_ = s; + return s; + } + } + /** + * optional string DestCardNumber = 4; + */ + public com.google.protobuf.ByteString + getDestCardNumberBytes() { + java.lang.Object ref = destCardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BANKNAME_FIELD_NUMBER = 5; + private volatile java.lang.Object bankName_; + /** + * optional string BankName = 5; + */ + public java.lang.String getBankName() { + java.lang.Object ref = bankName_; + 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(); + bankName_ = s; + return s; + } + } + /** + * optional string BankName = 5; + */ + public com.google.protobuf.ByteString + getBankNameBytes() { + java.lang.Object ref = bankName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTBANKNAME_FIELD_NUMBER = 6; + private volatile java.lang.Object destBankName_; + /** + * optional string DestBankName = 6; + */ + public java.lang.String getDestBankName() { + java.lang.Object ref = destBankName_; + 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(); + destBankName_ = s; + return s; + } + } + /** + * optional string DestBankName = 6; + */ + public com.google.protobuf.ByteString + getDestBankNameBytes() { + java.lang.Object ref = destBankName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destBankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CARDOWNERNAME_FIELD_NUMBER = 7; + private volatile java.lang.Object cardOwnerName_; + /** + * optional string CardOwnerName = 7; + */ + public java.lang.String getCardOwnerName() { + java.lang.Object ref = cardOwnerName_; + 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(); + cardOwnerName_ = s; + return s; + } + } + /** + * optional string CardOwnerName = 7; + */ + public com.google.protobuf.ByteString + getCardOwnerNameBytes() { + java.lang.Object ref = cardOwnerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardOwnerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDERID_FIELD_NUMBER = 8; + private long orderId_; + /** + * optional uint64 OrderId = 8 [jstype = JS_STRING]; + */ + public long getOrderId() { + return orderId_; + } + + public static final int REQUESTDATETIME_FIELD_NUMBER = 9; + private long requestDateTime_; + /** + * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + */ + public long getRequestDateTime() { + return requestDateTime_; + } + + public static final int RRN_FIELD_NUMBER = 10; + private long rRN_; + /** + * optional uint64 RRN = 10 [jstype = JS_STRING]; + */ + public long getRRN() { + return rRN_; + } + + public static final int STATUSDESCRIPTION_FIELD_NUMBER = 11; + private volatile java.lang.Object statusDescription_; + /** + * optional string StatusDescription = 11; + */ + public java.lang.String getStatusDescription() { + java.lang.Object ref = statusDescription_; + 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(); + statusDescription_ = s; + return s; + } + } + /** + * optional string StatusDescription = 11; + */ + public com.google.protobuf.ByteString + getStatusDescriptionBytes() { + java.lang.Object ref = statusDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRACENO_FIELD_NUMBER = 13; + private int traceNo_; + /** + * optional uint32 TraceNo = 13; + */ + public int getTraceNo() { + return traceNo_; + } + + 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 (status_ != 0) { + output.writeUInt32(1, status_); + } + if (amount_ != 0L) { + output.writeUInt64(2, amount_); + } + if (!getSourceCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceCardNumber_); + } + if (!getDestCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destCardNumber_); + } + if (!getBankNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bankName_); + } + if (!getDestBankNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, destBankName_); + } + if (!getCardOwnerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cardOwnerName_); + } + if (orderId_ != 0L) { + output.writeUInt64(8, orderId_); + } + if (requestDateTime_ != 0L) { + output.writeUInt64(9, requestDateTime_); + } + if (rRN_ != 0L) { + output.writeUInt64(10, rRN_); + } + if (!getStatusDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, statusDescription_); + } + if (traceNo_ != 0) { + output.writeUInt32(13, traceNo_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, status_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, amount_); + } + if (!getSourceCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceCardNumber_); + } + if (!getDestCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destCardNumber_); + } + if (!getBankNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bankName_); + } + if (!getDestBankNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destBankName_); + } + if (!getCardOwnerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cardOwnerName_); + } + if (orderId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, orderId_); + } + if (requestDateTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, requestDateTime_); + } + if (rRN_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(10, rRN_); + } + if (!getStatusDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, statusDescription_); + } + if (traceNo_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(13, traceNo_); + } + 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 net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard other = (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) obj; + + boolean result = true; + result = result && (getStatus() + == other.getStatus()); + result = result && (getAmount() + == other.getAmount()); + result = result && getSourceCardNumber() + .equals(other.getSourceCardNumber()); + result = result && getDestCardNumber() + .equals(other.getDestCardNumber()); + result = result && getBankName() + .equals(other.getBankName()); + result = result && getDestBankName() + .equals(other.getDestBankName()); + result = result && getCardOwnerName() + .equals(other.getCardOwnerName()); + result = result && (getOrderId() + == other.getOrderId()); + result = result && (getRequestDateTime() + == other.getRequestDateTime()); + result = result && (getRRN() + == other.getRRN()); + result = result && getStatusDescription() + .equals(other.getStatusDescription()); + result = result && (getTraceNo() + == other.getTraceNo()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + SOURCECARDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSourceCardNumber().hashCode(); + hash = (37 * hash) + DESTCARDNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDestCardNumber().hashCode(); + hash = (37 * hash) + BANKNAME_FIELD_NUMBER; + hash = (53 * hash) + getBankName().hashCode(); + hash = (37 * hash) + DESTBANKNAME_FIELD_NUMBER; + hash = (53 * hash) + getDestBankName().hashCode(); + hash = (37 * hash) + CARDOWNERNAME_FIELD_NUMBER; + hash = (53 * hash) + getCardOwnerName().hashCode(); + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + REQUESTDATETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestDateTime()); + hash = (37 * hash) + RRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRRN()); + hash = (37 * hash) + STATUSDESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getStatusDescription().hashCode(); + hash = (37 * hash) + TRACENO_FIELD_NUMBER; + hash = (53 * hash) + getTraceNo(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard 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 net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard 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 net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard 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(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard 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 proto.MplTransaction.CardToCard} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MplTransaction.CardToCard) + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.class, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.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(); + status_ = 0; + + amount_ = 0L; + + sourceCardNumber_ = ""; + + destCardNumber_ = ""; + + bankName_ = ""; + + destBankName_ = ""; + + cardOwnerName_ = ""; + + orderId_ = 0L; + + requestDateTime_ = 0L; + + rRN_ = 0L; + + statusDescription_ = ""; + + traceNo_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + } + + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard build() { + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard buildPartial() { + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard result = new net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard(this); + result.status_ = status_; + result.amount_ = amount_; + result.sourceCardNumber_ = sourceCardNumber_; + result.destCardNumber_ = destCardNumber_; + result.bankName_ = bankName_; + result.destBankName_ = destBankName_; + result.cardOwnerName_ = cardOwnerName_; + result.orderId_ = orderId_; + result.requestDateTime_ = requestDateTime_; + result.rRN_ = rRN_; + result.statusDescription_ = statusDescription_; + result.traceNo_ = traceNo_; + 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 net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard other) { + if (other == net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance()) return this; + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getSourceCardNumber().isEmpty()) { + sourceCardNumber_ = other.sourceCardNumber_; + onChanged(); + } + if (!other.getDestCardNumber().isEmpty()) { + destCardNumber_ = other.destCardNumber_; + onChanged(); + } + if (!other.getBankName().isEmpty()) { + bankName_ = other.bankName_; + onChanged(); + } + if (!other.getDestBankName().isEmpty()) { + destBankName_ = other.destBankName_; + onChanged(); + } + if (!other.getCardOwnerName().isEmpty()) { + cardOwnerName_ = other.cardOwnerName_; + onChanged(); + } + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (other.getRequestDateTime() != 0L) { + setRequestDateTime(other.getRequestDateTime()); + } + if (other.getRRN() != 0L) { + setRRN(other.getRRN()); + } + if (!other.getStatusDescription().isEmpty()) { + statusDescription_ = other.statusDescription_; + onChanged(); + } + if (other.getTraceNo() != 0) { + setTraceNo(other.getTraceNo()); + } + 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 { + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int status_ ; + /** + * optional uint32 Status = 1; + */ + public int getStatus() { + return status_; + } + /** + * optional uint32 Status = 1; + */ + public Builder setStatus(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * optional uint32 Status = 1; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private long amount_ ; + /** + * optional uint64 Amount = 2 [jstype = JS_STRING]; + */ + public long getAmount() { + return amount_; + } + /** + * optional uint64 Amount = 2 [jstype = JS_STRING]; + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + * optional uint64 Amount = 2 [jstype = JS_STRING]; + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object sourceCardNumber_ = ""; + /** + * optional string SourceCardNumber = 3; + */ + public java.lang.String getSourceCardNumber() { + java.lang.Object ref = sourceCardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceCardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string SourceCardNumber = 3; + */ + public com.google.protobuf.ByteString + getSourceCardNumberBytes() { + java.lang.Object ref = sourceCardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string SourceCardNumber = 3; + */ + public Builder setSourceCardNumber( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourceCardNumber_ = value; + onChanged(); + return this; + } + /** + * optional string SourceCardNumber = 3; + */ + public Builder clearSourceCardNumber() { + + sourceCardNumber_ = getDefaultInstance().getSourceCardNumber(); + onChanged(); + return this; + } + /** + * optional string SourceCardNumber = 3; + */ + public Builder setSourceCardNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceCardNumber_ = value; + onChanged(); + return this; + } + + private java.lang.Object destCardNumber_ = ""; + /** + * optional string DestCardNumber = 4; + */ + public java.lang.String getDestCardNumber() { + java.lang.Object ref = destCardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destCardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string DestCardNumber = 4; + */ + public com.google.protobuf.ByteString + getDestCardNumberBytes() { + java.lang.Object ref = destCardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destCardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string DestCardNumber = 4; + */ + public Builder setDestCardNumber( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + destCardNumber_ = value; + onChanged(); + return this; + } + /** + * optional string DestCardNumber = 4; + */ + public Builder clearDestCardNumber() { + + destCardNumber_ = getDefaultInstance().getDestCardNumber(); + onChanged(); + return this; + } + /** + * optional string DestCardNumber = 4; + */ + public Builder setDestCardNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destCardNumber_ = value; + onChanged(); + return this; + } + + private java.lang.Object bankName_ = ""; + /** + * optional string BankName = 5; + */ + public java.lang.String getBankName() { + java.lang.Object ref = bankName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bankName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string BankName = 5; + */ + public com.google.protobuf.ByteString + getBankNameBytes() { + java.lang.Object ref = bankName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string BankName = 5; + */ + public Builder setBankName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bankName_ = value; + onChanged(); + return this; + } + /** + * optional string BankName = 5; + */ + public Builder clearBankName() { + + bankName_ = getDefaultInstance().getBankName(); + onChanged(); + return this; + } + /** + * optional string BankName = 5; + */ + public Builder setBankNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bankName_ = value; + onChanged(); + return this; + } + + private java.lang.Object destBankName_ = ""; + /** + * optional string DestBankName = 6; + */ + public java.lang.String getDestBankName() { + java.lang.Object ref = destBankName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destBankName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string DestBankName = 6; + */ + public com.google.protobuf.ByteString + getDestBankNameBytes() { + java.lang.Object ref = destBankName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destBankName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string DestBankName = 6; + */ + public Builder setDestBankName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + destBankName_ = value; + onChanged(); + return this; + } + /** + * optional string DestBankName = 6; + */ + public Builder clearDestBankName() { + + destBankName_ = getDefaultInstance().getDestBankName(); + onChanged(); + return this; + } + /** + * optional string DestBankName = 6; + */ + public Builder setDestBankNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destBankName_ = value; + onChanged(); + return this; + } + + private java.lang.Object cardOwnerName_ = ""; + /** + * optional string CardOwnerName = 7; + */ + public java.lang.String getCardOwnerName() { + java.lang.Object ref = cardOwnerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardOwnerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string CardOwnerName = 7; + */ + public com.google.protobuf.ByteString + getCardOwnerNameBytes() { + java.lang.Object ref = cardOwnerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardOwnerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string CardOwnerName = 7; + */ + public Builder setCardOwnerName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cardOwnerName_ = value; + onChanged(); + return this; + } + /** + * optional string CardOwnerName = 7; + */ + public Builder clearCardOwnerName() { + + cardOwnerName_ = getDefaultInstance().getCardOwnerName(); + onChanged(); + return this; + } + /** + * optional string CardOwnerName = 7; + */ + public Builder setCardOwnerNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardOwnerName_ = value; + onChanged(); + return this; + } + + private long orderId_ ; + /** + * optional uint64 OrderId = 8 [jstype = JS_STRING]; + */ + public long getOrderId() { + return orderId_; + } + /** + * optional uint64 OrderId = 8 [jstype = JS_STRING]; + */ + public Builder setOrderId(long value) { + + orderId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 OrderId = 8 [jstype = JS_STRING]; + */ + public Builder clearOrderId() { + + orderId_ = 0L; + onChanged(); + return this; + } + + private long requestDateTime_ ; + /** + * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + */ + public long getRequestDateTime() { + return requestDateTime_; + } + /** + * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + */ + public Builder setRequestDateTime(long value) { + + requestDateTime_ = value; + onChanged(); + return this; + } + /** + * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + */ + public Builder clearRequestDateTime() { + + requestDateTime_ = 0L; + onChanged(); + return this; + } + + private long rRN_ ; + /** + * optional uint64 RRN = 10 [jstype = JS_STRING]; + */ + public long getRRN() { + return rRN_; + } + /** + * optional uint64 RRN = 10 [jstype = JS_STRING]; + */ + public Builder setRRN(long value) { + + rRN_ = value; + onChanged(); + return this; + } + /** + * optional uint64 RRN = 10 [jstype = JS_STRING]; + */ + public Builder clearRRN() { + + rRN_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object statusDescription_ = ""; + /** + * optional string StatusDescription = 11; + */ + public java.lang.String getStatusDescription() { + java.lang.Object ref = statusDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string StatusDescription = 11; + */ + public com.google.protobuf.ByteString + getStatusDescriptionBytes() { + java.lang.Object ref = statusDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string StatusDescription = 11; + */ + public Builder setStatusDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusDescription_ = value; + onChanged(); + return this; + } + /** + * optional string StatusDescription = 11; + */ + public Builder clearStatusDescription() { + + statusDescription_ = getDefaultInstance().getStatusDescription(); + onChanged(); + return this; + } + /** + * optional string StatusDescription = 11; + */ + public Builder setStatusDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDescription_ = value; + onChanged(); + return this; + } + + private int traceNo_ ; + /** + * optional uint32 TraceNo = 13; + */ + public int getTraceNo() { + return traceNo_; + } + /** + * optional uint32 TraceNo = 13; + */ + public Builder setTraceNo(int value) { + + traceNo_ = value; + onChanged(); + return this; + } + /** + * optional uint32 TraceNo = 13; + */ + public Builder clearTraceNo() { + + traceNo_ = 0; + 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:proto.MplTransaction.CardToCard) + } + + // @@protoc_insertion_point(class_scope:proto.MplTransaction.CardToCard) + private static final net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard(); + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CardToCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CardToCard(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int ORDER_ID_FIELD_NUMBER = 1; + private long orderId_; + /** + * optional uint64 order_id = 1 [jstype = JS_STRING]; + */ + public long getOrderId() { + return orderId_; + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + * optional string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + * optional string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAY_TIME_FIELD_NUMBER = 3; + private int payTime_; + /** + * optional uint32 pay_time = 3; + */ + public int getPayTime() { + return payTime_; + } + + public static final int TYPE_FIELD_NUMBER = 4; + private int type_; + /** + * optional .proto.MplTransaction.Type type = 4; + */ + public int getTypeValue() { + return type_; + } + /** + * optional .proto.MplTransaction.Type type = 4; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { + net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; + } + + public static final int BILL_FIELD_NUMBER = 5; + private net.iGap.proto.ProtoGlobal.MplTransaction.Bill bill_; + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public boolean hasBill() { + return bill_ != null; + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getBill() { + return bill_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder getBillOrBuilder() { + return getBill(); + } + + public static final int TOPUP_FIELD_NUMBER = 6; + private net.iGap.proto.ProtoGlobal.MplTransaction.Topup topup_; + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public boolean hasTopup() { + return topup_ != null; + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getTopup() { + return topup_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder getTopupOrBuilder() { + return getTopup(); + } + + public static final int SALES_FIELD_NUMBER = 7; + private net.iGap.proto.ProtoGlobal.MplTransaction.Sales sales_; + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public boolean hasSales() { + return sales_ != null; + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getSales() { + return sales_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder getSalesOrBuilder() { + return getSales(); + } + + public static final int CARDTOCARD_FIELD_NUMBER = 8; + private net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard cardtocard_; + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public boolean hasCardtocard() { + return cardtocard_ != null; + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard() { + return cardtocard_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder getCardtocardOrBuilder() { + return getCardtocard(); + } + + 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 (orderId_ != 0L) { + output.writeUInt64(1, orderId_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + if (payTime_ != 0) { + output.writeUInt32(3, payTime_); + } + if (type_ != net.iGap.proto.ProtoGlobal.MplTransaction.Type.NONE.getNumber()) { + output.writeEnum(4, type_); + } + if (bill_ != null) { + output.writeMessage(5, getBill()); + } + if (topup_ != null) { + output.writeMessage(6, getTopup()); + } + if (sales_ != null) { + output.writeMessage(7, getSales()); + } + if (cardtocard_ != null) { + output.writeMessage(8, getCardtocard()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (orderId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, orderId_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + if (payTime_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, payTime_); + } + if (type_ != net.iGap.proto.ProtoGlobal.MplTransaction.Type.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, type_); + } + if (bill_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getBill()); + } + if (topup_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTopup()); + } + if (sales_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSales()); + } + if (cardtocard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCardtocard()); + } + 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 net.iGap.proto.ProtoGlobal.MplTransaction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.MplTransaction other = (net.iGap.proto.ProtoGlobal.MplTransaction) obj; + + boolean result = true; + result = result && (getOrderId() + == other.getOrderId()); + result = result && getToken() + .equals(other.getToken()); + result = result && (getPayTime() + == other.getPayTime()); + result = result && type_ == other.type_; + result = result && (hasBill() == other.hasBill()); + if (hasBill()) { + result = result && getBill() + .equals(other.getBill()); + } + result = result && (hasTopup() == other.hasTopup()); + if (hasTopup()) { + result = result && getTopup() + .equals(other.getTopup()); + } + result = result && (hasSales() == other.hasSales()); + if (hasSales()) { + result = result && getSales() + .equals(other.getSales()); + } + result = result && (hasCardtocard() == other.hasCardtocard()); + if (hasCardtocard()) { + result = result && getCardtocard() + .equals(other.getCardtocard()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOrderId()); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + PAY_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPayTime(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasBill()) { + hash = (37 * hash) + BILL_FIELD_NUMBER; + hash = (53 * hash) + getBill().hashCode(); + } + if (hasTopup()) { + hash = (37 * hash) + TOPUP_FIELD_NUMBER; + hash = (53 * hash) + getTopup().hashCode(); + } + if (hasSales()) { + hash = (37 * hash) + SALES_FIELD_NUMBER; + hash = (53 * hash) + getSales().hashCode(); + } + if (hasCardtocard()) { + hash = (37 * hash) + CARDTOCARD_FIELD_NUMBER; + hash = (53 * hash) + getCardtocard().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction 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 net.iGap.proto.ProtoGlobal.MplTransaction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction 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 net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.MplTransaction 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(net.iGap.proto.ProtoGlobal.MplTransaction 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 proto.MplTransaction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MplTransaction) + net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.MplTransaction.class, net.iGap.proto.ProtoGlobal.MplTransaction.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.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(); + orderId_ = 0L; + + token_ = ""; + + payTime_ = 0; + + type_ = 0; + + if (billBuilder_ == null) { + bill_ = null; + } else { + bill_ = null; + billBuilder_ = null; + } + if (topupBuilder_ == null) { + topup_ = null; + } else { + topup_ = null; + topupBuilder_ = null; + } + if (salesBuilder_ == null) { + sales_ = null; + } else { + sales_ = null; + salesBuilder_ = null; + } + if (cardtocardBuilder_ == null) { + cardtocard_ = null; + } else { + cardtocard_ = null; + cardtocardBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_descriptor; + } + + public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.MplTransaction build() { + net.iGap.proto.ProtoGlobal.MplTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.MplTransaction buildPartial() { + net.iGap.proto.ProtoGlobal.MplTransaction result = new net.iGap.proto.ProtoGlobal.MplTransaction(this); + result.orderId_ = orderId_; + result.token_ = token_; + result.payTime_ = payTime_; + result.type_ = type_; + if (billBuilder_ == null) { + result.bill_ = bill_; + } else { + result.bill_ = billBuilder_.build(); + } + if (topupBuilder_ == null) { + result.topup_ = topup_; + } else { + result.topup_ = topupBuilder_.build(); + } + if (salesBuilder_ == null) { + result.sales_ = sales_; + } else { + result.sales_ = salesBuilder_.build(); + } + if (cardtocardBuilder_ == null) { + result.cardtocard_ = cardtocard_; + } else { + result.cardtocard_ = cardtocardBuilder_.build(); + } + 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 net.iGap.proto.ProtoGlobal.MplTransaction) { + return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction other) { + if (other == net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance()) return this; + if (other.getOrderId() != 0L) { + setOrderId(other.getOrderId()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.getPayTime() != 0) { + setPayTime(other.getPayTime()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasBill()) { + mergeBill(other.getBill()); + } + if (other.hasTopup()) { + mergeTopup(other.getTopup()); + } + if (other.hasSales()) { + mergeSales(other.getSales()); + } + if (other.hasCardtocard()) { + mergeCardtocard(other.getCardtocard()); + } + 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 { + net.iGap.proto.ProtoGlobal.MplTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long orderId_ ; + /** + * optional uint64 order_id = 1 [jstype = JS_STRING]; + */ + public long getOrderId() { + return orderId_; + } + /** + * optional uint64 order_id = 1 [jstype = JS_STRING]; + */ + public Builder setOrderId(long value) { + + orderId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 order_id = 1 [jstype = JS_STRING]; + */ + public Builder clearOrderId() { + + orderId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + * optional string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * optional string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * optional string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private int payTime_ ; + /** + * optional uint32 pay_time = 3; + */ + public int getPayTime() { + return payTime_; + } + /** + * optional uint32 pay_time = 3; + */ + public Builder setPayTime(int value) { + + payTime_ = value; + onChanged(); + return this; + } + /** + * optional uint32 pay_time = 3; + */ + public Builder clearPayTime() { + + payTime_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * optional .proto.MplTransaction.Type type = 4; + */ + public int getTypeValue() { + return type_; + } + /** + * optional .proto.MplTransaction.Type type = 4; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * optional .proto.MplTransaction.Type type = 4; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { + net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; + } + /** + * optional .proto.MplTransaction.Type type = 4; + */ + public Builder setType(net.iGap.proto.ProtoGlobal.MplTransaction.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.MplTransaction.Type type = 4; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private net.iGap.proto.ProtoGlobal.MplTransaction.Bill bill_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder> billBuilder_; + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public boolean hasBill() { + return billBuilder_ != null || bill_ != null; + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getBill() { + if (billBuilder_ == null) { + return bill_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; + } else { + return billBuilder_.getMessage(); + } + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public Builder setBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { + if (billBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bill_ = value; + onChanged(); + } else { + billBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public Builder setBill( + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder builderForValue) { + if (billBuilder_ == null) { + bill_ = builderForValue.build(); + onChanged(); + } else { + billBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public Builder mergeBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { + if (billBuilder_ == null) { + if (bill_ != null) { + bill_ = + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.newBuilder(bill_).mergeFrom(value).buildPartial(); + } else { + bill_ = value; + } + onChanged(); + } else { + billBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public Builder clearBill() { + if (billBuilder_ == null) { + bill_ = null; + onChanged(); + } else { + bill_ = null; + billBuilder_ = null; + } + + return this; + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder getBillBuilder() { + + onChanged(); + return getBillFieldBuilder().getBuilder(); + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder getBillOrBuilder() { + if (billBuilder_ != null) { + return billBuilder_.getMessageOrBuilder(); + } else { + return bill_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; + } + } + /** + * optional .proto.MplTransaction.Bill bill = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder> + getBillFieldBuilder() { + if (billBuilder_ == null) { + billBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder>( + getBill(), + getParentForChildren(), + isClean()); + bill_ = null; + } + return billBuilder_; + } + + private net.iGap.proto.ProtoGlobal.MplTransaction.Topup topup_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder> topupBuilder_; + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public boolean hasTopup() { + return topupBuilder_ != null || topup_ != null; + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getTopup() { + if (topupBuilder_ == null) { + return topup_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; + } else { + return topupBuilder_.getMessage(); + } + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public Builder setTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { + if (topupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + topup_ = value; + onChanged(); + } else { + topupBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public Builder setTopup( + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder builderForValue) { + if (topupBuilder_ == null) { + topup_ = builderForValue.build(); + onChanged(); + } else { + topupBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public Builder mergeTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { + if (topupBuilder_ == null) { + if (topup_ != null) { + topup_ = + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.newBuilder(topup_).mergeFrom(value).buildPartial(); + } else { + topup_ = value; + } + onChanged(); + } else { + topupBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public Builder clearTopup() { + if (topupBuilder_ == null) { + topup_ = null; + onChanged(); + } else { + topup_ = null; + topupBuilder_ = null; + } + + return this; + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder getTopupBuilder() { + + onChanged(); + return getTopupFieldBuilder().getBuilder(); + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder getTopupOrBuilder() { + if (topupBuilder_ != null) { + return topupBuilder_.getMessageOrBuilder(); + } else { + return topup_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; + } + } + /** + * optional .proto.MplTransaction.Topup topup = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder> + getTopupFieldBuilder() { + if (topupBuilder_ == null) { + topupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder>( + getTopup(), + getParentForChildren(), + isClean()); + topup_ = null; + } + return topupBuilder_; + } + + private net.iGap.proto.ProtoGlobal.MplTransaction.Sales sales_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder> salesBuilder_; + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public boolean hasSales() { + return salesBuilder_ != null || sales_ != null; + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getSales() { + if (salesBuilder_ == null) { + return sales_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + } else { + return salesBuilder_.getMessage(); + } + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public Builder setSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { + if (salesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sales_ = value; + onChanged(); + } else { + salesBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public Builder setSales( + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder builderForValue) { + if (salesBuilder_ == null) { + sales_ = builderForValue.build(); + onChanged(); + } else { + salesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public Builder mergeSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { + if (salesBuilder_ == null) { + if (sales_ != null) { + sales_ = + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.newBuilder(sales_).mergeFrom(value).buildPartial(); + } else { + sales_ = value; + } + onChanged(); + } else { + salesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public Builder clearSales() { + if (salesBuilder_ == null) { + sales_ = null; + onChanged(); + } else { + sales_ = null; + salesBuilder_ = null; + } + + return this; + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder getSalesBuilder() { + + onChanged(); + return getSalesFieldBuilder().getBuilder(); + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder getSalesOrBuilder() { + if (salesBuilder_ != null) { + return salesBuilder_.getMessageOrBuilder(); + } else { + return sales_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + } + } + /** + * optional .proto.MplTransaction.Sales sales = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder> + getSalesFieldBuilder() { + if (salesBuilder_ == null) { + salesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder>( + getSales(), + getParentForChildren(), + isClean()); + sales_ = null; + } + return salesBuilder_; + } + + private net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard cardtocard_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder> cardtocardBuilder_; + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public boolean hasCardtocard() { + return cardtocardBuilder_ != null || cardtocard_ != null; + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard() { + if (cardtocardBuilder_ == null) { + return cardtocard_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; + } else { + return cardtocardBuilder_.getMessage(); + } + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public Builder setCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { + if (cardtocardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardtocard_ = value; + onChanged(); + } else { + cardtocardBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public Builder setCardtocard( + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder builderForValue) { + if (cardtocardBuilder_ == null) { + cardtocard_ = builderForValue.build(); + onChanged(); + } else { + cardtocardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public Builder mergeCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { + if (cardtocardBuilder_ == null) { + if (cardtocard_ != null) { + cardtocard_ = + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.newBuilder(cardtocard_).mergeFrom(value).buildPartial(); + } else { + cardtocard_ = value; + } + onChanged(); + } else { + cardtocardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public Builder clearCardtocard() { + if (cardtocardBuilder_ == null) { + cardtocard_ = null; + onChanged(); + } else { + cardtocard_ = null; + cardtocardBuilder_ = null; + } + + return this; + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder getCardtocardBuilder() { + + onChanged(); + return getCardtocardFieldBuilder().getBuilder(); + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder getCardtocardOrBuilder() { + if (cardtocardBuilder_ != null) { + return cardtocardBuilder_.getMessageOrBuilder(); + } else { + return cardtocard_ == null ? + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; + } + } + /** + * optional .proto.MplTransaction.CardToCard cardtocard = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder> + getCardtocardFieldBuilder() { + if (cardtocardBuilder_ == null) { + cardtocardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder>( + getCardtocard(), + getParentForChildren(), + isClean()); + cardtocard_ = null; + } + return cardtocardBuilder_; + } + 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:proto.MplTransaction) + } + + // @@protoc_insertion_point(class_scope:proto.MplTransaction) + private static final net.iGap.proto.ProtoGlobal.MplTransaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction(); + } + + public static net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MplTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MplTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BotInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.BotInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * optional uint64 id = 1; + */ + long getId(); + + /** + * optional string welcomeMessage = 2; + */ + java.lang.String getWelcomeMessage(); + /** + * optional string welcomeMessage = 2; + */ + com.google.protobuf.ByteString + getWelcomeMessageBytes(); + + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + java.util.List + getActionsList(); + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + net.iGap.proto.ProtoGlobal.BotInfo.BotAction getActions(int index); + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + int getActionsCount(); + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + java.util.List + getActionsOrBuilderList(); + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder getActionsOrBuilder( + int index); + } + /** + * Protobuf type {@code proto.BotInfo} + */ + public static final class BotInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.BotInfo) + BotInfoOrBuilder { + // Use BotInfo.newBuilder() to construct. + private BotInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BotInfo() { + id_ = 0L; + welcomeMessage_ = ""; + actions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BotInfo( + 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: { + + id_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + welcomeMessage_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + actions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + actions_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.BotInfo.BotAction.parser(), extensionRegistry)); + 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_ & 0x00000004) == 0x00000004)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.class, net.iGap.proto.ProtoGlobal.BotInfo.Builder.class); + } + + public interface BotActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.BotInfo.BotAction) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string key = 1; + */ + java.lang.String getKey(); + /** + * optional string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * optional string value = 2; + */ + java.lang.String getValue(); + /** + * optional string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code proto.BotInfo.BotAction} + */ + public static final class BotAction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.BotInfo.BotAction) + BotActionOrBuilder { + // Use BotAction.newBuilder() to construct. + private BotAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BotAction() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BotAction( + 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(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = 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 net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.BotAction.class, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * optional string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * optional string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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 net.iGap.proto.ProtoGlobal.BotInfo.BotAction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.BotInfo.BotAction other = (net.iGap.proto.ProtoGlobal.BotInfo.BotAction) obj; + + boolean result = true; + result = result && getKey() + .equals(other.getKey()); + result = result && getValue() + .equals(other.getValue()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction 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 net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction 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 net.iGap.proto.ProtoGlobal.BotInfo.BotAction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction 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(net.iGap.proto.ProtoGlobal.BotInfo.BotAction 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 proto.BotInfo.BotAction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.BotInfo.BotAction) + net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.BotAction.class, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.BotInfo.BotAction.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(); + key_ = ""; + + value_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_BotAction_descriptor; + } + + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction build() { + net.iGap.proto.ProtoGlobal.BotInfo.BotAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction buildPartial() { + net.iGap.proto.ProtoGlobal.BotInfo.BotAction result = new net.iGap.proto.ProtoGlobal.BotInfo.BotAction(this); + result.key_ = key_; + result.value_ = value_; + 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 net.iGap.proto.ProtoGlobal.BotInfo.BotAction) { + return mergeFrom((net.iGap.proto.ProtoGlobal.BotInfo.BotAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.BotInfo.BotAction other) { + if (other == net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + 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 { + net.iGap.proto.ProtoGlobal.BotInfo.BotAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.BotInfo.BotAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * optional string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * optional string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * optional string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * optional string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = 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:proto.BotInfo.BotAction) + } + + // @@protoc_insertion_point(class_scope:proto.BotInfo.BotAction) + private static final net.iGap.proto.ProtoGlobal.BotInfo.BotAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.BotInfo.BotAction(); + } + + public static net.iGap.proto.ProtoGlobal.BotInfo.BotAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BotAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BotAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + public static final int WELCOMEMESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object welcomeMessage_; + /** + * optional string welcomeMessage = 2; + */ + public java.lang.String getWelcomeMessage() { + java.lang.Object ref = welcomeMessage_; + 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(); + welcomeMessage_ = s; + return s; + } + } + /** + * optional string welcomeMessage = 2; + */ + public com.google.protobuf.ByteString + getWelcomeMessageBytes() { + java.lang.Object ref = welcomeMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + welcomeMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIONS_FIELD_NUMBER = 3; + private java.util.List actions_; + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public java.util.List getActionsList() { + return actions_; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public java.util.List + getActionsOrBuilderList() { + return actions_; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public int getActionsCount() { + return actions_.size(); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getActions(int index) { + return actions_.get(index); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder getActionsOrBuilder( + int index) { + return actions_.get(index); + } + + 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 (id_ != 0L) { + output.writeUInt64(1, id_); + } + if (!getWelcomeMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, welcomeMessage_); + } + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(3, actions_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + if (!getWelcomeMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, welcomeMessage_); + } + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, actions_.get(i)); + } + 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 net.iGap.proto.ProtoGlobal.BotInfo)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.BotInfo other = (net.iGap.proto.ProtoGlobal.BotInfo) obj; + + boolean result = true; + result = result && (getId() + == other.getId()); + result = result && getWelcomeMessage() + .equals(other.getWelcomeMessage()); + result = result && getActionsList() + .equals(other.getActionsList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + WELCOMEMESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getWelcomeMessage().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.BotInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.BotInfo 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 net.iGap.proto.ProtoGlobal.BotInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.BotInfo 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 net.iGap.proto.ProtoGlobal.BotInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.BotInfo 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(net.iGap.proto.ProtoGlobal.BotInfo 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 proto.BotInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.BotInfo) + net.iGap.proto.ProtoGlobal.BotInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.BotInfo.class, net.iGap.proto.ProtoGlobal.BotInfo.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.BotInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getActionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + id_ = 0L; + + welcomeMessage_ = ""; + + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + actionsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_BotInfo_descriptor; + } + + public net.iGap.proto.ProtoGlobal.BotInfo getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.BotInfo build() { + net.iGap.proto.ProtoGlobal.BotInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.BotInfo buildPartial() { + net.iGap.proto.ProtoGlobal.BotInfo result = new net.iGap.proto.ProtoGlobal.BotInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + result.welcomeMessage_ = welcomeMessage_; + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.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 net.iGap.proto.ProtoGlobal.BotInfo) { + return mergeFrom((net.iGap.proto.ProtoGlobal.BotInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.BotInfo other) { + if (other == net.iGap.proto.ProtoGlobal.BotInfo.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getWelcomeMessage().isEmpty()) { + welcomeMessage_ = other.welcomeMessage_; + onChanged(); + } + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000004); + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + 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 { + net.iGap.proto.ProtoGlobal.BotInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.BotInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long id_ ; + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional uint64 id = 1; + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object welcomeMessage_ = ""; + /** + * optional string welcomeMessage = 2; + */ + public java.lang.String getWelcomeMessage() { + java.lang.Object ref = welcomeMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + welcomeMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string welcomeMessage = 2; + */ + public com.google.protobuf.ByteString + getWelcomeMessageBytes() { + java.lang.Object ref = welcomeMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + welcomeMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string welcomeMessage = 2; + */ + public Builder setWelcomeMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + welcomeMessage_ = value; + onChanged(); + return this; + } + /** + * optional string welcomeMessage = 2; + */ + public Builder clearWelcomeMessage() { + + welcomeMessage_ = getDefaultInstance().getWelcomeMessage(); + onChanged(); + return this; + } + /** + * optional string welcomeMessage = 2; + */ + public Builder setWelcomeMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + welcomeMessage_ = value; + onChanged(); + return this; + } + + private java.util.List actions_ = + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + actions_ = new java.util.ArrayList(actions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo.BotAction, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder, net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder> actionsBuilder_; + + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public java.util.List getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public int getActionsCount() { + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction getActions(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder setActions( + int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder setActions( + int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder addActions(net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder addActions( + int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder addActions( + net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder addActions( + int index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder addAllActions( + java.lang.Iterable values) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + actionsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder getActionsBuilder( + int index) { + return getActionsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder getActionsOrBuilder( + int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); } else { + return actionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public java.util.List + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); + } + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder addActionsBuilder() { + return getActionsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance()); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder addActionsBuilder( + int index) { + return getActionsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.getDefaultInstance()); + } + /** + * repeated .proto.BotInfo.BotAction actions = 3; + */ + public java.util.List + getActionsBuilderList() { + return getActionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo.BotAction, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder, net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder> + getActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.BotInfo.BotAction, net.iGap.proto.ProtoGlobal.BotInfo.BotAction.Builder, net.iGap.proto.ProtoGlobal.BotInfo.BotActionOrBuilder>( + actions_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + actions_ = null; + } + return actionsBuilder_; + } + 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:proto.BotInfo) + } + + // @@protoc_insertion_point(class_scope:proto.BotInfo) + private static final net.iGap.proto.ProtoGlobal.BotInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.BotInfo(); + } + + public static net.iGap.proto.ProtoGlobal.BotInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BotInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BotInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.BotInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MentionOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.Mention) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated uint64 userIds = 1; + */ + java.util.List getUserIdsList(); + /** + * repeated uint64 userIds = 1; + */ + int getUserIdsCount(); + /** + * repeated uint64 userIds = 1; + */ + long getUserIds(int index); + } + /** + * Protobuf type {@code proto.Mention} + */ + public static final class Mention extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.Mention) + MentionOrBuilder { + // Use Mention.newBuilder() to construct. + private Mention(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Mention() { + userIds_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Mention( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + userIds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userIds_.add(input.readUInt64()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + userIds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + userIds_.add(input.readUInt64()); + } + input.popLimit(limit); + 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_ & 0x00000001) == 0x00000001)) { + userIds_ = java.util.Collections.unmodifiableList(userIds_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Mention.class, net.iGap.proto.ProtoGlobal.Mention.Builder.class); + } + + public static final int USERIDS_FIELD_NUMBER = 1; + private java.util.List userIds_; + /** + * repeated uint64 userIds = 1; + */ + public java.util.List + getUserIdsList() { + return userIds_; + } + /** + * repeated uint64 userIds = 1; + */ + public int getUserIdsCount() { + return userIds_.size(); + } + /** + * repeated uint64 userIds = 1; + */ + public long getUserIds(int index) { + return userIds_.get(index); + } + private int userIdsMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getUserIdsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(userIdsMemoizedSerializedSize); + } + for (int i = 0; i < userIds_.size(); i++) { + output.writeUInt64NoTag(userIds_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < userIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(userIds_.get(i)); + } + size += dataSize; + if (!getUserIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + userIdsMemoizedSerializedSize = dataSize; + } + 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 net.iGap.proto.ProtoGlobal.Mention)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.Mention other = (net.iGap.proto.ProtoGlobal.Mention) obj; + + boolean result = true; + result = result && getUserIdsList() + .equals(other.getUserIdsList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getUserIdsCount() > 0) { + hash = (37 * hash) + USERIDS_FIELD_NUMBER; + hash = (53 * hash) + getUserIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.Mention parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Mention parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.Mention parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.Mention parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.Mention parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.Mention 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 net.iGap.proto.ProtoGlobal.Mention parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.Mention 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 net.iGap.proto.ProtoGlobal.Mention parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.Mention 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(net.iGap.proto.ProtoGlobal.Mention 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 proto.Mention} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.Mention) + net.iGap.proto.ProtoGlobal.MentionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.Mention.class, net.iGap.proto.ProtoGlobal.Mention.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.Mention.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(); + userIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_Mention_descriptor; + } + + public net.iGap.proto.ProtoGlobal.Mention getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.Mention build() { + net.iGap.proto.ProtoGlobal.Mention result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.Mention buildPartial() { + net.iGap.proto.ProtoGlobal.Mention result = new net.iGap.proto.ProtoGlobal.Mention(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + userIds_ = java.util.Collections.unmodifiableList(userIds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userIds_ = userIds_; + 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 net.iGap.proto.ProtoGlobal.Mention) { + return mergeFrom((net.iGap.proto.ProtoGlobal.Mention)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.Mention other) { + if (other == net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance()) return this; + if (!other.userIds_.isEmpty()) { + if (userIds_.isEmpty()) { + userIds_ = other.userIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserIdsIsMutable(); + userIds_.addAll(other.userIds_); + } + 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 { + net.iGap.proto.ProtoGlobal.Mention parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.Mention) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List userIds_ = java.util.Collections.emptyList(); + private void ensureUserIdsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + userIds_ = new java.util.ArrayList(userIds_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated uint64 userIds = 1; + */ + public java.util.List + getUserIdsList() { + return java.util.Collections.unmodifiableList(userIds_); + } + /** + * repeated uint64 userIds = 1; + */ + public int getUserIdsCount() { + return userIds_.size(); + } + /** + * repeated uint64 userIds = 1; + */ + public long getUserIds(int index) { + return userIds_.get(index); + } + /** + * repeated uint64 userIds = 1; + */ + public Builder setUserIds( + int index, long value) { + ensureUserIdsIsMutable(); + userIds_.set(index, value); + onChanged(); + return this; + } + /** + * repeated uint64 userIds = 1; + */ + public Builder addUserIds(long value) { + ensureUserIdsIsMutable(); + userIds_.add(value); + onChanged(); + return this; + } + /** + * repeated uint64 userIds = 1; + */ + public Builder addAllUserIds( + java.lang.Iterable values) { + ensureUserIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, userIds_); + onChanged(); + return this; + } + /** + * repeated uint64 userIds = 1; + */ + public Builder clearUserIds() { + userIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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:proto.Mention) + } + + // @@protoc_insertion_point(class_scope:proto.Mention) + private static final net.iGap.proto.ProtoGlobal.Mention DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.Mention(); + } + + public static net.iGap.proto.ProtoGlobal.Mention getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Mention parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Mention(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.Mention getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RoomMessageStickerOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.RoomMessageSticker) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + int getTypeValue(); + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum getType(); + + /** + * optional string message = 2; + */ + java.lang.String getMessage(); + /** + * optional string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + * optional string id = 3; + */ + java.lang.String getId(); + /** + * optional string id = 3; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * optional string name = 4; + */ + java.lang.String getName(); + /** + * optional string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string path = 5; + */ + java.lang.String getPath(); + /** + * optional string path = 5; + */ + com.google.protobuf.ByteString + getPathBytes(); + + /** + * optional string token = 6; + */ + java.lang.String getToken(); + /** + * optional string token = 6; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + * optional string group_id = 7; + */ + java.lang.String getGroupId(); + /** + * optional string group_id = 7; + */ + com.google.protobuf.ByteString + getGroupIdBytes(); + + /** + * optional string file_name = 8; + */ + java.lang.String getFileName(); + /** + * optional string file_name = 8; + */ + com.google.protobuf.ByteString + getFileNameBytes(); + + /** + * optional int64 file_size = 9; + */ + long getFileSize(); + + /** + * optional string gift_id = 10; + */ + java.lang.String getGiftId(); + /** + * optional string gift_id = 10; + */ + com.google.protobuf.ByteString + getGiftIdBytes(); + + /** + * optional int64 gift_amount = 11; + */ + long getGiftAmount(); + + /** + * optional bool is_favorite = 12; + */ + boolean getIsFavorite(); + + /** + * optional int32 sort = 13; + */ + int getSort(); + + /** + * optional int64 ref_id = 14; + */ + long getRefId(); + + /** + * repeated string tags = 15; + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 15; + */ + int getTagsCount(); + /** + * repeated string tags = 15; + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 15; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + * Protobuf type {@code proto.RoomMessageSticker} + */ + public static final class RoomMessageSticker extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.RoomMessageSticker) + RoomMessageStickerOrBuilder { + // Use RoomMessageSticker.newBuilder() to construct. + private RoomMessageSticker(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RoomMessageSticker() { + type_ = 0; + message_ = ""; + id_ = ""; + name_ = ""; + path_ = ""; + token_ = ""; + groupId_ = ""; + fileName_ = ""; + fileSize_ = 0L; + giftId_ = ""; + giftAmount_ = 0L; + isFavorite_ = false; + sort_ = 0; + refId_ = 0L; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RoomMessageSticker( + 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: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + groupId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + fileName_ = s; + break; + } + case 72: { + + fileSize_ = input.readInt64(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + giftId_ = s; + break; + } + case 88: { + + giftAmount_ = input.readInt64(); + break; + } + case 96: { + + isFavorite_ = input.readBool(); + break; + } + case 104: { + + sort_ = input.readInt32(); + break; + } + case 112: { + + refId_ = input.readInt64(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00004000; + } + tags_.add(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 { + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + tags_ = tags_.getUnmodifiableView(); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.class, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder.class); + } + + /** + * Protobuf enum {@code proto.RoomMessageSticker.StickerTypeEnum} + */ + public enum StickerTypeEnum + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STICKER = 0; + */ + STICKER(0), + /** + * GIFT_STICKER = 1; + */ + GIFT_STICKER(1), + /** + * MOTION_STICKER = 2; + */ + MOTION_STICKER(2), + UNRECOGNIZED(-1), + ; + + /** + * STICKER = 0; + */ + public static final int STICKER_VALUE = 0; + /** + * GIFT_STICKER = 1; + */ + public static final int GIFT_STICKER_VALUE = 1; + /** + * MOTION_STICKER = 2; + */ + public static final int MOTION_STICKER_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StickerTypeEnum valueOf(int value) { + return forNumber(value); + } + + public static StickerTypeEnum forNumber(int value) { + switch (value) { + case 0: return STICKER; + case 1: return GIFT_STICKER; + case 2: return MOTION_STICKER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StickerTypeEnum> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StickerTypeEnum findValueByNumber(int number) { + return StickerTypeEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDescriptor().getEnumTypes().get(0); + } + + private static final StickerTypeEnum[] VALUES = values(); + + public static StickerTypeEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StickerTypeEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.RoomMessageSticker.StickerTypeEnum) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum getType() { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum result = net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + * optional string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + * optional string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3; + private volatile java.lang.Object id_; + /** + * optional string id = 3; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 3; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * optional string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * optional string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 5; + private volatile java.lang.Object path_; + /** + * optional string path = 5; + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + 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(); + path_ = s; + return s; + } + } + /** + * optional string path = 5; + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_FIELD_NUMBER = 6; + private volatile java.lang.Object token_; + /** + * optional string token = 6; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + * optional string token = 6; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object groupId_; + /** + * optional string group_id = 7; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + 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(); + groupId_ = s; + return s; + } + } + /** + * optional string group_id = 7; + */ + public com.google.protobuf.ByteString + getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object fileName_; + /** + * optional string file_name = 8; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + 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(); + fileName_ = s; + return s; + } + } + /** + * optional string file_name = 8; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_SIZE_FIELD_NUMBER = 9; + private long fileSize_; + /** + * optional int64 file_size = 9; + */ + public long getFileSize() { + return fileSize_; + } + + public static final int GIFT_ID_FIELD_NUMBER = 10; + private volatile java.lang.Object giftId_; + /** + * optional string gift_id = 10; + */ + public java.lang.String getGiftId() { + java.lang.Object ref = giftId_; + 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(); + giftId_ = s; + return s; + } + } + /** + * optional string gift_id = 10; + */ + public com.google.protobuf.ByteString + getGiftIdBytes() { + java.lang.Object ref = giftId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + giftId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIFT_AMOUNT_FIELD_NUMBER = 11; + private long giftAmount_; + /** + * optional int64 gift_amount = 11; + */ + public long getGiftAmount() { + return giftAmount_; + } + + public static final int IS_FAVORITE_FIELD_NUMBER = 12; + private boolean isFavorite_; + /** + * optional bool is_favorite = 12; + */ + public boolean getIsFavorite() { + return isFavorite_; + } + + public static final int SORT_FIELD_NUMBER = 13; + private int sort_; + /** + * optional int32 sort = 13; + */ + public int getSort() { + return sort_; + } + + public static final int REF_ID_FIELD_NUMBER = 14; + private long refId_; + /** + * optional int64 ref_id = 14; + */ + public long getRefId() { + return refId_; + } + + public static final int TAGS_FIELD_NUMBER = 15; + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 15; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 15; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 15; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 15; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + 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 (type_ != net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.STICKER.getNumber()) { + output.writeEnum(1, type_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (!getPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, path_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, token_); + } + if (!getGroupIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, groupId_); + } + if (!getFileNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fileName_); + } + if (fileSize_ != 0L) { + output.writeInt64(9, fileSize_); + } + if (!getGiftIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, giftId_); + } + if (giftAmount_ != 0L) { + output.writeInt64(11, giftAmount_); + } + if (isFavorite_ != false) { + output.writeBool(12, isFavorite_); + } + if (sort_ != 0) { + output.writeInt32(13, sort_); + } + if (refId_ != 0L) { + output.writeInt64(14, refId_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, tags_.getRaw(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.STICKER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (!getPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, path_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, token_); + } + if (!getGroupIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, groupId_); + } + if (!getFileNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fileName_); + } + if (fileSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, fileSize_); + } + if (!getGiftIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, giftId_); + } + if (giftAmount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, giftAmount_); + } + if (isFavorite_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, isFavorite_); + } + if (sort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(13, sort_); + } + if (refId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, refId_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + 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 net.iGap.proto.ProtoGlobal.RoomMessageSticker)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageSticker other = (net.iGap.proto.ProtoGlobal.RoomMessageSticker) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getMessage() + .equals(other.getMessage()); + result = result && getId() + .equals(other.getId()); + result = result && getName() + .equals(other.getName()); + result = result && getPath() + .equals(other.getPath()); + result = result && getToken() + .equals(other.getToken()); + result = result && getGroupId() + .equals(other.getGroupId()); + result = result && getFileName() + .equals(other.getFileName()); + result = result && (getFileSize() + == other.getFileSize()); + result = result && getGiftId() + .equals(other.getGiftId()); + result = result && (getGiftAmount() + == other.getGiftAmount()); + result = result && (getIsFavorite() + == other.getIsFavorite()); + result = result && (getSort() + == other.getSort()); + result = result && (getRefId() + == other.getRefId()); + result = result && getTagsList() + .equals(other.getTagsList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (37 * hash) + FILE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFileSize()); + hash = (37 * hash) + GIFT_ID_FIELD_NUMBER; + hash = (53 * hash) + getGiftId().hashCode(); + hash = (37 * hash) + GIFT_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGiftAmount()); + hash = (37 * hash) + IS_FAVORITE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFavorite()); + hash = (37 * hash) + SORT_FIELD_NUMBER; + hash = (53 * hash) + getSort(); + hash = (37 * hash) + REF_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRefId()); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker 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 net.iGap.proto.ProtoGlobal.RoomMessageSticker parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker 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 net.iGap.proto.ProtoGlobal.RoomMessageSticker parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker 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(net.iGap.proto.ProtoGlobal.RoomMessageSticker 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 proto.RoomMessageSticker} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.RoomMessageSticker) + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.class, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageSticker.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(); + type_ = 0; + + message_ = ""; + + id_ = ""; + + name_ = ""; + + path_ = ""; + + token_ = ""; + + groupId_ = ""; + + fileName_ = ""; + + fileSize_ = 0L; + + giftId_ = ""; + + giftAmount_ = 0L; + + isFavorite_ = false; + + sort_ = 0; + + refId_ = 0L; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageSticker_descriptor; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.RoomMessageSticker build() { + net.iGap.proto.ProtoGlobal.RoomMessageSticker result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageSticker buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageSticker result = new net.iGap.proto.ProtoGlobal.RoomMessageSticker(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.type_ = type_; + result.message_ = message_; + result.id_ = id_; + result.name_ = name_; + result.path_ = path_; + result.token_ = token_; + result.groupId_ = groupId_; + result.fileName_ = fileName_; + result.fileSize_ = fileSize_; + result.giftId_ = giftId_; + result.giftAmount_ = giftAmount_; + result.isFavorite_ = isFavorite_; + result.sort_ = sort_; + result.refId_ = refId_; + if (((bitField0_ & 0x00004000) == 0x00004000)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.tags_ = tags_; + 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 net.iGap.proto.ProtoGlobal.RoomMessageSticker) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageSticker)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageSticker other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + onChanged(); + } + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + onChanged(); + } + if (other.getFileSize() != 0L) { + setFileSize(other.getFileSize()); + } + if (!other.getGiftId().isEmpty()) { + giftId_ = other.giftId_; + onChanged(); + } + if (other.getGiftAmount() != 0L) { + setGiftAmount(other.getGiftAmount()); + } + if (other.getIsFavorite() != false) { + setIsFavorite(other.getIsFavorite()); + } + if (other.getSort() != 0) { + setSort(other.getSort()); + } + if (other.getRefId() != 0L) { + setRefId(other.getRefId()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + 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 { + net.iGap.proto.ProtoGlobal.RoomMessageSticker parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageSticker) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int type_ = 0; + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum getType() { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum result = net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum.UNRECOGNIZED : result; + } + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + public Builder setType(net.iGap.proto.ProtoGlobal.RoomMessageSticker.StickerTypeEnum value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.RoomMessageSticker.StickerTypeEnum type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * optional string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * optional string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * optional string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 3; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 3; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 3; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 3; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 3; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * optional string path = 5; + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string path = 5; + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string path = 5; + */ + public Builder setPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); + return this; + } + /** + * optional string path = 5; + */ + public Builder clearPath() { + + path_ = getDefaultInstance().getPath(); + onChanged(); + return this; + } + /** + * optional string path = 5; + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + * optional string token = 6; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string token = 6; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string token = 6; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * optional string token = 6; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * optional string token = 6; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * optional string group_id = 7; + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string group_id = 7; + */ + public com.google.protobuf.ByteString + getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string group_id = 7; + */ + public Builder setGroupId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupId_ = value; + onChanged(); + return this; + } + /** + * optional string group_id = 7; + */ + public Builder clearGroupId() { + + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); + return this; + } + /** + * optional string group_id = 7; + */ + public Builder setGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupId_ = value; + onChanged(); + return this; + } + + private java.lang.Object fileName_ = ""; + /** + * optional string file_name = 8; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string file_name = 8; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string file_name = 8; + */ + public Builder setFileName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fileName_ = value; + onChanged(); + return this; + } + /** + * optional string file_name = 8; + */ + public Builder clearFileName() { + + fileName_ = getDefaultInstance().getFileName(); + onChanged(); + return this; + } + /** + * optional string file_name = 8; + */ + public Builder setFileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fileName_ = value; + onChanged(); + return this; + } + + private long fileSize_ ; + /** + * optional int64 file_size = 9; + */ + public long getFileSize() { + return fileSize_; + } + /** + * optional int64 file_size = 9; + */ + public Builder setFileSize(long value) { + + fileSize_ = value; + onChanged(); + return this; + } + /** + * optional int64 file_size = 9; + */ + public Builder clearFileSize() { + + fileSize_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object giftId_ = ""; + /** + * optional string gift_id = 10; + */ + public java.lang.String getGiftId() { + java.lang.Object ref = giftId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + giftId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string gift_id = 10; + */ + public com.google.protobuf.ByteString + getGiftIdBytes() { + java.lang.Object ref = giftId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + giftId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string gift_id = 10; + */ + public Builder setGiftId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + giftId_ = value; + onChanged(); + return this; + } + /** + * optional string gift_id = 10; + */ + public Builder clearGiftId() { + + giftId_ = getDefaultInstance().getGiftId(); + onChanged(); + return this; + } + /** + * optional string gift_id = 10; + */ + public Builder setGiftIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + giftId_ = value; + onChanged(); + return this; + } + + private long giftAmount_ ; + /** + * optional int64 gift_amount = 11; + */ + public long getGiftAmount() { + return giftAmount_; + } + /** + * optional int64 gift_amount = 11; + */ + public Builder setGiftAmount(long value) { + + giftAmount_ = value; + onChanged(); + return this; + } + /** + * optional int64 gift_amount = 11; + */ + public Builder clearGiftAmount() { + + giftAmount_ = 0L; + onChanged(); + return this; + } + + private boolean isFavorite_ ; + /** + * optional bool is_favorite = 12; + */ + public boolean getIsFavorite() { + return isFavorite_; + } + /** + * optional bool is_favorite = 12; + */ + public Builder setIsFavorite(boolean value) { + + isFavorite_ = value; + onChanged(); + return this; + } + /** + * optional bool is_favorite = 12; + */ + public Builder clearIsFavorite() { + + isFavorite_ = false; + onChanged(); + return this; + } + + private int sort_ ; + /** + * optional int32 sort = 13; + */ + public int getSort() { + return sort_; + } + /** + * optional int32 sort = 13; + */ + public Builder setSort(int value) { + + sort_ = value; + onChanged(); + return this; + } + /** + * optional int32 sort = 13; + */ + public Builder clearSort() { + + sort_ = 0; + onChanged(); + return this; + } + + private long refId_ ; + /** + * optional int64 ref_id = 14; + */ + public long getRefId() { + return refId_; + } + /** + * optional int64 ref_id = 14; + */ + public Builder setRefId(long value) { + + refId_ = value; + onChanged(); + return this; + } + /** + * optional int64 ref_id = 14; + */ + public Builder clearRefId() { + + refId_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00004000; + } + } + /** + * repeated string tags = 15; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 15; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 15; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 15; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 15; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 15; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 15; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 15; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * repeated string tags = 15; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(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:proto.RoomMessageSticker) + } + + // @@protoc_insertion_point(class_scope:proto.RoomMessageSticker) + private static final net.iGap.proto.ProtoGlobal.RoomMessageSticker DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageSticker(); + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageSticker getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RoomMessageSticker parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageSticker(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RoomMessageCardToCardOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.RoomMessageCardToCard) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string message = 1; + */ + java.lang.String getMessage(); + /** + * optional string message = 1; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + * optional string label = 2; + */ + java.lang.String getLabel(); + /** + * optional string label = 2; + */ + com.google.protobuf.ByteString + getLabelBytes(); + + /** + * optional string image_url = 3; + */ + java.lang.String getImageUrl(); + /** + * optional string image_url = 3; + */ + com.google.protobuf.ByteString + getImageUrlBytes(); + + /** + * optional string action_type = 4; + */ + java.lang.String getActionType(); + /** + * optional string action_type = 4; + */ + com.google.protobuf.ByteString + getActionTypeBytes(); + + /** + * optional string card_number = 5; + */ + java.lang.String getCardNumber(); + /** + * optional string card_number = 5; + */ + com.google.protobuf.ByteString + getCardNumberBytes(); + + /** + * optional int64 amount = 6; + */ + long getAmount(); + + /** + * optional int64 user_id = 7; + */ + long getUserId(); + } + /** + * Protobuf type {@code proto.RoomMessageCardToCard} + */ + public static final class RoomMessageCardToCard extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.RoomMessageCardToCard) + RoomMessageCardToCardOrBuilder { + // Use RoomMessageCardToCard.newBuilder() to construct. + private RoomMessageCardToCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RoomMessageCardToCard() { + message_ = ""; + label_ = ""; + imageUrl_ = ""; + actionType_ = ""; + cardNumber_ = ""; + amount_ = 0L; + userId_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RoomMessageCardToCard( + 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(); + + message_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + imageUrl_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + actionType_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + cardNumber_ = s; + break; + } + case 48: { + + amount_ = input.readInt64(); + break; + } + case 56: { + + userId_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.class, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * optional string message = 1; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + * optional string message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + private volatile java.lang.Object label_; + /** + * optional string label = 2; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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(); + label_ = s; + return s; + } + } + /** + * optional string label = 2; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_URL_FIELD_NUMBER = 3; + private volatile java.lang.Object imageUrl_; + /** + * optional string image_url = 3; + */ + public java.lang.String getImageUrl() { + java.lang.Object ref = imageUrl_; + 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(); + imageUrl_ = s; + return s; + } + } + /** + * optional string image_url = 3; + */ + public com.google.protobuf.ByteString + getImageUrlBytes() { + java.lang.Object ref = imageUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object actionType_; + /** + * optional string action_type = 4; + */ + public java.lang.String getActionType() { + java.lang.Object ref = actionType_; + 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(); + actionType_ = s; + return s; + } + } + /** + * optional string action_type = 4; + */ + public com.google.protobuf.ByteString + getActionTypeBytes() { + java.lang.Object ref = actionType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + actionType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CARD_NUMBER_FIELD_NUMBER = 5; + private volatile java.lang.Object cardNumber_; + /** + * optional string card_number = 5; + */ + public java.lang.String getCardNumber() { + java.lang.Object ref = cardNumber_; + 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(); + cardNumber_ = s; + return s; + } + } + /** + * optional string card_number = 5; + */ + public com.google.protobuf.ByteString + getCardNumberBytes() { + java.lang.Object ref = cardNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 6; + private long amount_; + /** + * optional int64 amount = 6; + */ + public long getAmount() { + return amount_; + } + + public static final int USER_ID_FIELD_NUMBER = 7; + private long userId_; + /** + * optional int64 user_id = 7; + */ + public long getUserId() { + return userId_; + } + + 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 (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); + } + if (!getImageUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUrl_); + } + if (!getActionTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, actionType_); + } + if (!getCardNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cardNumber_); + } + if (amount_ != 0L) { + output.writeInt64(6, amount_); + } + if (userId_ != 0L) { + output.writeInt64(7, userId_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); + } + if (!getImageUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUrl_); + } + if (!getActionTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, actionType_); + } + if (!getCardNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cardNumber_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, amount_); + } + if (userId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, userId_); + } + 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 net.iGap.proto.ProtoGlobal.RoomMessageCardToCard)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard other = (net.iGap.proto.ProtoGlobal.RoomMessageCardToCard) obj; + + boolean result = true; + result = result && getMessage() + .equals(other.getMessage()); + result = result && getLabel() + .equals(other.getLabel()); + result = result && getImageUrl() + .equals(other.getImageUrl()); + result = result && getActionType() + .equals(other.getActionType()); + result = result && getCardNumber() + .equals(other.getCardNumber()); + result = result && (getAmount() + == other.getAmount()); + result = result && (getUserId() + == other.getUserId()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER; + hash = (53 * hash) + getImageUrl().hashCode(); + hash = (37 * hash) + ACTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getActionType().hashCode(); + hash = (37 * hash) + CARD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getCardNumber().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard 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 net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard 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 net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard 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(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard 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 proto.RoomMessageCardToCard} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.RoomMessageCardToCard) + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.class, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.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(); + message_ = ""; + + label_ = ""; + + imageUrl_ = ""; + + actionType_ = ""; + + cardNumber_ = ""; + + amount_ = 0L; + + userId_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageCardToCard_descriptor; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard build() { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard result = new net.iGap.proto.ProtoGlobal.RoomMessageCardToCard(this); + result.message_ = message_; + result.label_ = label_; + result.imageUrl_ = imageUrl_; + result.actionType_ = actionType_; + result.cardNumber_ = cardNumber_; + result.amount_ = amount_; + result.userId_ = userId_; + 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 net.iGap.proto.ProtoGlobal.RoomMessageCardToCard) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageCardToCard)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + if (!other.getImageUrl().isEmpty()) { + imageUrl_ = other.imageUrl_; + onChanged(); + } + if (!other.getActionType().isEmpty()) { + actionType_ = other.actionType_; + onChanged(); + } + if (!other.getCardNumber().isEmpty()) { + cardNumber_ = other.cardNumber_; + onChanged(); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + 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 { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageCardToCard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; + /** + * optional string message = 1; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string message = 1; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * optional string message = 1; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * optional string message = 1; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + /** + * optional string label = 2; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 2; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 2; + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + /** + * optional string label = 2; + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + /** + * optional string label = 2; + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageUrl_ = ""; + /** + * optional string image_url = 3; + */ + public java.lang.String getImageUrl() { + java.lang.Object ref = imageUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string image_url = 3; + */ + public com.google.protobuf.ByteString + getImageUrlBytes() { + java.lang.Object ref = imageUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string image_url = 3; + */ + public Builder setImageUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUrl_ = value; + onChanged(); + return this; + } + /** + * optional string image_url = 3; + */ + public Builder clearImageUrl() { + + imageUrl_ = getDefaultInstance().getImageUrl(); + onChanged(); + return this; + } + /** + * optional string image_url = 3; + */ + public Builder setImageUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUrl_ = value; + onChanged(); + return this; + } + + private java.lang.Object actionType_ = ""; + /** + * optional string action_type = 4; + */ + public java.lang.String getActionType() { + java.lang.Object ref = actionType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + actionType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string action_type = 4; + */ + public com.google.protobuf.ByteString + getActionTypeBytes() { + java.lang.Object ref = actionType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + actionType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string action_type = 4; + */ + public Builder setActionType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + actionType_ = value; + onChanged(); + return this; + } + /** + * optional string action_type = 4; + */ + public Builder clearActionType() { + + actionType_ = getDefaultInstance().getActionType(); + onChanged(); + return this; + } + /** + * optional string action_type = 4; + */ + public Builder setActionTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + actionType_ = value; + onChanged(); + return this; + } + + private java.lang.Object cardNumber_ = ""; + /** + * optional string card_number = 5; + */ + public java.lang.String getCardNumber() { + java.lang.Object ref = cardNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cardNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string card_number = 5; + */ + public com.google.protobuf.ByteString + getCardNumberBytes() { + java.lang.Object ref = cardNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cardNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string card_number = 5; + */ + public Builder setCardNumber( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cardNumber_ = value; + onChanged(); + return this; + } + /** + * optional string card_number = 5; + */ + public Builder clearCardNumber() { + + cardNumber_ = getDefaultInstance().getCardNumber(); + onChanged(); + return this; + } + /** + * optional string card_number = 5; + */ + public Builder setCardNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cardNumber_ = value; + onChanged(); + return this; + } + + private long amount_ ; + /** + * optional int64 amount = 6; + */ + public long getAmount() { + return amount_; + } + /** + * optional int64 amount = 6; + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + * optional int64 amount = 6; + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private long userId_ ; + /** + * optional int64 user_id = 7; + */ + public long getUserId() { + return userId_; + } + /** + * optional int64 user_id = 7; + */ + public Builder setUserId(long value) { + + userId_ = value; + onChanged(); + return this; + } + /** + * optional int64 user_id = 7; + */ + public Builder clearUserId() { + + userId_ = 0L; + 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:proto.RoomMessageCardToCard) + } + + // @@protoc_insertion_point(class_scope:proto.RoomMessageCardToCard) + private static final net.iGap.proto.ProtoGlobal.RoomMessageCardToCard DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageCardToCard(); + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RoomMessageCardToCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageCardToCard(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RoomMessageBotActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.RoomMessageBotAction) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + int getActionValue(); + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum getAction(); + + /** + * optional string label = 2; + */ + java.lang.String getLabel(); + /** + * optional string label = 2; + */ + com.google.protobuf.ByteString + getLabelBytes(); + + /** + * optional string value = 3; + */ + java.lang.String getValue(); + /** + * optional string value = 3; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code proto.RoomMessageBotAction} + */ + public static final class RoomMessageBotAction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.RoomMessageBotAction) + RoomMessageBotActionOrBuilder { + // Use RoomMessageBotAction.newBuilder() to construct. + private RoomMessageBotAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RoomMessageBotAction() { + action_ = 0; + label_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RoomMessageBotAction( + 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: { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + label_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = 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 net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.class, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder.class); + } + + /** + * Protobuf enum {@code proto.RoomMessageBotAction.BotActionEnum} + */ + public enum BotActionEnum + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NONE = 0; + */ + NONE(0), + /** + * JOIN_LINK = 1; + */ + JOIN_LINK(1), + /** + * BOT_ACTION = 2; + */ + BOT_ACTION(2), + /** + * USERNAME_LINK = 3; + */ + USERNAME_LINK(3), + /** + * WEB_LINK = 4; + */ + WEB_LINK(4), + /** + * WEBVIEW_LINK = 5; + */ + WEBVIEW_LINK(5), + /** + * STREAM_PLAY = 6; + */ + STREAM_PLAY(6), + /** + * PAY_BY_WALLET = 7; + */ + PAY_BY_WALLET(7), + /** + * PAY_DIRECT = 8; + */ + PAY_DIRECT(8), + /** + * REQUEST_PHONE = 9; + */ + REQUEST_PHONE(9), + /** + * REQUEST_LOCATION = 10; + */ + REQUEST_LOCATION(10), + /** + * SHOW_ALERT = 11; + */ + SHOW_ALERT(11), + /** + * PAGE = 12; + */ + PAGE(12), + /** + * FINANCIAL_MENU = 13; + */ + FINANCIAL_MENU(13), + /** + * BILL_MENU = 14; + */ + BILL_MENU(14), + /** + * TRAFFIC_BILL_MENU = 15; + */ + TRAFFIC_BILL_MENU(15), + /** + * MOBILE_BILL_MENU = 16; + */ + MOBILE_BILL_MENU(16), + /** + * PHONE_BILL_MENU = 17; + */ + PHONE_BILL_MENU(17), + /** + * TOPUP_MENU = 18; + */ + TOPUP_MENU(18), + /** + * WALLET_MENU = 19; + */ + WALLET_MENU(19), + /** + * NEARBY_MENU = 20; + */ + NEARBY_MENU(20), + /** + * CALL = 21; + */ + CALL(21), + /** + * STICKER_SHOP = 22; + */ + STICKER_SHOP(22), + /** + * IVAN = 23; + */ + IVAN(23), + /** + * IVANQR = 24; + */ + IVANQR(24), + /** + * IVANDLIST = 25; + */ + IVANDLIST(25), + /** + * IVANDSCORE = 26; + */ + IVANDSCORE(26), + /** + * CARD_TO_CARD = 27; + */ + CARD_TO_CARD(27), + UNRECOGNIZED(-1), + ; + + /** + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + * JOIN_LINK = 1; + */ + public static final int JOIN_LINK_VALUE = 1; + /** + * BOT_ACTION = 2; + */ + public static final int BOT_ACTION_VALUE = 2; + /** + * USERNAME_LINK = 3; + */ + public static final int USERNAME_LINK_VALUE = 3; + /** + * WEB_LINK = 4; + */ + public static final int WEB_LINK_VALUE = 4; + /** + * WEBVIEW_LINK = 5; + */ + public static final int WEBVIEW_LINK_VALUE = 5; + /** + * STREAM_PLAY = 6; + */ + public static final int STREAM_PLAY_VALUE = 6; + /** + * PAY_BY_WALLET = 7; + */ + public static final int PAY_BY_WALLET_VALUE = 7; + /** + * PAY_DIRECT = 8; + */ + public static final int PAY_DIRECT_VALUE = 8; + /** + * REQUEST_PHONE = 9; + */ + public static final int REQUEST_PHONE_VALUE = 9; + /** + * REQUEST_LOCATION = 10; + */ + public static final int REQUEST_LOCATION_VALUE = 10; + /** + * SHOW_ALERT = 11; + */ + public static final int SHOW_ALERT_VALUE = 11; + /** + * PAGE = 12; + */ + public static final int PAGE_VALUE = 12; + /** + * FINANCIAL_MENU = 13; + */ + public static final int FINANCIAL_MENU_VALUE = 13; + /** + * BILL_MENU = 14; + */ + public static final int BILL_MENU_VALUE = 14; + /** + * TRAFFIC_BILL_MENU = 15; + */ + public static final int TRAFFIC_BILL_MENU_VALUE = 15; + /** + * MOBILE_BILL_MENU = 16; + */ + public static final int MOBILE_BILL_MENU_VALUE = 16; + /** + * PHONE_BILL_MENU = 17; + */ + public static final int PHONE_BILL_MENU_VALUE = 17; + /** + * TOPUP_MENU = 18; + */ + public static final int TOPUP_MENU_VALUE = 18; + /** + * WALLET_MENU = 19; + */ + public static final int WALLET_MENU_VALUE = 19; + /** + * NEARBY_MENU = 20; + */ + public static final int NEARBY_MENU_VALUE = 20; + /** + * CALL = 21; + */ + public static final int CALL_VALUE = 21; + /** + * STICKER_SHOP = 22; + */ + public static final int STICKER_SHOP_VALUE = 22; + /** + * IVAN = 23; + */ + public static final int IVAN_VALUE = 23; + /** + * IVANQR = 24; + */ + public static final int IVANQR_VALUE = 24; + /** + * IVANDLIST = 25; + */ + public static final int IVANDLIST_VALUE = 25; + /** + * IVANDSCORE = 26; + */ + public static final int IVANDSCORE_VALUE = 26; + /** + * CARD_TO_CARD = 27; + */ + public static final int CARD_TO_CARD_VALUE = 27; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BotActionEnum valueOf(int value) { + return forNumber(value); + } + + public static BotActionEnum forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return JOIN_LINK; + case 2: return BOT_ACTION; + case 3: return USERNAME_LINK; + case 4: return WEB_LINK; + case 5: return WEBVIEW_LINK; + case 6: return STREAM_PLAY; + case 7: return PAY_BY_WALLET; + case 8: return PAY_DIRECT; + case 9: return REQUEST_PHONE; + case 10: return REQUEST_LOCATION; + case 11: return SHOW_ALERT; + case 12: return PAGE; + case 13: return FINANCIAL_MENU; + case 14: return BILL_MENU; + case 15: return TRAFFIC_BILL_MENU; + case 16: return MOBILE_BILL_MENU; + case 17: return PHONE_BILL_MENU; + case 18: return TOPUP_MENU; + case 19: return WALLET_MENU; + case 20: return NEARBY_MENU; + case 21: return CALL; + case 22: return STICKER_SHOP; + case 23: return IVAN; + case 24: return IVANQR; + case 25: return IVANDLIST; + case 26: return IVANDSCORE; + case 27: return CARD_TO_CARD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BotActionEnum> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BotActionEnum findValueByNumber(int number) { + return BotActionEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDescriptor().getEnumTypes().get(0); + } + + private static final BotActionEnum[] VALUES = values(); + + public static BotActionEnum valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BotActionEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.RoomMessageBotAction.BotActionEnum) + } + + public static final int ACTION_FIELD_NUMBER = 1; + private int action_; + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + public int getActionValue() { + return action_; + } + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum getAction() { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum result = net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.UNRECOGNIZED : result; + } + + public static final int LABEL_FIELD_NUMBER = 2; + private volatile java.lang.Object label_; + /** + * optional string label = 2; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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(); + label_ = s; + return s; + } + } + /** + * optional string label = 2; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object value_; + /** + * optional string value = 3; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * optional string value = 3; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = 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 (action_ != net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.NONE.getNumber()) { + output.writeEnum(1, action_); + } + if (!getLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (action_ != net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); + } + if (!getLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + 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 net.iGap.proto.ProtoGlobal.RoomMessageBotAction)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageBotAction other = (net.iGap.proto.ProtoGlobal.RoomMessageBotAction) obj; + + boolean result = true; + result = result && action_ == other.action_; + result = result && getLabel() + .equals(other.getLabel()); + result = result && getValue() + .equals(other.getValue()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction 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 net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction 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 net.iGap.proto.ProtoGlobal.RoomMessageBotAction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction 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(net.iGap.proto.ProtoGlobal.RoomMessageBotAction 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 proto.RoomMessageBotAction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.RoomMessageBotAction) + net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.class, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageBotAction.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(); + action_ = 0; + + label_ = ""; + + value_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotAction_descriptor; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction build() { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction result = new net.iGap.proto.ProtoGlobal.RoomMessageBotAction(this); + result.action_ = action_; + result.label_ = label_; + result.value_ = value_; + 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 net.iGap.proto.ProtoGlobal.RoomMessageBotAction) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageBotAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageBotAction other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance()) return this; + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + 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 { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageBotAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int action_ = 0; + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + public int getActionValue() { + return action_; + } + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + public Builder setActionValue(int value) { + action_ = value; + onChanged(); + return this; + } + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum getAction() { + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum result = net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.valueOf(action_); + return result == null ? net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum.UNRECOGNIZED : result; + } + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + public Builder setAction(net.iGap.proto.ProtoGlobal.RoomMessageBotAction.BotActionEnum value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.RoomMessageBotAction.BotActionEnum action = 1; + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + /** + * optional string label = 2; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 2; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 2; + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + label_ = value; + onChanged(); + return this; + } + /** + * optional string label = 2; + */ + public Builder clearLabel() { + + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + /** + * optional string label = 2; + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + label_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * optional string value = 3; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string value = 3; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string value = 3; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * optional string value = 3; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * optional string value = 3; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = 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:proto.RoomMessageBotAction) + } + + // @@protoc_insertion_point(class_scope:proto.RoomMessageBotAction) + private static final net.iGap.proto.ProtoGlobal.RoomMessageBotAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageBotAction(); + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageBotAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RoomMessageBotAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageBotAction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RoomMessageBotActionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.RoomMessageBotActionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + java.util.List + getActionsList(); + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotAction getActions(int index); + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + int getActionsCount(); + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + java.util.List + getActionsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder getActionsOrBuilder( + int index); + } + /** + * Protobuf type {@code proto.RoomMessageBotActionList} + */ + public static final class RoomMessageBotActionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.RoomMessageBotActionList) + RoomMessageBotActionListOrBuilder { + // Use RoomMessageBotActionList.newBuilder() to construct. + private RoomMessageBotActionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RoomMessageBotActionList() { + actions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RoomMessageBotActionList( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + actions_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotAction.parser(), extensionRegistry)); + 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_ & 0x00000001) == 0x00000001)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.class, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder.class); + } + + public static final int ACTIONS_FIELD_NUMBER = 1; + private java.util.List actions_; + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public java.util.List getActionsList() { + return actions_; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public java.util.List + getActionsOrBuilderList() { + return actions_; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public int getActionsCount() { + return actions_.size(); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getActions(int index) { + return actions_.get(index); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder getActionsOrBuilder( + int index) { + return actions_.get(index); + } + + 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 { + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(1, actions_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, actions_.get(i)); + } + 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 net.iGap.proto.ProtoGlobal.RoomMessageBotActionList)) { + return super.equals(obj); + } + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList other = (net.iGap.proto.ProtoGlobal.RoomMessageBotActionList) obj; + + boolean result = true; + result = result && getActionsList() + .equals(other.getActionsList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList 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 net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList 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 net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList 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(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList 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 proto.RoomMessageBotActionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.RoomMessageBotActionList) + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.class, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder.class); + } + + // Construct using net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getActionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + actionsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_RoomMessageBotActionList_descriptor; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance(); + } + + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList build() { + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList buildPartial() { + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList result = new net.iGap.proto.ProtoGlobal.RoomMessageBotActionList(this); + int from_bitField0_ = bitField0_; + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + 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 net.iGap.proto.ProtoGlobal.RoomMessageBotActionList) { + return mergeFrom((net.iGap.proto.ProtoGlobal.RoomMessageBotActionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList other) { + if (other == net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()) return this; + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + 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 { + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.RoomMessageBotActionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List actions_ = + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = new java.util.ArrayList(actions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotAction, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder> actionsBuilder_; + + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public java.util.List getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public int getActionsCount() { + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction getActions(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder setActions( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder setActions( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder addActions(net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder addActions( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder addActions( + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder addActions( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder addAllActions( + java.lang.Iterable values) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + actionsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder getActionsBuilder( + int index) { + return getActionsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder getActionsOrBuilder( + int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); } else { + return actionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public java.util.List + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); + } + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder addActionsBuilder() { + return getActionsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder addActionsBuilder( + int index) { + return getActionsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotAction actions = 1; + */ + public java.util.List + getActionsBuilderList() { + return getActionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotAction, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder> + getActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotAction, net.iGap.proto.ProtoGlobal.RoomMessageBotAction.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionOrBuilder>( + actions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + actions_ = null; + } + return actionsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; } - public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + + // @@protoc_insertion_point(builder_scope:proto.RoomMessageBotActionList) + } + + // @@protoc_insertion_point(class_scope:proto.RoomMessageBotActionList) + private static final net.iGap.proto.ProtoGlobal.RoomMessageBotActionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.RoomMessageBotActionList(); + } + + public static net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RoomMessageBotActionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RoomMessageBotActionList(input, extensionRegistry); } + }; + public static com.google.protobuf.Parser parser() { + return PARSER; } - public interface CardToCardOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.MplTransaction.CardToCard) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * optional uint32 Status = 1; - */ - int getStatus(); + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - long getAmount(); + } - /** - * optional string SourceCardNumber = 3; - */ - java.lang.String getSourceCardNumber(); - /** - * optional string SourceCardNumber = 3; - */ - com.google.protobuf.ByteString - getSourceCardNumberBytes(); + public interface TextSignsOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.TextSigns) + com.google.protobuf.MessageOrBuilder { - /** - * optional string DestCardNumber = 4; - */ - java.lang.String getDestCardNumber(); - /** - * optional string DestCardNumber = 4; - */ - com.google.protobuf.ByteString - getDestCardNumberBytes(); + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + java.util.List + getTextSignList(); + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + net.iGap.proto.ProtoGlobal.TextSigns.TextSign getTextSign(int index); + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + int getTextSignCount(); + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + java.util.List + getTextSignOrBuilderList(); + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder getTextSignOrBuilder( + int index); + } + /** + * Protobuf type {@code proto.TextSigns} + */ + public static final class TextSigns extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.TextSigns) + TextSignsOrBuilder { + // Use TextSigns.newBuilder() to construct. + private TextSigns(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextSigns() { + textSign_ = java.util.Collections.emptyList(); + } - /** - * optional string BankName = 5; - */ - java.lang.String getBankName(); - /** - * optional string BankName = 5; - */ - com.google.protobuf.ByteString - getBankNameBytes(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private TextSigns( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + textSign_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + textSign_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.TextSign.parser(), extensionRegistry)); + 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_ & 0x00000001) == 0x00000001)) { + textSign_ = java.util.Collections.unmodifiableList(textSign_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_descriptor; + } - /** - * optional string DestBankName = 6; - */ - java.lang.String getDestBankName(); - /** - * optional string DestBankName = 6; - */ - com.google.protobuf.ByteString - getDestBankNameBytes(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.TextSigns.class, net.iGap.proto.ProtoGlobal.TextSigns.Builder.class); + } + + public interface TextSignOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.TextSigns.TextSign) + com.google.protobuf.MessageOrBuilder { /** - * optional string CardOwnerName = 7; - */ - java.lang.String getCardOwnerName(); - /** - * optional string CardOwnerName = 7; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - com.google.protobuf.ByteString - getCardOwnerNameBytes(); - + int getTypeValue(); /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - long getOrderId(); + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type getType(); /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * optional int32 start_index = 2; */ - long getRequestDateTime(); + int getStartIndex(); /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * optional int32 end_index = 3; */ - long getRRN(); + int getEndIndex(); /** - * optional string StatusDescription = 11; + * optional string link = 4; */ - java.lang.String getStatusDescription(); + java.lang.String getLink(); /** - * optional string StatusDescription = 11; + * optional string link = 4; */ com.google.protobuf.ByteString - getStatusDescriptionBytes(); + getLinkBytes(); /** - * optional uint32 TraceNo = 13; + * optional int64 user_id = 5; */ - int getTraceNo(); + long getUserId(); } /** - * Protobuf type {@code proto.MplTransaction.CardToCard} + * Protobuf type {@code proto.TextSigns.TextSign} */ - public static final class CardToCard extends + public static final class TextSign extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.MplTransaction.CardToCard) - CardToCardOrBuilder { - // Use CardToCard.newBuilder() to construct. - private CardToCard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // @@protoc_insertion_point(message_implements:proto.TextSigns.TextSign) + TextSignOrBuilder { + // Use TextSign.newBuilder() to construct. + private TextSign(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CardToCard() { - status_ = 0; - amount_ = 0L; - sourceCardNumber_ = ""; - destCardNumber_ = ""; - bankName_ = ""; - destBankName_ = ""; - cardOwnerName_ = ""; - orderId_ = 0L; - requestDateTime_ = 0L; - rRN_ = 0L; - statusDescription_ = ""; - traceNo_ = 0; + private TextSign() { + type_ = 0; + startIndex_ = 0; + endIndex_ = 0; + link_ = ""; + userId_ = 0L; } @java.lang.Override @@ -56014,7 +68388,7 @@ private CardToCard() { getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private CardToCard( + private TextSign( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -56035,69 +68409,30 @@ private CardToCard( break; } case 8: { + int rawValue = input.readEnum(); - status_ = input.readUInt32(); + type_ = rawValue; break; } case 16: { - amount_ = input.readUInt64(); + startIndex_ = input.readInt32(); break; } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 24: { - sourceCardNumber_ = s; + endIndex_ = input.readInt32(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); - destCardNumber_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - bankName_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - destBankName_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - cardOwnerName_ = s; - break; - } - case 64: { - - orderId_ = input.readUInt64(); - break; - } - case 72: { - - requestDateTime_ = input.readUInt64(); - break; - } - case 80: { - - rRN_ = input.readUInt64(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - statusDescription_ = s; + link_ = s; break; } - case 104: { + case 40: { - traceNo_ = input.readUInt32(); + userId_ = input.readInt64(); break; } } @@ -56113,272 +68448,351 @@ private CardToCard( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_fieldAccessorTable .ensureFieldAccessorsInitialized( - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.class, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder.class); + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.class, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder.class); } - public static final int STATUS_FIELD_NUMBER = 1; - private int status_; /** - * optional uint32 Status = 1; + * Protobuf enum {@code proto.TextSigns.TextSign.Type} */ - public int getStatus() { - return status_; - } + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * IGAP_DEEP_LINK = 1; + */ + IGAP_DEEP_LINK(1), + /** + * IGAP_LINK = 2; + */ + IGAP_LINK(2), + /** + * WEB_LINK = 3; + */ + WEB_LINK(3), + /** + * BOT_COMMAND = 4; + */ + BOT_COMMAND(4), + /** + * IGAP_RESOLVE = 5; + */ + IGAP_RESOLVE(5), + /** + * DIGIT_LINK = 6; + */ + DIGIT_LINK(6), + /** + * MENTION = 7; + */ + MENTION(7), + /** + * HASHTAG = 8; + */ + HASHTAG(8), + /** + * BOLD = 9; + */ + BOLD(9), + /** + * ITALIC = 10; + */ + ITALIC(10), + /** + * UNDERLINE = 11; + */ + UNDERLINE(11), + /** + * STRIKE = 12; + */ + STRIKE(12), + /** + * SPOILER = 13; + */ + SPOILER(13), + /** + * EMAIL = 14; + */ + EMAIL(14), + /** + * PHONE = 15; + */ + PHONE(15), + /** + * BANK_CARD = 16; + */ + BANK_CARD(16), + /** + * TEXT_URL = 17; + */ + TEXT_URL(17), + /** + * CODE = 18; + */ + CODE(18), + /** + * MENTION_NAME = 19; + */ + MENTION_NAME(19), + UNRECOGNIZED(-1), + ; - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - public long getAmount() { - return amount_; - } + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * IGAP_DEEP_LINK = 1; + */ + public static final int IGAP_DEEP_LINK_VALUE = 1; + /** + * IGAP_LINK = 2; + */ + public static final int IGAP_LINK_VALUE = 2; + /** + * WEB_LINK = 3; + */ + public static final int WEB_LINK_VALUE = 3; + /** + * BOT_COMMAND = 4; + */ + public static final int BOT_COMMAND_VALUE = 4; + /** + * IGAP_RESOLVE = 5; + */ + public static final int IGAP_RESOLVE_VALUE = 5; + /** + * DIGIT_LINK = 6; + */ + public static final int DIGIT_LINK_VALUE = 6; + /** + * MENTION = 7; + */ + public static final int MENTION_VALUE = 7; + /** + * HASHTAG = 8; + */ + public static final int HASHTAG_VALUE = 8; + /** + * BOLD = 9; + */ + public static final int BOLD_VALUE = 9; + /** + * ITALIC = 10; + */ + public static final int ITALIC_VALUE = 10; + /** + * UNDERLINE = 11; + */ + public static final int UNDERLINE_VALUE = 11; + /** + * STRIKE = 12; + */ + public static final int STRIKE_VALUE = 12; + /** + * SPOILER = 13; + */ + public static final int SPOILER_VALUE = 13; + /** + * EMAIL = 14; + */ + public static final int EMAIL_VALUE = 14; + /** + * PHONE = 15; + */ + public static final int PHONE_VALUE = 15; + /** + * BANK_CARD = 16; + */ + public static final int BANK_CARD_VALUE = 16; + /** + * TEXT_URL = 17; + */ + public static final int TEXT_URL_VALUE = 17; + /** + * CODE = 18; + */ + public static final int CODE_VALUE = 18; + /** + * MENTION_NAME = 19; + */ + public static final int MENTION_NAME_VALUE = 19; - public static final int SOURCECARDNUMBER_FIELD_NUMBER = 3; - private volatile java.lang.Object sourceCardNumber_; - /** - * optional string SourceCardNumber = 3; - */ - public java.lang.String getSourceCardNumber() { - java.lang.Object ref = sourceCardNumber_; - 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(); - sourceCardNumber_ = s; - return s; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; } - } - /** - * optional string SourceCardNumber = 3; - */ - public com.google.protobuf.ByteString - getSourceCardNumberBytes() { - java.lang.Object ref = sourceCardNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceCardNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); } - } - public static final int DESTCARDNUMBER_FIELD_NUMBER = 4; - private volatile java.lang.Object destCardNumber_; - /** - * optional string DestCardNumber = 4; - */ - public java.lang.String getDestCardNumber() { - java.lang.Object ref = destCardNumber_; - 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(); - destCardNumber_ = s; - return s; + public static Type forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return IGAP_DEEP_LINK; + case 2: return IGAP_LINK; + case 3: return WEB_LINK; + case 4: return BOT_COMMAND; + case 5: return IGAP_RESOLVE; + case 6: return DIGIT_LINK; + case 7: return MENTION; + case 8: return HASHTAG; + case 9: return BOLD; + case 10: return ITALIC; + case 11: return UNDERLINE; + case 12: return STRIKE; + case 13: return SPOILER; + case 14: return EMAIL; + case 15: return PHONE; + case 16: return BANK_CARD; + case 17: return TEXT_URL; + case 18: return CODE; + case 19: return MENTION_NAME; + default: return null; + } } - } - /** - * optional string DestCardNumber = 4; - */ - public com.google.protobuf.ByteString - getDestCardNumberBytes() { - java.lang.Object ref = destCardNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destCardNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; } - } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - public static final int BANKNAME_FIELD_NUMBER = 5; - private volatile java.lang.Object bankName_; - /** - * optional string BankName = 5; - */ - public java.lang.String getBankName() { - java.lang.Object ref = bankName_; - 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(); - bankName_ = s; - return s; + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); } - } - /** - * optional string BankName = 5; - */ - public com.google.protobuf.ByteString - getBankNameBytes() { - java.lang.Object ref = bankName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bankName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); } - } - - public static final int DESTBANKNAME_FIELD_NUMBER = 6; - private volatile java.lang.Object destBankName_; - /** - * optional string DestBankName = 6; - */ - public java.lang.String getDestBankName() { - java.lang.Object ref = destBankName_; - 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(); - destBankName_ = s; - return s; + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDescriptor().getEnumTypes().get(0); } - } - /** - * optional string DestBankName = 6; - */ - public com.google.protobuf.ByteString - getDestBankNameBytes() { - java.lang.Object ref = destBankName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destBankName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; } - } - public static final int CARDOWNERNAME_FIELD_NUMBER = 7; - private volatile java.lang.Object cardOwnerName_; - /** - * optional string CardOwnerName = 7; - */ - public java.lang.String getCardOwnerName() { - java.lang.Object ref = cardOwnerName_; - 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(); - cardOwnerName_ = s; - return s; + private final int value; + + private Type(int value) { + this.value = value; } + + // @@protoc_insertion_point(enum_scope:proto.TextSigns.TextSign.Type) } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; /** - * optional string CardOwnerName = 7; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - public com.google.protobuf.ByteString - getCardOwnerNameBytes() { - java.lang.Object ref = cardOwnerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cardOwnerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getTypeValue() { + return type_; } - - public static final int ORDERID_FIELD_NUMBER = 8; - private long orderId_; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - public long getOrderId() { - return orderId_; + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type getType() { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type result = net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.UNRECOGNIZED : result; } - public static final int REQUESTDATETIME_FIELD_NUMBER = 9; - private long requestDateTime_; + public static final int START_INDEX_FIELD_NUMBER = 2; + private int startIndex_; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * optional int32 start_index = 2; */ - public long getRequestDateTime() { - return requestDateTime_; + public int getStartIndex() { + return startIndex_; } - public static final int RRN_FIELD_NUMBER = 10; - private long rRN_; + public static final int END_INDEX_FIELD_NUMBER = 3; + private int endIndex_; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * optional int32 end_index = 3; */ - public long getRRN() { - return rRN_; + public int getEndIndex() { + return endIndex_; } - public static final int STATUSDESCRIPTION_FIELD_NUMBER = 11; - private volatile java.lang.Object statusDescription_; + public static final int LINK_FIELD_NUMBER = 4; + private volatile java.lang.Object link_; /** - * optional string StatusDescription = 11; + * optional string link = 4; */ - public java.lang.String getStatusDescription() { - java.lang.Object ref = statusDescription_; + public java.lang.String getLink() { + java.lang.Object ref = link_; 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(); - statusDescription_ = s; + link_ = s; return s; } } /** - * optional string StatusDescription = 11; + * optional string link = 4; */ public com.google.protobuf.ByteString - getStatusDescriptionBytes() { - java.lang.Object ref = statusDescription_; + getLinkBytes() { + java.lang.Object ref = link_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - statusDescription_ = b; + link_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int TRACENO_FIELD_NUMBER = 13; - private int traceNo_; + public static final int USER_ID_FIELD_NUMBER = 5; + private long userId_; /** - * optional uint32 TraceNo = 13; + * optional int64 user_id = 5; */ - public int getTraceNo() { - return traceNo_; + public long getUserId() { + return userId_; } private byte memoizedIsInitialized = -1; @@ -56393,41 +68807,20 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (status_ != 0) { - output.writeUInt32(1, status_); - } - if (amount_ != 0L) { - output.writeUInt64(2, amount_); - } - if (!getSourceCardNumberBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceCardNumber_); - } - if (!getDestCardNumberBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destCardNumber_); - } - if (!getBankNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bankName_); - } - if (!getDestBankNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, destBankName_); - } - if (!getCardOwnerNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cardOwnerName_); - } - if (orderId_ != 0L) { - output.writeUInt64(8, orderId_); + if (type_ != net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.UNKNOWN.getNumber()) { + output.writeEnum(1, type_); } - if (requestDateTime_ != 0L) { - output.writeUInt64(9, requestDateTime_); + if (startIndex_ != 0) { + output.writeInt32(2, startIndex_); } - if (rRN_ != 0L) { - output.writeUInt64(10, rRN_); + if (endIndex_ != 0) { + output.writeInt32(3, endIndex_); } - if (!getStatusDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, statusDescription_); + if (!getLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, link_); } - if (traceNo_ != 0) { - output.writeUInt32(13, traceNo_); + if (userId_ != 0L) { + output.writeInt64(5, userId_); } } @@ -56436,47 +68829,24 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (status_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, status_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, amount_); - } - if (!getSourceCardNumberBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceCardNumber_); - } - if (!getDestCardNumberBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destCardNumber_); - } - if (!getBankNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bankName_); - } - if (!getDestBankNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destBankName_); - } - if (!getCardOwnerNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cardOwnerName_); - } - if (orderId_ != 0L) { + if (type_ != net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, orderId_); + .computeEnumSize(1, type_); } - if (requestDateTime_ != 0L) { + if (startIndex_ != 0) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, requestDateTime_); + .computeInt32Size(2, startIndex_); } - if (rRN_ != 0L) { + if (endIndex_ != 0) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, rRN_); + .computeInt32Size(3, endIndex_); } - if (!getStatusDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, statusDescription_); + if (!getLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, link_); } - if (traceNo_ != 0) { + if (userId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, traceNo_); + .computeInt64Size(5, userId_); } memoizedSize = size; return size; @@ -56488,36 +68858,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard)) { + if (!(obj instanceof net.iGap.proto.ProtoGlobal.TextSigns.TextSign)) { return super.equals(obj); } - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard other = (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) obj; + net.iGap.proto.ProtoGlobal.TextSigns.TextSign other = (net.iGap.proto.ProtoGlobal.TextSigns.TextSign) obj; boolean result = true; - result = result && (getStatus() - == other.getStatus()); - result = result && (getAmount() - == other.getAmount()); - result = result && getSourceCardNumber() - .equals(other.getSourceCardNumber()); - result = result && getDestCardNumber() - .equals(other.getDestCardNumber()); - result = result && getBankName() - .equals(other.getBankName()); - result = result && getDestBankName() - .equals(other.getDestBankName()); - result = result && getCardOwnerName() - .equals(other.getCardOwnerName()); - result = result && (getOrderId() - == other.getOrderId()); - result = result && (getRequestDateTime() - == other.getRequestDateTime()); - result = result && (getRRN() - == other.getRRN()); - result = result && getStatusDescription() - .equals(other.getStatusDescription()); - result = result && (getTraceNo() - == other.getTraceNo()); + result = result && type_ == other.type_; + result = result && (getStartIndex() + == other.getStartIndex()); + result = result && (getEndIndex() + == other.getEndIndex()); + result = result && getLink() + .equals(other.getLink()); + result = result && (getUserId() + == other.getUserId()); return result; } @@ -56528,91 +68883,74 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + SOURCECARDNUMBER_FIELD_NUMBER; - hash = (53 * hash) + getSourceCardNumber().hashCode(); - hash = (37 * hash) + DESTCARDNUMBER_FIELD_NUMBER; - hash = (53 * hash) + getDestCardNumber().hashCode(); - hash = (37 * hash) + BANKNAME_FIELD_NUMBER; - hash = (53 * hash) + getBankName().hashCode(); - hash = (37 * hash) + DESTBANKNAME_FIELD_NUMBER; - hash = (53 * hash) + getDestBankName().hashCode(); - hash = (37 * hash) + CARDOWNERNAME_FIELD_NUMBER; - hash = (53 * hash) + getCardOwnerName().hashCode(); - hash = (37 * hash) + ORDERID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOrderId()); - hash = (37 * hash) + REQUESTDATETIME_FIELD_NUMBER; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + LINK_FIELD_NUMBER; + hash = (53 * hash) + getLink().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestDateTime()); - hash = (37 * hash) + RRN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRRN()); - hash = (37 * hash) + STATUSDESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getStatusDescription().hashCode(); - hash = (37 * hash) + TRACENO_FIELD_NUMBER; - hash = (53 * hash) + getTraceNo(); + getUserId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom(byte[] data) + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom(java.io.InputStream input) + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign 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 net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseDelimitedFrom(java.io.InputStream input) + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseDelimitedFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign 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 net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -56624,7 +68962,7 @@ public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard prototype) { + public static Builder newBuilder(net.iGap.proto.ProtoGlobal.TextSigns.TextSign prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -56639,774 +68977,348 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code proto.MplTransaction.CardToCard} + * Protobuf type {@code proto.TextSigns.TextSign} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.MplTransaction.CardToCard) - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder { + // @@protoc_insertion_point(builder_implements:proto.TextSigns.TextSign) + net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_fieldAccessorTable .ensureFieldAccessorsInitialized( - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.class, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder.class); - } - - // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.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(); - status_ = 0; - - amount_ = 0L; - - sourceCardNumber_ = ""; - - destCardNumber_ = ""; - - bankName_ = ""; - - destBankName_ = ""; - - cardOwnerName_ = ""; - - orderId_ = 0L; - - requestDateTime_ = 0L; - - rRN_ = 0L; - - statusDescription_ = ""; - - traceNo_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_CardToCard_descriptor; - } - - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstanceForType() { - return net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance(); - } - - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard build() { - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard buildPartial() { - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard result = new net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard(this); - result.status_ = status_; - result.amount_ = amount_; - result.sourceCardNumber_ = sourceCardNumber_; - result.destCardNumber_ = destCardNumber_; - result.bankName_ = bankName_; - result.destBankName_ = destBankName_; - result.cardOwnerName_ = cardOwnerName_; - result.orderId_ = orderId_; - result.requestDateTime_ = requestDateTime_; - result.rRN_ = rRN_; - result.statusDescription_ = statusDescription_; - result.traceNo_ = traceNo_; - 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 net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) { - return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard other) { - if (other == net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance()) return this; - if (other.getStatus() != 0) { - setStatus(other.getStatus()); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (!other.getSourceCardNumber().isEmpty()) { - sourceCardNumber_ = other.sourceCardNumber_; - onChanged(); - } - if (!other.getDestCardNumber().isEmpty()) { - destCardNumber_ = other.destCardNumber_; - onChanged(); - } - if (!other.getBankName().isEmpty()) { - bankName_ = other.bankName_; - onChanged(); - } - if (!other.getDestBankName().isEmpty()) { - destBankName_ = other.destBankName_; - onChanged(); - } - if (!other.getCardOwnerName().isEmpty()) { - cardOwnerName_ = other.cardOwnerName_; - onChanged(); - } - if (other.getOrderId() != 0L) { - setOrderId(other.getOrderId()); - } - if (other.getRequestDateTime() != 0L) { - setRequestDateTime(other.getRequestDateTime()); - } - if (other.getRRN() != 0L) { - setRRN(other.getRRN()); - } - if (!other.getStatusDescription().isEmpty()) { - statusDescription_ = other.statusDescription_; - onChanged(); - } - if (other.getTraceNo() != 0) { - setTraceNo(other.getTraceNo()); - } - 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 { - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int status_ ; - /** - * optional uint32 Status = 1; - */ - public int getStatus() { - return status_; - } - /** - * optional uint32 Status = 1; - */ - public Builder setStatus(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * optional uint32 Status = 1; - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private long amount_ ; - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - public long getAmount() { - return amount_; - } - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * optional uint64 Amount = 2 [jstype = JS_STRING]; - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.class, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder.class); } - private java.lang.Object sourceCardNumber_ = ""; - /** - * optional string SourceCardNumber = 3; - */ - public java.lang.String getSourceCardNumber() { - java.lang.Object ref = sourceCardNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceCardNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string SourceCardNumber = 3; - */ - public com.google.protobuf.ByteString - getSourceCardNumberBytes() { - java.lang.Object ref = sourceCardNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceCardNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string SourceCardNumber = 3; - */ - public Builder setSourceCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceCardNumber_ = value; - onChanged(); - return this; - } - /** - * optional string SourceCardNumber = 3; - */ - public Builder clearSourceCardNumber() { - - sourceCardNumber_ = getDefaultInstance().getSourceCardNumber(); - onChanged(); - return this; - } - /** - * optional string SourceCardNumber = 3; - */ - public Builder setSourceCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceCardNumber_ = value; - onChanged(); - return this; + // Construct using net.iGap.proto.ProtoGlobal.TextSigns.TextSign.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - private java.lang.Object destCardNumber_ = ""; - /** - * optional string DestCardNumber = 4; - */ - public java.lang.String getDestCardNumber() { - java.lang.Object ref = destCardNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destCardNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional string DestCardNumber = 4; - */ - public com.google.protobuf.ByteString - getDestCardNumberBytes() { - java.lang.Object ref = destCardNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destCardNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - /** - * optional string DestCardNumber = 4; - */ - public Builder setDestCardNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destCardNumber_ = value; - onChanged(); + public Builder clear() { + super.clear(); + type_ = 0; + + startIndex_ = 0; + + endIndex_ = 0; + + link_ = ""; + + userId_ = 0L; + return this; } - /** - * optional string DestCardNumber = 4; - */ - public Builder clearDestCardNumber() { - - destCardNumber_ = getDefaultInstance().getDestCardNumber(); - onChanged(); - return this; + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_TextSign_descriptor; } - /** - * optional string DestCardNumber = 4; - */ - public Builder setDestCardNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destCardNumber_ = value; - onChanged(); - return this; + + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance(); } - private java.lang.Object bankName_ = ""; - /** - * optional string BankName = 5; - */ - public java.lang.String getBankName() { - java.lang.Object ref = bankName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bankName_ = s; - return s; - } else { - return (java.lang.String) ref; + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign build() { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * optional string BankName = 5; - */ - public com.google.protobuf.ByteString - getBankNameBytes() { - java.lang.Object ref = bankName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bankName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign buildPartial() { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign result = new net.iGap.proto.ProtoGlobal.TextSigns.TextSign(this); + result.type_ = type_; + result.startIndex_ = startIndex_; + result.endIndex_ = endIndex_; + result.link_ = link_; + result.userId_ = userId_; + onBuilt(); + return result; } - /** - * optional string BankName = 5; - */ - public Builder setBankName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bankName_ = value; - onChanged(); - return this; + + public Builder clone() { + return (Builder) super.clone(); } - /** - * optional string BankName = 5; - */ - public Builder clearBankName() { - - bankName_ = getDefaultInstance().getBankName(); - onChanged(); - return this; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); } - /** - * optional string BankName = 5; - */ - public Builder setBankNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bankName_ = value; - onChanged(); - return this; + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); } - - private java.lang.Object destBankName_ = ""; - /** - * optional string DestBankName = 6; - */ - public java.lang.String getDestBankName() { - java.lang.Object ref = destBankName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destBankName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); } - /** - * optional string DestBankName = 6; - */ - public com.google.protobuf.ByteString - getDestBankNameBytes() { - java.lang.Object ref = destBankName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destBankName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - /** - * optional string DestBankName = 6; - */ - public Builder setDestBankName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - destBankName_ = value; - onChanged(); - return this; + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); } - /** - * optional string DestBankName = 6; - */ - public Builder clearDestBankName() { - - destBankName_ = getDefaultInstance().getDestBankName(); - onChanged(); - return this; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoGlobal.TextSigns.TextSign) { + return mergeFrom((net.iGap.proto.ProtoGlobal.TextSigns.TextSign)other); + } else { + super.mergeFrom(other); + return this; + } } - /** - * optional string DestBankName = 6; - */ - public Builder setDestBankNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destBankName_ = value; + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.TextSigns.TextSign other) { + if (other == net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + if (!other.getLink().isEmpty()) { + link_ = other.link_; + onChanged(); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } onChanged(); return this; } - private java.lang.Object cardOwnerName_ = ""; - /** - * optional string CardOwnerName = 7; - */ - public java.lang.String getCardOwnerName() { - java.lang.Object ref = cardOwnerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cardOwnerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public final boolean isInitialized() { + return true; } - /** - * optional string CardOwnerName = 7; - */ - public com.google.protobuf.ByteString - getCardOwnerNameBytes() { - java.lang.Object ref = cardOwnerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cardOwnerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.TextSigns.TextSign) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - } - /** - * optional string CardOwnerName = 7; - */ - public Builder setCardOwnerName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cardOwnerName_ = value; - onChanged(); return this; } + + private int type_ = 0; /** - * optional string CardOwnerName = 7; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - public Builder clearCardOwnerName() { - - cardOwnerName_ = getDefaultInstance().getCardOwnerName(); - onChanged(); - return this; + public int getTypeValue() { + return type_; } /** - * optional string CardOwnerName = 7; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - public Builder setCardOwnerNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cardOwnerName_ = value; + public Builder setTypeValue(int value) { + type_ = value; onChanged(); return this; } - - private long orderId_ ; /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - public long getOrderId() { - return orderId_; + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type getType() { + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type result = net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.valueOf(type_); + return result == null ? net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type.UNRECOGNIZED : result; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - public Builder setOrderId(long value) { + public Builder setType(net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Type value) { + if (value == null) { + throw new NullPointerException(); + } - orderId_ = value; + type_ = value.getNumber(); onChanged(); return this; } /** - * optional uint64 OrderId = 8 [jstype = JS_STRING]; + * optional .proto.TextSigns.TextSign.Type type = 1; */ - public Builder clearOrderId() { + public Builder clearType() { - orderId_ = 0L; + type_ = 0; onChanged(); return this; } - private long requestDateTime_ ; + private int startIndex_ ; /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * optional int32 start_index = 2; */ - public long getRequestDateTime() { - return requestDateTime_; + public int getStartIndex() { + return startIndex_; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * optional int32 start_index = 2; */ - public Builder setRequestDateTime(long value) { + public Builder setStartIndex(int value) { - requestDateTime_ = value; + startIndex_ = value; onChanged(); return this; } /** - * optional uint64 RequestDateTime = 9 [jstype = JS_STRING]; + * optional int32 start_index = 2; */ - public Builder clearRequestDateTime() { + public Builder clearStartIndex() { - requestDateTime_ = 0L; + startIndex_ = 0; onChanged(); return this; } - private long rRN_ ; + private int endIndex_ ; /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * optional int32 end_index = 3; */ - public long getRRN() { - return rRN_; + public int getEndIndex() { + return endIndex_; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * optional int32 end_index = 3; */ - public Builder setRRN(long value) { + public Builder setEndIndex(int value) { - rRN_ = value; + endIndex_ = value; onChanged(); return this; } /** - * optional uint64 RRN = 10 [jstype = JS_STRING]; + * optional int32 end_index = 3; */ - public Builder clearRRN() { + public Builder clearEndIndex() { - rRN_ = 0L; + endIndex_ = 0; onChanged(); return this; } - private java.lang.Object statusDescription_ = ""; + private java.lang.Object link_ = ""; /** - * optional string StatusDescription = 11; + * optional string link = 4; */ - public java.lang.String getStatusDescription() { - java.lang.Object ref = statusDescription_; + public java.lang.String getLink() { + java.lang.Object ref = link_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - statusDescription_ = s; + link_ = s; return s; } else { return (java.lang.String) ref; } } /** - * optional string StatusDescription = 11; + * optional string link = 4; */ public com.google.protobuf.ByteString - getStatusDescriptionBytes() { - java.lang.Object ref = statusDescription_; + getLinkBytes() { + java.lang.Object ref = link_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - statusDescription_ = b; + link_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string StatusDescription = 11; + * optional string link = 4; */ - public Builder setStatusDescription( + public Builder setLink( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - statusDescription_ = value; + link_ = value; onChanged(); return this; } /** - * optional string StatusDescription = 11; + * optional string link = 4; */ - public Builder clearStatusDescription() { + public Builder clearLink() { - statusDescription_ = getDefaultInstance().getStatusDescription(); + link_ = getDefaultInstance().getLink(); onChanged(); return this; } /** - * optional string StatusDescription = 11; + * optional string link = 4; */ - public Builder setStatusDescriptionBytes( + public Builder setLinkBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - statusDescription_ = value; + link_ = value; onChanged(); return this; } - private int traceNo_ ; + private long userId_ ; /** - * optional uint32 TraceNo = 13; + * optional int64 user_id = 5; */ - public int getTraceNo() { - return traceNo_; + public long getUserId() { + return userId_; } /** - * optional uint32 TraceNo = 13; + * optional int64 user_id = 5; */ - public Builder setTraceNo(int value) { + public Builder setUserId(long value) { - traceNo_ = value; + userId_ = value; onChanged(); return this; } /** - * optional uint32 TraceNo = 13; + * optional int64 user_id = 5; */ - public Builder clearTraceNo() { + public Builder clearUserId() { - traceNo_ = 0; + userId_ = 0L; onChanged(); return this; } @@ -57421,194 +69333,77 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:proto.MplTransaction.CardToCard) + // @@protoc_insertion_point(builder_scope:proto.TextSigns.TextSign) } - // @@protoc_insertion_point(class_scope:proto.MplTransaction.CardToCard) - private static final net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:proto.TextSigns.TextSign) + private static final net.iGap.proto.ProtoGlobal.TextSigns.TextSign DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.TextSigns.TextSign(); } - public static net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstance() { + public static net.iGap.proto.ProtoGlobal.TextSigns.TextSign getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public CardToCard parsePartialFrom( + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TextSign parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CardToCard(input, extensionRegistry); + return new TextSign(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public static com.google.protobuf.Parser parser() { return PARSER; } - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int ORDER_ID_FIELD_NUMBER = 1; - private long orderId_; - /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; - */ - public long getOrderId() { - return orderId_; - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - * optional string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - 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(); - token_ = s; - return s; - } - } - /** - * optional string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAY_TIME_FIELD_NUMBER = 3; - private int payTime_; - /** - * optional uint32 pay_time = 3; - */ - public int getPayTime() { - return payTime_; - } - - public static final int TYPE_FIELD_NUMBER = 4; - private int type_; - /** - * optional .proto.MplTransaction.Type type = 4; - */ - public int getTypeValue() { - return type_; - } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { - net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); - return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; - } - - public static final int BILL_FIELD_NUMBER = 5; - private net.iGap.proto.ProtoGlobal.MplTransaction.Bill bill_; - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public boolean hasBill() { - return bill_ != null; - } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getBill() { - return bill_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; - } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder getBillOrBuilder() { - return getBill(); - } - - public static final int TOPUP_FIELD_NUMBER = 6; - private net.iGap.proto.ProtoGlobal.MplTransaction.Topup topup_; - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public boolean hasTopup() { - return topup_ != null; - } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getTopup() { - return topup_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; - } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder getTopupOrBuilder() { - return getTopup(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int SALES_FIELD_NUMBER = 7; - private net.iGap.proto.ProtoGlobal.MplTransaction.Sales sales_; - /** - * optional .proto.MplTransaction.Sales sales = 7; - */ - public boolean hasSales() { - return sales_ != null; } + + public static final int TEXT_SIGN_FIELD_NUMBER = 1; + private java.util.List textSign_; /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getSales() { - return sales_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + public java.util.List getTextSignList() { + return textSign_; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder getSalesOrBuilder() { - return getSales(); + public java.util.List + getTextSignOrBuilderList() { + return textSign_; } - - public static final int CARDTOCARD_FIELD_NUMBER = 8; - private net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard cardtocard_; /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public boolean hasCardtocard() { - return cardtocard_ != null; + public int getTextSignCount() { + return textSign_.size(); } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard() { - return cardtocard_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getTextSign(int index) { + return textSign_.get(index); } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder getCardtocardOrBuilder() { - return getCardtocard(); + public net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder getTextSignOrBuilder( + int index) { + return textSign_.get(index); } private byte memoizedIsInitialized = -1; @@ -57623,29 +69418,8 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (orderId_ != 0L) { - output.writeUInt64(1, orderId_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - if (payTime_ != 0) { - output.writeUInt32(3, payTime_); - } - if (type_ != net.iGap.proto.ProtoGlobal.MplTransaction.Type.NONE.getNumber()) { - output.writeEnum(4, type_); - } - if (bill_ != null) { - output.writeMessage(5, getBill()); - } - if (topup_ != null) { - output.writeMessage(6, getTopup()); - } - if (sales_ != null) { - output.writeMessage(7, getSales()); - } - if (cardtocard_ != null) { - output.writeMessage(8, getCardtocard()); + for (int i = 0; i < textSign_.size(); i++) { + output.writeMessage(1, textSign_.get(i)); } } @@ -57654,36 +69428,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (orderId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, orderId_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - if (payTime_ != 0) { + for (int i = 0; i < textSign_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, payTime_); - } - if (type_ != net.iGap.proto.ProtoGlobal.MplTransaction.Type.NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, type_); - } - if (bill_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBill()); - } - if (topup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTopup()); - } - if (sales_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSales()); - } - if (cardtocard_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCardtocard()); + .computeMessageSize(1, textSign_.get(i)); } memoizedSize = size; return size; @@ -57695,39 +69442,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof net.iGap.proto.ProtoGlobal.MplTransaction)) { + if (!(obj instanceof net.iGap.proto.ProtoGlobal.TextSigns)) { return super.equals(obj); } - net.iGap.proto.ProtoGlobal.MplTransaction other = (net.iGap.proto.ProtoGlobal.MplTransaction) obj; + net.iGap.proto.ProtoGlobal.TextSigns other = (net.iGap.proto.ProtoGlobal.TextSigns) obj; boolean result = true; - result = result && (getOrderId() - == other.getOrderId()); - result = result && getToken() - .equals(other.getToken()); - result = result && (getPayTime() - == other.getPayTime()); - result = result && type_ == other.type_; - result = result && (hasBill() == other.hasBill()); - if (hasBill()) { - result = result && getBill() - .equals(other.getBill()); - } - result = result && (hasTopup() == other.hasTopup()); - if (hasTopup()) { - result = result && getTopup() - .equals(other.getTopup()); - } - result = result && (hasSales() == other.hasSales()); - if (hasSales()) { - result = result && getSales() - .equals(other.getSales()); - } - result = result && (hasCardtocard() == other.hasCardtocard()); - if (hasCardtocard()) { - result = result && getCardtocard() - .equals(other.getCardtocard()); - } + result = result && getTextSignList() + .equals(other.getTextSignList()); return result; } @@ -57738,88 +69460,67 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOrderId()); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + PAY_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPayTime(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - if (hasBill()) { - hash = (37 * hash) + BILL_FIELD_NUMBER; - hash = (53 * hash) + getBill().hashCode(); - } - if (hasTopup()) { - hash = (37 * hash) + TOPUP_FIELD_NUMBER; - hash = (53 * hash) + getTopup().hashCode(); - } - if (hasSales()) { - hash = (37 * hash) + SALES_FIELD_NUMBER; - hash = (53 * hash) + getSales().hashCode(); - } - if (hasCardtocard()) { - hash = (37 * hash) + CARDTOCARD_FIELD_NUMBER; - hash = (53 * hash) + getCardtocard().hashCode(); + if (getTextSignCount() > 0) { + hash = (37 * hash) + TEXT_SIGN_FIELD_NUMBER; + hash = (53 * hash) + getTextSignList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom(byte[] data) + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom(java.io.InputStream input) + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns 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 net.iGap.proto.ProtoGlobal.MplTransaction parseDelimitedFrom(java.io.InputStream input) + public static net.iGap.proto.ProtoGlobal.TextSigns parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseDelimitedFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns 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 net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( + public static net.iGap.proto.ProtoGlobal.TextSigns parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -57831,7 +69532,7 @@ public static net.iGap.proto.ProtoGlobal.MplTransaction parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(net.iGap.proto.ProtoGlobal.MplTransaction prototype) { + public static Builder newBuilder(net.iGap.proto.ProtoGlobal.TextSigns prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -57842,846 +69543,416 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.MplTransaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.MplTransaction) - net.iGap.proto.ProtoGlobal.MplTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - net.iGap.proto.ProtoGlobal.MplTransaction.class, net.iGap.proto.ProtoGlobal.MplTransaction.Builder.class); - } - - // Construct using net.iGap.proto.ProtoGlobal.MplTransaction.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(); - orderId_ = 0L; - - token_ = ""; - - payTime_ = 0; - - type_ = 0; - - if (billBuilder_ == null) { - bill_ = null; - } else { - bill_ = null; - billBuilder_ = null; - } - if (topupBuilder_ == null) { - topup_ = null; - } else { - topup_ = null; - topupBuilder_ = null; - } - if (salesBuilder_ == null) { - sales_ = null; - } else { - sales_ = null; - salesBuilder_ = null; - } - if (cardtocardBuilder_ == null) { - cardtocard_ = null; - } else { - cardtocard_ = null; - cardtocardBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return net.iGap.proto.ProtoGlobal.internal_static_proto_MplTransaction_descriptor; - } - - public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { - return net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance(); - } - - public net.iGap.proto.ProtoGlobal.MplTransaction build() { - net.iGap.proto.ProtoGlobal.MplTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public net.iGap.proto.ProtoGlobal.MplTransaction buildPartial() { - net.iGap.proto.ProtoGlobal.MplTransaction result = new net.iGap.proto.ProtoGlobal.MplTransaction(this); - result.orderId_ = orderId_; - result.token_ = token_; - result.payTime_ = payTime_; - result.type_ = type_; - if (billBuilder_ == null) { - result.bill_ = bill_; - } else { - result.bill_ = billBuilder_.build(); - } - if (topupBuilder_ == null) { - result.topup_ = topup_; - } else { - result.topup_ = topupBuilder_.build(); - } - if (salesBuilder_ == null) { - result.sales_ = sales_; - } else { - result.sales_ = salesBuilder_.build(); - } - if (cardtocardBuilder_ == null) { - result.cardtocard_ = cardtocard_; - } else { - result.cardtocard_ = cardtocardBuilder_.build(); - } - 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 net.iGap.proto.ProtoGlobal.MplTransaction) { - return mergeFrom((net.iGap.proto.ProtoGlobal.MplTransaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(net.iGap.proto.ProtoGlobal.MplTransaction other) { - if (other == net.iGap.proto.ProtoGlobal.MplTransaction.getDefaultInstance()) return this; - if (other.getOrderId() != 0L) { - setOrderId(other.getOrderId()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.getPayTime() != 0) { - setPayTime(other.getPayTime()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.hasBill()) { - mergeBill(other.getBill()); - } - if (other.hasTopup()) { - mergeTopup(other.getTopup()); - } - if (other.hasSales()) { - mergeSales(other.getSales()); - } - if (other.hasCardtocard()) { - mergeCardtocard(other.getCardtocard()); - } - 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 { - net.iGap.proto.ProtoGlobal.MplTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (net.iGap.proto.ProtoGlobal.MplTransaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long orderId_ ; - /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; - */ - public long getOrderId() { - return orderId_; - } - /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; - */ - public Builder setOrderId(long value) { - - orderId_ = value; - onChanged(); - return this; - } - /** - * optional uint64 order_id = 1 [jstype = JS_STRING]; - */ - public Builder clearOrderId() { - - orderId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - * optional string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - * optional string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - * optional string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private int payTime_ ; - /** - * optional uint32 pay_time = 3; - */ - public int getPayTime() { - return payTime_; - } - /** - * optional uint32 pay_time = 3; - */ - public Builder setPayTime(int value) { - - payTime_ = value; - onChanged(); - return this; - } - /** - * optional uint32 pay_time = 3; - */ - public Builder clearPayTime() { - - payTime_ = 0; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * optional .proto.MplTransaction.Type type = 4; - */ - public int getTypeValue() { - return type_; - } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Type getType() { - net.iGap.proto.ProtoGlobal.MplTransaction.Type result = net.iGap.proto.ProtoGlobal.MplTransaction.Type.valueOf(type_); - return result == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Type.UNRECOGNIZED : result; - } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - public Builder setType(net.iGap.proto.ProtoGlobal.MplTransaction.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.TextSigns} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.TextSigns) + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_descriptor; } - /** - * optional .proto.MplTransaction.Type type = 4; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoGlobal.TextSigns.class, net.iGap.proto.ProtoGlobal.TextSigns.Builder.class); } - private net.iGap.proto.ProtoGlobal.MplTransaction.Bill bill_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder> billBuilder_; - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public boolean hasBill() { - return billBuilder_ != null || bill_ != null; + // Construct using net.iGap.proto.ProtoGlobal.TextSigns.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Bill getBill() { - if (billBuilder_ == null) { - return bill_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; - } else { - return billBuilder_.getMessage(); + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTextSignFieldBuilder(); } } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public Builder setBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { - if (billBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bill_ = value; - onChanged(); + public Builder clear() { + super.clear(); + if (textSignBuilder_ == null) { + textSign_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - billBuilder_.setMessage(value); + textSignBuilder_.clear(); } - return this; } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public Builder setBill( - net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder builderForValue) { - if (billBuilder_ == null) { - bill_ = builderForValue.build(); - onChanged(); - } else { - billBuilder_.setMessage(builderForValue.build()); - } - return this; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGlobal.internal_static_proto_TextSigns_descriptor; } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public Builder mergeBill(net.iGap.proto.ProtoGlobal.MplTransaction.Bill value) { - if (billBuilder_ == null) { - if (bill_ != null) { - bill_ = - net.iGap.proto.ProtoGlobal.MplTransaction.Bill.newBuilder(bill_).mergeFrom(value).buildPartial(); - } else { - bill_ = value; - } - onChanged(); - } else { - billBuilder_.mergeFrom(value); - } - return this; + public net.iGap.proto.ProtoGlobal.TextSigns getDefaultInstanceForType() { + return net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance(); } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public Builder clearBill() { - if (billBuilder_ == null) { - bill_ = null; - onChanged(); + + public net.iGap.proto.ProtoGlobal.TextSigns build() { + net.iGap.proto.ProtoGlobal.TextSigns result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoGlobal.TextSigns buildPartial() { + net.iGap.proto.ProtoGlobal.TextSigns result = new net.iGap.proto.ProtoGlobal.TextSigns(this); + int from_bitField0_ = bitField0_; + if (textSignBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + textSign_ = java.util.Collections.unmodifiableList(textSign_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.textSign_ = textSign_; } else { - bill_ = null; - billBuilder_ = null; + result.textSign_ = textSignBuilder_.build(); } + onBuilt(); + return result; + } - return this; + public Builder clone() { + return (Builder) super.clone(); } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder getBillBuilder() { - - onChanged(); - return getBillFieldBuilder().getBuilder(); + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder getBillOrBuilder() { - if (billBuilder_ != null) { - return billBuilder_.getMessageOrBuilder(); - } else { - return bill_ == null ? - net.iGap.proto.ProtoGlobal.MplTransaction.Bill.getDefaultInstance() : bill_; - } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); } - /** - * optional .proto.MplTransaction.Bill bill = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder> - getBillFieldBuilder() { - if (billBuilder_ == null) { - billBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Bill, net.iGap.proto.ProtoGlobal.MplTransaction.Bill.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.BillOrBuilder>( - getBill(), - getParentForChildren(), - isClean()); - bill_ = null; - } - return billBuilder_; + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); } - - private net.iGap.proto.ProtoGlobal.MplTransaction.Topup topup_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder> topupBuilder_; - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public boolean hasTopup() { - return topupBuilder_ != null || topup_ != null; + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Topup getTopup() { - if (topupBuilder_ == null) { - return topup_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; + 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 net.iGap.proto.ProtoGlobal.TextSigns) { + return mergeFrom((net.iGap.proto.ProtoGlobal.TextSigns)other); } else { - return topupBuilder_.getMessage(); + super.mergeFrom(other); + return this; } } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public Builder setTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { - if (topupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + + public Builder mergeFrom(net.iGap.proto.ProtoGlobal.TextSigns other) { + if (other == net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance()) return this; + if (textSignBuilder_ == null) { + if (!other.textSign_.isEmpty()) { + if (textSign_.isEmpty()) { + textSign_ = other.textSign_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTextSignIsMutable(); + textSign_.addAll(other.textSign_); + } + onChanged(); } - topup_ = value; - onChanged(); } else { - topupBuilder_.setMessage(value); + if (!other.textSign_.isEmpty()) { + if (textSignBuilder_.isEmpty()) { + textSignBuilder_.dispose(); + textSignBuilder_ = null; + textSign_ = other.textSign_; + bitField0_ = (bitField0_ & ~0x00000001); + textSignBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextSignFieldBuilder() : null; + } else { + textSignBuilder_.addAllMessages(other.textSign_); + } + } } - + onChanged(); return this; } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public Builder setTopup( - net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder builderForValue) { - if (topupBuilder_ == null) { - topup_ = builderForValue.build(); - onChanged(); - } else { - topupBuilder_.setMessage(builderForValue.build()); - } - return this; + public final boolean isInitialized() { + return true; } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public Builder mergeTopup(net.iGap.proto.ProtoGlobal.MplTransaction.Topup value) { - if (topupBuilder_ == null) { - if (topup_ != null) { - topup_ = - net.iGap.proto.ProtoGlobal.MplTransaction.Topup.newBuilder(topup_).mergeFrom(value).buildPartial(); - } else { - topup_ = value; + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoGlobal.TextSigns parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoGlobal.TextSigns) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } - onChanged(); - } else { - topupBuilder_.mergeFrom(value); } - return this; } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public Builder clearTopup() { - if (topupBuilder_ == null) { - topup_ = null; - onChanged(); - } else { - topup_ = null; - topupBuilder_ = null; - } + private int bitField0_; - return this; - } - /** - * optional .proto.MplTransaction.Topup topup = 6; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder getTopupBuilder() { - - onChanged(); - return getTopupFieldBuilder().getBuilder(); + private java.util.List textSign_ = + java.util.Collections.emptyList(); + private void ensureTextSignIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + textSign_ = new java.util.ArrayList(textSign_); + bitField0_ |= 0x00000001; + } } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns.TextSign, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder, net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder> textSignBuilder_; + /** - * optional .proto.MplTransaction.Topup topup = 6; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder getTopupOrBuilder() { - if (topupBuilder_ != null) { - return topupBuilder_.getMessageOrBuilder(); + public java.util.List getTextSignList() { + if (textSignBuilder_ == null) { + return java.util.Collections.unmodifiableList(textSign_); } else { - return topup_ == null ? - net.iGap.proto.ProtoGlobal.MplTransaction.Topup.getDefaultInstance() : topup_; + return textSignBuilder_.getMessageList(); } } /** - * optional .proto.MplTransaction.Topup topup = 6; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder> - getTopupFieldBuilder() { - if (topupBuilder_ == null) { - topupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Topup, net.iGap.proto.ProtoGlobal.MplTransaction.Topup.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.TopupOrBuilder>( - getTopup(), - getParentForChildren(), - isClean()); - topup_ = null; + public int getTextSignCount() { + if (textSignBuilder_ == null) { + return textSign_.size(); + } else { + return textSignBuilder_.getCount(); } - return topupBuilder_; - } - - private net.iGap.proto.ProtoGlobal.MplTransaction.Sales sales_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder> salesBuilder_; - /** - * optional .proto.MplTransaction.Sales sales = 7; - */ - public boolean hasSales() { - return salesBuilder_ != null || sales_ != null; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Sales getSales() { - if (salesBuilder_ == null) { - return sales_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign getTextSign(int index) { + if (textSignBuilder_ == null) { + return textSign_.get(index); } else { - return salesBuilder_.getMessage(); + return textSignBuilder_.getMessage(index); } } /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder setSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { - if (salesBuilder_ == null) { + public Builder setTextSign( + int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { + if (textSignBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sales_ = value; + ensureTextSignIsMutable(); + textSign_.set(index, value); onChanged(); } else { - salesBuilder_.setMessage(value); + textSignBuilder_.setMessage(index, value); } - return this; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder setSales( - net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder builderForValue) { - if (salesBuilder_ == null) { - sales_ = builderForValue.build(); + public Builder setTextSign( + int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.set(index, builderForValue.build()); onChanged(); } else { - salesBuilder_.setMessage(builderForValue.build()); + textSignBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder mergeSales(net.iGap.proto.ProtoGlobal.MplTransaction.Sales value) { - if (salesBuilder_ == null) { - if (sales_ != null) { - sales_ = - net.iGap.proto.ProtoGlobal.MplTransaction.Sales.newBuilder(sales_).mergeFrom(value).buildPartial(); - } else { - sales_ = value; + public Builder addTextSign(net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { + if (textSignBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureTextSignIsMutable(); + textSign_.add(value); onChanged(); } else { - salesBuilder_.mergeFrom(value); + textSignBuilder_.addMessage(value); } - return this; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder clearSales() { - if (salesBuilder_ == null) { - sales_ = null; + public Builder addTextSign( + int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign value) { + if (textSignBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextSignIsMutable(); + textSign_.add(index, value); onChanged(); } else { - sales_ = null; - salesBuilder_ = null; + textSignBuilder_.addMessage(index, value); } - return this; } /** - * optional .proto.MplTransaction.Sales sales = 7; - */ - public net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder getSalesBuilder() { - - onChanged(); - return getSalesFieldBuilder().getBuilder(); - } - /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder getSalesOrBuilder() { - if (salesBuilder_ != null) { - return salesBuilder_.getMessageOrBuilder(); + public Builder addTextSign( + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.add(builderForValue.build()); + onChanged(); } else { - return sales_ == null ? - net.iGap.proto.ProtoGlobal.MplTransaction.Sales.getDefaultInstance() : sales_; + textSignBuilder_.addMessage(builderForValue.build()); } + return this; } /** - * optional .proto.MplTransaction.Sales sales = 7; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder> - getSalesFieldBuilder() { - if (salesBuilder_ == null) { - salesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.Sales, net.iGap.proto.ProtoGlobal.MplTransaction.Sales.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.SalesOrBuilder>( - getSales(), - getParentForChildren(), - isClean()); - sales_ = null; + public Builder addTextSign( + int index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder builderForValue) { + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.add(index, builderForValue.build()); + onChanged(); + } else { + textSignBuilder_.addMessage(index, builderForValue.build()); } - return salesBuilder_; - } - - private net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard cardtocard_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder> cardtocardBuilder_; - /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; - */ - public boolean hasCardtocard() { - return cardtocardBuilder_ != null || cardtocard_ != null; + return this; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard getCardtocard() { - if (cardtocardBuilder_ == null) { - return cardtocard_ == null ? net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; + public Builder addAllTextSign( + java.lang.Iterable values) { + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textSign_); + onChanged(); } else { - return cardtocardBuilder_.getMessage(); + textSignBuilder_.addAllMessages(values); } + return this; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder setCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { - if (cardtocardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cardtocard_ = value; + public Builder clearTextSign() { + if (textSignBuilder_ == null) { + textSign_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - cardtocardBuilder_.setMessage(value); + textSignBuilder_.clear(); } - return this; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder setCardtocard( - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder builderForValue) { - if (cardtocardBuilder_ == null) { - cardtocard_ = builderForValue.build(); + public Builder removeTextSign(int index) { + if (textSignBuilder_ == null) { + ensureTextSignIsMutable(); + textSign_.remove(index); onChanged(); } else { - cardtocardBuilder_.setMessage(builderForValue.build()); + textSignBuilder_.remove(index); } - return this; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder mergeCardtocard(net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard value) { - if (cardtocardBuilder_ == null) { - if (cardtocard_ != null) { - cardtocard_ = - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.newBuilder(cardtocard_).mergeFrom(value).buildPartial(); - } else { - cardtocard_ = value; - } - onChanged(); - } else { - cardtocardBuilder_.mergeFrom(value); + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder getTextSignBuilder( + int index) { + return getTextSignFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.TextSigns.TextSign text_sign = 1; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder getTextSignOrBuilder( + int index) { + if (textSignBuilder_ == null) { + return textSign_.get(index); } else { + return textSignBuilder_.getMessageOrBuilder(index); } - - return this; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public Builder clearCardtocard() { - if (cardtocardBuilder_ == null) { - cardtocard_ = null; - onChanged(); + public java.util.List + getTextSignOrBuilderList() { + if (textSignBuilder_ != null) { + return textSignBuilder_.getMessageOrBuilderList(); } else { - cardtocard_ = null; - cardtocardBuilder_ = null; + return java.util.Collections.unmodifiableList(textSign_); } - - return this; } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder getCardtocardBuilder() { - - onChanged(); - return getCardtocardFieldBuilder().getBuilder(); + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder addTextSignBuilder() { + return getTextSignFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance()); } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - public net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder getCardtocardOrBuilder() { - if (cardtocardBuilder_ != null) { - return cardtocardBuilder_.getMessageOrBuilder(); - } else { - return cardtocard_ == null ? - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.getDefaultInstance() : cardtocard_; - } + public net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder addTextSignBuilder( + int index) { + return getTextSignFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.getDefaultInstance()); } /** - * optional .proto.MplTransaction.CardToCard cardtocard = 8; + * repeated .proto.TextSigns.TextSign text_sign = 1; */ - private com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder> - getCardtocardFieldBuilder() { - if (cardtocardBuilder_ == null) { - cardtocardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCard.Builder, net.iGap.proto.ProtoGlobal.MplTransaction.CardToCardOrBuilder>( - getCardtocard(), + public java.util.List + getTextSignBuilderList() { + return getTextSignFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns.TextSign, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder, net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder> + getTextSignFieldBuilder() { + if (textSignBuilder_ == null) { + textSignBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns.TextSign, net.iGap.proto.ProtoGlobal.TextSigns.TextSign.Builder, net.iGap.proto.ProtoGlobal.TextSigns.TextSignOrBuilder>( + textSign_, + ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); - cardtocard_ = null; + textSign_ = null; } - return cardtocardBuilder_; + return textSignBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -58694,39 +69965,39 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:proto.MplTransaction) + // @@protoc_insertion_point(builder_scope:proto.TextSigns) } - // @@protoc_insertion_point(class_scope:proto.MplTransaction) - private static final net.iGap.proto.ProtoGlobal.MplTransaction DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:proto.TextSigns) + private static final net.iGap.proto.ProtoGlobal.TextSigns DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.MplTransaction(); + DEFAULT_INSTANCE = new net.iGap.proto.ProtoGlobal.TextSigns(); } - public static net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstance() { + public static net.iGap.proto.ProtoGlobal.TextSigns getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public MplTransaction parsePartialFrom( + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TextSigns parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MplTransaction(input, extensionRegistry); + return new TextSigns(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { + public net.iGap.proto.ProtoGlobal.TextSigns getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -58837,6 +70108,11 @@ public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_RoomMessage_ChannelExtra_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessage_GroupExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_RoomDraft_descriptor; private static final @@ -58972,6 +70248,51 @@ public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_MplTransaction_CardToCard_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BotInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BotInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_BotInfo_BotAction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_BotInfo_BotAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_Mention_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_Mention_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageSticker_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageSticker_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageCardToCard_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageCardToCard_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageBotAction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageBotAction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_RoomMessageBotActionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_RoomMessageBotActionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_TextSigns_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_TextSigns_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_TextSigns_TextSign_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_TextSigns_TextSign_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -59063,7 +70384,7 @@ public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { " \001(\r\022\014\n\004seen\030\013 \001(\010\022\022\n\nduplicated\030\014 \001(\010\022%", "\n\noriginator\030\r \001(\0162\021.proto.Originator\022\r\n" + "\005views\030\016 \001(\r\"\033\n\004Type\022\t\n\005STORY\020\000\022\010\n\004LIVE\020" + - "\001\"\204\004\n\016RegisteredUser\022\016\n\002id\030\001 \001(\004B\0020\001\022\020\n\010" + + "\001\"\230\004\n\016RegisteredUser\022\016\n\002id\030\001 \001(\004B\0020\001\022\020\n\010" + "username\030\002 \001(\t\022\021\n\005phone\030\003 \001(\004B\0020\001\022\022\n\nfir" + "st_name\030\004 \001(\t\022\021\n\tlast_name\030\005 \001(\t\022\024\n\014disp" + "lay_name\030\006 \001(\t\022\020\n\010initials\030\007 \001(\t\022\r\n\005colo" + @@ -59072,237 +70393,297 @@ public net.iGap.proto.ProtoGlobal.MplTransaction getDefaultInstanceForType() { "ar_count\030\013 \001(\r\022\035\n\006avatar\030\014 \001(\0132\r.proto.A" + "vatar\022\016\n\006mutual\030\r \001(\010\022\017\n\007deleted\030\016 \001(\010\022\020", "\n\010cache_id\030\017 \001(\t\022\013\n\003bio\030\020 \001(\t\022\020\n\010verifie" + - "d\030\021 \001(\010\022\013\n\003bot\030\022 \001(\010\"\211\001\n\006Status\022\021\n\rLONG_" + - "TIME_AGO\020\000\022\016\n\nLAST_MONTH\020\001\022\r\n\tLAST_WEEK\020" + - "\002\022\n\n\006ONLINE\020\003\022\013\n\007EXACTLY\020\004\022\014\n\010RECENTLY\020\005" + - "\022\013\n\007SUPPORT\020\006\022\031\n\025SERVICE_NOTIFICATIONS\020\007" + - "\"3\n\006Avatar\022\016\n\002id\030\001 \001(\004B\0020\001\022\031\n\004file\030\002 \001(\013" + - "2\013.proto.File\"\360\t\n\013RoomMessage\022\017\n\007room_id" + - "\030\032 \001(\004\022\026\n\nmessage_id\030\001 \001(\004B\0020\001\022\033\n\017messag" + - "e_version\030\002 \001(\004B\0020\001\022(\n\006status\030\003 \001(\0162\030.pr" + - "oto.RoomMessageStatus\022\032\n\016status_version\030", - "\004 \001(\004B\0020\001\022,\n\014message_type\030\005 \001(\0162\026.proto." + - "RoomMessageType\022\017\n\007message\030\006 \001(\t\022\037\n\natta" + - "chment\030\007 \001(\0132\013.proto.File\022)\n\006author\030\010 \001(" + - "\0132\031.proto.RoomMessage.Author\022,\n\010location" + - "\030\t \001(\0132\032.proto.RoomMessageLocation\022\"\n\003lo" + - "g\030\n \001(\0132\025.proto.RoomMessageLog\022*\n\007contac" + - "t\030\013 \001(\0132\031.proto.RoomMessageContact\022(\n\006wa" + - "llet\030\026 \001(\0132\030.proto.RoomMessageWallet\022\016\n\006" + - "edited\030\014 \001(\010\022\023\n\013create_time\030\r \001(\r\022\023\n\013upd" + - "ate_time\030\016 \001(\r\022\017\n\007deleted\030\017 \001(\010\022(\n\014forwa", - "rd_from\030\020 \001(\0132\022.proto.RoomMessage\022$\n\010rep" + - "ly_to\030\021 \001(\0132\022.proto.RoomMessage\022&\n\005story" + - "\030\031 \001(\0132\027.proto.RoomMessageStory\022\037\n\023previ" + - "ous_message_id\030\022 \001(\004B\0020\001\022\025\n\trandom_id\030\025 " + - "\001(\004B\0020\001\022\027\n\017additional_type\030\027 \001(\r\022\027\n\017addi" + - "tional_data\030\030 \001(\t\0220\n\nextra_type\030\023 \001(\0162\034." + - "proto.RoomMessage.ExtraType\0226\n\rchannel_e" + - "xtra\030\024 \001(\0132\037.proto.RoomMessage.ChannelEx" + - "tra\022\023\n\013document_id\030\033 \001(\004\022\033\n\023version_docu" + - "ment_id\030\034 \001(\004\032\276\001\n\006Author\022\014\n\004hash\030\001 \001(\t\022,", - "\n\004user\030\002 \001(\0132\036.proto.RoomMessage.Author." + - "User\022,\n\004room\030\003 \001(\0132\036.proto.RoomMessage.A" + - "uthor.Room\032-\n\004User\022\023\n\007user_id\030\001 \001(\004B\0020\001\022" + - "\020\n\010cache_id\030\002 \001(\t\032\033\n\004Room\022\023\n\007room_id\030\001 \001" + - "(\004B\0020\001\032j\n\014ChannelExtra\022\021\n\tsignature\030\001 \001(" + - "\t\022\023\n\013views_label\030\002 \001(\t\022\027\n\017thumbs_up_labe" + - "l\030\003 \001(\t\022\031\n\021thumbs_down_label\030\004 \001(\t\",\n\tEx" + - "traType\022\014\n\010NO_EXTRA\020\000\022\021\n\rCHANNEL_EXTRA\020\001" + - "\"F\n\tRoomDraft\022\017\n\007message\030\001 \001(\t\022\024\n\010reply_" + - "to\030\002 \001(\004B\0020\001\022\022\n\ndraft_time\030\003 \001(\r\"\201\005\n\004Roo", - "m\022\016\n\002id\030\001 \001(\004B\0020\001\022\036\n\004type\030\002 \001(\0162\020.proto." + - "Room.Type\022\r\n\005title\030\003 \001(\t\022\020\n\010initials\030\004 \001" + - "(\t\022\r\n\005color\030\005 \001(\t\022\024\n\014unread_count\030\006 \001(\r\022" + - "(\n\014last_message\030\007 \001(\0132\022.proto.RoomMessag" + - "e\022\021\n\tread_only\030\010 \001(\010\022\026\n\016is_participant\030\t" + - " \001(\010\022\037\n\005draft\030\n \001(\0132\020.proto.RoomDraft\0220\n" + - "\024first_unread_message\030\016 \001(\0132\022.proto.Room" + - "Message\022\"\n\troom_mute\030\017 \001(\0162\017.proto.RoomM" + - "ute\022\022\n\006pin_id\030\020 \001(\004B\0020\001\022*\n\016pinned_messag" + - "e\030\021 \001(\0132\022.proto.RoomMessage\022\020\n\010priority\030", - "\022 \001(\r\022(\n\017chat_room_extra\030\013 \001(\0132\017.proto.C" + - "hatRoom\022*\n\020group_room_extra\030\014 \001(\0132\020.prot" + - "o.GroupRoom\022.\n\022channel_room_extra\030\r \001(\0132" + - "\022.proto.ChannelRoom\022\016\n\006app_id\030\023 \001(\r\022%\n\np" + - "ermission\030\024 \001(\0132\021.proto.RoomAccess\"(\n\004Ty" + - "pe\022\010\n\004CHAT\020\000\022\t\n\005GROUP\020\001\022\013\n\007CHANNEL\020\002\"/\n\010" + - "ChatRoom\022#\n\004peer\030\001 \001(\0132\025.proto.Registere" + - "dUser\"\223\005\n\tGroupRoom\022#\n\004type\030\001 \001(\0162\025.prot" + - "o.GroupRoom.Type\022#\n\004role\030\002 \001(\0162\025.proto.G" + - "roupRoom.Role\022\032\n\022participants_count\030\003 \001(", - "\r\022 \n\030participants_count_label\030\004 \001(\t\022 \n\030p" + - "articipants_count_limit\030\005 \001(\r\022&\n\036partici" + - "pants_count_limit_label\030\006 \001(\t\022\023\n\013descrip" + - "tion\030\007 \001(\t\022\024\n\014avatar_count\030\010 \001(\r\022\035\n\006avat" + - "ar\030\t \001(\0132\r.proto.Avatar\0224\n\rprivate_extra" + - "\030\n \001(\0132\035.proto.GroupRoom.PrivateExtra\0222\n" + - "\014public_extra\030\013 \001(\0132\034.proto.GroupRoom.Pu" + - "blicExtra\022@\n\013room_rights\030\014 \001(\0132+.proto.G" + - "roupChangeMemberRights.MemberRights\0329\n\014P" + - "rivateExtra\022\023\n\013invite_link\030\001 \001(\t\022\024\n\014invi", - "te_token\030\002 \001(\t\032\037\n\013PublicExtra\022\020\n\010usernam" + - "e\030\001 \001(\t\")\n\004Type\022\020\n\014PRIVATE_ROOM\020\000\022\017\n\013PUB" + - "LIC_ROOM\020\001\"7\n\004Role\022\n\n\006MEMBER\020\000\022\r\n\tMODERA" + - "TOR\020\001\022\t\n\005ADMIN\020\002\022\t\n\005OWNER\020\003\"\344\004\n\013ChannelR" + - "oom\022%\n\004type\030\001 \001(\0162\027.proto.ChannelRoom.Ty" + - "pe\022%\n\004role\030\002 \001(\0162\027.proto.ChannelRoom.Rol" + - "e\022\032\n\022participants_count\030\003 \001(\r\022 \n\030partici" + - "pants_count_label\030\004 \001(\t\022\023\n\013description\030\005" + - " \001(\t\022\024\n\014avatar_count\030\006 \001(\r\022\035\n\006avatar\030\007 \001" + - "(\0132\r.proto.Avatar\0226\n\rprivate_extra\030\010 \001(\013", - "2\037.proto.ChannelRoom.PrivateExtra\0224\n\014pub" + - "lic_extra\030\t \001(\0132\036.proto.ChannelRoom.Publ" + - "icExtra\022\021\n\tsignature\030\n \001(\010\022\023\n\007seen_id\030\013 " + - "\001(\004B\0020\001\022\020\n\010verified\030\014 \001(\010\022\027\n\017reaction_st" + - "atus\030\r \001(\010\0329\n\014PrivateExtra\022\023\n\013invite_lin" + - "k\030\001 \001(\t\022\024\n\014invite_token\030\002 \001(\t\032\037\n\013PublicE" + - "xtra\022\020\n\010username\030\001 \001(\t\")\n\004Type\022\020\n\014PRIVAT" + - "E_ROOM\020\000\022\017\n\013PUBLIC_ROOM\020\001\"7\n\004Role\022\n\n\006MEM" + - "BER\020\000\022\r\n\tMODERATOR\020\001\022\t\n\005ADMIN\020\002\022\t\n\005OWNER" + - "\020\003\"f\n\tThumbnail\022\014\n\004size\030\001 \001(\003\022\r\n\005width\030\002", - " \001(\005\022\016\n\006height\030\003 \001(\005\022\020\n\010cache_id\030\004 \001(\t\022\014" + - "\n\004name\030\005 \001(\t\022\014\n\004mime\030\006 \001(\t\"\232\002\n\004File\022\r\n\005t" + - "oken\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004size\030\003 \001(\003\022)" + - "\n\017large_thumbnail\030\004 \001(\0132\020.proto.Thumbnai" + - "l\022)\n\017small_thumbnail\030\005 \001(\0132\020.proto.Thumb" + - "nail\022,\n\022waveform_thumbnail\030\006 \001(\0132\020.proto" + - ".Thumbnail\022\r\n\005width\030\007 \001(\005\022\016\n\006height\030\010 \001(" + - "\005\022\020\n\010duration\030\t \001(\001\022\020\n\010cache_id\030\n \001(\t\022\014\n" + - "\004mime\030\013 \001(\t\022\022\n\npublic_url\030\014 \001(\t\"u\n\021PostM" + - "essageRights\022\021\n\tsend_text\030\001 \001(\010\022\022\n\nsend_", - "media\030\003 \001(\010\022\020\n\010send_gif\030\004 \001(\010\022\024\n\014send_st" + - "icker\030\005 \001(\010\022\021\n\tsend_link\030\006 \001(\010\"\246\002\n\nRoomA" + - "ccess\022\023\n\013modify_room\030\001 \001(\010\022.\n\014post_messa" + - "ge\030\002 \001(\0132\030.proto.PostMessageRights\022\024\n\014ed" + - "it_message\030\003 \001(\010\022\026\n\016delete_message\030\004 \001(\010" + - "\022\023\n\013pin_message\030\005 \001(\010\022\022\n\nadd_member\030\006 \001(" + - "\010\022\022\n\nban_member\030\007 \001(\010\022\022\n\nget_member\030\010 \001(" + - "\010\022\021\n\tadd_admin\030\t \001(\010\022\021\n\tadd_story\030\n \001(\010\022" + - "\024\n\014delete_story\030\013 \001(\010\022\030\n\020show_story_view" + - "s\030\014 \001(\010\"5\n\tWallpaper\022\031\n\004file\030\001 \001(\0132\013.pro", - "to.File\022\r\n\005color\030\002 \001(\t\"+\n\nPagination\022\016\n\006" + - "offset\030\001 \001(\r\022\r\n\005limit\030\002 \001(\r\"Z\n\010Favorite\022" + - "\014\n\004name\030\001 \001(\t\022\021\n\ttextcolor\030\002 \001(\t\022\017\n\007bgco" + - "lor\030\003 \001(\t\022\r\n\005value\030\004 \001(\t\022\r\n\005image\030\005 \001(\t\"" + - "\360\007\n\016DiscoveryField\022\020\n\010imageurl\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t\022:\n\nactiontype\030\003 \001(\0162&.proto." + - "DiscoveryField.ButtonActionType\022\017\n\007order" + - "id\030\004 \001(\r\022\n\n\002id\030\005 \001(\r\022\r\n\005param\030\006 \001(\t\022\021\n\ta" + - "greement\030\007 \001(\010\022\017\n\007refresh\030\010 \001(\010\022\025\n\ragree" + - "mentSlug\030\t \001(\t\"\231\006\n\020ButtonActionType\022\010\n\004N", - "ONE\020\000\022\r\n\tJOIN_LINK\020\001\022\016\n\nBOT_ACTION\020\002\022\021\n\r" + - "USERNAME_LINK\020\003\022\014\n\010WEB_LINK\020\004\022\021\n\rWEB_VIE" + - "W_LINK\020\005\022\017\n\013STREAM_PLAY\020\006\022\021\n\rPAY_BY_WALL" + - "ET\020\007\022\016\n\nPAY_DIRECT\020\010\022\021\n\rREQUEST_PHONE\020\t\022" + - "\024\n\020REQUEST_LOCATION\020\n\022\016\n\nSHOW_ALERT\020\013\022\010\n" + - "\004PAGE\020\014\022\022\n\016FINANCIAL_MENU\020\r\022\r\n\tBILL_MENU" + - "\020\016\022\025\n\021TRAFFIC_BILL_MENU\020\017\022\024\n\020MOBILE_BILL" + - "_MENU\020\020\022\023\n\017PHONE_BILL_MENU\020\021\022\016\n\nTOPUP_ME" + - "NU\020\022\022\017\n\013WALLET_MENU\020\023\022\017\n\013NEARBY_MENU\020\024\022\010" + - "\n\004CALL\020\025\022\020\n\014STICKER_SHOP\020\026\022\t\n\005IVAND\020\027\022\013\n", - "\007IVANDQR\020\030\022\r\n\tIVANDLIST\020\031\022\016\n\nIVANDSCORE\020" + - "\032\022\020\n\014CARD_TO_CARD\020\033\022\024\n\020FAVORITE_CHANNEL\020" + - "\034\022\t\n\005MUSIC\020\035\022\013\n\007CHARITY\020\036\022\017\n\013FUN_SERVICE" + - "\020\037\022\021\n\rVIRTUAL_MONEY\020 \022\020\n\014CITY_SERVICE\020!\022" + - "\010\n\004POLL\020\"\022\031\n\025INTERNET_PACKAGE_MENU\020#\022\025\n\021" + - "FINANCIAL_HISTORY\020$\022\021\n\rINVITE_FRIEND\020%\022\010" + - "\n\004NEWS\020&\022\026\n\022ELECTRIC_BILL_MENU\020\'\022\016\n\nBLOC" + - "KCHAIN\020(\022\014\n\010PARSLAND\020)\022\017\n\013POLL_RESULT\020*\022" + - "\025\n\021VIRTUAL_GIFT_CARD\020+\022\017\n\013NEWS_DETAIL\020,\022" + - "\t\n\005QRPAY\020-\"\223\002\n\tDiscovery\022.\n\005model\030\001 \001(\0162", - "\037.proto.Discovery.DiscoveryModel\022\r\n\005scal" + - "e\030\002 \001(\t\022.\n\017discoveryfields\030\003 \003(\0132\025.proto" + - ".DiscoveryField\"\226\001\n\016DiscoveryModel\022\n\n\006MO" + - "DEL1\020\000\022\n\n\006MODEL2\020\001\022\n\n\006MODEL3\020\002\022\n\n\006MODEL4" + - "\020\003\022\n\n\006MODEL5\020\004\022\n\n\006MODEL6\020\005\022\n\n\006MODEL7\020\006\022\n" + - "\n\006MODEL8\020\007\022\n\n\006MODEL9\020\010\022\013\n\007MODEL10\020\t\022\013\n\007M" + - "ODEL11\020\n\"~\n\tPollField\022\020\n\010imageurl\030\001 \001(\t\022" + - "\017\n\007orderid\030\002 \001(\r\022\n\n\002id\030\003 \001(\r\022\017\n\007clicked\030" + - "\004 \001(\010\022\017\n\003sum\030\005 \001(\004B\0020\001\022\021\n\tclickable\030\006 \001(" + - "\010\022\r\n\005label\030\007 \001(\t\"x\n\004Poll\022.\n\005model\030\001 \001(\0162", - "\037.proto.Discovery.DiscoveryModel\022\r\n\005scal" + - "e\030\002 \001(\t\022\013\n\003max\030\003 \001(\r\022$\n\npollfields\030\004 \003(\013" + - "2\020.proto.PollField\";\n\rIVandActivity\022\r\n\005t" + - "itle\030\001 \001(\t\022\r\n\005score\030\002 \001(\005\022\014\n\004time\030\003 \001(\r\"" + - "\236\002\n\007MplSale\022\032\n\016invoice_number\030\001 \001(\004B\0020\001\022" + - "\030\n\014from_user_id\030\002 \001(\004B\0020\001\022\022\n\006amount\030\003 \001(" + - "\004B\0020\001\022\024\n\014trace_number\030\004 \001(\003\022\020\n\010pay_time\030" + - "\005 \001(\r\022\023\n\013description\030\006 \001(\t\022\023\n\013card_numbe" + - "r\030\007 \001(\t\022\013\n\003rrn\030\010 \001(\003\022%\n\006status\030\t \001(\0162\025.p" + - "roto.MplSale.Status\"C\n\006Status\022\022\n\016PENDING", - "_VERIFY\020\000\022\013\n\007SUCCESS\020\001\022\n\n\006FAILED\020\002\022\014\n\010RE" + - "VERSED\020\003\"\227\013\n\016MplTransaction\022\024\n\010order_id\030" + - "\001 \001(\004B\0020\001\022\r\n\005token\030\002 \001(\t\022\020\n\010pay_time\030\003 \001" + - "(\r\022(\n\004type\030\004 \001(\0162\032.proto.MplTransaction." + - "Type\022(\n\004bill\030\005 \001(\0132\032.proto.MplTransactio" + - "n.Bill\022*\n\005topup\030\006 \001(\0132\033.proto.MplTransac" + - "tion.Topup\022*\n\005sales\030\007 \001(\0132\033.proto.MplTra" + - "nsaction.Sales\0224\n\ncardtocard\030\010 \001(\0132 .pro" + - "to.MplTransaction.CardToCard\032\210\002\n\004Bill\022\016\n" + - "\006BillId\030\001 \001(\t\022\r\n\005PayId\030\002 \001(\t\022\020\n\010BillType", - "\030\003 \001(\t\022\016\n\006Status\030\004 \001(\r\022\022\n\006Amount\030\005 \001(\004B\002" + - "0\001\022\022\n\nCardNumber\030\006 \001(\t\022\024\n\014MerchantName\030\007" + - " \001(\t\022\023\n\007OrderId\030\010 \001(\004B\0020\001\022\033\n\017RequestDate" + - "Time\030\t \001(\004B\0020\001\022\017\n\003RRN\030\n \001(\004B\0020\001\022\031\n\021Statu" + - "sDescription\030\013 \001(\t\022\022\n\nTerminalNo\030\014 \001(\r\022\017" + - "\n\007TraceNo\030\r \001(\r\032\256\002\n\005Topup\022!\n\025RequesterMo" + - "bileNumber\030\001 \001(\004B\0020\001\022\036\n\022ChargeMobileNumb" + - "er\030\002 \001(\004B\0020\001\022\021\n\tTopupType\030\003 \001(\r\022\016\n\006Statu" + - "s\030\004 \001(\r\022\022\n\006Amount\030\005 \001(\004B\0020\001\022\022\n\nCardNumbe" + - "r\030\006 \001(\t\022\024\n\014MerchantName\030\007 \001(\t\022\023\n\007OrderId", + "d\030\021 \001(\010\022\013\n\003bot\030\022 \001(\010\022\022\n\nmxb_enable\030\023 \001(\010" + + "\"\211\001\n\006Status\022\021\n\rLONG_TIME_AGO\020\000\022\016\n\nLAST_M" + + "ONTH\020\001\022\r\n\tLAST_WEEK\020\002\022\n\n\006ONLINE\020\003\022\013\n\007EXA" + + "CTLY\020\004\022\014\n\010RECENTLY\020\005\022\013\n\007SUPPORT\020\006\022\031\n\025SER" + + "VICE_NOTIFICATIONS\020\007\"3\n\006Avatar\022\016\n\002id\030\001 \001" + + "(\004B\0020\001\022\031\n\004file\030\002 \001(\0132\013.proto.File\"\225\014\n\013Ro" + + "omMessage\022\017\n\007room_id\030\032 \001(\004\022\026\n\nmessage_id" + + "\030\001 \001(\004B\0020\001\022\033\n\017message_version\030\002 \001(\004B\0020\001\022" + + "(\n\006status\030\003 \001(\0162\030.proto.RoomMessageStatu", + "s\022\032\n\016status_version\030\004 \001(\004B\0020\001\022,\n\014message" + + "_type\030\005 \001(\0162\026.proto.RoomMessageType\022\017\n\007m" + + "essage\030\006 \001(\t\022\037\n\nattachment\030\007 \001(\0132\013.proto" + + ".File\022)\n\006author\030\010 \001(\0132\031.proto.RoomMessag" + + "e.Author\022,\n\010location\030\t \001(\0132\032.proto.RoomM" + + "essageLocation\022\"\n\003log\030\n \001(\0132\025.proto.Room" + + "MessageLog\022*\n\007contact\030\013 \001(\0132\031.proto.Room" + + "MessageContact\022(\n\006wallet\030\026 \001(\0132\030.proto.R" + + "oomMessageWallet\022\016\n\006edited\030\014 \001(\010\022\023\n\013crea" + + "te_time\030\r \001(\r\022\023\n\013update_time\030\016 \001(\r\022\017\n\007de", + "leted\030\017 \001(\010\022(\n\014forward_from\030\020 \001(\0132\022.prot" + + "o.RoomMessage\022$\n\010reply_to\030\021 \001(\0132\022.proto." + + "RoomMessage\022&\n\005story\030\031 \001(\0132\027.proto.RoomM" + + "essageStory\022\037\n\023previous_message_id\030\022 \001(\004" + + "B\0020\001\022\025\n\trandom_id\030\025 \001(\004B\0020\001\022\027\n\017additiona" + + "l_type\030\027 \001(\r\022\027\n\017additional_data\030\030 \001(\t\0220\n" + + "\nextra_type\030\023 \001(\0162\034.proto.RoomMessage.Ex" + + "traType\0226\n\rchannel_extra\030\024 \001(\0132\037.proto.R" + + "oomMessage.ChannelExtra\022\023\n\013document_id\030\033" + + " \001(\004\022\033\n\023version_document_id\030\034 \001(\004\0222\n\013gro", + "up_extra\030\035 \001(\0132\035.proto.RoomMessage.Group" + + "Extra\022*\n\007sticker\030\036 \001(\0132\031.proto.RoomMessa" + + "geSticker\0222\n\014card_to_card\030\037 \001(\0132\034.proto." + + "RoomMessageCardToCard\0229\n\020bot_action_list" + + "s\030 \003(\0132\037.proto.RoomMessageBotActionList" + + "\022$\n\ntext_signs\030! \001(\0132\020.proto.TextSigns\032\276" + + "\001\n\006Author\022\014\n\004hash\030\001 \001(\t\022,\n\004user\030\002 \001(\0132\036." + + "proto.RoomMessage.Author.User\022,\n\004room\030\003 " + + "\001(\0132\036.proto.RoomMessage.Author.Room\032-\n\004U" + + "ser\022\023\n\007user_id\030\001 \001(\004B\0020\001\022\020\n\010cache_id\030\002 \001", + "(\t\032\033\n\004Room\022\023\n\007room_id\030\001 \001(\004B\0020\001\032j\n\014Chann" + + "elExtra\022\021\n\tsignature\030\001 \001(\t\022\023\n\013views_labe" + + "l\030\002 \001(\t\022\027\n\017thumbs_up_label\030\003 \001(\t\022\031\n\021thum" + + "bs_down_label\030\004 \001(\t\032.\n\nGroupExtra\022 \n\010men" + + "tions\030\001 \001(\0132\016.proto.Mention\",\n\tExtraType" + + "\022\014\n\010NO_EXTRA\020\000\022\021\n\rCHANNEL_EXTRA\020\001\"F\n\tRoo" + + "mDraft\022\017\n\007message\030\001 \001(\t\022\024\n\010reply_to\030\002 \001(" + + "\004B\0020\001\022\022\n\ndraft_time\030\003 \001(\r\"\201\005\n\004Room\022\016\n\002id" + + "\030\001 \001(\004B\0020\001\022\036\n\004type\030\002 \001(\0162\020.proto.Room.Ty" + + "pe\022\r\n\005title\030\003 \001(\t\022\020\n\010initials\030\004 \001(\t\022\r\n\005c", + "olor\030\005 \001(\t\022\024\n\014unread_count\030\006 \001(\r\022(\n\014last" + + "_message\030\007 \001(\0132\022.proto.RoomMessage\022\021\n\tre" + + "ad_only\030\010 \001(\010\022\026\n\016is_participant\030\t \001(\010\022\037\n" + + "\005draft\030\n \001(\0132\020.proto.RoomDraft\0220\n\024first_" + + "unread_message\030\016 \001(\0132\022.proto.RoomMessage" + + "\022\"\n\troom_mute\030\017 \001(\0162\017.proto.RoomMute\022\022\n\006" + + "pin_id\030\020 \001(\004B\0020\001\022*\n\016pinned_message\030\021 \001(\013" + + "2\022.proto.RoomMessage\022\020\n\010priority\030\022 \001(\r\022(" + + "\n\017chat_room_extra\030\013 \001(\0132\017.proto.ChatRoom" + + "\022*\n\020group_room_extra\030\014 \001(\0132\020.proto.Group", + "Room\022.\n\022channel_room_extra\030\r \001(\0132\022.proto" + + ".ChannelRoom\022\016\n\006app_id\030\023 \001(\r\022%\n\npermissi" + + "on\030\024 \001(\0132\021.proto.RoomAccess\"(\n\004Type\022\010\n\004C" + + "HAT\020\000\022\t\n\005GROUP\020\001\022\013\n\007CHANNEL\020\002\"P\n\010ChatRoo" + + "m\022#\n\004peer\030\001 \001(\0132\025.proto.RegisteredUser\022\037" + + "\n\007botInfo\030\002 \001(\0132\016.proto.BotInfo\"\247\005\n\tGrou" + + "pRoom\022#\n\004type\030\001 \001(\0162\025.proto.GroupRoom.Ty" + + "pe\022#\n\004role\030\002 \001(\0162\025.proto.GroupRoom.Role\022" + + "\032\n\022participants_count\030\003 \001(\r\022 \n\030participa" + + "nts_count_label\030\004 \001(\t\022 \n\030participants_co", + "unt_limit\030\005 \001(\r\022&\n\036participants_count_li" + + "mit_label\030\006 \001(\t\022\023\n\013description\030\007 \001(\t\022\024\n\014" + + "avatar_count\030\010 \001(\r\022\035\n\006avatar\030\t \001(\0132\r.pro" + + "to.Avatar\0224\n\rprivate_extra\030\n \001(\0132\035.proto" + + ".GroupRoom.PrivateExtra\0222\n\014public_extra\030" + + "\013 \001(\0132\034.proto.GroupRoom.PublicExtra\022@\n\013r" + + "oom_rights\030\014 \001(\0132+.proto.GroupChangeMemb" + + "erRights.MemberRights\022\022\n\nis_mention\030\r \001(" + + "\010\0329\n\014PrivateExtra\022\023\n\013invite_link\030\001 \001(\t\022\024" + + "\n\014invite_token\030\002 \001(\t\032\037\n\013PublicExtra\022\020\n\010u", + "sername\030\001 \001(\t\")\n\004Type\022\020\n\014PRIVATE_ROOM\020\000\022" + + "\017\n\013PUBLIC_ROOM\020\001\"7\n\004Role\022\n\n\006MEMBER\020\000\022\r\n\t" + + "MODERATOR\020\001\022\t\n\005ADMIN\020\002\022\t\n\005OWNER\020\003\"\344\004\n\013Ch" + + "annelRoom\022%\n\004type\030\001 \001(\0162\027.proto.ChannelR" + + "oom.Type\022%\n\004role\030\002 \001(\0162\027.proto.ChannelRo" + + "om.Role\022\032\n\022participants_count\030\003 \001(\r\022 \n\030p" + + "articipants_count_label\030\004 \001(\t\022\023\n\013descrip" + + "tion\030\005 \001(\t\022\024\n\014avatar_count\030\006 \001(\r\022\035\n\006avat" + + "ar\030\007 \001(\0132\r.proto.Avatar\0226\n\rprivate_extra" + + "\030\010 \001(\0132\037.proto.ChannelRoom.PrivateExtra\022", + "4\n\014public_extra\030\t \001(\0132\036.proto.ChannelRoo" + + "m.PublicExtra\022\021\n\tsignature\030\n \001(\010\022\023\n\007seen" + + "_id\030\013 \001(\004B\0020\001\022\020\n\010verified\030\014 \001(\010\022\027\n\017react" + + "ion_status\030\r \001(\010\0329\n\014PrivateExtra\022\023\n\013invi" + + "te_link\030\001 \001(\t\022\024\n\014invite_token\030\002 \001(\t\032\037\n\013P" + + "ublicExtra\022\020\n\010username\030\001 \001(\t\")\n\004Type\022\020\n\014" + + "PRIVATE_ROOM\020\000\022\017\n\013PUBLIC_ROOM\020\001\"7\n\004Role\022" + + "\n\n\006MEMBER\020\000\022\r\n\tMODERATOR\020\001\022\t\n\005ADMIN\020\002\022\t\n" + + "\005OWNER\020\003\"f\n\tThumbnail\022\014\n\004size\030\001 \001(\003\022\r\n\005w" + + "idth\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\022\020\n\010cache_id\030\004", + " \001(\t\022\014\n\004name\030\005 \001(\t\022\014\n\004mime\030\006 \001(\t\"\232\002\n\004Fil" + + "e\022\r\n\005token\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004size\030\003" + + " \001(\003\022)\n\017large_thumbnail\030\004 \001(\0132\020.proto.Th" + + "umbnail\022)\n\017small_thumbnail\030\005 \001(\0132\020.proto" + + ".Thumbnail\022,\n\022waveform_thumbnail\030\006 \001(\0132\020" + + ".proto.Thumbnail\022\r\n\005width\030\007 \001(\005\022\016\n\006heigh" + + "t\030\010 \001(\005\022\020\n\010duration\030\t \001(\001\022\020\n\010cache_id\030\n " + + "\001(\t\022\014\n\004mime\030\013 \001(\t\022\022\n\npublic_url\030\014 \001(\t\"u\n" + + "\021PostMessageRights\022\021\n\tsend_text\030\001 \001(\010\022\022\n" + + "\nsend_media\030\003 \001(\010\022\020\n\010send_gif\030\004 \001(\010\022\024\n\014s", + "end_sticker\030\005 \001(\010\022\021\n\tsend_link\030\006 \001(\010\"\246\002\n" + + "\nRoomAccess\022\023\n\013modify_room\030\001 \001(\010\022.\n\014post" + + "_message\030\002 \001(\0132\030.proto.PostMessageRights" + + "\022\024\n\014edit_message\030\003 \001(\010\022\026\n\016delete_message" + + "\030\004 \001(\010\022\023\n\013pin_message\030\005 \001(\010\022\022\n\nadd_membe" + + "r\030\006 \001(\010\022\022\n\nban_member\030\007 \001(\010\022\022\n\nget_membe" + + "r\030\010 \001(\010\022\021\n\tadd_admin\030\t \001(\010\022\021\n\tadd_story\030" + + "\n \001(\010\022\024\n\014delete_story\030\013 \001(\010\022\030\n\020show_stor" + + "y_views\030\014 \001(\010\"5\n\tWallpaper\022\031\n\004file\030\001 \001(\013" + + "2\013.proto.File\022\r\n\005color\030\002 \001(\t\"+\n\nPaginati", + "on\022\016\n\006offset\030\001 \001(\r\022\r\n\005limit\030\002 \001(\r\"Z\n\010Fav" + + "orite\022\014\n\004name\030\001 \001(\t\022\021\n\ttextcolor\030\002 \001(\t\022\017" + + "\n\007bgcolor\030\003 \001(\t\022\r\n\005value\030\004 \001(\t\022\r\n\005image\030" + + "\005 \001(\t\"\360\007\n\016DiscoveryField\022\020\n\010imageurl\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t\022:\n\nactiontype\030\003 \001(\0162&." + + "proto.DiscoveryField.ButtonActionType\022\017\n" + + "\007orderid\030\004 \001(\r\022\n\n\002id\030\005 \001(\r\022\r\n\005param\030\006 \001(" + + "\t\022\021\n\tagreement\030\007 \001(\010\022\017\n\007refresh\030\010 \001(\010\022\025\n" + + "\ragreementSlug\030\t \001(\t\"\231\006\n\020ButtonActionTyp" + + "e\022\010\n\004NONE\020\000\022\r\n\tJOIN_LINK\020\001\022\016\n\nBOT_ACTION", + "\020\002\022\021\n\rUSERNAME_LINK\020\003\022\014\n\010WEB_LINK\020\004\022\021\n\rW" + + "EB_VIEW_LINK\020\005\022\017\n\013STREAM_PLAY\020\006\022\021\n\rPAY_B" + + "Y_WALLET\020\007\022\016\n\nPAY_DIRECT\020\010\022\021\n\rREQUEST_PH" + + "ONE\020\t\022\024\n\020REQUEST_LOCATION\020\n\022\016\n\nSHOW_ALER" + + "T\020\013\022\010\n\004PAGE\020\014\022\022\n\016FINANCIAL_MENU\020\r\022\r\n\tBIL" + + "L_MENU\020\016\022\025\n\021TRAFFIC_BILL_MENU\020\017\022\024\n\020MOBIL" + + "E_BILL_MENU\020\020\022\023\n\017PHONE_BILL_MENU\020\021\022\016\n\nTO" + + "PUP_MENU\020\022\022\017\n\013WALLET_MENU\020\023\022\017\n\013NEARBY_ME" + + "NU\020\024\022\010\n\004CALL\020\025\022\020\n\014STICKER_SHOP\020\026\022\t\n\005IVAN" + + "D\020\027\022\013\n\007IVANDQR\020\030\022\r\n\tIVANDLIST\020\031\022\016\n\nIVAND", + "SCORE\020\032\022\020\n\014CARD_TO_CARD\020\033\022\024\n\020FAVORITE_CH" + + "ANNEL\020\034\022\t\n\005MUSIC\020\035\022\013\n\007CHARITY\020\036\022\017\n\013FUN_S" + + "ERVICE\020\037\022\021\n\rVIRTUAL_MONEY\020 \022\020\n\014CITY_SERV" + + "ICE\020!\022\010\n\004POLL\020\"\022\031\n\025INTERNET_PACKAGE_MENU" + + "\020#\022\025\n\021FINANCIAL_HISTORY\020$\022\021\n\rINVITE_FRIE" + + "ND\020%\022\010\n\004NEWS\020&\022\026\n\022ELECTRIC_BILL_MENU\020\'\022\016" + + "\n\nBLOCKCHAIN\020(\022\014\n\010PARSLAND\020)\022\017\n\013POLL_RES" + + "ULT\020*\022\025\n\021VIRTUAL_GIFT_CARD\020+\022\017\n\013NEWS_DET" + + "AIL\020,\022\t\n\005QRPAY\020-\"\223\002\n\tDiscovery\022.\n\005model\030" + + "\001 \001(\0162\037.proto.Discovery.DiscoveryModel\022\r", + "\n\005scale\030\002 \001(\t\022.\n\017discoveryfields\030\003 \003(\0132\025" + + ".proto.DiscoveryField\"\226\001\n\016DiscoveryModel" + + "\022\n\n\006MODEL1\020\000\022\n\n\006MODEL2\020\001\022\n\n\006MODEL3\020\002\022\n\n\006" + + "MODEL4\020\003\022\n\n\006MODEL5\020\004\022\n\n\006MODEL6\020\005\022\n\n\006MODE" + + "L7\020\006\022\n\n\006MODEL8\020\007\022\n\n\006MODEL9\020\010\022\013\n\007MODEL10\020" + + "\t\022\013\n\007MODEL11\020\n\"~\n\tPollField\022\020\n\010imageurl\030" + + "\001 \001(\t\022\017\n\007orderid\030\002 \001(\r\022\n\n\002id\030\003 \001(\r\022\017\n\007cl" + + "icked\030\004 \001(\010\022\017\n\003sum\030\005 \001(\004B\0020\001\022\021\n\tclickabl" + + "e\030\006 \001(\010\022\r\n\005label\030\007 \001(\t\"x\n\004Poll\022.\n\005model\030" + + "\001 \001(\0162\037.proto.Discovery.DiscoveryModel\022\r", + "\n\005scale\030\002 \001(\t\022\013\n\003max\030\003 \001(\r\022$\n\npollfields" + + "\030\004 \003(\0132\020.proto.PollField\";\n\rIVandActivit" + + "y\022\r\n\005title\030\001 \001(\t\022\r\n\005score\030\002 \001(\005\022\014\n\004time\030" + + "\003 \001(\r\"\236\002\n\007MplSale\022\032\n\016invoice_number\030\001 \001(" + + "\004B\0020\001\022\030\n\014from_user_id\030\002 \001(\004B\0020\001\022\022\n\006amoun" + + "t\030\003 \001(\004B\0020\001\022\024\n\014trace_number\030\004 \001(\003\022\020\n\010pay" + + "_time\030\005 \001(\r\022\023\n\013description\030\006 \001(\t\022\023\n\013card" + + "_number\030\007 \001(\t\022\013\n\003rrn\030\010 \001(\003\022%\n\006status\030\t \001" + + "(\0162\025.proto.MplSale.Status\"C\n\006Status\022\022\n\016P" + + "ENDING_VERIFY\020\000\022\013\n\007SUCCESS\020\001\022\n\n\006FAILED\020\002", + "\022\014\n\010REVERSED\020\003\"\227\013\n\016MplTransaction\022\024\n\010ord" + + "er_id\030\001 \001(\004B\0020\001\022\r\n\005token\030\002 \001(\t\022\020\n\010pay_ti" + + "me\030\003 \001(\r\022(\n\004type\030\004 \001(\0162\032.proto.MplTransa" + + "ction.Type\022(\n\004bill\030\005 \001(\0132\032.proto.MplTran" + + "saction.Bill\022*\n\005topup\030\006 \001(\0132\033.proto.MplT" + + "ransaction.Topup\022*\n\005sales\030\007 \001(\0132\033.proto." + + "MplTransaction.Sales\0224\n\ncardtocard\030\010 \001(\013" + + "2 .proto.MplTransaction.CardToCard\032\210\002\n\004B" + + "ill\022\016\n\006BillId\030\001 \001(\t\022\r\n\005PayId\030\002 \001(\t\022\020\n\010Bi" + + "llType\030\003 \001(\t\022\016\n\006Status\030\004 \001(\r\022\022\n\006Amount\030\005", + " \001(\004B\0020\001\022\022\n\nCardNumber\030\006 \001(\t\022\024\n\014Merchant" + + "Name\030\007 \001(\t\022\023\n\007OrderId\030\010 \001(\004B\0020\001\022\033\n\017Reque" + + "stDateTime\030\t \001(\004B\0020\001\022\017\n\003RRN\030\n \001(\004B\0020\001\022\031\n" + + "\021StatusDescription\030\013 \001(\t\022\022\n\nTerminalNo\030\014" + + " \001(\r\022\017\n\007TraceNo\030\r \001(\r\032\256\002\n\005Topup\022!\n\025Reque" + + "sterMobileNumber\030\001 \001(\004B\0020\001\022\036\n\022ChargeMobi" + + "leNumber\030\002 \001(\004B\0020\001\022\021\n\tTopupType\030\003 \001(\r\022\016\n" + + "\006Status\030\004 \001(\r\022\022\n\006Amount\030\005 \001(\004B\0020\001\022\022\n\nCar" + + "dNumber\030\006 \001(\t\022\024\n\014MerchantName\030\007 \001(\t\022\023\n\007O" + + "rderId\030\010 \001(\004B\0020\001\022\033\n\017RequestDateTime\030\t \001(", + "\004B\0020\001\022\017\n\003RRN\030\n \001(\004B\0020\001\022\031\n\021StatusDescript" + + "ion\030\013 \001(\t\022\022\n\nTerminalNo\030\014 \001(\r\022\017\n\007TraceNo" + + "\030\r \001(\r\032\330\001\n\005Sales\022\016\n\006Status\030\001 \001(\r\022\022\n\006Amou" + + "nt\030\002 \001(\004B\0020\001\022\022\n\nCardNumber\030\003 \001(\t\022\024\n\014Merc" + + "hantName\030\004 \001(\t\022\023\n\007OrderId\030\005 \001(\004B\0020\001\022\033\n\017R" + + "equestDateTime\030\006 \001(\004B\0020\001\022\017\n\003RRN\030\007 \001(\004B\0020" + + "\001\022\031\n\021StatusDescription\030\010 \001(\t\022\022\n\nTerminal" + + "No\030\t \001(\r\022\017\n\007TraceNo\030\n \001(\r\032\220\002\n\nCardToCard" + + "\022\016\n\006Status\030\001 \001(\r\022\022\n\006Amount\030\002 \001(\004B\0020\001\022\030\n\020" + + "SourceCardNumber\030\003 \001(\t\022\026\n\016DestCardNumber", + "\030\004 \001(\t\022\020\n\010BankName\030\005 \001(\t\022\024\n\014DestBankName" + + "\030\006 \001(\t\022\025\n\rCardOwnerName\030\007 \001(\t\022\023\n\007OrderId" + "\030\010 \001(\004B\0020\001\022\033\n\017RequestDateTime\030\t \001(\004B\0020\001\022" + "\017\n\003RRN\030\n \001(\004B\0020\001\022\031\n\021StatusDescription\030\013 " + - "\001(\t\022\022\n\nTerminalNo\030\014 \001(\r\022\017\n\007TraceNo\030\r \001(\r" + - "\032\330\001\n\005Sales\022\016\n\006Status\030\001 \001(\r\022\022\n\006Amount\030\002 \001" + - "(\004B\0020\001\022\022\n\nCardNumber\030\003 \001(\t\022\024\n\014MerchantNa" + - "me\030\004 \001(\t\022\023\n\007OrderId\030\005 \001(\004B\0020\001\022\033\n\017Request" + - "DateTime\030\006 \001(\004B\0020\001\022\017\n\003RRN\030\007 \001(\004B\0020\001\022\031\n\021S" + - "tatusDescription\030\010 \001(\t\022\022\n\nTerminalNo\030\t \001" + - "(\r\022\017\n\007TraceNo\030\n \001(\r\032\220\002\n\nCardToCard\022\016\n\006St" + - "atus\030\001 \001(\r\022\022\n\006Amount\030\002 \001(\004B\0020\001\022\030\n\020Source", - "CardNumber\030\003 \001(\t\022\026\n\016DestCardNumber\030\004 \001(\t" + - "\022\020\n\010BankName\030\005 \001(\t\022\024\n\014DestBankName\030\006 \001(\t" + - "\022\025\n\rCardOwnerName\030\007 \001(\t\022\023\n\007OrderId\030\010 \001(\004" + - "B\0020\001\022\033\n\017RequestDateTime\030\t \001(\004B\0020\001\022\017\n\003RRN" + - "\030\n \001(\004B\0020\001\022\031\n\021StatusDescription\030\013 \001(\t\022\017\n" + - "\007TraceNo\030\r \001(\r\"B\n\004Type\022\010\n\004NONE\020\000\022\010\n\004BILL" + - "\020\001\022\t\n\005TOPUP\020\002\022\t\n\005SALES\020\003\022\020\n\014CARD_TO_CARD" + - "\020\004*+\n\006Gender\022\013\n\007UNKNOWN\020\000\022\010\n\004MALE\020\001\022\n\n\006F" + - "EMALE\020\002*<\n\006Device\022\022\n\016UNKNOWN_DEVICE\020\000\022\006\n" + - "\002PC\020\001\022\n\n\006TABLET\020\002\022\n\n\006MOBILE\020\003*k\n\010Platfor", - "m\022\024\n\020UNKNOWN_PLATFORM\020\000\022\013\n\007ANDROID\020\001\022\007\n\003" + - "IOS\020\002\022\n\n\006MAC_OS\020\003\022\013\n\007WINDOWS\020\004\022\t\n\005LINUX\020" + - "\005\022\017\n\013BLACK_BERRY\020\006* \n\010Language\022\t\n\005EN_US\020" + - "\000\022\t\n\005FA_IR\020\001*\200\002\n\017RoomMessageType\022\010\n\004TEXT" + - "\020\000\022\t\n\005IMAGE\020\001\022\016\n\nIMAGE_TEXT\020\002\022\t\n\005VIDEO\020\003" + - "\022\016\n\nVIDEO_TEXT\020\004\022\t\n\005AUDIO\020\005\022\016\n\nAUDIO_TEX" + - "T\020\006\022\t\n\005VOICE\020\007\022\007\n\003GIF\020\010\022\014\n\010GIF_TEXT\020\016\022\010\n" + - "\004FILE\020\t\022\r\n\tFILE_TEXT\020\n\022\014\n\010LOCATION\020\013\022\007\n\003" + - "LOG\020\014\022\013\n\007CONTACT\020\r\022\n\n\006WALLET\020\017\022\013\n\007STICKE" + - "R\020\020\022\t\n\005STORY\020\021\022\017\n\013STORY_REPLY\020\022*]\n\021RoomM", - "essageStatus\022\n\n\006FAILED\020\000\022\013\n\007SENDING\020\001\022\010\n" + - "\004SENT\020\002\022\r\n\tDELIVERED\020\003\022\010\n\004SEEN\020\004\022\014\n\010LIST" + - "ENED\020\005*5\n\023RoomMessageReaction\022\r\n\tTHUMBS_" + - "UP\020\000\022\017\n\013THUMBS_DOWN\020\001* \n\nOriginator\022\010\n\004U" + - "SER\020\000\022\010\n\004ROOM\020\001*\244\002\n\014ClientAction\022\n\n\006CANC" + - "EL\020\000\022\n\n\006TYPING\020\001\022\021\n\rSENDING_IMAGE\020\002\022\023\n\017C" + - "APTURING_IMAGE\020\003\022\021\n\rSENDING_VIDEO\020\004\022\023\n\017C" + - "APTURING_VIDEO\020\005\022\021\n\rSENDING_AUDIO\020\006\022\023\n\017R" + - "ECORDING_VOICE\020\007\022\021\n\rSENDING_VOICE\020\010\022\024\n\020S" + - "ENDING_DOCUMENT\020\t\022\017\n\013SENDING_GIF\020\n\022\020\n\014SE", - "NDING_FILE\020\013\022\024\n\020SENDING_LOCATION\020\014\022\024\n\020CH" + - "OOSING_CONTACT\020\r\022\014\n\010PAINTING\020\016*b\n\010RoomTy" + - "pe\022\010\n\004CHAT\020\000\022\021\n\rPRIVATE_GROUP\020\001\022\020\n\014PUBLI" + - "C_GROUP\020\002\022\023\n\017PRIVATE_CHANNEL\020\003\022\022\n\016PUBLIC" + - "_CHANNEL\020\004* \n\010RoomMute\022\n\n\006UNMUTE\020\000\022\010\n\004MU" + - "TE\020\001*\233\001\n\013PrivacyType\022\017\n\013USER_STATUS\020\000\022\n\n" + - "\006AVATAR\020\001\022\020\n\014GROUP_INVITE\020\002\022\022\n\016CHANNEL_I" + - "NVITE\020\003\022\021\n\rVOICE_CALLING\020\004\022\021\n\rVIDEO_CALL" + - "ING\020\005\022\022\n\016SCREEN_SHARING\020\006\022\017\n\013SECRET_CHAT" + - "\020\007*?\n\014PrivacyLevel\022\r\n\tALLOW_ALL\020\000\022\014\n\010DEN", - "Y_ALL\020\001\022\022\n\016ALLOW_CONTACTS\020\002B\035\n\016net.iGap." + - "protoB\013ProtoGlobalb\006proto3" + "\001(\t\022\017\n\007TraceNo\030\r \001(\r\"B\n\004Type\022\010\n\004NONE\020\000\022\010" + + "\n\004BILL\020\001\022\t\n\005TOPUP\020\002\022\t\n\005SALES\020\003\022\020\n\014CARD_T" + + "O_CARD\020\004\"\201\001\n\007BotInfo\022\n\n\002id\030\001 \001(\004\022\026\n\016welc" + + "omeMessage\030\002 \001(\t\022)\n\007actions\030\003 \003(\0132\030.prot" + + "o.BotInfo.BotAction\032\'\n\tBotAction\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\007Mention\022\017\n\007userI", + "ds\030\001 \003(\004\"\372\002\n\022RoomMessageSticker\0227\n\004type\030" + + "\001 \001(\0162).proto.RoomMessageSticker.Sticker" + + "TypeEnum\022\017\n\007message\030\002 \001(\t\022\n\n\002id\030\003 \001(\t\022\014\n" + + "\004name\030\004 \001(\t\022\014\n\004path\030\005 \001(\t\022\r\n\005token\030\006 \001(\t" + + "\022\020\n\010group_id\030\007 \001(\t\022\021\n\tfile_name\030\010 \001(\t\022\021\n" + + "\tfile_size\030\t \001(\003\022\017\n\007gift_id\030\n \001(\t\022\023\n\013gif" + + "t_amount\030\013 \001(\003\022\023\n\013is_favorite\030\014 \001(\010\022\014\n\004s" + + "ort\030\r \001(\005\022\016\n\006ref_id\030\016 \001(\003\022\014\n\004tags\030\017 \003(\t\"" + + "D\n\017StickerTypeEnum\022\013\n\007STICKER\020\000\022\020\n\014GIFT_" + + "STICKER\020\001\022\022\n\016MOTION_STICKER\020\002\"\225\001\n\025RoomMe", + "ssageCardToCard\022\017\n\007message\030\001 \001(\t\022\r\n\005labe" + + "l\030\002 \001(\t\022\021\n\timage_url\030\003 \001(\t\022\023\n\013action_typ" + + "e\030\004 \001(\t\022\023\n\013card_number\030\005 \001(\t\022\016\n\006amount\030\006" + + " \001(\003\022\017\n\007user_id\030\007 \001(\003\"\316\004\n\024RoomMessageBot" + + "Action\0229\n\006action\030\001 \001(\0162).proto.RoomMessa" + + "geBotAction.BotActionEnum\022\r\n\005label\030\002 \001(\t" + + "\022\r\n\005value\030\003 \001(\t\"\334\003\n\rBotActionEnum\022\010\n\004NON" + + "E\020\000\022\r\n\tJOIN_LINK\020\001\022\016\n\nBOT_ACTION\020\002\022\021\n\rUS" + + "ERNAME_LINK\020\003\022\014\n\010WEB_LINK\020\004\022\020\n\014WEBVIEW_L" + + "INK\020\005\022\017\n\013STREAM_PLAY\020\006\022\021\n\rPAY_BY_WALLET\020", + "\007\022\016\n\nPAY_DIRECT\020\010\022\021\n\rREQUEST_PHONE\020\t\022\024\n\020" + + "REQUEST_LOCATION\020\n\022\016\n\nSHOW_ALERT\020\013\022\010\n\004PA" + + "GE\020\014\022\022\n\016FINANCIAL_MENU\020\r\022\r\n\tBILL_MENU\020\016\022" + + "\025\n\021TRAFFIC_BILL_MENU\020\017\022\024\n\020MOBILE_BILL_ME" + + "NU\020\020\022\023\n\017PHONE_BILL_MENU\020\021\022\016\n\nTOPUP_MENU\020" + + "\022\022\017\n\013WALLET_MENU\020\023\022\017\n\013NEARBY_MENU\020\024\022\010\n\004C" + + "ALL\020\025\022\020\n\014STICKER_SHOP\020\026\022\010\n\004IVAN\020\027\022\n\n\006IVA" + + "NQR\020\030\022\r\n\tIVANDLIST\020\031\022\016\n\nIVANDSCORE\020\032\022\020\n\014" + + "CARD_TO_CARD\020\033\"H\n\030RoomMessageBotActionLi" + + "st\022,\n\007actions\030\001 \003(\0132\033.proto.RoomMessageB", + "otAction\"\334\003\n\tTextSigns\022,\n\ttext_sign\030\001 \003(" + + "\0132\031.proto.TextSigns.TextSign\032\240\003\n\010TextSig" + + "n\022,\n\004type\030\001 \001(\0162\036.proto.TextSigns.TextSi" + + "gn.Type\022\023\n\013start_index\030\002 \001(\005\022\021\n\tend_inde" + + "x\030\003 \001(\005\022\014\n\004link\030\004 \001(\t\022\017\n\007user_id\030\005 \001(\003\"\236" + + "\002\n\004Type\022\013\n\007UNKNOWN\020\000\022\022\n\016IGAP_DEEP_LINK\020\001" + + "\022\r\n\tIGAP_LINK\020\002\022\014\n\010WEB_LINK\020\003\022\017\n\013BOT_COM" + + "MAND\020\004\022\020\n\014IGAP_RESOLVE\020\005\022\016\n\nDIGIT_LINK\020\006" + + "\022\013\n\007MENTION\020\007\022\013\n\007HASHTAG\020\010\022\010\n\004BOLD\020\t\022\n\n\006" + + "ITALIC\020\n\022\r\n\tUNDERLINE\020\013\022\n\n\006STRIKE\020\014\022\013\n\007S", + "POILER\020\r\022\t\n\005EMAIL\020\016\022\t\n\005PHONE\020\017\022\r\n\tBANK_C" + + "ARD\020\020\022\014\n\010TEXT_URL\020\021\022\010\n\004CODE\020\022\022\020\n\014MENTION" + + "_NAME\020\023*+\n\006Gender\022\013\n\007UNKNOWN\020\000\022\010\n\004MALE\020\001" + + "\022\n\n\006FEMALE\020\002*<\n\006Device\022\022\n\016UNKNOWN_DEVICE" + + "\020\000\022\006\n\002PC\020\001\022\n\n\006TABLET\020\002\022\n\n\006MOBILE\020\003*k\n\010Pl" + + "atform\022\024\n\020UNKNOWN_PLATFORM\020\000\022\013\n\007ANDROID\020" + + "\001\022\007\n\003IOS\020\002\022\n\n\006MAC_OS\020\003\022\013\n\007WINDOWS\020\004\022\t\n\005L" + + "INUX\020\005\022\017\n\013BLACK_BERRY\020\006* \n\010Language\022\t\n\005E" + + "N_US\020\000\022\t\n\005FA_IR\020\001*\233\002\n\017RoomMessageType\022\010\n" + + "\004TEXT\020\000\022\t\n\005IMAGE\020\001\022\016\n\nIMAGE_TEXT\020\002\022\t\n\005VI", + "DEO\020\003\022\016\n\nVIDEO_TEXT\020\004\022\t\n\005AUDIO\020\005\022\016\n\nAUDI" + + "O_TEXT\020\006\022\t\n\005VOICE\020\007\022\007\n\003GIF\020\010\022\014\n\010GIF_TEXT" + + "\020\016\022\010\n\004FILE\020\t\022\r\n\tFILE_TEXT\020\n\022\014\n\010LOCATION\020" + + "\013\022\007\n\003LOG\020\014\022\013\n\007CONTACT\020\r\022\n\n\006WALLET\020\017\022\013\n\007S" + + "TICKER\020\020\022\t\n\005STORY\020\021\022\017\n\013STORY_REPLY\020\022\022\020\n\014" + + "CARD_TO_CARD\020\023\022\007\n\003BOT\020\024*]\n\021RoomMessageSt" + + "atus\022\n\n\006FAILED\020\000\022\013\n\007SENDING\020\001\022\010\n\004SENT\020\002\022" + + "\r\n\tDELIVERED\020\003\022\010\n\004SEEN\020\004\022\014\n\010LISTENED\020\005*5" + + "\n\023RoomMessageReaction\022\r\n\tTHUMBS_UP\020\000\022\017\n\013" + + "THUMBS_DOWN\020\001*\261\001\n\nSearchType\022\024\n\020SEARCH_A", + "LL_TYPES\020\000\022\020\n\014SEARCH_IMAGE\020\001\022\020\n\014SEARCH_V" + + "IDEO\020\002\022\020\n\014SEARCH_AUDIO\020\003\022\017\n\013SEARCH_FILE\020" + + "\004\022\020\n\014SEARCH_VOICE\020\005\022\016\n\nSEARCH_GIF\020\006\022\022\n\016S" + + "EARCH_CONTACT\020\007\022\020\n\014SEARCH_MEDIA\020\010* \n\nOri" + + "ginator\022\010\n\004USER\020\000\022\010\n\004ROOM\020\001*\244\002\n\014ClientAc" + + "tion\022\n\n\006CANCEL\020\000\022\n\n\006TYPING\020\001\022\021\n\rSENDING_" + + "IMAGE\020\002\022\023\n\017CAPTURING_IMAGE\020\003\022\021\n\rSENDING_" + + "VIDEO\020\004\022\023\n\017CAPTURING_VIDEO\020\005\022\021\n\rSENDING_" + + "AUDIO\020\006\022\023\n\017RECORDING_VOICE\020\007\022\021\n\rSENDING_" + + "VOICE\020\010\022\024\n\020SENDING_DOCUMENT\020\t\022\017\n\013SENDING", + "_GIF\020\n\022\020\n\014SENDING_FILE\020\013\022\024\n\020SENDING_LOCA" + + "TION\020\014\022\024\n\020CHOOSING_CONTACT\020\r\022\014\n\010PAINTING" + + "\020\016*b\n\010RoomType\022\010\n\004CHAT\020\000\022\021\n\rPRIVATE_GROU" + + "P\020\001\022\020\n\014PUBLIC_GROUP\020\002\022\023\n\017PRIVATE_CHANNEL" + + "\020\003\022\022\n\016PUBLIC_CHANNEL\020\004* \n\010RoomMute\022\n\n\006UN" + + "MUTE\020\000\022\010\n\004MUTE\020\001*\233\001\n\013PrivacyType\022\017\n\013USER" + + "_STATUS\020\000\022\n\n\006AVATAR\020\001\022\020\n\014GROUP_INVITE\020\002\022" + + "\022\n\016CHANNEL_INVITE\020\003\022\021\n\rVOICE_CALLING\020\004\022\021" + + "\n\rVIDEO_CALLING\020\005\022\022\n\016SCREEN_SHARING\020\006\022\017\n" + + "\013SECRET_CHAT\020\007*?\n\014PrivacyLevel\022\r\n\tALLOW_", + "ALL\020\000\022\014\n\010DENY_ALL\020\001\022\022\n\016ALLOW_CONTACTS\020\002B" + + "\035\n\016net.iGap.protoB\013ProtoGlobalb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -59406,7 +70787,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_RegisteredUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_RegisteredUser_descriptor, - new java.lang.String[] { "Id", "Username", "Phone", "FirstName", "LastName", "DisplayName", "Initials", "Color", "Status", "LastSeen", "AvatarCount", "Avatar", "Mutual", "Deleted", "CacheId", "Bio", "Verified", "Bot", }); + new java.lang.String[] { "Id", "Username", "Phone", "FirstName", "LastName", "DisplayName", "Initials", "Color", "Status", "LastSeen", "AvatarCount", "Avatar", "Mutual", "Deleted", "CacheId", "Bio", "Verified", "Bot", "MxbEnable", }); internal_static_proto_Avatar_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_proto_Avatar_fieldAccessorTable = new @@ -59418,7 +70799,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_RoomMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_RoomMessage_descriptor, - new java.lang.String[] { "RoomId", "MessageId", "MessageVersion", "Status", "StatusVersion", "MessageType", "Message", "Attachment", "Author", "Location", "Log", "Contact", "Wallet", "Edited", "CreateTime", "UpdateTime", "Deleted", "ForwardFrom", "ReplyTo", "Story", "PreviousMessageId", "RandomId", "AdditionalType", "AdditionalData", "ExtraType", "ChannelExtra", "DocumentId", "VersionDocumentId", }); + new java.lang.String[] { "RoomId", "MessageId", "MessageVersion", "Status", "StatusVersion", "MessageType", "Message", "Attachment", "Author", "Location", "Log", "Contact", "Wallet", "Edited", "CreateTime", "UpdateTime", "Deleted", "ForwardFrom", "ReplyTo", "Story", "PreviousMessageId", "RandomId", "AdditionalType", "AdditionalData", "ExtraType", "ChannelExtra", "DocumentId", "VersionDocumentId", "GroupExtra", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); internal_static_proto_RoomMessage_Author_descriptor = internal_static_proto_RoomMessage_descriptor.getNestedTypes().get(0); internal_static_proto_RoomMessage_Author_fieldAccessorTable = new @@ -59443,6 +70824,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_RoomMessage_ChannelExtra_descriptor, new java.lang.String[] { "Signature", "ViewsLabel", "ThumbsUpLabel", "ThumbsDownLabel", }); + internal_static_proto_RoomMessage_GroupExtra_descriptor = + internal_static_proto_RoomMessage_descriptor.getNestedTypes().get(2); + internal_static_proto_RoomMessage_GroupExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessage_GroupExtra_descriptor, + new java.lang.String[] { "Mentions", }); internal_static_proto_RoomDraft_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_proto_RoomDraft_fieldAccessorTable = new @@ -59460,13 +70847,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_ChatRoom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ChatRoom_descriptor, - new java.lang.String[] { "Peer", }); + new java.lang.String[] { "Peer", "BotInfo", }); internal_static_proto_GroupRoom_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_proto_GroupRoom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupRoom_descriptor, - new java.lang.String[] { "Type", "Role", "ParticipantsCount", "ParticipantsCountLabel", "ParticipantsCountLimit", "ParticipantsCountLimitLabel", "Description", "AvatarCount", "Avatar", "PrivateExtra", "PublicExtra", "RoomRights", }); + new java.lang.String[] { "Type", "Role", "ParticipantsCount", "ParticipantsCountLabel", "ParticipantsCountLimit", "ParticipantsCountLimitLabel", "Description", "AvatarCount", "Avatar", "PrivateExtra", "PublicExtra", "RoomRights", "IsMention", }); internal_static_proto_GroupRoom_PrivateExtra_descriptor = internal_static_proto_GroupRoom_descriptor.getNestedTypes().get(0); internal_static_proto_GroupRoom_PrivateExtra_fieldAccessorTable = new @@ -59605,6 +70992,60 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_MplTransaction_CardToCard_descriptor, new java.lang.String[] { "Status", "Amount", "SourceCardNumber", "DestCardNumber", "BankName", "DestBankName", "CardOwnerName", "OrderId", "RequestDateTime", "RRN", "StatusDescription", "TraceNo", }); + internal_static_proto_BotInfo_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_proto_BotInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BotInfo_descriptor, + new java.lang.String[] { "Id", "WelcomeMessage", "Actions", }); + internal_static_proto_BotInfo_BotAction_descriptor = + internal_static_proto_BotInfo_descriptor.getNestedTypes().get(0); + internal_static_proto_BotInfo_BotAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_BotInfo_BotAction_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_proto_Mention_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_proto_Mention_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Mention_descriptor, + new java.lang.String[] { "UserIds", }); + internal_static_proto_RoomMessageSticker_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_proto_RoomMessageSticker_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageSticker_descriptor, + new java.lang.String[] { "Type", "Message", "Id", "Name", "Path", "Token", "GroupId", "FileName", "FileSize", "GiftId", "GiftAmount", "IsFavorite", "Sort", "RefId", "Tags", }); + internal_static_proto_RoomMessageCardToCard_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_proto_RoomMessageCardToCard_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageCardToCard_descriptor, + new java.lang.String[] { "Message", "Label", "ImageUrl", "ActionType", "CardNumber", "Amount", "UserId", }); + internal_static_proto_RoomMessageBotAction_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_proto_RoomMessageBotAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageBotAction_descriptor, + new java.lang.String[] { "Action", "Label", "Value", }); + internal_static_proto_RoomMessageBotActionList_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_proto_RoomMessageBotActionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RoomMessageBotActionList_descriptor, + new java.lang.String[] { "Actions", }); + internal_static_proto_TextSigns_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_proto_TextSigns_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_TextSigns_descriptor, + new java.lang.String[] { "TextSign", }); + internal_static_proto_TextSigns_TextSign_descriptor = + internal_static_proto_TextSigns_descriptor.getNestedTypes().get(0); + internal_static_proto_TextSigns_TextSign_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_TextSigns_TextSign_descriptor, + new java.lang.String[] { "Type", "StartIndex", "EndIndex", "Link", "UserId", }); net.iGap.proto.ProtoGroupChangeMemberRights.getDescriptor(); } diff --git a/src/main/java/net/iGap/proto/ProtoGroupAddMember.java b/src/main/java/net/iGap/proto/ProtoGroupAddMember.java index cb6ead1..a4de056 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupAddMember.java +++ b/src/main/java/net/iGap/proto/ProtoGroupAddMember.java @@ -156,6 +156,11 @@ public interface MemberOrBuilder extends * optional uint64 start_message_id = 2; */ long getStartMessageId(); + + /** + * optional uint64 start_document_id = 3; + */ + long getStartDocumentId(); } /** * Protobuf type {@code proto.GroupAddMember.Member} @@ -171,6 +176,7 @@ private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Member() { userId_ = 0L; startMessageId_ = 0L; + startDocumentId_ = 0L; } @java.lang.Override @@ -208,6 +214,11 @@ private Member( startMessageId_ = input.readUInt64(); break; } + case 24: { + + startDocumentId_ = input.readUInt64(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -249,6 +260,15 @@ public long getStartMessageId() { return startMessageId_; } + public static final int START_DOCUMENT_ID_FIELD_NUMBER = 3; + private long startDocumentId_; + /** + * optional uint64 start_document_id = 3; + */ + public long getStartDocumentId() { + return startDocumentId_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,6 +287,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (startMessageId_ != 0L) { output.writeUInt64(2, startMessageId_); } + if (startDocumentId_ != 0L) { + output.writeUInt64(3, startDocumentId_); + } } public int getSerializedSize() { @@ -282,6 +305,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startMessageId_); } + if (startDocumentId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, startDocumentId_); + } memoizedSize = size; return size; } @@ -302,6 +329,8 @@ public boolean equals(final java.lang.Object obj) { == other.getUserId()); result = result && (getStartMessageId() == other.getStartMessageId()); + result = result && (getStartDocumentId() + == other.getStartDocumentId()); return result; } @@ -318,6 +347,9 @@ public int hashCode() { hash = (37 * hash) + START_MESSAGE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartMessageId()); + hash = (37 * hash) + START_DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartDocumentId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -440,6 +472,8 @@ public Builder clear() { startMessageId_ = 0L; + startDocumentId_ = 0L; + return this; } @@ -464,6 +498,7 @@ public net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member buildPartial() { net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member result = new net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Member(this); result.userId_ = userId_; result.startMessageId_ = startMessageId_; + result.startDocumentId_ = startDocumentId_; onBuilt(); return result; } @@ -511,6 +546,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoGroupAddMember.GroupAddMember.Membe if (other.getStartMessageId() != 0L) { setStartMessageId(other.getStartMessageId()); } + if (other.getStartDocumentId() != 0L) { + setStartDocumentId(other.getStartDocumentId()); + } onChanged(); return this; } @@ -588,6 +626,32 @@ public Builder clearStartMessageId() { onChanged(); return this; } + + private long startDocumentId_ ; + /** + * optional uint64 start_document_id = 3; + */ + public long getStartDocumentId() { + return startDocumentId_; + } + /** + * optional uint64 start_document_id = 3; + */ + public Builder setStartDocumentId(long value) { + + startDocumentId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 start_document_id = 3; + */ + public Builder clearStartDocumentId() { + + startDocumentId_ = 0L; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -2131,16 +2195,17 @@ public net.iGap.proto.ProtoGroupAddMember.GroupAddMemberResponse getDefaultInsta static { java.lang.String[] descriptorData = { "\n\024GroupAddMember.proto\022\005proto\032\rRequest.p" + - "roto\032\016Response.proto\032\014Global.proto\"\245\001\n\016G" + + "roto\032\016Response.proto\032\014Global.proto\"\300\001\n\016G" + "roupAddMember\022\037\n\007request\030\001 \001(\0132\016.proto.R" + "equest\022\017\n\007room_id\030\002 \001(\004\022,\n\006member\030\003 \001(\0132" + - "\034.proto.GroupAddMember.Member\0323\n\006Member\022" + + "\034.proto.GroupAddMember.Member\032N\n\006Member\022" + "\017\n\007user_id\030\001 \001(\004\022\030\n\020start_message_id\030\002 \001" + - "(\004\"\202\001\n\026GroupAddMemberResponse\022!\n\010respons" + - "e\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(" + - "\004\022\017\n\007user_id\030\003 \001(\004\022#\n\004role\030\004 \001(\0162\025.proto" + - ".GroupRoom.RoleB%\n\016net.iGap.protoB\023Proto", - "GroupAddMemberb\006proto3" + "(\004\022\031\n\021start_document_id\030\003 \001(\004\"\202\001\n\026GroupA" + + "ddMemberResponse\022!\n\010response\030\001 \001(\0132\017.pro" + + "to.Response\022\017\n\007room_id\030\002 \001(\004\022\017\n\007user_id\030" + + "\003 \001(\004\022#\n\004role\030\004 \001(\0162\025.proto.GroupRoom.Ro", + "leB%\n\016net.iGap.protoB\023ProtoGroupAddMembe" + + "rb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2168,7 +2233,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_GroupAddMember_Member_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupAddMember_Member_descriptor, - new java.lang.String[] { "UserId", "StartMessageId", }); + new java.lang.String[] { "UserId", "StartMessageId", "StartDocumentId", }); internal_static_proto_GroupAddMemberResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_GroupAddMemberResponse_fieldAccessorTable = new diff --git a/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java b/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java index 37d7609..0c152fa 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupClearMessage.java @@ -37,9 +37,14 @@ public interface GroupClearMessageOrBuilder extends long getRoomId(); /** - * optional uint64 clear_id = 3; + * optional uint64 clear_message_id = 3; */ - long getClearId(); + long getClearMessageId(); + + /** + * optional uint64 clear_document_id = 4; + */ + long getClearDocumentId(); } /** * Protobuf type {@code proto.GroupClearMessage} @@ -54,7 +59,8 @@ private GroupClearMessage(com.google.protobuf.GeneratedMessageV3.Builder buil } private GroupClearMessage() { roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + clearDocumentId_ = 0L; } @java.lang.Override @@ -102,7 +108,12 @@ private GroupClearMessage( } case 24: { - clearId_ = input.readUInt64(); + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); break; } } @@ -158,13 +169,22 @@ public long getRoomId() { return roomId_; } - public static final int CLEAR_ID_FIELD_NUMBER = 3; - private long clearId_; + public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; + private long clearMessageId_; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + + public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; + private long clearDocumentId_; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } private byte memoizedIsInitialized = -1; @@ -185,8 +205,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (clearId_ != 0L) { - output.writeUInt64(3, clearId_); + if (clearMessageId_ != 0L) { + output.writeUInt64(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { + output.writeUInt64(4, clearDocumentId_); } } @@ -203,9 +226,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (clearId_ != 0L) { + if (clearMessageId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, clearId_); + .computeUInt64Size(4, clearDocumentId_); } memoizedSize = size; return size; @@ -230,8 +257,10 @@ public boolean equals(final java.lang.Object obj) { } result = result && (getRoomId() == other.getRoomId()); - result = result && (getClearId() - == other.getClearId()); + result = result && (getClearMessageId() + == other.getClearMessageId()); + result = result && (getClearDocumentId() + == other.getClearDocumentId()); return result; } @@ -249,9 +278,12 @@ public int hashCode() { hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRoomId()); - hash = (37 * hash) + CLEAR_ID_FIELD_NUMBER; + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClearId()); + getClearDocumentId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -378,7 +410,9 @@ public Builder clear() { } roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + + clearDocumentId_ = 0L; return this; } @@ -408,7 +442,8 @@ public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage buildPartial() { result.request_ = requestBuilder_.build(); } result.roomId_ = roomId_; - result.clearId_ = clearId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; onBuilt(); return result; } @@ -456,8 +491,11 @@ public Builder mergeFrom(net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage if (other.getRoomId() != 0L) { setRoomId(other.getRoomId()); } - if (other.getClearId() != 0L) { - setClearId(other.getClearId()); + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); } onChanged(); return this; @@ -628,28 +666,54 @@ public Builder clearRoomId() { return this; } - private long clearId_ ; + private long clearMessageId_ ; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder setClearMessageId(long value) { + + clearMessageId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder clearClearMessageId() { + + clearMessageId_ = 0L; + onChanged(); + return this; + } + + private long clearDocumentId_ ; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder setClearId(long value) { + public Builder setClearDocumentId(long value) { - clearId_ = value; + clearDocumentId_ = value; onChanged(); return this; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder clearClearId() { + public Builder clearClearDocumentId() { - clearId_ = 0L; + clearDocumentId_ = 0L; onChanged(); return this; } @@ -725,9 +789,14 @@ public interface GroupClearMessageResponseOrBuilder extends long getRoomId(); /** - * optional uint64 clear_id = 3; + * optional uint64 clear_message_id = 3; */ - long getClearId(); + long getClearMessageId(); + + /** + * optional uint64 clear_document_id = 4; + */ + long getClearDocumentId(); } /** * Protobuf type {@code proto.GroupClearMessageResponse} @@ -742,7 +811,8 @@ private GroupClearMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder } private GroupClearMessageResponse() { roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + clearDocumentId_ = 0L; } @java.lang.Override @@ -790,7 +860,12 @@ private GroupClearMessageResponse( } case 24: { - clearId_ = input.readUInt64(); + clearMessageId_ = input.readUInt64(); + break; + } + case 32: { + + clearDocumentId_ = input.readUInt64(); break; } } @@ -846,13 +921,22 @@ public long getRoomId() { return roomId_; } - public static final int CLEAR_ID_FIELD_NUMBER = 3; - private long clearId_; + public static final int CLEAR_MESSAGE_ID_FIELD_NUMBER = 3; + private long clearMessageId_; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + + public static final int CLEAR_DOCUMENT_ID_FIELD_NUMBER = 4; + private long clearDocumentId_; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } private byte memoizedIsInitialized = -1; @@ -873,8 +957,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (roomId_ != 0L) { output.writeUInt64(2, roomId_); } - if (clearId_ != 0L) { - output.writeUInt64(3, clearId_); + if (clearMessageId_ != 0L) { + output.writeUInt64(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { + output.writeUInt64(4, clearDocumentId_); } } @@ -891,9 +978,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, roomId_); } - if (clearId_ != 0L) { + if (clearMessageId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, clearMessageId_); + } + if (clearDocumentId_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, clearId_); + .computeUInt64Size(4, clearDocumentId_); } memoizedSize = size; return size; @@ -918,8 +1009,10 @@ public boolean equals(final java.lang.Object obj) { } result = result && (getRoomId() == other.getRoomId()); - result = result && (getClearId() - == other.getClearId()); + result = result && (getClearMessageId() + == other.getClearMessageId()); + result = result && (getClearDocumentId() + == other.getClearDocumentId()); return result; } @@ -937,9 +1030,12 @@ public int hashCode() { hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRoomId()); - hash = (37 * hash) + CLEAR_ID_FIELD_NUMBER; + hash = (37 * hash) + CLEAR_MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClearMessageId()); + hash = (37 * hash) + CLEAR_DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClearId()); + getClearDocumentId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1066,7 +1162,9 @@ public Builder clear() { } roomId_ = 0L; - clearId_ = 0L; + clearMessageId_ = 0L; + + clearDocumentId_ = 0L; return this; } @@ -1096,7 +1194,8 @@ public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse buildPart result.response_ = responseBuilder_.build(); } result.roomId_ = roomId_; - result.clearId_ = clearId_; + result.clearMessageId_ = clearMessageId_; + result.clearDocumentId_ = clearDocumentId_; onBuilt(); return result; } @@ -1144,8 +1243,11 @@ public Builder mergeFrom(net.iGap.proto.ProtoGroupClearMessage.GroupClearMessage if (other.getRoomId() != 0L) { setRoomId(other.getRoomId()); } - if (other.getClearId() != 0L) { - setClearId(other.getClearId()); + if (other.getClearMessageId() != 0L) { + setClearMessageId(other.getClearMessageId()); + } + if (other.getClearDocumentId() != 0L) { + setClearDocumentId(other.getClearDocumentId()); } onChanged(); return this; @@ -1316,28 +1418,54 @@ public Builder clearRoomId() { return this; } - private long clearId_ ; + private long clearMessageId_ ; + /** + * optional uint64 clear_message_id = 3; + */ + public long getClearMessageId() { + return clearMessageId_; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder setClearMessageId(long value) { + + clearMessageId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 clear_message_id = 3; + */ + public Builder clearClearMessageId() { + + clearMessageId_ = 0L; + onChanged(); + return this; + } + + private long clearDocumentId_ ; /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public long getClearId() { - return clearId_; + public long getClearDocumentId() { + return clearDocumentId_; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder setClearId(long value) { + public Builder setClearDocumentId(long value) { - clearId_ = value; + clearDocumentId_ = value; onChanged(); return this; } /** - * optional uint64 clear_id = 3; + * optional uint64 clear_document_id = 4; */ - public Builder clearClearId() { + public Builder clearClearDocumentId() { - clearId_ = 0L; + clearDocumentId_ = 0L; onChanged(); return this; } @@ -1410,13 +1538,15 @@ public net.iGap.proto.ProtoGroupClearMessage.GroupClearMessageResponse getDefaul static { java.lang.String[] descriptorData = { "\n\027GroupClearMessage.proto\022\005proto\032\rReques" + - "t.proto\032\016Response.proto\"W\n\021GroupClearMes" + + "t.proto\032\016Response.proto\"z\n\021GroupClearMes" + "sage\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + - "\007room_id\030\002 \001(\004\022\020\n\010clear_id\030\003 \001(\004\"a\n\031Grou" + - "pClearMessageResponse\022!\n\010response\030\001 \001(\0132" + - "\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\020\n\010cle" + - "ar_id\030\003 \001(\004B(\n\016net.iGap.protoB\026ProtoGrou" + - "pClearMessageb\006proto3" + "\007room_id\030\002 \001(\004\022\030\n\020clear_message_id\030\003 \001(\004" + + "\022\031\n\021clear_document_id\030\004 \001(\004\"\204\001\n\031GroupCle" + + "arMessageResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\017\n\007room_id\030\002 \001(\004\022\030\n\020clear_m" + + "essage_id\030\003 \001(\004\022\031\n\021clear_document_id\030\004 \001" + + "(\004B(\n\016net.iGap.protoB\026ProtoGroupClearMes" + + "sageb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1437,13 +1567,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_GroupClearMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupClearMessage_descriptor, - new java.lang.String[] { "Request", "RoomId", "ClearId", }); + new java.lang.String[] { "Request", "RoomId", "ClearMessageId", "ClearDocumentId", }); internal_static_proto_GroupClearMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_GroupClearMessageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupClearMessageResponse_descriptor, - new java.lang.String[] { "Response", "RoomId", "ClearId", }); + new java.lang.String[] { "Response", "RoomId", "ClearMessageId", "ClearDocumentId", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); } diff --git a/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java b/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java index 45de0e7..cb7ef81 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupEditMessage.java @@ -55,6 +55,32 @@ public interface GroupEditMessageOrBuilder extends * optional uint64 document_id = 5; */ long getDocumentId(); + + /** + * optional .proto.TextSigns text_signs = 6; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 6; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); + + /** + * optional .proto.Mention mentions = 7; + */ + boolean hasMentions(); + /** + * optional .proto.Mention mentions = 7; + */ + net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * optional .proto.Mention mentions = 7; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); } /** * Protobuf type {@code proto.GroupEditMessage} @@ -133,6 +159,32 @@ private GroupEditMessage( documentId_ = input.readUInt64(); break; } + case 50: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -238,6 +290,48 @@ public long getDocumentId() { return documentId_; } + public static final int TEXT_SIGNS_FIELD_NUMBER = 6; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 6; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + + public static final int MENTIONS_FIELD_NUMBER = 7; + private net.iGap.proto.ProtoGlobal.Mention mentions_; + /** + * optional .proto.Mention mentions = 7; + */ + public boolean hasMentions() { + return mentions_ != null; + } + /** + * optional .proto.Mention mentions = 7; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + /** + * optional .proto.Mention mentions = 7; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,6 +359,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(5, documentId_); } + if (textSigns_ != null) { + output.writeMessage(6, getTextSigns()); + } + if (mentions_ != null) { + output.writeMessage(7, getMentions()); + } } public int getSerializedSize() { @@ -291,6 +391,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, documentId_); } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTextSigns()); + } + if (mentions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getMentions()); + } memoizedSize = size; return size; } @@ -320,6 +428,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getMessage()); result = result && (getDocumentId() == other.getDocumentId()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } + result = result && (hasMentions() == other.hasMentions()); + if (hasMentions()) { + result = result && getMentions() + .equals(other.getMentions()); + } return result; } @@ -345,6 +463,14 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -477,6 +603,18 @@ public Builder clear() { documentId_ = 0L; + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } return this; } @@ -508,6 +646,16 @@ public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage buildPartial() { result.messageId_ = messageId_; result.message_ = message_; result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } onBuilt(); return result; } @@ -565,6 +713,12 @@ public Builder mergeFrom(net.iGap.proto.ProtoGroupEditMessage.GroupEditMessage o if (other.getDocumentId() != 0L) { setDocumentId(other.getDocumentId()); } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } onChanged(); return this; } @@ -854,6 +1008,240 @@ public Builder clearDocumentId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 6; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } + + private net.iGap.proto.ProtoGlobal.Mention mentions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; + /** + * optional .proto.Mention mentions = 7; + */ + public boolean hasMentions() { + return mentionsBuilder_ != null || mentions_ != null; + } + /** + * optional .proto.Mention mentions = 7; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } + } + /** + * optional .proto.Mention mentions = 7; + */ + public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 7; + */ + public Builder setMentions( + net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Mention mentions = 7; + */ + public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 7; + */ + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Mention mentions = 7; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * optional .proto.Mention mentions = 7; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + } + /** + * optional .proto.Mention mentions = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; + } + return mentionsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -958,6 +1346,32 @@ public interface GroupEditMessageResponseOrBuilder extends * optional uint64 document_id = 7; */ long getDocumentId(); + + /** + * optional .proto.TextSigns text_signs = 8; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 8; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); + + /** + * optional .proto.Mention mentions = 9; + */ + boolean hasMentions(); + /** + * optional .proto.Mention mentions = 9; + */ + net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * optional .proto.Mention mentions = 9; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); } /** * Protobuf type {@code proto.GroupEditMessageResponse} @@ -1049,6 +1463,32 @@ private GroupEditMessageResponse( documentId_ = input.readUInt64(); break; } + case 66: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1179,6 +1619,48 @@ public long getDocumentId() { return documentId_; } + public static final int TEXT_SIGNS_FIELD_NUMBER = 8; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 8; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); + } + + public static final int MENTIONS_FIELD_NUMBER = 9; + private net.iGap.proto.ProtoGlobal.Mention mentions_; + /** + * optional .proto.Mention mentions = 9; + */ + public boolean hasMentions() { + return mentions_ != null; + } + /** + * optional .proto.Mention mentions = 9; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + /** + * optional .proto.Mention mentions = 9; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1212,6 +1694,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (documentId_ != 0L) { output.writeUInt64(7, documentId_); } + if (textSigns_ != null) { + output.writeMessage(8, getTextSigns()); + } + if (mentions_ != null) { + output.writeMessage(9, getMentions()); + } } public int getSerializedSize() { @@ -1246,6 +1734,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, documentId_); } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getTextSigns()); + } + if (mentions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getMentions()); + } memoizedSize = size; return size; } @@ -1278,6 +1774,16 @@ public boolean equals(final java.lang.Object obj) { result = result && messageType_ == other.messageType_; result = result && (getDocumentId() == other.getDocumentId()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } + result = result && (hasMentions() == other.hasMentions()); + if (hasMentions()) { + result = result && getMentions() + .equals(other.getMentions()); + } return result; } @@ -1308,6 +1814,14 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDocumentId()); + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1444,6 +1958,18 @@ public Builder clear() { documentId_ = 0L; + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } return this; } @@ -1477,6 +2003,16 @@ public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse buildPartia result.message_ = message_; result.messageType_ = messageType_; result.documentId_ = documentId_; + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } onBuilt(); return result; } @@ -1540,6 +2076,12 @@ public Builder mergeFrom(net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageRe if (other.getDocumentId() != 0L) { setDocumentId(other.getDocumentId()); } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); + } + if (other.hasMentions()) { + mergeMentions(other.getMentions()); + } onChanged(); return this; } @@ -1899,6 +2441,240 @@ public Builder clearDocumentId() { onChanged(); return this; } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 8; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } + + private net.iGap.proto.ProtoGlobal.Mention mentions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; + /** + * optional .proto.Mention mentions = 9; + */ + public boolean hasMentions() { + return mentionsBuilder_ != null || mentions_ != null; + } + /** + * optional .proto.Mention mentions = 9; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } + } + /** + * optional .proto.Mention mentions = 9; + */ + public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 9; + */ + public Builder setMentions( + net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); + } else { + mentionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Mention mentions = 9; + */ + public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); + } else { + mentionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Mention mentions = 9; + */ + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Mention mentions = 9; + */ + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { + + onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * optional .proto.Mention mentions = 9; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + } + /** + * optional .proto.Mention mentions = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; + } + return mentionsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -1968,17 +2744,21 @@ public net.iGap.proto.ProtoGroupEditMessage.GroupEditMessageResponse getDefaultI static { java.lang.String[] descriptorData = { "\n\026GroupEditMessage.proto\022\005proto\032\rRequest" + - ".proto\032\016Response.proto\032\014Global.proto\"~\n\020" + - "GroupEditMessage\022\037\n\007request\030\001 \001(\0132\016.prot" + - "o.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_id" + - "\030\003 \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document_id\030\005" + - " \001(\004\"\317\001\n\030GroupEditMessageResponse\022!\n\010res" + - "ponse\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id\030" + - "\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\027\n\017message_ver" + - "sion\030\004 \001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014message_t" + - "ype\030\006 \001(\0162\026.proto.RoomMessageType\022\023\n\013doc", - "ument_id\030\007 \001(\004B\'\n\016net.iGap.protoB\025ProtoG" + - "roupEditMessageb\006proto3" + ".proto\032\016Response.proto\032\014Global.proto\"\306\001\n" + + "\020GroupEditMessage\022\037\n\007request\030\001 \001(\0132\016.pro" + + "to.Request\022\017\n\007room_id\030\002 \001(\004\022\022\n\nmessage_i" + + "d\030\003 \001(\004\022\017\n\007message\030\004 \001(\t\022\023\n\013document_id\030" + + "\005 \001(\004\022$\n\ntext_signs\030\006 \001(\0132\020.proto.TextSi" + + "gns\022 \n\010mentions\030\007 \001(\0132\016.proto.Mention\"\227\002" + + "\n\030GroupEditMessageResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022\022" + + "\n\nmessage_id\030\003 \001(\004\022\027\n\017message_version\030\004 ", + "\001(\004\022\017\n\007message\030\005 \001(\t\022,\n\014message_type\030\006 \001" + + "(\0162\026.proto.RoomMessageType\022\023\n\013document_i" + + "d\030\007 \001(\004\022$\n\ntext_signs\030\010 \001(\0132\020.proto.Text" + + "Signs\022 \n\010mentions\030\t \001(\0132\016.proto.MentionB" + + "\'\n\016net.iGap.protoB\025ProtoGroupEditMessage" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2000,13 +2780,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_GroupEditMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupEditMessage_descriptor, - new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", }); + new java.lang.String[] { "Request", "RoomId", "MessageId", "Message", "DocumentId", "TextSigns", "Mentions", }); internal_static_proto_GroupEditMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_GroupEditMessageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupEditMessageResponse_descriptor, - new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", }); + new java.lang.String[] { "Response", "RoomId", "MessageId", "MessageVersion", "Message", "MessageType", "DocumentId", "TextSigns", "Mentions", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); net.iGap.proto.ProtoGlobal.getDescriptor(); diff --git a/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java b/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java index 084d206..9206fad 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java +++ b/src/main/java/net/iGap/proto/ProtoGroupGetMemberList.java @@ -1212,6 +1212,19 @@ public interface MemberOrBuilder extends * optional .proto.GroupChangeMemberRights.MemberRights memberRights = 4; */ net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.MemberRightsOrBuilder getMemberRightsOrBuilder(); + + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + boolean hasUserInfo(); + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo(); + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder(); } /** * Protobuf type {@code proto.GroupGetMemberListResponse.Member} @@ -1289,6 +1302,19 @@ private Member( memberRights_ = subBuilder.buildPartial(); } + break; + } + case 42: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (userInfo_ != null) { + subBuilder = userInfo_.toBuilder(); + } + userInfo_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userInfo_); + userInfo_ = subBuilder.buildPartial(); + } + break; } } @@ -1381,6 +1407,27 @@ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.Membe return getMemberRights(); } + public static final int USERINFO_FIELD_NUMBER = 5; + private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_; + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public boolean hasUserInfo() { + return userInfo_ != null; + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { + return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + return getUserInfo(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1405,6 +1452,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (memberRights_ != null) { output.writeMessage(4, getMemberRights()); } + if (userInfo_ != null) { + output.writeMessage(5, getUserInfo()); + } } public int getSerializedSize() { @@ -1428,6 +1478,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMemberRights()); } + if (userInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUserInfo()); + } memoizedSize = size; return size; } @@ -1457,6 +1511,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getMemberRights() .equals(other.getMemberRights()); } + result = result && (hasUserInfo() == other.hasUserInfo()); + if (hasUserInfo()) { + result = result && getUserInfo() + .equals(other.getUserInfo()); + } return result; } @@ -1480,6 +1539,10 @@ public int hashCode() { hash = (37 * hash) + MEMBERRIGHTS_FIELD_NUMBER; hash = (53 * hash) + getMemberRights().hashCode(); } + if (hasUserInfo()) { + hash = (37 * hash) + USERINFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1614,6 +1677,12 @@ public Builder clear() { memberRights_ = null; memberRightsBuilder_ = null; } + if (userInfoBuilder_ == null) { + userInfo_ = null; + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } return this; } @@ -1648,6 +1717,11 @@ public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse.Member } else { result.memberRights_ = memberRightsBuilder_.build(); } + if (userInfoBuilder_ == null) { + result.userInfo_ = userInfo_; + } else { + result.userInfo_ = userInfoBuilder_.build(); + } onBuilt(); return result; } @@ -1701,6 +1775,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberLi if (other.hasMemberRights()) { mergeMemberRights(other.getMemberRights()); } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } onChanged(); return this; } @@ -2030,6 +2107,123 @@ public net.iGap.proto.ProtoGroupChangeMemberRights.GroupChangeMemberRights.Membe } return memberRightsBuilder_; } + + private net.iGap.proto.ProtoGlobal.RegisteredUser userInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> userInfoBuilder_; + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public boolean hasUserInfo() { + return userInfoBuilder_ != null || userInfo_ != null; + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public Builder setUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + onChanged(); + } else { + userInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public Builder setUserInfo( + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + onChanged(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public Builder mergeUserInfo(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + if (userInfoBuilder_ == null) { + if (userInfo_ != null) { + userInfo_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(userInfo_).mergeFrom(value).buildPartial(); + } else { + userInfo_ = value; + } + onChanged(); + } else { + userInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public Builder clearUserInfo() { + if (userInfoBuilder_ == null) { + userInfo_ = null; + onChanged(); + } else { + userInfo_ = null; + userInfoBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser.Builder getUserInfoBuilder() { + + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null ? + net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : userInfo_; + } + } + /** + * optional .proto.RegisteredUser userInfo = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RegisteredUser, net.iGap.proto.ProtoGlobal.RegisteredUser.Builder, net.iGap.proto.ProtoGlobal.RegisteredUserOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -2915,16 +3109,17 @@ public net.iGap.proto.ProtoGroupGetMemberList.GroupGetMemberListResponse getDefa "tMemberList.FilterRole\022%\n\npagination\030\004 \001" + "(\0132\021.proto.Pagination\";\n\nFilterRole\022\007\n\003A" + "LL\020\000\022\n\n\006MEMBER\020\001\022\r\n\tMODERATOR\020\002\022\t\n\005ADMIN" + - "\020\003\"\263\002\n\032GroupGetMemberListResponse\022!\n\010res", + "\020\003\"\334\002\n\032GroupGetMemberListResponse\022!\n\010res", "ponse\030\001 \001(\0132\017.proto.Response\0228\n\006member\030\002" + " \003(\0132(.proto.GroupGetMemberListResponse." + - "Member\032\267\001\n\006Member\022\016\n\006userId\030\001 \001(\004\022#\n\004rol" + + "Member\032\340\001\n\006Member\022\016\n\006userId\030\001 \001(\004\022#\n\004rol" + "e\030\002 \001(\0162\025.proto.GroupRoom.Role\0225\n\013adminR" + "ights\030\003 \001(\0132 .proto.GroupAddAdmin.AdminR" + "ights\022A\n\014memberRights\030\004 \001(\0132+.proto.Grou" + - "pChangeMemberRights.MemberRightsB)\n\016net." + - "iGap.protoB\027ProtoGroupGetMemberListb\006pro" + - "to3" + "pChangeMemberRights.MemberRights\022\'\n\010user" + + "Info\030\005 \001(\0132\025.proto.RegisteredUserB)\n\016net" + + ".iGap.protoB\027ProtoGroupGetMemberListb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2960,7 +3155,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_GroupGetMemberListResponse_Member_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupGetMemberListResponse_Member_descriptor, - new java.lang.String[] { "UserId", "Role", "AdminRights", "MemberRights", }); + new java.lang.String[] { "UserId", "Role", "AdminRights", "MemberRights", "UserInfo", }); net.iGap.proto.ProtoRequest.getDescriptor(); net.iGap.proto.ProtoResponse.getDescriptor(); net.iGap.proto.ProtoGlobal.getDescriptor(); diff --git a/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java b/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java index 0c1315c..97b3b37 100644 --- a/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java +++ b/src/main/java/net/iGap/proto/ProtoGroupSendMessage.java @@ -114,6 +114,21 @@ public interface GroupSendMessageOrBuilder extends */ long getRandomId(); + /** + * optional uint32 additional_type = 11; + */ + int getAdditionalType(); + + /** + * optional string additional_data = 12; + */ + java.lang.String getAdditionalData(); + /** + * optional string additional_data = 12; + */ + com.google.protobuf.ByteString + getAdditionalDataBytes(); + /** * optional .proto.RoomMessageStoryReply story_reply = 13; */ @@ -141,19 +156,80 @@ public interface GroupSendMessageOrBuilder extends net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwardOrBuilder(); /** - * optional uint32 additional_type = 11; + * optional .proto.Mention mentions = 15; */ - int getAdditionalType(); + boolean hasMentions(); + /** + * optional .proto.Mention mentions = 15; + */ + net.iGap.proto.ProtoGlobal.Mention getMentions(); + /** + * optional .proto.Mention mentions = 15; + */ + net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder(); /** - * optional string additional_data = 12; + * optional .proto.RoomMessageSticker sticker = 16; */ - java.lang.String getAdditionalData(); + boolean hasSticker(); /** - * optional string additional_data = 12; + * optional .proto.RoomMessageSticker sticker = 16; */ - com.google.protobuf.ByteString - getAdditionalDataBytes(); + net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker(); + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder(); + + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + boolean hasCardToCard(); + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard(); + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder(); + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + java.util.List + getBotActionListsList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + int getBotActionListsCount(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + java.util.List + getBotActionListsOrBuilderList(); + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index); + + /** + * optional .proto.TextSigns text_signs = 19; + */ + boolean hasTextSigns(); + /** + * optional .proto.TextSigns text_signs = 19; + */ + net.iGap.proto.ProtoGlobal.TextSigns getTextSigns(); + /** + * optional .proto.TextSigns text_signs = 19; + */ + net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder(); } /** * Protobuf type {@code proto.GroupSendMessage} @@ -175,6 +251,7 @@ private GroupSendMessage() { randomId_ = 0L; additionalType_ = 0; additionalData_ = ""; + botActionLists_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -322,6 +399,67 @@ private GroupSendMessage( storyForward_ = subBuilder.buildPartial(); } + break; + } + case 122: { + net.iGap.proto.ProtoGlobal.Mention.Builder subBuilder = null; + if (mentions_ != null) { + subBuilder = mentions_.toBuilder(); + } + mentions_ = input.readMessage(net.iGap.proto.ProtoGlobal.Mention.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mentions_); + mentions_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder subBuilder = null; + if (sticker_ != null) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageSticker.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder subBuilder = null; + if (cardToCard_ != null) { + subBuilder = cardToCard_.toBuilder(); + } + cardToCard_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cardToCard_); + cardToCard_ = subBuilder.buildPartial(); + } + + break; + } + case 146: { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + botActionLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + botActionLists_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.parser(), extensionRegistry)); + break; + } + case 154: { + net.iGap.proto.ProtoGlobal.TextSigns.Builder subBuilder = null; + if (textSigns_ != null) { + subBuilder = textSigns_.toBuilder(); + } + textSigns_ = input.readMessage(net.iGap.proto.ProtoGlobal.TextSigns.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSigns_); + textSigns_ = subBuilder.buildPartial(); + } + break; } } @@ -332,6 +470,9 @@ private GroupSendMessage( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + } makeExtensionsImmutable(); } } @@ -347,6 +488,7 @@ private GroupSendMessage( net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.class, net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.Builder.class); } + private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** @@ -542,6 +684,49 @@ public long getRandomId() { return randomId_; } + public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 11; + private int additionalType_; + /** + * optional uint32 additional_type = 11; + */ + public int getAdditionalType() { + return additionalType_; + } + + public static final int ADDITIONAL_DATA_FIELD_NUMBER = 12; + private volatile java.lang.Object additionalData_; + /** + * optional string additional_data = 12; + */ + public java.lang.String getAdditionalData() { + java.lang.Object ref = additionalData_; + 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(); + additionalData_ = s; + return s; + } + } + /** + * optional string additional_data = 12; + */ + public com.google.protobuf.ByteString + getAdditionalDataBytes() { + java.lang.Object ref = additionalData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STORY_REPLY_FIELD_NUMBER = 13; private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_; /** @@ -584,47 +769,123 @@ public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwa return getStoryForward(); } - public static final int ADDITIONAL_TYPE_FIELD_NUMBER = 11; - private int additionalType_; + public static final int MENTIONS_FIELD_NUMBER = 15; + private net.iGap.proto.ProtoGlobal.Mention mentions_; /** - * optional uint32 additional_type = 11; + * optional .proto.Mention mentions = 15; */ - public int getAdditionalType() { - return additionalType_; + public boolean hasMentions() { + return mentions_ != null; + } + /** + * optional .proto.Mention mentions = 15; + */ + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + /** + * optional .proto.Mention mentions = 15; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + return getMentions(); } - public static final int ADDITIONAL_DATA_FIELD_NUMBER = 12; - private volatile java.lang.Object additionalData_; + public static final int STICKER_FIELD_NUMBER = 16; + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_; /** - * optional string additional_data = 12; + * optional .proto.RoomMessageSticker sticker = 16; */ - public java.lang.String getAdditionalData() { - java.lang.Object ref = additionalData_; - 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(); - additionalData_ = s; - return s; - } + public boolean hasSticker() { + return sticker_ != null; } /** - * optional string additional_data = 12; + * optional .proto.RoomMessageSticker sticker = 16; */ - public com.google.protobuf.ByteString - getAdditionalDataBytes() { - java.lang.Object ref = additionalData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - additionalData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + return getSticker(); + } + + public static final int CARD_TO_CARD_FIELD_NUMBER = 17; + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_; + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public boolean hasCardToCard() { + return cardToCard_ != null; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + return getCardToCard(); + } + + public static final int BOT_ACTION_LISTS_FIELD_NUMBER = 18; + private java.util.List botActionLists_; + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public java.util.List getBotActionListsList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public java.util.List + getBotActionListsOrBuilderList() { + return botActionLists_; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public int getBotActionListsCount() { + return botActionLists_.size(); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + return botActionLists_.get(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + return botActionLists_.get(index); + } + + public static final int TEXT_SIGNS_FIELD_NUMBER = 19; + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_; + /** + * optional .proto.TextSigns text_signs = 19; + */ + public boolean hasTextSigns() { + return textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + return getTextSigns(); } private byte memoizedIsInitialized = -1; @@ -681,6 +942,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (storyForward_ != null) { output.writeMessage(14, getStoryForward()); } + if (mentions_ != null) { + output.writeMessage(15, getMentions()); + } + if (sticker_ != null) { + output.writeMessage(16, getSticker()); + } + if (cardToCard_ != null) { + output.writeMessage(17, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + output.writeMessage(18, botActionLists_.get(i)); + } + if (textSigns_ != null) { + output.writeMessage(19, getTextSigns()); + } } public int getSerializedSize() { @@ -741,6 +1017,26 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getStoryForward()); } + if (mentions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getMentions()); + } + if (sticker_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getSticker()); + } + if (cardToCard_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getCardToCard()); + } + for (int i = 0; i < botActionLists_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, botActionLists_.get(i)); + } + if (textSigns_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getTextSigns()); + } memoizedSize = size; return size; } @@ -788,6 +1084,10 @@ public boolean equals(final java.lang.Object obj) { } result = result && (getRandomId() == other.getRandomId()); + result = result && (getAdditionalType() + == other.getAdditionalType()); + result = result && getAdditionalData() + .equals(other.getAdditionalData()); result = result && (hasStoryReply() == other.hasStoryReply()); if (hasStoryReply()) { result = result && getStoryReply() @@ -798,10 +1098,28 @@ public boolean equals(final java.lang.Object obj) { result = result && getStoryForward() .equals(other.getStoryForward()); } - result = result && (getAdditionalType() - == other.getAdditionalType()); - result = result && getAdditionalData() - .equals(other.getAdditionalData()); + result = result && (hasMentions() == other.hasMentions()); + if (hasMentions()) { + result = result && getMentions() + .equals(other.getMentions()); + } + result = result && (hasSticker() == other.hasSticker()); + if (hasSticker()) { + result = result && getSticker() + .equals(other.getSticker()); + } + result = result && (hasCardToCard() == other.hasCardToCard()); + if (hasCardToCard()) { + result = result && getCardToCard() + .equals(other.getCardToCard()); + } + result = result && getBotActionListsList() + .equals(other.getBotActionListsList()); + result = result && (hasTextSigns() == other.hasTextSigns()); + if (hasTextSigns()) { + result = result && getTextSigns() + .equals(other.getTextSigns()); + } return result; } @@ -843,6 +1161,10 @@ public int hashCode() { hash = (37 * hash) + RANDOM_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRandomId()); + hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalType(); + hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalData().hashCode(); if (hasStoryReply()) { hash = (37 * hash) + STORY_REPLY_FIELD_NUMBER; hash = (53 * hash) + getStoryReply().hashCode(); @@ -851,10 +1173,26 @@ public int hashCode() { hash = (37 * hash) + STORY_FORWARD_FIELD_NUMBER; hash = (53 * hash) + getStoryForward().hashCode(); } - hash = (37 * hash) + ADDITIONAL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalType(); - hash = (37 * hash) + ADDITIONAL_DATA_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalData().hashCode(); + if (hasMentions()) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentions().hashCode(); + } + if (hasSticker()) { + hash = (37 * hash) + STICKER_FIELD_NUMBER; + hash = (53 * hash) + getSticker().hashCode(); + } + if (hasCardToCard()) { + hash = (37 * hash) + CARD_TO_CARD_FIELD_NUMBER; + hash = (53 * hash) + getCardToCard().hashCode(); + } + if (getBotActionListsCount() > 0) { + hash = (37 * hash) + BOT_ACTION_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getBotActionListsList().hashCode(); + } + if (hasTextSigns()) { + hash = (37 * hash) + TEXT_SIGNS_FIELD_NUMBER; + hash = (53 * hash) + getTextSigns().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -969,6 +1307,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getBotActionListsFieldBuilder(); } } public Builder clear() { @@ -1009,6 +1348,10 @@ public Builder clear() { } randomId_ = 0L; + additionalType_ = 0; + + additionalData_ = ""; + if (storyReplyBuilder_ == null) { storyReply_ = null; } else { @@ -1021,17 +1364,43 @@ public Builder clear() { storyForward_ = null; storyForwardBuilder_ = null; } - additionalType_ = 0; - - additionalData_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessage_descriptor; - } + if (mentionsBuilder_ == null) { + mentions_ = null; + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + if (stickerBuilder_ == null) { + sticker_ = null; + } else { + sticker_ = null; + stickerBuilder_ = null; + } + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + } else { + botActionListsBuilder_.clear(); + } + if (textSignsBuilder_ == null) { + textSigns_ = null; + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoGroupSendMessage.internal_static_proto_GroupSendMessage_descriptor; + } public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage getDefaultInstanceForType() { return net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage.getDefaultInstance(); @@ -1047,6 +1416,8 @@ public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage build() { public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage buildPartial() { net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage result = new net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (requestBuilder_ == null) { result.request_ = request_; } else { @@ -1073,6 +1444,8 @@ public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage buildPartial() { result.forwardFrom_ = forwardFromBuilder_.build(); } result.randomId_ = randomId_; + result.additionalType_ = additionalType_; + result.additionalData_ = additionalData_; if (storyReplyBuilder_ == null) { result.storyReply_ = storyReply_; } else { @@ -1083,8 +1456,36 @@ public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage buildPartial() { } else { result.storyForward_ = storyForwardBuilder_.build(); } - result.additionalType_ = additionalType_; - result.additionalData_ = additionalData_; + if (mentionsBuilder_ == null) { + result.mentions_ = mentions_; + } else { + result.mentions_ = mentionsBuilder_.build(); + } + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (cardToCardBuilder_ == null) { + result.cardToCard_ = cardToCard_; + } else { + result.cardToCard_ = cardToCardBuilder_.build(); + } + if (botActionListsBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000)) { + botActionLists_ = java.util.Collections.unmodifiableList(botActionLists_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.botActionLists_ = botActionLists_; + } else { + result.botActionLists_ = botActionListsBuilder_.build(); + } + if (textSignsBuilder_ == null) { + result.textSigns_ = textSigns_; + } else { + result.textSigns_ = textSignsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1158,18 +1559,56 @@ public Builder mergeFrom(net.iGap.proto.ProtoGroupSendMessage.GroupSendMessage o if (other.getRandomId() != 0L) { setRandomId(other.getRandomId()); } + if (other.getAdditionalType() != 0) { + setAdditionalType(other.getAdditionalType()); + } + if (!other.getAdditionalData().isEmpty()) { + additionalData_ = other.additionalData_; + onChanged(); + } if (other.hasStoryReply()) { mergeStoryReply(other.getStoryReply()); } if (other.hasStoryForward()) { mergeStoryForward(other.getStoryForward()); } - if (other.getAdditionalType() != 0) { - setAdditionalType(other.getAdditionalType()); + if (other.hasMentions()) { + mergeMentions(other.getMentions()); } - if (!other.getAdditionalData().isEmpty()) { - additionalData_ = other.additionalData_; - onChanged(); + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasCardToCard()) { + mergeCardToCard(other.getCardToCard()); + } + if (botActionListsBuilder_ == null) { + if (!other.botActionLists_.isEmpty()) { + if (botActionLists_.isEmpty()) { + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureBotActionListsIsMutable(); + botActionLists_.addAll(other.botActionLists_); + } + onChanged(); + } + } else { + if (!other.botActionLists_.isEmpty()) { + if (botActionListsBuilder_.isEmpty()) { + botActionListsBuilder_.dispose(); + botActionListsBuilder_ = null; + botActionLists_ = other.botActionLists_; + bitField0_ = (bitField0_ & ~0x00020000); + botActionListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBotActionListsFieldBuilder() : null; + } else { + botActionListsBuilder_.addAllMessages(other.botActionLists_); + } + } + } + if (other.hasTextSigns()) { + mergeTextSigns(other.getTextSigns()); } onChanged(); return this; @@ -1196,6 +1635,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private net.iGap.proto.ProtoRequest.Request request_ = null; private com.google.protobuf.SingleFieldBuilderV3< @@ -1925,6 +2365,101 @@ public Builder clearRandomId() { return this; } + private int additionalType_ ; + /** + * optional uint32 additional_type = 11; + */ + public int getAdditionalType() { + return additionalType_; + } + /** + * optional uint32 additional_type = 11; + */ + public Builder setAdditionalType(int value) { + + additionalType_ = value; + onChanged(); + return this; + } + /** + * optional uint32 additional_type = 11; + */ + public Builder clearAdditionalType() { + + additionalType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object additionalData_ = ""; + /** + * optional string additional_data = 12; + */ + public java.lang.String getAdditionalData() { + java.lang.Object ref = additionalData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalData_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string additional_data = 12; + */ + public com.google.protobuf.ByteString + getAdditionalDataBytes() { + java.lang.Object ref = additionalData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + additionalData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string additional_data = 12; + */ + public Builder setAdditionalData( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + additionalData_ = value; + onChanged(); + return this; + } + /** + * optional string additional_data = 12; + */ + public Builder clearAdditionalData() { + + additionalData_ = getDefaultInstance().getAdditionalData(); + onChanged(); + return this; + } + /** + * optional string additional_data = 12; + */ + public Builder setAdditionalDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + additionalData_ = value; + onChanged(); + return this; + } + private net.iGap.proto.ProtoGlobal.RoomMessageStoryReply storyReply_ = null; private com.google.protobuf.SingleFieldBuilderV3< net.iGap.proto.ProtoGlobal.RoomMessageStoryReply, net.iGap.proto.ProtoGlobal.RoomMessageStoryReply.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStoryReplyOrBuilder> storyReplyBuilder_; @@ -2159,100 +2694,713 @@ public net.iGap.proto.ProtoGlobal.RoomMessageStoryForwardOrBuilder getStoryForwa return storyForwardBuilder_; } - private int additionalType_ ; + private net.iGap.proto.ProtoGlobal.Mention mentions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> mentionsBuilder_; /** - * optional uint32 additional_type = 11; + * optional .proto.Mention mentions = 15; */ - public int getAdditionalType() { - return additionalType_; + public boolean hasMentions() { + return mentionsBuilder_ != null || mentions_ != null; } /** - * optional uint32 additional_type = 11; + * optional .proto.Mention mentions = 15; */ - public Builder setAdditionalType(int value) { - - additionalType_ = value; - onChanged(); - return this; + public net.iGap.proto.ProtoGlobal.Mention getMentions() { + if (mentionsBuilder_ == null) { + return mentions_ == null ? net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } else { + return mentionsBuilder_.getMessage(); + } } /** - * optional uint32 additional_type = 11; + * optional .proto.Mention mentions = 15; */ - public Builder clearAdditionalType() { - - additionalType_ = 0; - onChanged(); + public Builder setMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mentions_ = value; + onChanged(); + } else { + mentionsBuilder_.setMessage(value); + } + return this; } - - private java.lang.Object additionalData_ = ""; /** - * optional string additional_data = 12; + * optional .proto.Mention mentions = 15; */ - public java.lang.String getAdditionalData() { - java.lang.Object ref = additionalData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - additionalData_ = s; - return s; + public Builder setMentions( + net.iGap.proto.ProtoGlobal.Mention.Builder builderForValue) { + if (mentionsBuilder_ == null) { + mentions_ = builderForValue.build(); + onChanged(); } else { - return (java.lang.String) ref; + mentionsBuilder_.setMessage(builderForValue.build()); } + + return this; } /** - * optional string additional_data = 12; + * optional .proto.Mention mentions = 15; */ - public com.google.protobuf.ByteString - getAdditionalDataBytes() { - java.lang.Object ref = additionalData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - additionalData_ = b; - return b; + public Builder mergeMentions(net.iGap.proto.ProtoGlobal.Mention value) { + if (mentionsBuilder_ == null) { + if (mentions_ != null) { + mentions_ = + net.iGap.proto.ProtoGlobal.Mention.newBuilder(mentions_).mergeFrom(value).buildPartial(); + } else { + mentions_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + mentionsBuilder_.mergeFrom(value); } + + return this; } /** - * optional string additional_data = 12; + * optional .proto.Mention mentions = 15; */ - public Builder setAdditionalData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - additionalData_ = value; - onChanged(); + public Builder clearMentions() { + if (mentionsBuilder_ == null) { + mentions_ = null; + onChanged(); + } else { + mentions_ = null; + mentionsBuilder_ = null; + } + return this; } /** - * optional string additional_data = 12; + * optional .proto.Mention mentions = 15; */ - public Builder clearAdditionalData() { + public net.iGap.proto.ProtoGlobal.Mention.Builder getMentionsBuilder() { - additionalData_ = getDefaultInstance().getAdditionalData(); onChanged(); + return getMentionsFieldBuilder().getBuilder(); + } + /** + * optional .proto.Mention mentions = 15; + */ + public net.iGap.proto.ProtoGlobal.MentionOrBuilder getMentionsOrBuilder() { + if (mentionsBuilder_ != null) { + return mentionsBuilder_.getMessageOrBuilder(); + } else { + return mentions_ == null ? + net.iGap.proto.ProtoGlobal.Mention.getDefaultInstance() : mentions_; + } + } + /** + * optional .proto.Mention mentions = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder> + getMentionsFieldBuilder() { + if (mentionsBuilder_ == null) { + mentionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.Mention, net.iGap.proto.ProtoGlobal.Mention.Builder, net.iGap.proto.ProtoGlobal.MentionOrBuilder>( + getMentions(), + getParentForChildren(), + isClean()); + mentions_ = null; + } + return mentionsBuilder_; + } + + private net.iGap.proto.ProtoGlobal.RoomMessageSticker sticker_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> stickerBuilder_; + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public boolean hasSticker() { + return stickerBuilder_ != null || sticker_ != null; + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker getSticker() { + if (stickerBuilder_ == null) { + return sticker_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } else { + return stickerBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public Builder setSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); + } + return this; } /** - * optional string additional_data = 12; + * optional .proto.RoomMessageSticker sticker = 16; */ - public Builder setAdditionalDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder setSticker( + net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder builderForValue) { + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public Builder mergeSticker(net.iGap.proto.ProtoGlobal.RoomMessageSticker value) { + if (stickerBuilder_ == null) { + if (sticker_ != null) { + sticker_ = + net.iGap.proto.ProtoGlobal.RoomMessageSticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = null; + onChanged(); + } else { + sticker_ = null; + stickerBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder getStickerBuilder() { + + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageSticker.getDefaultInstance() : sticker_; + } + } + /** + * optional .proto.RoomMessageSticker sticker = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageSticker, net.iGap.proto.ProtoGlobal.RoomMessageSticker.Builder, net.iGap.proto.ProtoGlobal.RoomMessageStickerOrBuilder>( + getSticker(), + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + + private net.iGap.proto.ProtoGlobal.RoomMessageCardToCard cardToCard_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> cardToCardBuilder_; + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public boolean hasCardToCard() { + return cardToCardBuilder_ != null || cardToCard_ != null; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard getCardToCard() { + if (cardToCardBuilder_ == null) { + return cardToCard_ == null ? net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } else { + return cardToCardBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public Builder setCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cardToCard_ = value; + onChanged(); + } else { + cardToCardBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public Builder setCardToCard( + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder builderForValue) { + if (cardToCardBuilder_ == null) { + cardToCard_ = builderForValue.build(); + onChanged(); + } else { + cardToCardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public Builder mergeCardToCard(net.iGap.proto.ProtoGlobal.RoomMessageCardToCard value) { + if (cardToCardBuilder_ == null) { + if (cardToCard_ != null) { + cardToCard_ = + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.newBuilder(cardToCard_).mergeFrom(value).buildPartial(); + } else { + cardToCard_ = value; + } + onChanged(); + } else { + cardToCardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public Builder clearCardToCard() { + if (cardToCardBuilder_ == null) { + cardToCard_ = null; + onChanged(); + } else { + cardToCard_ = null; + cardToCardBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder getCardToCardBuilder() { - additionalData_ = value; onChanged(); + return getCardToCardFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder getCardToCardOrBuilder() { + if (cardToCardBuilder_ != null) { + return cardToCardBuilder_.getMessageOrBuilder(); + } else { + return cardToCard_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.getDefaultInstance() : cardToCard_; + } + } + /** + * optional .proto.RoomMessageCardToCard card_to_card = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder> + getCardToCardFieldBuilder() { + if (cardToCardBuilder_ == null) { + cardToCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageCardToCard, net.iGap.proto.ProtoGlobal.RoomMessageCardToCard.Builder, net.iGap.proto.ProtoGlobal.RoomMessageCardToCardOrBuilder>( + getCardToCard(), + getParentForChildren(), + isClean()); + cardToCard_ = null; + } + return cardToCardBuilder_; + } + + private java.util.List botActionLists_ = + java.util.Collections.emptyList(); + private void ensureBotActionListsIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + botActionLists_ = new java.util.ArrayList(botActionLists_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> botActionListsBuilder_; + + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public java.util.List getBotActionListsList() { + if (botActionListsBuilder_ == null) { + return java.util.Collections.unmodifiableList(botActionLists_); + } else { + return botActionListsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public int getBotActionListsCount() { + if (botActionListsBuilder_ == null) { + return botActionLists_.size(); + } else { + return botActionListsBuilder_.getCount(); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList getBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); + } else { + return botActionListsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.set(index, value); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, value); + } return this; } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder setBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.set(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addBotActionLists(net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList value) { + if (botActionListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBotActionListsIsMutable(); + botActionLists_.add(index, value); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addBotActionLists( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addBotActionLists( + int index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder builderForValue) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.add(index, builderForValue.build()); + onChanged(); + } else { + botActionListsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder addAllBotActionLists( + java.lang.Iterable values) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, botActionLists_); + onChanged(); + } else { + botActionListsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder clearBotActionLists() { + if (botActionListsBuilder_ == null) { + botActionLists_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + botActionListsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public Builder removeBotActionLists(int index) { + if (botActionListsBuilder_ == null) { + ensureBotActionListsIsMutable(); + botActionLists_.remove(index); + onChanged(); + } else { + botActionListsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder getBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder getBotActionListsOrBuilder( + int index) { + if (botActionListsBuilder_ == null) { + return botActionLists_.get(index); } else { + return botActionListsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public java.util.List + getBotActionListsOrBuilderList() { + if (botActionListsBuilder_ != null) { + return botActionListsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(botActionLists_); + } + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder() { + return getBotActionListsFieldBuilder().addBuilder( + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder addBotActionListsBuilder( + int index) { + return getBotActionListsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.getDefaultInstance()); + } + /** + * repeated .proto.RoomMessageBotActionList bot_action_lists = 18; + */ + public java.util.List + getBotActionListsBuilderList() { + return getBotActionListsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder> + getBotActionListsFieldBuilder() { + if (botActionListsBuilder_ == null) { + botActionListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessageBotActionList, net.iGap.proto.ProtoGlobal.RoomMessageBotActionList.Builder, net.iGap.proto.ProtoGlobal.RoomMessageBotActionListOrBuilder>( + botActionLists_, + ((bitField0_ & 0x00020000) == 0x00020000), + getParentForChildren(), + isClean()); + botActionLists_ = null; + } + return botActionListsBuilder_; + } + + private net.iGap.proto.ProtoGlobal.TextSigns textSigns_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> textSignsBuilder_; + /** + * optional .proto.TextSigns text_signs = 19; + */ + public boolean hasTextSigns() { + return textSignsBuilder_ != null || textSigns_ != null; + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public net.iGap.proto.ProtoGlobal.TextSigns getTextSigns() { + if (textSignsBuilder_ == null) { + return textSigns_ == null ? net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } else { + return textSignsBuilder_.getMessage(); + } + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public Builder setTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSigns_ = value; + onChanged(); + } else { + textSignsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public Builder setTextSigns( + net.iGap.proto.ProtoGlobal.TextSigns.Builder builderForValue) { + if (textSignsBuilder_ == null) { + textSigns_ = builderForValue.build(); + onChanged(); + } else { + textSignsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public Builder mergeTextSigns(net.iGap.proto.ProtoGlobal.TextSigns value) { + if (textSignsBuilder_ == null) { + if (textSigns_ != null) { + textSigns_ = + net.iGap.proto.ProtoGlobal.TextSigns.newBuilder(textSigns_).mergeFrom(value).buildPartial(); + } else { + textSigns_ = value; + } + onChanged(); + } else { + textSignsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public Builder clearTextSigns() { + if (textSignsBuilder_ == null) { + textSigns_ = null; + onChanged(); + } else { + textSigns_ = null; + textSignsBuilder_ = null; + } + + return this; + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public net.iGap.proto.ProtoGlobal.TextSigns.Builder getTextSignsBuilder() { + + onChanged(); + return getTextSignsFieldBuilder().getBuilder(); + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + public net.iGap.proto.ProtoGlobal.TextSignsOrBuilder getTextSignsOrBuilder() { + if (textSignsBuilder_ != null) { + return textSignsBuilder_.getMessageOrBuilder(); + } else { + return textSigns_ == null ? + net.iGap.proto.ProtoGlobal.TextSigns.getDefaultInstance() : textSigns_; + } + } + /** + * optional .proto.TextSigns text_signs = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder> + getTextSignsFieldBuilder() { + if (textSignsBuilder_ == null) { + textSignsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.TextSigns, net.iGap.proto.ProtoGlobal.TextSigns.Builder, net.iGap.proto.ProtoGlobal.TextSignsOrBuilder>( + getTextSigns(), + getParentForChildren(), + isClean()); + textSigns_ = null; + } + return textSignsBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -3140,7 +4288,7 @@ public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse getDefaultI static { java.lang.String[] descriptorData = { "\n\026GroupSendMessage.proto\022\005proto\032\rRequest" + - ".proto\032\016Response.proto\032\014Global.proto\"\347\003\n" + + ".proto\032\016Response.proto\032\014Global.proto\"\312\005\n" + "\020GroupSendMessage\022\037\n\007request\030\001 \001(\0132\016.pro" + "to.Request\022,\n\014message_type\030\002 \001(\0162\026.proto" + ".RoomMessageType\022\017\n\007room_id\030\003 \001(\004\022\017\n\007mes" + @@ -3149,15 +4297,21 @@ public net.iGap.proto.ProtoGroupSendMessage.GroupSendMessageResponse getDefaultI "contact\030\007 \001(\0132\031.proto.RoomMessageContact" + "\022\020\n\010reply_to\030\010 \001(\004\0223\n\014forward_from\030\t \001(\013" + "2\035.proto.RoomMessageForwardFrom\022\021\n\trando", - "m_id\030\n \001(\004\0221\n\013story_reply\030\r \001(\0132\034.proto." + - "RoomMessageStoryReply\0225\n\rstory_forward\030\016" + - " \001(\0132\036.proto.RoomMessageStoryForward\022\027\n\017" + - "additional_type\030\013 \001(\r\022\027\n\017additional_data" + - "\030\014 \001(\t\"x\n\030GroupSendMessageResponse\022!\n\010re" + - "sponse\030\001 \001(\0132\017.proto.Response\022\017\n\007room_id" + - "\030\002 \001(\004\022(\n\014room_message\030\003 \001(\0132\022.proto.Roo" + - "mMessageB\'\n\016net.iGap.protoB\025ProtoGroupSe" + - "ndMessageb\006proto3" + "m_id\030\n \001(\004\022\027\n\017additional_type\030\013 \001(\r\022\027\n\017a" + + "dditional_data\030\014 \001(\t\0221\n\013story_reply\030\r \001(" + + "\0132\034.proto.RoomMessageStoryReply\0225\n\rstory" + + "_forward\030\016 \001(\0132\036.proto.RoomMessageStoryF" + + "orward\022 \n\010mentions\030\017 \001(\0132\016.proto.Mention" + + "\022*\n\007sticker\030\020 \001(\0132\031.proto.RoomMessageSti" + + "cker\0222\n\014card_to_card\030\021 \001(\0132\034.proto.RoomM" + + "essageCardToCard\0229\n\020bot_action_lists\030\022 \003" + + "(\0132\037.proto.RoomMessageBotActionList\022$\n\nt" + + "ext_signs\030\023 \001(\0132\020.proto.TextSigns\"x\n\030Gro", + "upSendMessageResponse\022!\n\010response\030\001 \001(\0132" + + "\017.proto.Response\022\017\n\007room_id\030\002 \001(\004\022(\n\014roo" + + "m_message\030\003 \001(\0132\022.proto.RoomMessageB\'\n\016n" + + "et.iGap.protoB\025ProtoGroupSendMessageb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3179,7 +4333,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_GroupSendMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_GroupSendMessage_descriptor, - new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "StoryReply", "StoryForward", "AdditionalType", "AdditionalData", }); + new java.lang.String[] { "Request", "MessageType", "RoomId", "Message", "Attachment", "Location", "Contact", "ReplyTo", "ForwardFrom", "RandomId", "AdditionalType", "AdditionalData", "StoryReply", "StoryForward", "Mentions", "Sticker", "CardToCard", "BotActionLists", "TextSigns", }); internal_static_proto_GroupSendMessageResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_GroupSendMessageResponse_fieldAccessorTable = new diff --git a/src/main/java/net/iGap/proto/ProtoMxbSearch.java b/src/main/java/net/iGap/proto/ProtoMxbSearch.java new file mode 100644 index 0000000..9699152 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoMxbSearch.java @@ -0,0 +1,2621 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MxbSearch.proto + +package net.iGap.proto; + +public final class ProtoMxbSearch { + private ProtoMxbSearch() {} + 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 MxbSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional string phone = 2; + */ + java.lang.String getPhone(); + /** + * optional string phone = 2; + */ + com.google.protobuf.ByteString + getPhoneBytes(); + } + /** + * Protobuf type {@code proto.MxbSearch} + */ + public static final class MxbSearch extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbSearch) + MxbSearchOrBuilder { + // Use MxbSearch.newBuilder() to construct. + private MxbSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbSearch() { + phone_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MxbSearch( + 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: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + phone_ = 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 net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearch_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbSearch.MxbSearch.class, net.iGap.proto.ProtoMxbSearch.MxbSearch.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int PHONE_FIELD_NUMBER = 2; + private volatile java.lang.Object phone_; + /** + * optional string phone = 2; + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + 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(); + phone_ = s; + return s; + } + } + /** + * optional string phone = 2; + */ + public com.google.protobuf.ByteString + getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (!getPhoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phone_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (!getPhoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phone_); + } + 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 net.iGap.proto.ProtoMxbSearch.MxbSearch)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMxbSearch.MxbSearch other = (net.iGap.proto.ProtoMxbSearch.MxbSearch) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && getPhone() + .equals(other.getPhone()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearch 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 net.iGap.proto.ProtoMxbSearch.MxbSearch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearch 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 net.iGap.proto.ProtoMxbSearch.MxbSearch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearch 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(net.iGap.proto.ProtoMxbSearch.MxbSearch 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 proto.MxbSearch} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbSearch) + net.iGap.proto.ProtoMxbSearch.MxbSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearch_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbSearch.MxbSearch.class, net.iGap.proto.ProtoMxbSearch.MxbSearch.Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbSearch.MxbSearch.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(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + phone_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearch_descriptor; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearch getDefaultInstanceForType() { + return net.iGap.proto.ProtoMxbSearch.MxbSearch.getDefaultInstance(); + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearch build() { + net.iGap.proto.ProtoMxbSearch.MxbSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearch buildPartial() { + net.iGap.proto.ProtoMxbSearch.MxbSearch result = new net.iGap.proto.ProtoMxbSearch.MxbSearch(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.phone_ = phone_; + 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 net.iGap.proto.ProtoMxbSearch.MxbSearch) { + return mergeFrom((net.iGap.proto.ProtoMxbSearch.MxbSearch)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMxbSearch.MxbSearch other) { + if (other == net.iGap.proto.ProtoMxbSearch.MxbSearch.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + 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 { + net.iGap.proto.ProtoMxbSearch.MxbSearch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMxbSearch.MxbSearch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.lang.Object phone_ = ""; + /** + * optional string phone = 2; + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string phone = 2; + */ + public com.google.protobuf.ByteString + getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string phone = 2; + */ + public Builder setPhone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + phone_ = value; + onChanged(); + return this; + } + /** + * optional string phone = 2; + */ + public Builder clearPhone() { + + phone_ = getDefaultInstance().getPhone(); + onChanged(); + return this; + } + /** + * optional string phone = 2; + */ + public Builder setPhoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phone_ = 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:proto.MxbSearch) + } + + // @@protoc_insertion_point(class_scope:proto.MxbSearch) + private static final net.iGap.proto.ProtoMxbSearch.MxbSearch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMxbSearch.MxbSearch(); + } + + public static net.iGap.proto.ProtoMxbSearch.MxbSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MxbSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbSearch(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MxbSearchResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbSearchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + java.util.List + getItemsList(); + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getItems(int index); + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + int getItemsCount(); + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder getItemsOrBuilder( + int index); + } + /** + * Protobuf type {@code proto.MxbSearchResponse} + */ + public static final class MxbSearchResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbSearchResponse) + MxbSearchResponseOrBuilder { + // Use MxbSearchResponse.newBuilder() to construct. + private MxbSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbSearchResponse() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MxbSearchResponse( + 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: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.parser(), extensionRegistry)); + 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_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.class, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Builder.class); + } + + public interface ItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbSearchResponse.Item) + com.google.protobuf.MessageOrBuilder { + + /** + * optional uint64 id = 1; + */ + long getId(); + + /** + * optional string nickname = 2; + */ + java.lang.String getNickname(); + /** + * optional string nickname = 2; + */ + com.google.protobuf.ByteString + getNicknameBytes(); + + /** + * optional string avatar = 3; + */ + java.lang.String getAvatar(); + /** + * optional string avatar = 3; + */ + com.google.protobuf.ByteString + getAvatarBytes(); + + /** + * optional uint32 messenger_id = 4; + */ + int getMessengerId(); + + /** + * optional string phone = 5; + */ + java.lang.String getPhone(); + /** + * optional string phone = 5; + */ + com.google.protobuf.ByteString + getPhoneBytes(); + } + /** + * Protobuf type {@code proto.MxbSearchResponse.Item} + */ + public static final class Item extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbSearchResponse.Item) + ItemOrBuilder { + // Use Item.newBuilder() to construct. + private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Item() { + id_ = 0L; + nickname_ = ""; + avatar_ = ""; + messengerId_ = 0; + phone_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Item( + 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: { + + id_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nickname_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + avatar_ = s; + break; + } + case 32: { + + messengerId_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + phone_ = 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 net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.class, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + public static final int NICKNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object nickname_; + /** + * optional string nickname = 2; + */ + public java.lang.String getNickname() { + java.lang.Object ref = nickname_; + 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(); + nickname_ = s; + return s; + } + } + /** + * optional string nickname = 2; + */ + public com.google.protobuf.ByteString + getNicknameBytes() { + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVATAR_FIELD_NUMBER = 3; + private volatile java.lang.Object avatar_; + /** + * optional string avatar = 3; + */ + public java.lang.String getAvatar() { + java.lang.Object ref = avatar_; + 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(); + avatar_ = s; + return s; + } + } + /** + * optional string avatar = 3; + */ + public com.google.protobuf.ByteString + getAvatarBytes() { + java.lang.Object ref = avatar_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatar_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSENGER_ID_FIELD_NUMBER = 4; + private int messengerId_; + /** + * optional uint32 messenger_id = 4; + */ + public int getMessengerId() { + return messengerId_; + } + + public static final int PHONE_FIELD_NUMBER = 5; + private volatile java.lang.Object phone_; + /** + * optional string phone = 5; + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + 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(); + phone_ = s; + return s; + } + } + /** + * optional string phone = 5; + */ + public com.google.protobuf.ByteString + getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = 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 (id_ != 0L) { + output.writeUInt64(1, id_); + } + if (!getNicknameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_); + } + if (!getAvatarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, avatar_); + } + if (messengerId_ != 0) { + output.writeUInt32(4, messengerId_); + } + if (!getPhoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, phone_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + if (!getNicknameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_); + } + if (!getAvatarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, avatar_); + } + if (messengerId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, messengerId_); + } + if (!getPhoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, phone_); + } + 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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item other = (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item) obj; + + boolean result = true; + result = result && (getId() + == other.getId()); + result = result && getNickname() + .equals(other.getNickname()); + result = result && getAvatar() + .equals(other.getAvatar()); + result = result && (getMessengerId() + == other.getMessengerId()); + result = result && getPhone() + .equals(other.getPhone()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + NICKNAME_FIELD_NUMBER; + hash = (53 * hash) + getNickname().hashCode(); + hash = (37 * hash) + AVATAR_FIELD_NUMBER; + hash = (53 * hash) + getAvatar().hashCode(); + hash = (37 * hash) + MESSENGER_ID_FIELD_NUMBER; + hash = (53 * hash) + getMessengerId(); + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item 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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item 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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item 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(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item 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 proto.MxbSearchResponse.Item} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbSearchResponse.Item) + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.class, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.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(); + id_ = 0L; + + nickname_ = ""; + + avatar_ = ""; + + messengerId_ = 0; + + phone_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_Item_descriptor; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getDefaultInstanceForType() { + return net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.getDefaultInstance(); + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item build() { + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item buildPartial() { + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item result = new net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item(this); + result.id_ = id_; + result.nickname_ = nickname_; + result.avatar_ = avatar_; + result.messengerId_ = messengerId_; + result.phone_ = phone_; + 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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item) { + return mergeFrom((net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item other) { + if (other == net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getNickname().isEmpty()) { + nickname_ = other.nickname_; + onChanged(); + } + if (!other.getAvatar().isEmpty()) { + avatar_ = other.avatar_; + onChanged(); + } + if (other.getMessengerId() != 0) { + setMessengerId(other.getMessengerId()); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + 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 { + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long id_ ; + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional uint64 id = 1; + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object nickname_ = ""; + /** + * optional string nickname = 2; + */ + public java.lang.String getNickname() { + java.lang.Object ref = nickname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nickname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string nickname = 2; + */ + public com.google.protobuf.ByteString + getNicknameBytes() { + java.lang.Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string nickname = 2; + */ + public Builder setNickname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nickname_ = value; + onChanged(); + return this; + } + /** + * optional string nickname = 2; + */ + public Builder clearNickname() { + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); + return this; + } + /** + * optional string nickname = 2; + */ + public Builder setNicknameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nickname_ = value; + onChanged(); + return this; + } + + private java.lang.Object avatar_ = ""; + /** + * optional string avatar = 3; + */ + public java.lang.String getAvatar() { + java.lang.Object ref = avatar_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + avatar_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string avatar = 3; + */ + public com.google.protobuf.ByteString + getAvatarBytes() { + java.lang.Object ref = avatar_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + avatar_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string avatar = 3; + */ + public Builder setAvatar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + avatar_ = value; + onChanged(); + return this; + } + /** + * optional string avatar = 3; + */ + public Builder clearAvatar() { + + avatar_ = getDefaultInstance().getAvatar(); + onChanged(); + return this; + } + /** + * optional string avatar = 3; + */ + public Builder setAvatarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + avatar_ = value; + onChanged(); + return this; + } + + private int messengerId_ ; + /** + * optional uint32 messenger_id = 4; + */ + public int getMessengerId() { + return messengerId_; + } + /** + * optional uint32 messenger_id = 4; + */ + public Builder setMessengerId(int value) { + + messengerId_ = value; + onChanged(); + return this; + } + /** + * optional uint32 messenger_id = 4; + */ + public Builder clearMessengerId() { + + messengerId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object phone_ = ""; + /** + * optional string phone = 5; + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string phone = 5; + */ + public com.google.protobuf.ByteString + getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string phone = 5; + */ + public Builder setPhone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + phone_ = value; + onChanged(); + return this; + } + /** + * optional string phone = 5; + */ + public Builder clearPhone() { + + phone_ = getDefaultInstance().getPhone(); + onChanged(); + return this; + } + /** + * optional string phone = 5; + */ + public Builder setPhoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phone_ = 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:proto.MxbSearchResponse.Item) + } + + // @@protoc_insertion_point(class_scope:proto.MxbSearchResponse.Item) + private static final net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item(); + } + + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Item parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Item(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getItems(int index) { + return items_.get(index); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + 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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse other = (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse 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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse 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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse 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(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse 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 proto.MxbSearchResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbSearchResponse) + net.iGap.proto.ProtoMxbSearch.MxbSearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.class, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMxbSearch.internal_static_proto_MxbSearchResponse_descriptor; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse build() { + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse buildPartial() { + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse result = new net.iGap.proto.ProtoMxbSearch.MxbSearchResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.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 net.iGap.proto.ProtoMxbSearch.MxbSearchResponse) { + return mergeFrom((net.iGap.proto.ProtoMxbSearch.MxbSearchResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse other) { + if (other == net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + 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 { + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMxbSearch.MxbSearchResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder> itemsBuilder_; + + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder setItems( + int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder setItems( + int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder addItems(net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder addItems( + int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder addItems( + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder addItems( + int index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.getDefaultInstance()); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.getDefaultInstance()); + } + /** + * repeated .proto.MxbSearchResponse.Item items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.Item.Builder, net.iGap.proto.ProtoMxbSearch.MxbSearchResponse.ItemOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + 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:proto.MxbSearchResponse) + } + + // @@protoc_insertion_point(class_scope:proto.MxbSearchResponse) + private static final net.iGap.proto.ProtoMxbSearch.MxbSearchResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMxbSearch.MxbSearchResponse(); + } + + public static net.iGap.proto.ProtoMxbSearch.MxbSearchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MxbSearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbSearchResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoMxbSearch.MxbSearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbSearch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbSearch_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbSearchResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbSearchResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbSearchResponse_Item_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbSearchResponse_Item_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\017MxbSearch.proto\022\005proto\032\rRequest.proto\032" + + "\016Response.proto\";\n\tMxbSearch\022\037\n\007request\030" + + "\001 \001(\0132\016.proto.Request\022\r\n\005phone\030\002 \001(\t\"\277\001\n" + + "\021MxbSearchResponse\022!\n\010response\030\001 \001(\0132\017.p" + + "roto.Response\022,\n\005items\030\002 \003(\0132\035.proto.Mxb" + + "SearchResponse.Item\032Y\n\004Item\022\n\n\002id\030\001 \001(\004\022" + + "\020\n\010nickname\030\002 \001(\t\022\016\n\006avatar\030\003 \001(\t\022\024\n\014mes" + + "senger_id\030\004 \001(\r\022\r\n\005phone\030\005 \001(\tB \n\016net.iG" + + "ap.protoB\016ProtoMxbSearchb\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[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }, assigner); + internal_static_proto_MxbSearch_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MxbSearch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbSearch_descriptor, + new java.lang.String[] { "Request", "Phone", }); + internal_static_proto_MxbSearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MxbSearchResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbSearchResponse_descriptor, + new java.lang.String[] { "Response", "Items", }); + internal_static_proto_MxbSearchResponse_Item_descriptor = + internal_static_proto_MxbSearchResponse_descriptor.getNestedTypes().get(0); + internal_static_proto_MxbSearchResponse_Item_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbSearchResponse_Item_descriptor, + new java.lang.String[] { "Id", "Nickname", "Avatar", "MessengerId", "Phone", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoMxbUser.java b/src/main/java/net/iGap/proto/ProtoMxbUser.java new file mode 100644 index 0000000..ee4aa57 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoMxbUser.java @@ -0,0 +1,1543 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MxbUser.proto + +package net.iGap.proto; + +public final class ProtoMxbUser { + private ProtoMxbUser() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code proto.StatusAction} + */ + public enum StatusAction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ACTIVATE = 0; + */ + ACTIVATE(0), + /** + * DEACTIVATE = 1; + */ + DEACTIVATE(1), + UNRECOGNIZED(-1), + ; + + /** + * ACTIVATE = 0; + */ + public static final int ACTIVATE_VALUE = 0; + /** + * DEACTIVATE = 1; + */ + public static final int DEACTIVATE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StatusAction valueOf(int value) { + return forNumber(value); + } + + public static StatusAction forNumber(int value) { + switch (value) { + case 0: return ACTIVATE; + case 1: return DEACTIVATE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StatusAction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StatusAction findValueByNumber(int number) { + return StatusAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbUser.getDescriptor().getEnumTypes().get(0); + } + + private static final StatusAction[] VALUES = values(); + + public static StatusAction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StatusAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.StatusAction) + } + + public interface MxbUserOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbUser) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional int64 mxb_user_id = 2; + */ + long getMxbUserId(); + + /** + * optional .proto.StatusAction status_action = 3; + */ + int getStatusActionValue(); + /** + * optional .proto.StatusAction status_action = 3; + */ + net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction(); + } + /** + * Protobuf type {@code proto.MxbUser} + */ + public static final class MxbUser extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbUser) + MxbUserOrBuilder { + // Use MxbUser.newBuilder() to construct. + private MxbUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbUser() { + mxbUserId_ = 0L; + statusAction_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MxbUser( + 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: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + mxbUserId_ = input.readInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + statusAction_ = rawValue; + 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 net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUser.MxbUser.class, net.iGap.proto.ProtoMxbUser.MxbUser.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int MXB_USER_ID_FIELD_NUMBER = 2; + private long mxbUserId_; + /** + * optional int64 mxb_user_id = 2; + */ + public long getMxbUserId() { + return mxbUserId_; + } + + public static final int STATUS_ACTION_FIELD_NUMBER = 3; + private int statusAction_; + /** + * optional .proto.StatusAction status_action = 3; + */ + public int getStatusActionValue() { + return statusAction_; + } + /** + * optional .proto.StatusAction status_action = 3; + */ + public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { + net.iGap.proto.ProtoMxbUser.StatusAction result = net.iGap.proto.ProtoMxbUser.StatusAction.valueOf(statusAction_); + return result == null ? net.iGap.proto.ProtoMxbUser.StatusAction.UNRECOGNIZED : result; + } + + 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (mxbUserId_ != 0L) { + output.writeInt64(2, mxbUserId_); + } + if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { + output.writeEnum(3, statusAction_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (mxbUserId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, mxbUserId_); + } + if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, statusAction_); + } + 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 net.iGap.proto.ProtoMxbUser.MxbUser)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMxbUser.MxbUser other = (net.iGap.proto.ProtoMxbUser.MxbUser) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && (getMxbUserId() + == other.getMxbUserId()); + result = result && statusAction_ == other.statusAction_; + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + MXB_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMxbUserId()); + hash = (37 * hash) + STATUS_ACTION_FIELD_NUMBER; + hash = (53 * hash) + statusAction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUser.MxbUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUser.MxbUser 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 net.iGap.proto.ProtoMxbUser.MxbUser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUser.MxbUser 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 net.iGap.proto.ProtoMxbUser.MxbUser parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUser.MxbUser 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(net.iGap.proto.ProtoMxbUser.MxbUser 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 proto.MxbUser} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbUser) + net.iGap.proto.ProtoMxbUser.MxbUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUser.MxbUser.class, net.iGap.proto.ProtoMxbUser.MxbUser.Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbUser.MxbUser.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(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + mxbUserId_ = 0L; + + statusAction_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUser_descriptor; + } + + public net.iGap.proto.ProtoMxbUser.MxbUser getDefaultInstanceForType() { + return net.iGap.proto.ProtoMxbUser.MxbUser.getDefaultInstance(); + } + + public net.iGap.proto.ProtoMxbUser.MxbUser build() { + net.iGap.proto.ProtoMxbUser.MxbUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoMxbUser.MxbUser buildPartial() { + net.iGap.proto.ProtoMxbUser.MxbUser result = new net.iGap.proto.ProtoMxbUser.MxbUser(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.mxbUserId_ = mxbUserId_; + result.statusAction_ = statusAction_; + 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 net.iGap.proto.ProtoMxbUser.MxbUser) { + return mergeFrom((net.iGap.proto.ProtoMxbUser.MxbUser)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMxbUser.MxbUser other) { + if (other == net.iGap.proto.ProtoMxbUser.MxbUser.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getMxbUserId() != 0L) { + setMxbUserId(other.getMxbUserId()); + } + if (other.statusAction_ != 0) { + setStatusActionValue(other.getStatusActionValue()); + } + 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 { + net.iGap.proto.ProtoMxbUser.MxbUser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMxbUser.MxbUser) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private long mxbUserId_ ; + /** + * optional int64 mxb_user_id = 2; + */ + public long getMxbUserId() { + return mxbUserId_; + } + /** + * optional int64 mxb_user_id = 2; + */ + public Builder setMxbUserId(long value) { + + mxbUserId_ = value; + onChanged(); + return this; + } + /** + * optional int64 mxb_user_id = 2; + */ + public Builder clearMxbUserId() { + + mxbUserId_ = 0L; + onChanged(); + return this; + } + + private int statusAction_ = 0; + /** + * optional .proto.StatusAction status_action = 3; + */ + public int getStatusActionValue() { + return statusAction_; + } + /** + * optional .proto.StatusAction status_action = 3; + */ + public Builder setStatusActionValue(int value) { + statusAction_ = value; + onChanged(); + return this; + } + /** + * optional .proto.StatusAction status_action = 3; + */ + public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { + net.iGap.proto.ProtoMxbUser.StatusAction result = net.iGap.proto.ProtoMxbUser.StatusAction.valueOf(statusAction_); + return result == null ? net.iGap.proto.ProtoMxbUser.StatusAction.UNRECOGNIZED : result; + } + /** + * optional .proto.StatusAction status_action = 3; + */ + public Builder setStatusAction(net.iGap.proto.ProtoMxbUser.StatusAction value) { + if (value == null) { + throw new NullPointerException(); + } + + statusAction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.StatusAction status_action = 3; + */ + public Builder clearStatusAction() { + + statusAction_ = 0; + 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:proto.MxbUser) + } + + // @@protoc_insertion_point(class_scope:proto.MxbUser) + private static final net.iGap.proto.ProtoMxbUser.MxbUser DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMxbUser.MxbUser(); + } + + public static net.iGap.proto.ProtoMxbUser.MxbUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MxbUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUser(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoMxbUser.MxbUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MxbUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * optional .proto.StatusAction status_action = 2; + */ + int getStatusActionValue(); + /** + * optional .proto.StatusAction status_action = 2; + */ + net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction(); + } + /** + * Protobuf type {@code proto.MxbUserResponse} + */ + public static final class MxbUserResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbUserResponse) + MxbUserResponseOrBuilder { + // Use MxbUserResponse.newBuilder() to construct. + private MxbUserResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbUserResponse() { + statusAction_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MxbUserResponse( + 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: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + statusAction_ = rawValue; + 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 net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUserResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUser.MxbUserResponse.class, net.iGap.proto.ProtoMxbUser.MxbUserResponse.Builder.class); + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int STATUS_ACTION_FIELD_NUMBER = 2; + private int statusAction_; + /** + * optional .proto.StatusAction status_action = 2; + */ + public int getStatusActionValue() { + return statusAction_; + } + /** + * optional .proto.StatusAction status_action = 2; + */ + public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { + net.iGap.proto.ProtoMxbUser.StatusAction result = net.iGap.proto.ProtoMxbUser.StatusAction.valueOf(statusAction_); + return result == null ? net.iGap.proto.ProtoMxbUser.StatusAction.UNRECOGNIZED : result; + } + + 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { + output.writeEnum(2, statusAction_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + if (statusAction_ != net.iGap.proto.ProtoMxbUser.StatusAction.ACTIVATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, statusAction_); + } + 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 net.iGap.proto.ProtoMxbUser.MxbUserResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMxbUser.MxbUserResponse other = (net.iGap.proto.ProtoMxbUser.MxbUserResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && statusAction_ == other.statusAction_; + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + STATUS_ACTION_FIELD_NUMBER; + hash = (53 * hash) + statusAction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse 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 net.iGap.proto.ProtoMxbUser.MxbUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse 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 net.iGap.proto.ProtoMxbUser.MxbUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse 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(net.iGap.proto.ProtoMxbUser.MxbUserResponse 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 proto.MxbUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbUserResponse) + net.iGap.proto.ProtoMxbUser.MxbUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUserResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUser.MxbUserResponse.class, net.iGap.proto.ProtoMxbUser.MxbUserResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbUser.MxbUserResponse.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(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + statusAction_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMxbUser.internal_static_proto_MxbUserResponse_descriptor; + } + + public net.iGap.proto.ProtoMxbUser.MxbUserResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMxbUser.MxbUserResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoMxbUser.MxbUserResponse build() { + net.iGap.proto.ProtoMxbUser.MxbUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoMxbUser.MxbUserResponse buildPartial() { + net.iGap.proto.ProtoMxbUser.MxbUserResponse result = new net.iGap.proto.ProtoMxbUser.MxbUserResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.statusAction_ = statusAction_; + 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 net.iGap.proto.ProtoMxbUser.MxbUserResponse) { + return mergeFrom((net.iGap.proto.ProtoMxbUser.MxbUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMxbUser.MxbUserResponse other) { + if (other == net.iGap.proto.ProtoMxbUser.MxbUserResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.statusAction_ != 0) { + setStatusActionValue(other.getStatusActionValue()); + } + 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 { + net.iGap.proto.ProtoMxbUser.MxbUserResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMxbUser.MxbUserResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private int statusAction_ = 0; + /** + * optional .proto.StatusAction status_action = 2; + */ + public int getStatusActionValue() { + return statusAction_; + } + /** + * optional .proto.StatusAction status_action = 2; + */ + public Builder setStatusActionValue(int value) { + statusAction_ = value; + onChanged(); + return this; + } + /** + * optional .proto.StatusAction status_action = 2; + */ + public net.iGap.proto.ProtoMxbUser.StatusAction getStatusAction() { + net.iGap.proto.ProtoMxbUser.StatusAction result = net.iGap.proto.ProtoMxbUser.StatusAction.valueOf(statusAction_); + return result == null ? net.iGap.proto.ProtoMxbUser.StatusAction.UNRECOGNIZED : result; + } + /** + * optional .proto.StatusAction status_action = 2; + */ + public Builder setStatusAction(net.iGap.proto.ProtoMxbUser.StatusAction value) { + if (value == null) { + throw new NullPointerException(); + } + + statusAction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.StatusAction status_action = 2; + */ + public Builder clearStatusAction() { + + statusAction_ = 0; + 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:proto.MxbUserResponse) + } + + // @@protoc_insertion_point(class_scope:proto.MxbUserResponse) + private static final net.iGap.proto.ProtoMxbUser.MxbUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMxbUser.MxbUserResponse(); + } + + public static net.iGap.proto.ProtoMxbUser.MxbUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MxbUserResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUserResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoMxbUser.MxbUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUser_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUser_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUserResponse_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\rMxbUser.proto\022\005proto\032\rRequest.proto\032\016R" + + "esponse.proto\"k\n\007MxbUser\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\023\n\013mxb_user_id\030\002 \001(\003\022*" + + "\n\rstatus_action\030\003 \001(\0162\023.proto.StatusActi" + + "on\"`\n\017MxbUserResponse\022!\n\010response\030\001 \001(\0132" + + "\017.proto.Response\022*\n\rstatus_action\030\002 \001(\0162" + + "\023.proto.StatusAction*,\n\014StatusAction\022\014\n\010" + + "ACTIVATE\020\000\022\016\n\nDEACTIVATE\020\001B\036\n\016net.iGap.p" + + "rotoB\014ProtoMxbUserb\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[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + }, assigner); + internal_static_proto_MxbUser_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MxbUser_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUser_descriptor, + new java.lang.String[] { "Request", "MxbUserId", "StatusAction", }); + internal_static_proto_MxbUserResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MxbUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUserResponse_descriptor, + new java.lang.String[] { "Response", "StatusAction", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoMxbUserInsertion.java b/src/main/java/net/iGap/proto/ProtoMxbUserInsertion.java new file mode 100644 index 0000000..35ed5f9 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoMxbUserInsertion.java @@ -0,0 +1,1395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MxbUserInsertion.proto + +package net.iGap.proto; + +public final class ProtoMxbUserInsertion { + private ProtoMxbUserInsertion() {} + 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 MxbUserInsertionOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbUserInsertion) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional uint32 messenger_id = 2; + */ + int getMessengerId(); + + /** + * optional string phone = 3; + */ + java.lang.String getPhone(); + /** + * optional string phone = 3; + */ + com.google.protobuf.ByteString + getPhoneBytes(); + } + /** + * Protobuf type {@code proto.MxbUserInsertion} + */ + public static final class MxbUserInsertion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbUserInsertion) + MxbUserInsertionOrBuilder { + // Use MxbUserInsertion.newBuilder() to construct. + private MxbUserInsertion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbUserInsertion() { + messengerId_ = 0; + phone_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MxbUserInsertion( + 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: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + messengerId_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + phone_ = 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 net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.class, net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int MESSENGER_ID_FIELD_NUMBER = 2; + private int messengerId_; + /** + * optional uint32 messenger_id = 2; + */ + public int getMessengerId() { + return messengerId_; + } + + public static final int PHONE_FIELD_NUMBER = 3; + private volatile java.lang.Object phone_; + /** + * optional string phone = 3; + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + 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(); + phone_ = s; + return s; + } + } + /** + * optional string phone = 3; + */ + public com.google.protobuf.ByteString + getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (messengerId_ != 0) { + output.writeUInt32(2, messengerId_); + } + if (!getPhoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phone_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (messengerId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, messengerId_); + } + if (!getPhoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phone_); + } + 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion other = (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && (getMessengerId() + == other.getMessengerId()); + result = result && getPhone() + .equals(other.getPhone()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + MESSENGER_ID_FIELD_NUMBER; + hash = (53 * hash) + getMessengerId(); + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion 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(net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion 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 proto.MxbUserInsertion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbUserInsertion) + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.class, net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.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(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + messengerId_ = 0; + + phone_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertion_descriptor; + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion getDefaultInstanceForType() { + return net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.getDefaultInstance(); + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion build() { + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion buildPartial() { + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion result = new net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.messengerId_ = messengerId_; + result.phone_ = phone_; + 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion) { + return mergeFrom((net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion other) { + if (other == net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getMessengerId() != 0) { + setMessengerId(other.getMessengerId()); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + 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 { + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private int messengerId_ ; + /** + * optional uint32 messenger_id = 2; + */ + public int getMessengerId() { + return messengerId_; + } + /** + * optional uint32 messenger_id = 2; + */ + public Builder setMessengerId(int value) { + + messengerId_ = value; + onChanged(); + return this; + } + /** + * optional uint32 messenger_id = 2; + */ + public Builder clearMessengerId() { + + messengerId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object phone_ = ""; + /** + * optional string phone = 3; + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string phone = 3; + */ + public com.google.protobuf.ByteString + getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string phone = 3; + */ + public Builder setPhone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + phone_ = value; + onChanged(); + return this; + } + /** + * optional string phone = 3; + */ + public Builder clearPhone() { + + phone_ = getDefaultInstance().getPhone(); + onChanged(); + return this; + } + /** + * optional string phone = 3; + */ + public Builder setPhoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phone_ = 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:proto.MxbUserInsertion) + } + + // @@protoc_insertion_point(class_scope:proto.MxbUserInsertion) + private static final net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion(); + } + + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MxbUserInsertion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUserInsertion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MxbUserInsertionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MxbUserInsertionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + } + /** + * Protobuf type {@code proto.MxbUserInsertionResponse} + */ + public static final class MxbUserInsertionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.MxbUserInsertionResponse) + MxbUserInsertionResponseOrBuilder { + // Use MxbUserInsertionResponse.newBuilder() to construct. + private MxbUserInsertionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MxbUserInsertionResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MxbUserInsertionResponse( + 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: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = 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 net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.class, net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.Builder.class); + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse other = (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse 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(net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse 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 proto.MxbUserInsertionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.MxbUserInsertionResponse) + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.class, net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.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(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoMxbUserInsertion.internal_static_proto_MxbUserInsertionResponse_descriptor; + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse build() { + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse buildPartial() { + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse result = new net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + 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 net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse) { + return mergeFrom((net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse other) { + if (other == net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + 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 { + net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + 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:proto.MxbUserInsertionResponse) + } + + // @@protoc_insertion_point(class_scope:proto.MxbUserInsertionResponse) + private static final net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse(); + } + + public static net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MxbUserInsertionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MxbUserInsertionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoMxbUserInsertion.MxbUserInsertionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUserInsertion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUserInsertion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_MxbUserInsertionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_MxbUserInsertionResponse_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\026MxbUserInsertion.proto\022\005proto\032\016Respons" + + "e.proto\032\rRequest.proto\"X\n\020MxbUserInserti" + + "on\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\024\n\014m" + + "essenger_id\030\002 \001(\r\022\r\n\005phone\030\003 \001(\t\"=\n\030MxbU" + + "serInsertionResponse\022!\n\010response\030\001 \001(\0132\017" + + ".proto.ResponseB\'\n\016net.iGap.protoB\025Proto" + + "MxbUserInsertionb\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[] { + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoRequest.getDescriptor(), + }, assigner); + internal_static_proto_MxbUserInsertion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_MxbUserInsertion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUserInsertion_descriptor, + new java.lang.String[] { "Request", "MessengerId", "Phone", }); + internal_static_proto_MxbUserInsertionResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_MxbUserInsertionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MxbUserInsertionResponse_descriptor, + new java.lang.String[] { "Response", }); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoRequest.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoPinMessage.java b/src/main/java/net/iGap/proto/ProtoPinMessage.java new file mode 100644 index 0000000..538637d --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoPinMessage.java @@ -0,0 +1,1649 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PinMessage.proto + +package net.iGap.proto; + +public final class ProtoPinMessage { + private ProtoPinMessage() {} + 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 PinMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.PinMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional uint64 room_id = 2; + */ + long getRoomId(); + + /** + * optional uint64 message_id = 3; + */ + long getMessageId(); + + /** + * optional uint64 document_id = 4; + */ + long getDocumentId(); + } + /** + * Protobuf type {@code proto.PinMessage} + */ + public static final class PinMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.PinMessage) + PinMessageOrBuilder { + // Use PinMessage.newBuilder() to construct. + private PinMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PinMessage() { + roomId_ = 0L; + messageId_ = 0L; + documentId_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private PinMessage( + 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: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 24: { + + messageId_ = input.readUInt64(); + break; + } + case 32: { + + documentId_ = input.readUInt64(); + 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 net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessage.class, net.iGap.proto.ProtoPinMessage.PinMessage.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int ROOM_ID_FIELD_NUMBER = 2; + private long roomId_; + /** + * optional uint64 room_id = 2; + */ + public long getRoomId() { + return roomId_; + } + + public static final int MESSAGE_ID_FIELD_NUMBER = 3; + private long messageId_; + /** + * optional uint64 message_id = 3; + */ + public long getMessageId() { + return messageId_; + } + + public static final int DOCUMENT_ID_FIELD_NUMBER = 4; + private long documentId_; + /** + * optional uint64 document_id = 4; + */ + public long getDocumentId() { + return documentId_; + } + + 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 (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (roomId_ != 0L) { + output.writeUInt64(2, roomId_); + } + if (messageId_ != 0L) { + output.writeUInt64(3, messageId_); + } + if (documentId_ != 0L) { + output.writeUInt64(4, documentId_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (roomId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, roomId_); + } + if (messageId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, messageId_); + } + if (documentId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, documentId_); + } + 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 net.iGap.proto.ProtoPinMessage.PinMessage)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPinMessage.PinMessage other = (net.iGap.proto.ProtoPinMessage.PinMessage) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && (getRoomId() + == other.getRoomId()); + result = result && (getMessageId() + == other.getMessageId()); + result = result && (getDocumentId() + == other.getDocumentId()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMessageId()); + hash = (37 * hash) + DOCUMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDocumentId()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage 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 net.iGap.proto.ProtoPinMessage.PinMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage 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 net.iGap.proto.ProtoPinMessage.PinMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoPinMessage.PinMessage 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(net.iGap.proto.ProtoPinMessage.PinMessage 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 proto.PinMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.PinMessage) + net.iGap.proto.ProtoPinMessage.PinMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessage.class, net.iGap.proto.ProtoPinMessage.PinMessage.Builder.class); + } + + // Construct using net.iGap.proto.ProtoPinMessage.PinMessage.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(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + roomId_ = 0L; + + messageId_ = 0L; + + documentId_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessage_descriptor; + } + + public net.iGap.proto.ProtoPinMessage.PinMessage getDefaultInstanceForType() { + return net.iGap.proto.ProtoPinMessage.PinMessage.getDefaultInstance(); + } + + public net.iGap.proto.ProtoPinMessage.PinMessage build() { + net.iGap.proto.ProtoPinMessage.PinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoPinMessage.PinMessage buildPartial() { + net.iGap.proto.ProtoPinMessage.PinMessage result = new net.iGap.proto.ProtoPinMessage.PinMessage(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.roomId_ = roomId_; + result.messageId_ = messageId_; + result.documentId_ = documentId_; + 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 net.iGap.proto.ProtoPinMessage.PinMessage) { + return mergeFrom((net.iGap.proto.ProtoPinMessage.PinMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoPinMessage.PinMessage other) { + if (other == net.iGap.proto.ProtoPinMessage.PinMessage.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.getMessageId() != 0L) { + setMessageId(other.getMessageId()); + } + if (other.getDocumentId() != 0L) { + setDocumentId(other.getDocumentId()); + } + 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 { + net.iGap.proto.ProtoPinMessage.PinMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPinMessage.PinMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private long roomId_ ; + /** + * optional uint64 room_id = 2; + */ + public long getRoomId() { + return roomId_; + } + /** + * optional uint64 room_id = 2; + */ + public Builder setRoomId(long value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 room_id = 2; + */ + public Builder clearRoomId() { + + roomId_ = 0L; + onChanged(); + return this; + } + + private long messageId_ ; + /** + * optional uint64 message_id = 3; + */ + public long getMessageId() { + return messageId_; + } + /** + * optional uint64 message_id = 3; + */ + public Builder setMessageId(long value) { + + messageId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 message_id = 3; + */ + public Builder clearMessageId() { + + messageId_ = 0L; + onChanged(); + return this; + } + + private long documentId_ ; + /** + * optional uint64 document_id = 4; + */ + public long getDocumentId() { + return documentId_; + } + /** + * optional uint64 document_id = 4; + */ + public Builder setDocumentId(long value) { + + documentId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 document_id = 4; + */ + public Builder clearDocumentId() { + + documentId_ = 0L; + 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:proto.PinMessage) + } + + // @@protoc_insertion_point(class_scope:proto.PinMessage) + private static final net.iGap.proto.ProtoPinMessage.PinMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPinMessage.PinMessage(); + } + + public static net.iGap.proto.ProtoPinMessage.PinMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PinMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PinMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoPinMessage.PinMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PinMessageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.PinMessageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * optional uint64 room_id = 2; + */ + long getRoomId(); + + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + boolean hasPinnedMessage(); + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage(); + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder(); + } + /** + * Protobuf type {@code proto.PinMessageResponse} + */ + public static final class PinMessageResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.PinMessageResponse) + PinMessageResponseOrBuilder { + // Use PinMessageResponse.newBuilder() to construct. + private PinMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PinMessageResponse() { + roomId_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private PinMessageResponse( + 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: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + roomId_ = input.readUInt64(); + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RoomMessage.Builder subBuilder = null; + if (pinnedMessage_ != null) { + subBuilder = pinnedMessage_.toBuilder(); + } + pinnedMessage_ = input.readMessage(net.iGap.proto.ProtoGlobal.RoomMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pinnedMessage_); + pinnedMessage_ = 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 net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessageResponse.class, net.iGap.proto.ProtoPinMessage.PinMessageResponse.Builder.class); + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int ROOM_ID_FIELD_NUMBER = 2; + private long roomId_; + /** + * optional uint64 room_id = 2; + */ + public long getRoomId() { + return roomId_; + } + + public static final int PINNED_MESSAGE_FIELD_NUMBER = 3; + private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_; + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public boolean hasPinnedMessage() { + return pinnedMessage_ != null; + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { + return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + return getPinnedMessage(); + } + + 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (roomId_ != 0L) { + output.writeUInt64(2, roomId_); + } + if (pinnedMessage_ != null) { + output.writeMessage(3, getPinnedMessage()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + if (roomId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, roomId_); + } + if (pinnedMessage_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPinnedMessage()); + } + 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 net.iGap.proto.ProtoPinMessage.PinMessageResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoPinMessage.PinMessageResponse other = (net.iGap.proto.ProtoPinMessage.PinMessageResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && (getRoomId() + == other.getRoomId()); + result = result && (hasPinnedMessage() == other.hasPinnedMessage()); + if (hasPinnedMessage()) { + result = result && getPinnedMessage() + .equals(other.getPinnedMessage()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + ROOM_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRoomId()); + if (hasPinnedMessage()) { + hash = (37 * hash) + PINNED_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getPinnedMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse 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 net.iGap.proto.ProtoPinMessage.PinMessageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse 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 net.iGap.proto.ProtoPinMessage.PinMessageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse 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(net.iGap.proto.ProtoPinMessage.PinMessageResponse 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 proto.PinMessageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.PinMessageResponse) + net.iGap.proto.ProtoPinMessage.PinMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoPinMessage.PinMessageResponse.class, net.iGap.proto.ProtoPinMessage.PinMessageResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoPinMessage.PinMessageResponse.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(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + roomId_ = 0L; + + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoPinMessage.internal_static_proto_PinMessageResponse_descriptor; + } + + public net.iGap.proto.ProtoPinMessage.PinMessageResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoPinMessage.PinMessageResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoPinMessage.PinMessageResponse build() { + net.iGap.proto.ProtoPinMessage.PinMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoPinMessage.PinMessageResponse buildPartial() { + net.iGap.proto.ProtoPinMessage.PinMessageResponse result = new net.iGap.proto.ProtoPinMessage.PinMessageResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.roomId_ = roomId_; + if (pinnedMessageBuilder_ == null) { + result.pinnedMessage_ = pinnedMessage_; + } else { + result.pinnedMessage_ = pinnedMessageBuilder_.build(); + } + 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 net.iGap.proto.ProtoPinMessage.PinMessageResponse) { + return mergeFrom((net.iGap.proto.ProtoPinMessage.PinMessageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoPinMessage.PinMessageResponse other) { + if (other == net.iGap.proto.ProtoPinMessage.PinMessageResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getRoomId() != 0L) { + setRoomId(other.getRoomId()); + } + if (other.hasPinnedMessage()) { + mergePinnedMessage(other.getPinnedMessage()); + } + 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 { + net.iGap.proto.ProtoPinMessage.PinMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoPinMessage.PinMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private long roomId_ ; + /** + * optional uint64 room_id = 2; + */ + public long getRoomId() { + return roomId_; + } + /** + * optional uint64 room_id = 2; + */ + public Builder setRoomId(long value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 room_id = 2; + */ + public Builder clearRoomId() { + + roomId_ = 0L; + onChanged(); + return this; + } + + private net.iGap.proto.ProtoGlobal.RoomMessage pinnedMessage_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> pinnedMessageBuilder_; + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public boolean hasPinnedMessage() { + return pinnedMessageBuilder_ != null || pinnedMessage_ != null; + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage getPinnedMessage() { + if (pinnedMessageBuilder_ == null) { + return pinnedMessage_ == null ? net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } else { + return pinnedMessageBuilder_.getMessage(); + } + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public Builder setPinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { + if (pinnedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pinnedMessage_ = value; + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public Builder setPinnedMessage( + net.iGap.proto.ProtoGlobal.RoomMessage.Builder builderForValue) { + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = builderForValue.build(); + onChanged(); + } else { + pinnedMessageBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public Builder mergePinnedMessage(net.iGap.proto.ProtoGlobal.RoomMessage value) { + if (pinnedMessageBuilder_ == null) { + if (pinnedMessage_ != null) { + pinnedMessage_ = + net.iGap.proto.ProtoGlobal.RoomMessage.newBuilder(pinnedMessage_).mergeFrom(value).buildPartial(); + } else { + pinnedMessage_ = value; + } + onChanged(); + } else { + pinnedMessageBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public Builder clearPinnedMessage() { + if (pinnedMessageBuilder_ == null) { + pinnedMessage_ = null; + onChanged(); + } else { + pinnedMessage_ = null; + pinnedMessageBuilder_ = null; + } + + return this; + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessage.Builder getPinnedMessageBuilder() { + + onChanged(); + return getPinnedMessageFieldBuilder().getBuilder(); + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + public net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder getPinnedMessageOrBuilder() { + if (pinnedMessageBuilder_ != null) { + return pinnedMessageBuilder_.getMessageOrBuilder(); + } else { + return pinnedMessage_ == null ? + net.iGap.proto.ProtoGlobal.RoomMessage.getDefaultInstance() : pinnedMessage_; + } + } + /** + * optional .proto.RoomMessage pinned_message = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder> + getPinnedMessageFieldBuilder() { + if (pinnedMessageBuilder_ == null) { + pinnedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoGlobal.RoomMessage, net.iGap.proto.ProtoGlobal.RoomMessage.Builder, net.iGap.proto.ProtoGlobal.RoomMessageOrBuilder>( + getPinnedMessage(), + getParentForChildren(), + isClean()); + pinnedMessage_ = null; + } + return pinnedMessageBuilder_; + } + 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:proto.PinMessageResponse) + } + + // @@protoc_insertion_point(class_scope:proto.PinMessageResponse) + private static final net.iGap.proto.ProtoPinMessage.PinMessageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoPinMessage.PinMessageResponse(); + } + + public static net.iGap.proto.ProtoPinMessage.PinMessageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PinMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PinMessageResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoPinMessage.PinMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PinMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PinMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_PinMessageResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_PinMessageResponse_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\020PinMessage.proto\022\005proto\032\rRequest.proto" + + "\032\016Response.proto\032\014Global.proto\"g\n\nPinMes" + + "sage\022\037\n\007request\030\001 \001(\0132\016.proto.Request\022\017\n" + + "\007room_id\030\002 \001(\004\022\022\n\nmessage_id\030\003 \001(\004\022\023\n\013do" + + "cument_id\030\004 \001(\004\"t\n\022PinMessageResponse\022!\n" + + "\010response\030\001 \001(\0132\017.proto.Response\022\017\n\007room" + + "_id\030\002 \001(\004\022*\n\016pinned_message\030\003 \001(\0132\022.prot" + + "o.RoomMessageB!\n\016net.iGap.protoB\017ProtoPi" + + "nMessageb\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[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }, assigner); + internal_static_proto_PinMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_PinMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PinMessage_descriptor, + new java.lang.String[] { "Request", "RoomId", "MessageId", "DocumentId", }); + internal_static_proto_PinMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_PinMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_PinMessageResponse_descriptor, + new java.lang.String[] { "Response", "RoomId", "PinnedMessage", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/net/iGap/proto/ProtoRequest.java b/src/main/java/net/iGap/proto/ProtoRequest.java index 6f343d1..b626361 100644 --- a/src/main/java/net/iGap/proto/ProtoRequest.java +++ b/src/main/java/net/iGap/proto/ProtoRequest.java @@ -27,6 +27,16 @@ public interface RequestOrBuilder extends */ com.google.protobuf.ByteString getIdBytes(); + + /** + * optional string token = 2; + */ + java.lang.String getToken(); + /** + * optional string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); } /** * Protobuf type {@code proto.Request} @@ -41,6 +51,7 @@ private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Request() { id_ = ""; + token_ = ""; } @java.lang.Override @@ -74,6 +85,12 @@ private Request( id_ = s; break; } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -131,6 +148,40 @@ public java.lang.String getId() { } } + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + * optional string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + * optional string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,6 +197,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } } public int getSerializedSize() { @@ -156,6 +210,9 @@ public int getSerializedSize() { if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } memoizedSize = size; return size; } @@ -174,6 +231,8 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getId() .equals(other.getId()); + result = result && getToken() + .equals(other.getToken()); return result; } @@ -186,6 +245,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -306,6 +367,8 @@ public Builder clear() { super.clear(); id_ = ""; + token_ = ""; + return this; } @@ -329,6 +392,7 @@ public net.iGap.proto.ProtoRequest.Request build() { public net.iGap.proto.ProtoRequest.Request buildPartial() { net.iGap.proto.ProtoRequest.Request result = new net.iGap.proto.ProtoRequest.Request(this); result.id_ = id_; + result.token_ = token_; onBuilt(); return result; } @@ -374,6 +438,10 @@ public Builder mergeFrom(net.iGap.proto.ProtoRequest.Request other) { id_ = other.id_; onChanged(); } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } onChanged(); return this; } @@ -468,6 +536,75 @@ public Builder setIdBytes( onChanged(); return this; } + + private java.lang.Object token_ = ""; + /** + * optional string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * optional string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * optional string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -531,9 +668,9 @@ public net.iGap.proto.ProtoRequest.Request getDefaultInstanceForType() { descriptor; static { java.lang.String[] descriptorData = { - "\n\rRequest.proto\022\005proto\"\025\n\007Request\022\n\n\002id\030" + - "\001 \001(\tB\036\n\016net.iGap.protoB\014ProtoRequestb\006p" + - "roto3" + "\n\rRequest.proto\022\005proto\"$\n\007Request\022\n\n\002id\030" + + "\001 \001(\t\022\r\n\005token\030\002 \001(\tB\036\n\016net.iGap.protoB\014" + + "ProtoRequestb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -552,7 +689,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_Request_descriptor, - new java.lang.String[] { "Id", }); + new java.lang.String[] { "Id", "Token", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/net/iGap/proto/ProtoStoryGetStories.java b/src/main/java/net/iGap/proto/ProtoStoryGetStories.java index 817b124..3e5d8a6 100644 --- a/src/main/java/net/iGap/proto/ProtoStoryGetStories.java +++ b/src/main/java/net/iGap/proto/ProtoStoryGetStories.java @@ -773,13 +773,13 @@ public interface GroupedStoriesOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ int getOriginatorValue(); /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ - net.iGap.proto.ProtoGlobal.Originator getOriginator(); + net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator getOriginator(); /** * optional uint64 originator_id = 2 [jstype = JS_STRING]; @@ -937,21 +937,119 @@ private GroupedStories( net.iGap.proto.ProtoStoryGetStories.GroupedStories.class, net.iGap.proto.ProtoStoryGetStories.GroupedStories.Builder.class); } + /** + * Protobuf enum {@code proto.GroupedStories.Originator} + */ + public enum Originator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * User = 0; + */ + User(0), + /** + * Room = 1; + */ + Room(1), + UNRECOGNIZED(-1), + ; + + /** + * User = 0; + */ + public static final int User_VALUE = 0; + /** + * Room = 1; + */ + public static final int Room_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Originator valueOf(int value) { + return forNumber(value); + } + + public static Originator forNumber(int value) { + switch (value) { + case 0: return User; + case 1: return Room; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Originator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Originator findValueByNumber(int number) { + return Originator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return net.iGap.proto.ProtoStoryGetStories.GroupedStories.getDescriptor().getEnumTypes().get(0); + } + + private static final Originator[] VALUES = values(); + + public static Originator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Originator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.GroupedStories.Originator) + } + private int bitField0_; public static final int ORIGINATOR_FIELD_NUMBER = 1; private int originator_; /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ public int getOriginatorValue() { return originator_; } /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ - public net.iGap.proto.ProtoGlobal.Originator getOriginator() { - net.iGap.proto.ProtoGlobal.Originator result = net.iGap.proto.ProtoGlobal.Originator.valueOf(originator_); - return result == null ? net.iGap.proto.ProtoGlobal.Originator.UNRECOGNIZED : result; + public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator getOriginator() { + net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator result = net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.valueOf(originator_); + return result == null ? net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.UNRECOGNIZED : result; } public static final int ORIGINATOR_ID_FIELD_NUMBER = 2; @@ -1062,7 +1160,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (originator_ != net.iGap.proto.ProtoGlobal.Originator.USER.getNumber()) { + if (originator_ != net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.User.getNumber()) { output.writeEnum(1, originator_); } if (originatorId_ != 0L) { @@ -1087,7 +1185,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (originator_ != net.iGap.proto.ProtoGlobal.Originator.USER.getNumber()) { + if (originator_ != net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.User.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, originator_); } @@ -1450,13 +1548,13 @@ public Builder mergeFrom( private int originator_ = 0; /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ public int getOriginatorValue() { return originator_; } /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ public Builder setOriginatorValue(int value) { originator_ = value; @@ -1464,16 +1562,16 @@ public Builder setOriginatorValue(int value) { return this; } /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ - public net.iGap.proto.ProtoGlobal.Originator getOriginator() { - net.iGap.proto.ProtoGlobal.Originator result = net.iGap.proto.ProtoGlobal.Originator.valueOf(originator_); - return result == null ? net.iGap.proto.ProtoGlobal.Originator.UNRECOGNIZED : result; + public net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator getOriginator() { + net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator result = net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.valueOf(originator_); + return result == null ? net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator.UNRECOGNIZED : result; } /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ - public Builder setOriginator(net.iGap.proto.ProtoGlobal.Originator value) { + public Builder setOriginator(net.iGap.proto.ProtoStoryGetStories.GroupedStories.Originator value) { if (value == null) { throw new NullPointerException(); } @@ -1483,7 +1581,7 @@ public Builder setOriginator(net.iGap.proto.ProtoGlobal.Originator value) { return this; } /** - * optional .proto.Originator originator = 1; + * optional .proto.GroupedStories.Originator originator = 1; */ public Builder clearOriginator() { @@ -2951,16 +3049,17 @@ public net.iGap.proto.ProtoStoryGetStories.StoryGetStoriesResponse getDefaultIns "proto\032\016Response.proto\032\014Global.proto\"Y\n\017S" + "toryGetStories\022\037\n\007request\030\001 \001(\0132\016.proto." + "Request\022%\n\npagination\030\002 \001(\0132\021.proto.Pagi" + - "nation\"\270\001\n\016GroupedStories\022%\n\noriginator\030" + - "\001 \001(\0162\021.proto.Originator\022\031\n\roriginator_i" + - "d\030\002 \001(\004B\0020\001\022\027\n\017originator_name\030\003 \001(\t\022\036\n\026" + - "seen_all_group_stories\030\004 \001(\010\022\035\n\007stories\030" + - "\005 \003(\0132\014.proto.Story\022\014\n\004self\030\006 \001(\010\"\206\001\n\027St" + - "oryGetStoriesResponse\022!\n\010response\030\001 \001(\0132", - "\017.proto.Response\022\030\n\020seen_all_stories\030\002 \001" + - "(\010\022.\n\017grouped_stories\030\003 \003(\0132\025.proto.Grou" + - "pedStoriesB&\n\016net.iGap.protoB\024ProtoStory" + - "GetStoriesb\006proto3" + "nation\"\351\001\n\016GroupedStories\0224\n\noriginator\030" + + "\001 \001(\0162 .proto.GroupedStories.Originator\022" + + "\031\n\roriginator_id\030\002 \001(\004B\0020\001\022\027\n\017originator" + + "_name\030\003 \001(\t\022\036\n\026seen_all_group_stories\030\004 " + + "\001(\010\022\035\n\007stories\030\005 \003(\0132\014.proto.Story\022\014\n\004se" + + "lf\030\006 \001(\010\" \n\nOriginator\022\010\n\004User\020\000\022\010\n\004Room", + "\020\001\"\206\001\n\027StoryGetStoriesResponse\022!\n\010respon" + + "se\030\001 \001(\0132\017.proto.Response\022\030\n\020seen_all_st" + + "ories\030\002 \001(\010\022.\n\017grouped_stories\030\003 \003(\0132\025.p" + + "roto.GroupedStoriesB&\n\016net.iGap.protoB\024P" + + "rotoStoryGetStoriesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/src/main/java/net/iGap/proto/ProtoUserVerify.java b/src/main/java/net/iGap/proto/ProtoUserVerify.java index 7b24748..bd34816 100644 --- a/src/main/java/net/iGap/proto/ProtoUserVerify.java +++ b/src/main/java/net/iGap/proto/ProtoUserVerify.java @@ -45,6 +45,16 @@ public interface UserVerifyOrBuilder extends */ com.google.protobuf.ByteString getUsernameBytes(); + + /** + * optional string phone_hash = 4; + */ + java.lang.String getPhoneHash(); + /** + * optional string phone_hash = 4; + */ + com.google.protobuf.ByteString + getPhoneHashBytes(); } /** * Protobuf type {@code proto.UserVerify} @@ -60,6 +70,7 @@ private UserVerify(com.google.protobuf.GeneratedMessageV3.Builder builder) { private UserVerify() { code_ = 0; username_ = ""; + phoneHash_ = ""; } @java.lang.Override @@ -111,6 +122,12 @@ private UserVerify( username_ = s; break; } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + phoneHash_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -198,6 +215,40 @@ public java.lang.String getUsername() { } } + public static final int PHONE_HASH_FIELD_NUMBER = 4; + private volatile java.lang.Object phoneHash_; + /** + * optional string phone_hash = 4; + */ + public java.lang.String getPhoneHash() { + java.lang.Object ref = phoneHash_; + 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(); + phoneHash_ = s; + return s; + } + } + /** + * optional string phone_hash = 4; + */ + public com.google.protobuf.ByteString + getPhoneHashBytes() { + java.lang.Object ref = phoneHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,6 +270,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getUsernameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); } + if (!getPhoneHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phoneHash_); + } } public int getSerializedSize() { @@ -237,6 +291,9 @@ public int getSerializedSize() { if (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); } + if (!getPhoneHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phoneHash_); + } memoizedSize = size; return size; } @@ -262,6 +319,8 @@ public boolean equals(final java.lang.Object obj) { == other.getCode()); result = result && getUsername() .equals(other.getUsername()); + result = result && getPhoneHash() + .equals(other.getPhoneHash()); return result; } @@ -280,6 +339,8 @@ public int hashCode() { hash = (53 * hash) + getCode(); hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PHONE_HASH_FIELD_NUMBER; + hash = (53 * hash) + getPhoneHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -408,6 +469,8 @@ public Builder clear() { username_ = ""; + phoneHash_ = ""; + return this; } @@ -437,6 +500,7 @@ public net.iGap.proto.ProtoUserVerify.UserVerify buildPartial() { } result.code_ = code_; result.username_ = username_; + result.phoneHash_ = phoneHash_; onBuilt(); return result; } @@ -488,6 +552,10 @@ public Builder mergeFrom(net.iGap.proto.ProtoUserVerify.UserVerify other) { username_ = other.username_; onChanged(); } + if (!other.getPhoneHash().isEmpty()) { + phoneHash_ = other.phoneHash_; + onChanged(); + } onChanged(); return this; } @@ -725,6 +793,75 @@ public Builder setUsernameBytes( onChanged(); return this; } + + private java.lang.Object phoneHash_ = ""; + /** + * optional string phone_hash = 4; + */ + public java.lang.String getPhoneHash() { + java.lang.Object ref = phoneHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string phone_hash = 4; + */ + public com.google.protobuf.ByteString + getPhoneHashBytes() { + java.lang.Object ref = phoneHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string phone_hash = 4; + */ + public Builder setPhoneHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + phoneHash_ = value; + onChanged(); + return this; + } + /** + * optional string phone_hash = 4; + */ + public Builder clearPhoneHash() { + + phoneHash_ = getDefaultInstance().getPhoneHash(); + onChanged(); + return this; + } + /** + * optional string phone_hash = 4; + */ + public Builder setPhoneHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phoneHash_ = value; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -1555,12 +1692,13 @@ public net.iGap.proto.ProtoUserVerify.UserVerifyResponse getDefaultInstanceForTy static { java.lang.String[] descriptorData = { "\n\020UserVerify.proto\022\005proto\032\rRequest.proto" + - "\032\016Response.proto\"M\n\nUserVerify\022\037\n\007reques" + + "\032\016Response.proto\"a\n\nUserVerify\022\037\n\007reques" + "t\030\001 \001(\0132\016.proto.Request\022\014\n\004code\030\002 \001(\r\022\020\n" + - "\010username\030\003 \001(\t\"X\n\022UserVerifyResponse\022!\n" + - "\010response\030\001 \001(\0132\017.proto.Response\022\r\n\005toke" + - "n\030\002 \001(\t\022\020\n\010new_user\030\003 \001(\010B!\n\016net.iGap.pr" + - "otoB\017ProtoUserVerifyb\006proto3" + "\010username\030\003 \001(\t\022\022\n\nphone_hash\030\004 \001(\t\"X\n\022U" + + "serVerifyResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022\r\n\005token\030\002 \001(\t\022\020\n\010new_user\030" + + "\003 \001(\010B!\n\016net.iGap.protoB\017ProtoUserVerify" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -1581,7 +1719,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_UserVerify_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_UserVerify_descriptor, - new java.lang.String[] { "Request", "Code", "Username", }); + new java.lang.String[] { "Request", "Code", "Username", "PhoneHash", }); internal_static_proto_UserVerifyResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_UserVerifyResponse_fieldAccessorTable = new