From 923aadcd14450d4849d6d6ecf301555d6c87dcd4 Mon Sep 17 00:00:00 2001 From: mozafari Date: Sun, 16 Jun 2019 18:51:04 +0430 Subject: [PATCH] Update Signaling GetLog, Added ProtoClientGetUserRepresentative --- .../ProtoClientGetUserRepresentative.java | 1663 +++++++++++++++++ .../net/iGap/proto/ProtoSignalingGetLog.java | 252 ++- 2 files changed, 1899 insertions(+), 16 deletions(-) create mode 100644 src/main/java/net/iGap/proto/ProtoClientGetUserRepresentative.java diff --git a/src/main/java/net/iGap/proto/ProtoClientGetUserRepresentative.java b/src/main/java/net/iGap/proto/ProtoClientGetUserRepresentative.java new file mode 100644 index 0000000..2da4317 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoClientGetUserRepresentative.java @@ -0,0 +1,1663 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientGetUserRepresentative.proto + +package net.iGap.proto; + +public final class ProtoClientGetUserRepresentative { + private ProtoClientGetUserRepresentative() {} + 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 ClientGetUserRepresentativeOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientGetUserRepresentative) + 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 user_id = 2; + */ + long getUserId(); + + /** + * optional string token = 3; + */ + java.lang.String getToken(); + /** + * optional string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + * Protobuf type {@code proto.ClientGetUserRepresentative} + */ + public static final class ClientGetUserRepresentative extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.ClientGetUserRepresentative) + ClientGetUserRepresentativeOrBuilder { + // Use ClientGetUserRepresentative.newBuilder() to construct. + private ClientGetUserRepresentative(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClientGetUserRepresentative() { + userId_ = 0L; + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientGetUserRepresentative( + 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: { + + userId_ = input.readUInt64(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = 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.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentative_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative.class, net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative.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 USER_ID_FIELD_NUMBER = 2; + private long userId_; + /** + * optional uint64 user_id = 2; + */ + public long getUserId() { + return userId_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + * optional string token = 3; + */ + 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 = 3; + */ + 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; + 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 (userId_ != 0L) { + output.writeUInt64(2, userId_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + } + + 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 (userId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, userId_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative other = (net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && (getUserId() + == other.getUserId()); + result = result && getToken() + .equals(other.getToken()); + 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) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUserId()); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative 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.ClientGetUserRepresentative} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.ClientGetUserRepresentative) + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentative_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentative_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative.class, net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative.Builder.class); + } + + // Construct using net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative.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; + } + userId_ = 0L; + + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentative_descriptor; + } + + public net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative.getDefaultInstance(); + } + + public net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative build() { + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative buildPartial() { + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative result = new net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.userId_ = userId_; + result.token_ = token_; + 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative) { + return mergeFrom((net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative other) { + if (other == net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative) 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 userId_ ; + /** + * optional uint64 user_id = 2; + */ + public long getUserId() { + return userId_; + } + /** + * optional uint64 user_id = 2; + */ + public Builder setUserId(long value) { + + userId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 user_id = 2; + */ + public Builder clearUserId() { + + userId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + * optional string token = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * optional string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * optional string token = 3; + */ + 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; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:proto.ClientGetUserRepresentative) + } + + // @@protoc_insertion_point(class_scope:proto.ClientGetUserRepresentative) + private static final net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative(); + } + + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentative getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientGetUserRepresentative parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetUserRepresentative(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.ProtoClientGetUserRepresentative.ClientGetUserRepresentative getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClientGetUserRepresentativeResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientGetUserRepresentativeResponse) + 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 uint32 join_time = 2; + */ + int getJoinTime(); + + /** + * optional string representative = 3; + */ + java.lang.String getRepresentative(); + /** + * optional string representative = 3; + */ + com.google.protobuf.ByteString + getRepresentativeBytes(); + + /** + * optional uint64 user_id = 4; + */ + long getUserId(); + } + /** + * Protobuf type {@code proto.ClientGetUserRepresentativeResponse} + */ + public static final class ClientGetUserRepresentativeResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.ClientGetUserRepresentativeResponse) + ClientGetUserRepresentativeResponseOrBuilder { + // Use ClientGetUserRepresentativeResponse.newBuilder() to construct. + private ClientGetUserRepresentativeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClientGetUserRepresentativeResponse() { + joinTime_ = 0; + representative_ = ""; + userId_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ClientGetUserRepresentativeResponse( + 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: { + + joinTime_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + representative_ = s; + break; + } + case 32: { + + userId_ = 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.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentativeResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentativeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse.class, net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse.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 JOIN_TIME_FIELD_NUMBER = 2; + private int joinTime_; + /** + * optional uint32 join_time = 2; + */ + public int getJoinTime() { + return joinTime_; + } + + public static final int REPRESENTATIVE_FIELD_NUMBER = 3; + private volatile java.lang.Object representative_; + /** + * optional string representative = 3; + */ + public java.lang.String getRepresentative() { + java.lang.Object ref = representative_; + 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(); + representative_ = s; + return s; + } + } + /** + * optional string representative = 3; + */ + public com.google.protobuf.ByteString + getRepresentativeBytes() { + java.lang.Object ref = representative_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + representative_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 4; + private long userId_; + /** + * optional uint64 user_id = 4; + */ + 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 (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (joinTime_ != 0) { + output.writeUInt32(2, joinTime_); + } + if (!getRepresentativeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, representative_); + } + if (userId_ != 0L) { + output.writeUInt64(4, userId_); + } + } + + 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 (joinTime_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, joinTime_); + } + if (!getRepresentativeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, representative_); + } + if (userId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse other = (net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && (getJoinTime() + == other.getJoinTime()); + result = result && getRepresentative() + .equals(other.getRepresentative()); + 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(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + JOIN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJoinTime(); + hash = (37 * hash) + REPRESENTATIVE_FIELD_NUMBER; + hash = (53 * hash) + getRepresentative().hashCode(); + 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse 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.ClientGetUserRepresentativeResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.ClientGetUserRepresentativeResponse) + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentativeResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentativeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse.class, net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse.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; + } + joinTime_ = 0; + + representative_ = ""; + + userId_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoClientGetUserRepresentative.internal_static_proto_ClientGetUserRepresentativeResponse_descriptor; + } + + public net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse build() { + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse buildPartial() { + net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse result = new net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.joinTime_ = joinTime_; + result.representative_ = representative_; + 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse) { + return mergeFrom((net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse other) { + if (other == net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.getJoinTime() != 0) { + setJoinTime(other.getJoinTime()); + } + if (!other.getRepresentative().isEmpty()) { + representative_ = other.representative_; + onChanged(); + } + 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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse) 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 joinTime_ ; + /** + * optional uint32 join_time = 2; + */ + public int getJoinTime() { + return joinTime_; + } + /** + * optional uint32 join_time = 2; + */ + public Builder setJoinTime(int value) { + + joinTime_ = value; + onChanged(); + return this; + } + /** + * optional uint32 join_time = 2; + */ + public Builder clearJoinTime() { + + joinTime_ = 0; + onChanged(); + return this; + } + + private java.lang.Object representative_ = ""; + /** + * optional string representative = 3; + */ + public java.lang.String getRepresentative() { + java.lang.Object ref = representative_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + representative_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string representative = 3; + */ + public com.google.protobuf.ByteString + getRepresentativeBytes() { + java.lang.Object ref = representative_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + representative_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string representative = 3; + */ + public Builder setRepresentative( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + representative_ = value; + onChanged(); + return this; + } + /** + * optional string representative = 3; + */ + public Builder clearRepresentative() { + + representative_ = getDefaultInstance().getRepresentative(); + onChanged(); + return this; + } + /** + * optional string representative = 3; + */ + public Builder setRepresentativeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + representative_ = value; + onChanged(); + return this; + } + + private long userId_ ; + /** + * optional uint64 user_id = 4; + */ + public long getUserId() { + return userId_; + } + /** + * optional uint64 user_id = 4; + */ + public Builder setUserId(long value) { + + userId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 user_id = 4; + */ + 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.ClientGetUserRepresentativeResponse) + } + + // @@protoc_insertion_point(class_scope:proto.ClientGetUserRepresentativeResponse) + private static final net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse(); + } + + public static net.iGap.proto.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ClientGetUserRepresentativeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientGetUserRepresentativeResponse(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.ProtoClientGetUserRepresentative.ClientGetUserRepresentativeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetUserRepresentative_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetUserRepresentative_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_ClientGetUserRepresentativeResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_ClientGetUserRepresentativeResponse_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!ClientGetUserRepresentative.proto\022\005pro" + + "to\032\rRequest.proto\032\016Response.proto\"^\n\033Cli" + + "entGetUserRepresentative\022\037\n\007request\030\001 \001(" + + "\0132\016.proto.Request\022\017\n\007user_id\030\002 \001(\004\022\r\n\005to" + + "ken\030\003 \001(\t\"\204\001\n#ClientGetUserRepresentativ" + + "eResponse\022!\n\010response\030\001 \001(\0132\017.proto.Resp" + + "onse\022\021\n\tjoin_time\030\002 \001(\r\022\026\n\016representativ" + + "e\030\003 \001(\t\022\017\n\007user_id\030\004 \001(\004B2\n\016net.iGap.pro" + + "toB ProtoClientGetUserRepresentativeb\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_ClientGetUserRepresentative_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_ClientGetUserRepresentative_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetUserRepresentative_descriptor, + new java.lang.String[] { "Request", "UserId", "Token", }); + internal_static_proto_ClientGetUserRepresentativeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_ClientGetUserRepresentativeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ClientGetUserRepresentativeResponse_descriptor, + new java.lang.String[] { "Response", "JoinTime", "Representative", "UserId", }); + 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/ProtoSignalingGetLog.java b/src/main/java/net/iGap/proto/ProtoSignalingGetLog.java index 54be9d8..2313b05 100644 --- a/src/main/java/net/iGap/proto/ProtoSignalingGetLog.java +++ b/src/main/java/net/iGap/proto/ProtoSignalingGetLog.java @@ -43,6 +43,15 @@ public interface SignalingGetLogOrBuilder extends * optional .proto.Pagination pagination = 2; */ net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder(); + + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + int getFilterValue(); + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter getFilter(); } /** * Protobuf type {@code proto.SignalingGetLog} @@ -56,6 +65,7 @@ private SignalingGetLog(com.google.protobuf.GeneratedMessageV3.Builder builde super(builder); } private SignalingGetLog() { + filter_ = 0; } @java.lang.Override @@ -109,6 +119,12 @@ private SignalingGetLog( break; } + case 24: { + int rawValue = input.readEnum(); + + filter_ = rawValue; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -132,6 +148,131 @@ private SignalingGetLog( net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.class, net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Builder.class); } + /** + * Protobuf enum {@code proto.SignalingGetLog.Filter} + */ + public enum Filter + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ALL = 0; + */ + ALL(0), + /** + * MISSED = 1; + */ + MISSED(1), + /** + * CANCELED = 2; + */ + CANCELED(2), + /** + * INCOMING = 3; + */ + INCOMING(3), + /** + * OUTGOING = 4; + */ + OUTGOING(4), + UNRECOGNIZED(-1), + ; + + /** + * ALL = 0; + */ + public static final int ALL_VALUE = 0; + /** + * MISSED = 1; + */ + public static final int MISSED_VALUE = 1; + /** + * CANCELED = 2; + */ + public static final int CANCELED_VALUE = 2; + /** + * INCOMING = 3; + */ + public static final int INCOMING_VALUE = 3; + /** + * OUTGOING = 4; + */ + public static final int OUTGOING_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 Filter valueOf(int value) { + return forNumber(value); + } + + public static Filter forNumber(int value) { + switch (value) { + case 0: return ALL; + case 1: return MISSED; + case 2: return CANCELED; + case 3: return INCOMING; + case 4: return OUTGOING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Filter> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Filter findValueByNumber(int number) { + return Filter.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.ProtoSignalingGetLog.SignalingGetLog.getDescriptor().getEnumTypes().get(0); + } + + private static final Filter[] VALUES = values(); + + public static Filter 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 Filter(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.SignalingGetLog.Filter) + } + public static final int REQUEST_FIELD_NUMBER = 1; private net.iGap.proto.ProtoRequest.Request request_; /** @@ -174,6 +315,22 @@ public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { return getPagination(); } + public static final int FILTER_FIELD_NUMBER = 3; + private int filter_; + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + public int getFilterValue() { + return filter_; + } + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter getFilter() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.valueOf(filter_); + return result == null ? net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,6 +349,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pagination_ != null) { output.writeMessage(2, getPagination()); } + if (filter_ != net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.ALL.getNumber()) { + output.writeEnum(3, filter_); + } } public int getSerializedSize() { @@ -207,6 +367,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPagination()); } + if (filter_ != net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.ALL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, filter_); + } memoizedSize = size; return size; } @@ -233,6 +397,7 @@ public boolean equals(final java.lang.Object obj) { result = result && getPagination() .equals(other.getPagination()); } + result = result && filter_ == other.filter_; return result; } @@ -251,6 +416,8 @@ public int hashCode() { hash = (37 * hash) + PAGINATION_FIELD_NUMBER; hash = (53 * hash) + getPagination().hashCode(); } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + filter_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -381,6 +548,8 @@ public Builder clear() { pagination_ = null; paginationBuilder_ = null; } + filter_ = 0; + return this; } @@ -413,6 +582,7 @@ public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog buildPartial() { } else { result.pagination_ = paginationBuilder_.build(); } + result.filter_ = filter_; onBuilt(); return result; } @@ -460,6 +630,9 @@ public Builder mergeFrom(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog oth if (other.hasPagination()) { mergePagination(other.getPagination()); } + if (other.filter_ != 0) { + setFilterValue(other.getFilterValue()); + } onChanged(); return this; } @@ -719,6 +892,50 @@ public net.iGap.proto.ProtoGlobal.PaginationOrBuilder getPaginationOrBuilder() { } return paginationBuilder_; } + + private int filter_ = 0; + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + public int getFilterValue() { + return filter_; + } + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + public Builder setFilterValue(int value) { + filter_ = value; + onChanged(); + return this; + } + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter getFilter() { + net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter result = net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.valueOf(filter_); + return result == null ? net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter.UNRECOGNIZED : result; + } + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + public Builder setFilter(net.iGap.proto.ProtoSignalingGetLog.SignalingGetLog.Filter value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.SignalingGetLog.Filter filter = 3; + */ + public Builder clearFilter() { + + filter_ = 0; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -2776,21 +2993,24 @@ public net.iGap.proto.ProtoSignalingGetLog.SignalingGetLogResponse getDefaultIns java.lang.String[] descriptorData = { "\n\025SignalingGetLog.proto\022\005proto\032\rRequest." + "proto\032\016Response.proto\032\014Global.proto\032\024Sig" + - "nalingOffer.proto\"Y\n\017SignalingGetLog\022\037\n\007" + - "request\030\001 \001(\0132\016.proto.Request\022%\n\npaginat" + - "ion\030\002 \001(\0132\021.proto.Pagination\"\226\003\n\027Signali" + - "ngGetLogResponse\022!\n\010response\030\001 \001(\0132\017.pro" + - "to.Response\022B\n\rsignaling_log\030\002 \003(\0132+.pro" + - "to.SignalingGetLogResponse.SignalingLog\032" + - "\223\002\n\014SignalingLog\022\n\n\002id\030\001 \001(\004\022(\n\004type\030\002 \001" + - "(\0162\032.proto.SignalingOffer.Type\022B\n\006status", - "\030\003 \001(\01622.proto.SignalingGetLogResponse.S" + - "ignalingLog.Status\022#\n\004peer\030\004 \001(\0132\025.proto" + - ".RegisteredUser\022\022\n\noffer_time\030\005 \001(\r\022\020\n\010d" + - "uration\030\006 \001(\r\">\n\006Status\022\n\n\006MISSED\020\000\022\014\n\010C" + - "ANCELED\020\001\022\014\n\010INCOMING\020\002\022\014\n\010OUTGOING\020\003B&\n" + - "\016net.iGap.protoB\024ProtoSignalingGetLogb\006p" + - "roto3" + "nalingOffer.proto\"\321\001\n\017SignalingGetLog\022\037\n" + + "\007request\030\001 \001(\0132\016.proto.Request\022%\n\npagina" + + "tion\030\002 \001(\0132\021.proto.Pagination\022-\n\006filter\030" + + "\003 \001(\0162\035.proto.SignalingGetLog.Filter\"G\n\006" + + "Filter\022\007\n\003ALL\020\000\022\n\n\006MISSED\020\001\022\014\n\010CANCELED\020" + + "\002\022\014\n\010INCOMING\020\003\022\014\n\010OUTGOING\020\004\"\226\003\n\027Signal" + + "ingGetLogResponse\022!\n\010response\030\001 \001(\0132\017.pr" + + "oto.Response\022B\n\rsignaling_log\030\002 \003(\0132+.pr", + "oto.SignalingGetLogResponse.SignalingLog" + + "\032\223\002\n\014SignalingLog\022\n\n\002id\030\001 \001(\004\022(\n\004type\030\002 " + + "\001(\0162\032.proto.SignalingOffer.Type\022B\n\006statu" + + "s\030\003 \001(\01622.proto.SignalingGetLogResponse." + + "SignalingLog.Status\022#\n\004peer\030\004 \001(\0132\025.prot" + + "o.RegisteredUser\022\022\n\noffer_time\030\005 \001(\r\022\020\n\010" + + "duration\030\006 \001(\r\">\n\006Status\022\n\n\006MISSED\020\000\022\014\n\010" + + "CANCELED\020\001\022\014\n\010INCOMING\020\002\022\014\n\010OUTGOING\020\003B&" + + "\n\016net.iGap.protoB\024ProtoSignalingGetLogb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -2813,7 +3033,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_proto_SignalingGetLog_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_SignalingGetLog_descriptor, - new java.lang.String[] { "Request", "Pagination", }); + new java.lang.String[] { "Request", "Pagination", "Filter", }); internal_static_proto_SignalingGetLogResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_SignalingGetLogResponse_fieldAccessorTable = new