From 2de1e507f7b75dab1b8e6d28485d31e26214074d Mon Sep 17 00:00:00 2001 From: meysamzamani Date: Sun, 1 May 2022 12:57:18 +0430 Subject: [PATCH] Added ProtoClientSearch --- .../net/iGap/proto/ProtoClientSearch.java | 1947 +++++++++++++++++ 1 file changed, 1947 insertions(+) create mode 100644 src/main/java/net/iGap/proto/ProtoClientSearch.java diff --git a/src/main/java/net/iGap/proto/ProtoClientSearch.java b/src/main/java/net/iGap/proto/ProtoClientSearch.java new file mode 100644 index 0000000..22faf9d --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoClientSearch.java @@ -0,0 +1,1947 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientSearch.proto + +package net.iGap.proto; + +public final class ProtoClientSearch { + private ProtoClientSearch() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface ClientSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientSearch) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + + /** + * optional string query = 2; + */ + java.lang.String getQuery(); + /** + * optional string query = 2; + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * optional .proto.Pagination pagination = 3; + */ + boolean hasPagination(); + /** + * optional .proto.Pagination pagination = 3; + */ + net.iGap.proto.ProtoGlobal.Pagination getPagination(); + } + /** + * Protobuf type {@code proto.ClientSearch} + */ + public static final class ClientSearch extends + com.google.protobuf.GeneratedMessageLite< + ClientSearch, ClientSearch.Builder> implements + // @@protoc_insertion_point(message_implements:proto.ClientSearch) + ClientSearchOrBuilder { + private ClientSearch() { + query_ = ""; + } + 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; + */ + private void setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + + } + /** + * optional .proto.Request request = 1; + */ + private void setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + request_ = builderForValue.build(); + + } + /** + * optional .proto.Request request = 1; + */ + private void mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (request_ != null && + request_ != net.iGap.proto.ProtoRequest.Request.getDefaultInstance()) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + + } + /** + * optional .proto.Request request = 1; + */ + private void clearRequest() { request_ = null; + + } + + public static final int QUERY_FIELD_NUMBER = 2; + private java.lang.String query_; + /** + * optional string query = 2; + */ + public java.lang.String getQuery() { + return query_; + } + /** + * optional string query = 2; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(query_); + } + /** + * optional string query = 2; + */ + private void setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + } + /** + * optional string query = 2; + */ + private void clearQuery() { + + query_ = getDefaultInstance().getQuery(); + } + /** + * optional string query = 2; + */ + private void setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value.toStringUtf8(); + } + + public static final int PAGINATION_FIELD_NUMBER = 3; + private net.iGap.proto.ProtoGlobal.Pagination pagination_; + /** + * optional .proto.Pagination pagination = 3; + */ + public boolean hasPagination() { + return pagination_ != null; + } + /** + * optional .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.Pagination getPagination() { + return pagination_ == null ? net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance() : pagination_; + } + /** + * optional .proto.Pagination pagination = 3; + */ + private void setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + + } + /** + * optional .proto.Pagination pagination = 3; + */ + private void setPagination( + net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { + pagination_ = builderForValue.build(); + + } + /** + * optional .proto.Pagination pagination = 3; + */ + private void mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { + if (pagination_ != null && + pagination_ != net.iGap.proto.ProtoGlobal.Pagination.getDefaultInstance()) { + pagination_ = + net.iGap.proto.ProtoGlobal.Pagination.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + + } + /** + * optional .proto.Pagination pagination = 3; + */ + private void clearPagination() { pagination_ = null; + + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (!query_.isEmpty()) { + output.writeString(2, getQuery()); + } + if (pagination_ != null) { + output.writeMessage(3, getPagination()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (!query_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getQuery()); + } + if (pagination_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPagination()); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoClientSearch.ClientSearch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.ClientSearch} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoClientSearch.ClientSearch, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.ClientSearch) + net.iGap.proto.ProtoClientSearch.ClientSearchOrBuilder { + // Construct using net.iGap.proto.ProtoClientSearch.ClientSearch.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return instance.hasRequest(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return instance.getRequest(); + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + copyOnWrite(); + instance.setRequest(value); + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + copyOnWrite(); + instance.setRequest(builderForValue); + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + copyOnWrite(); + instance.mergeRequest(value); + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { copyOnWrite(); + instance.clearRequest(); + return this; + } + + /** + * optional string query = 2; + */ + public java.lang.String getQuery() { + return instance.getQuery(); + } + /** + * optional string query = 2; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + return instance.getQueryBytes(); + } + /** + * optional string query = 2; + */ + public Builder setQuery( + java.lang.String value) { + copyOnWrite(); + instance.setQuery(value); + return this; + } + /** + * optional string query = 2; + */ + public Builder clearQuery() { + copyOnWrite(); + instance.clearQuery(); + return this; + } + /** + * optional string query = 2; + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setQueryBytes(value); + return this; + } + + /** + * optional .proto.Pagination pagination = 3; + */ + public boolean hasPagination() { + return instance.hasPagination(); + } + /** + * optional .proto.Pagination pagination = 3; + */ + public net.iGap.proto.ProtoGlobal.Pagination getPagination() { + return instance.getPagination(); + } + /** + * optional .proto.Pagination pagination = 3; + */ + public Builder setPagination(net.iGap.proto.ProtoGlobal.Pagination value) { + copyOnWrite(); + instance.setPagination(value); + return this; + } + /** + * optional .proto.Pagination pagination = 3; + */ + public Builder setPagination( + net.iGap.proto.ProtoGlobal.Pagination.Builder builderForValue) { + copyOnWrite(); + instance.setPagination(builderForValue); + return this; + } + /** + * optional .proto.Pagination pagination = 3; + */ + public Builder mergePagination(net.iGap.proto.ProtoGlobal.Pagination value) { + copyOnWrite(); + instance.mergePagination(value); + return this; + } + /** + * optional .proto.Pagination pagination = 3; + */ + public Builder clearPagination() { copyOnWrite(); + instance.clearPagination(); + return this; + } + + // @@protoc_insertion_point(builder_scope:proto.ClientSearch) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new net.iGap.proto.ProtoClientSearch.ClientSearch(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + net.iGap.proto.ProtoClientSearch.ClientSearch other = (net.iGap.proto.ProtoClientSearch.ClientSearch) arg1; + request_ = visitor.visitMessage(request_, other.request_); + query_ = visitor.visitString(!query_.isEmpty(), query_, + !other.query_.isEmpty(), other.query_); + pagination_ = visitor.visitMessage(pagination_, other.pagination_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.Pagination.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(net.iGap.proto.ProtoGlobal.Pagination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearch.ClientSearch.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.ClientSearch) + private static final net.iGap.proto.ProtoClientSearch.ClientSearch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClientSearch(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ClientSearchResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientSearchResponse) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + java.util.List + getInfoList(); + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getInfo(int index); + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + int getInfoCount(); + } + /** + * Protobuf type {@code proto.ClientSearchResponse} + */ + public static final class ClientSearchResponse extends + com.google.protobuf.GeneratedMessageLite< + ClientSearchResponse, ClientSearchResponse.Builder> implements + // @@protoc_insertion_point(message_implements:proto.ClientSearchResponse) + ClientSearchResponseOrBuilder { + private ClientSearchResponse() { + info_ = emptyProtobufList(); + } + public interface InfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientSearchResponse.Info) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + int getCategoryValue(); + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category getCategory(); + + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + int getTypeValue(); + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type getType(); + + /** + * optional .proto.RegisteredUser user = 3; + */ + boolean hasUser(); + /** + * optional .proto.RegisteredUser user = 3; + */ + net.iGap.proto.ProtoGlobal.RegisteredUser getUser(); + + /** + * optional .proto.Room room = 4; + */ + boolean hasRoom(); + /** + * optional .proto.Room room = 4; + */ + net.iGap.proto.ProtoGlobal.Room getRoom(); + } + /** + * Protobuf type {@code proto.ClientSearchResponse.Info} + */ + public static final class Info extends + com.google.protobuf.GeneratedMessageLite< + Info, Info.Builder> implements + // @@protoc_insertion_point(message_implements:proto.ClientSearchResponse.Info) + InfoOrBuilder { + private Info() { + } + /** + * Protobuf enum {@code proto.ClientSearchResponse.Info.Category} + */ + public enum Category + implements com.google.protobuf.Internal.EnumLite { + /** + * MINE = 0; + */ + MINE(0), + /** + * GLOBAL = 1; + */ + GLOBAL(1), + UNRECOGNIZED(-1), + ; + + /** + * MINE = 0; + */ + public static final int MINE_VALUE = 0; + /** + * GLOBAL = 1; + */ + public static final int GLOBAL_VALUE = 1; + + + public final int getNumber() { + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Category valueOf(int value) { + return forNumber(value); + } + + public static Category forNumber(int value) { + switch (value) { + case 0: return MINE; + case 1: return GLOBAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Category> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Category findValueByNumber(int number) { + return Category.forNumber(number); + } + }; + + private final int value; + + private Category(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.ClientSearchResponse.Info.Category) + } + + /** + * Protobuf enum {@code proto.ClientSearchResponse.Info.Type} + */ + public enum Type + implements com.google.protobuf.Internal.EnumLite { + /** + * 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() { + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.ClientSearchResponse.Info.Type) + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_; + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + public int getCategoryValue() { + return category_; + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category getCategory() { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.forNumber(category_); + return result == null ? net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.UNRECOGNIZED : result; + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + private void setCategoryValue(int value) { + category_ = value; + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + private void setCategory(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category value) { + if (value == null) { + throw new NullPointerException(); + } + + category_ = value.getNumber(); + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + private void clearCategory() { + + category_ = 0; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type getType() { + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type result = net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.forNumber(type_); + return result == null ? net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.UNRECOGNIZED : result; + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + private void setTypeValue(int value) { + type_ = value; + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + private void setType(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + private void clearType() { + + type_ = 0; + } + + public static final int USER_FIELD_NUMBER = 3; + private net.iGap.proto.ProtoGlobal.RegisteredUser user_; + /** + * optional .proto.RegisteredUser user = 3; + */ + public boolean hasUser() { + return user_ != null; + } + /** + * optional .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { + return user_ == null ? net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance() : user_; + } + /** + * optional .proto.RegisteredUser user = 3; + */ + private void setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + + } + /** + * optional .proto.RegisteredUser user = 3; + */ + private void setUser( + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { + user_ = builderForValue.build(); + + } + /** + * optional .proto.RegisteredUser user = 3; + */ + private void mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + if (user_ != null && + user_ != net.iGap.proto.ProtoGlobal.RegisteredUser.getDefaultInstance()) { + user_ = + net.iGap.proto.ProtoGlobal.RegisteredUser.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + + } + /** + * optional .proto.RegisteredUser user = 3; + */ + private void clearUser() { user_ = null; + + } + + 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; + */ + private void setRoom(net.iGap.proto.ProtoGlobal.Room value) { + if (value == null) { + throw new NullPointerException(); + } + room_ = value; + + } + /** + * optional .proto.Room room = 4; + */ + private void setRoom( + net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { + room_ = builderForValue.build(); + + } + /** + * optional .proto.Room room = 4; + */ + private void mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { + if (room_ != null && + room_ != net.iGap.proto.ProtoGlobal.Room.getDefaultInstance()) { + room_ = + net.iGap.proto.ProtoGlobal.Room.newBuilder(room_).mergeFrom(value).buildPartial(); + } else { + room_ = value; + } + + } + /** + * optional .proto.Room room = 4; + */ + private void clearRoom() { room_ = null; + + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (category_ != net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.MINE.getNumber()) { + output.writeEnum(1, category_); + } + if (type_ != net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.USER.getNumber()) { + output.writeEnum(2, type_); + } + if (user_ != null) { + output.writeMessage(3, getUser()); + } + if (room_ != null) { + output.writeMessage(4, getRoom()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (category_ != net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category.MINE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, category_); + } + if (type_ != net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type.USER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + if (user_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUser()); + } + if (room_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRoom()); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.ClientSearchResponse.Info} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.ClientSearchResponse.Info) + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder { + // Construct using net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + public int getCategoryValue() { + return instance.getCategoryValue(); + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + public Builder setCategoryValue(int value) { + copyOnWrite(); + instance.setCategoryValue(value); + return this; + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category getCategory() { + return instance.getCategory(); + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + public Builder setCategory(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Category value) { + copyOnWrite(); + instance.setCategory(value); + return this; + } + /** + * optional .proto.ClientSearchResponse.Info.Category category = 1; + */ + public Builder clearCategory() { + copyOnWrite(); + instance.clearCategory(); + return this; + } + + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + public int getTypeValue() { + return instance.getTypeValue(); + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + public Builder setTypeValue(int value) { + copyOnWrite(); + instance.setTypeValue(value); + return this; + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type getType() { + return instance.getType(); + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + public Builder setType(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Type value) { + copyOnWrite(); + instance.setType(value); + return this; + } + /** + * optional .proto.ClientSearchResponse.Info.Type type = 2; + */ + public Builder clearType() { + copyOnWrite(); + instance.clearType(); + return this; + } + + /** + * optional .proto.RegisteredUser user = 3; + */ + public boolean hasUser() { + return instance.hasUser(); + } + /** + * optional .proto.RegisteredUser user = 3; + */ + public net.iGap.proto.ProtoGlobal.RegisteredUser getUser() { + return instance.getUser(); + } + /** + * optional .proto.RegisteredUser user = 3; + */ + public Builder setUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + copyOnWrite(); + instance.setUser(value); + return this; + } + /** + * optional .proto.RegisteredUser user = 3; + */ + public Builder setUser( + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder builderForValue) { + copyOnWrite(); + instance.setUser(builderForValue); + return this; + } + /** + * optional .proto.RegisteredUser user = 3; + */ + public Builder mergeUser(net.iGap.proto.ProtoGlobal.RegisteredUser value) { + copyOnWrite(); + instance.mergeUser(value); + return this; + } + /** + * optional .proto.RegisteredUser user = 3; + */ + public Builder clearUser() { copyOnWrite(); + instance.clearUser(); + return this; + } + + /** + * optional .proto.Room room = 4; + */ + public boolean hasRoom() { + return instance.hasRoom(); + } + /** + * optional .proto.Room room = 4; + */ + public net.iGap.proto.ProtoGlobal.Room getRoom() { + return instance.getRoom(); + } + /** + * optional .proto.Room room = 4; + */ + public Builder setRoom(net.iGap.proto.ProtoGlobal.Room value) { + copyOnWrite(); + instance.setRoom(value); + return this; + } + /** + * optional .proto.Room room = 4; + */ + public Builder setRoom( + net.iGap.proto.ProtoGlobal.Room.Builder builderForValue) { + copyOnWrite(); + instance.setRoom(builderForValue); + return this; + } + /** + * optional .proto.Room room = 4; + */ + public Builder mergeRoom(net.iGap.proto.ProtoGlobal.Room value) { + copyOnWrite(); + instance.mergeRoom(value); + return this; + } + /** + * optional .proto.Room room = 4; + */ + public Builder clearRoom() { copyOnWrite(); + instance.clearRoom(); + return this; + } + + // @@protoc_insertion_point(builder_scope:proto.ClientSearchResponse.Info) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info other = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info) arg1; + category_ = visitor.visitInt(category_ != 0, category_, other.category_ != 0, other.category_); + type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); + user_ = visitor.visitMessage(user_, other.user_); + room_ = visitor.visitMessage(room_, other.room_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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(); + + category_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + net.iGap.proto.ProtoGlobal.RegisteredUser.Builder subBuilder = null; + if (user_ != null) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(net.iGap.proto.ProtoGlobal.RegisteredUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + + 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) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.ClientSearchResponse.Info) + private static final net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Info(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + 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; + */ + private void setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + + } + /** + * optional .proto.Response response = 1; + */ + private void setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + response_ = builderForValue.build(); + + } + /** + * optional .proto.Response response = 1; + */ + private void mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (response_ != null && + response_ != net.iGap.proto.ProtoResponse.Response.getDefaultInstance()) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + + } + /** + * optional .proto.Response response = 1; + */ + private void clearResponse() { response_ = null; + + } + + public static final int INFO_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.ProtobufList info_; + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public java.util.List getInfoList() { + return info_; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public java.util.List + getInfoOrBuilderList() { + return info_; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public int getInfoCount() { + return info_.size(); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getInfo(int index) { + return info_.get(index); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.InfoOrBuilder getInfoOrBuilder( + int index) { + return info_.get(index); + } + private void ensureInfoIsMutable() { + if (!info_.isModifiable()) { + info_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(info_); + } + } + + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void setInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.set(index, value); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void setInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { + ensureInfoIsMutable(); + info_.set(index, builderForValue.build()); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void addInfo(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(value); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void addInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(index, value); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void addInfo( + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { + ensureInfoIsMutable(); + info_.add(builderForValue.build()); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void addInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { + ensureInfoIsMutable(); + info_.add(index, builderForValue.build()); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void addAllInfo( + java.lang.Iterable values) { + ensureInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, info_); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void clearInfo() { + info_ = emptyProtobufList(); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + private void removeInfo(int index) { + ensureInfoIsMutable(); + info_.remove(index); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (response_ != null) { + output.writeMessage(1, getResponse()); + } + for (int i = 0; i < info_.size(); i++) { + output.writeMessage(2, info_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + for (int i = 0; i < info_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, info_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoClientSearch.ClientSearchResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.ClientSearchResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoClientSearch.ClientSearchResponse, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.ClientSearchResponse) + net.iGap.proto.ProtoClientSearch.ClientSearchResponseOrBuilder { + // Construct using net.iGap.proto.ProtoClientSearch.ClientSearchResponse.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return instance.hasResponse(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return instance.getResponse(); + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + copyOnWrite(); + instance.setResponse(value); + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + copyOnWrite(); + instance.setResponse(builderForValue); + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + copyOnWrite(); + instance.mergeResponse(value); + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { copyOnWrite(); + instance.clearResponse(); + return this; + } + + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public java.util.List getInfoList() { + return java.util.Collections.unmodifiableList( + instance.getInfoList()); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public int getInfoCount() { + return instance.getInfoCount(); + }/** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info getInfo(int index) { + return instance.getInfo(index); + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder setInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { + copyOnWrite(); + instance.setInfo(index, value); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder setInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { + copyOnWrite(); + instance.setInfo(index, builderForValue); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder addInfo(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { + copyOnWrite(); + instance.addInfo(value); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder addInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info value) { + copyOnWrite(); + instance.addInfo(index, value); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder addInfo( + net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { + copyOnWrite(); + instance.addInfo(builderForValue); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder addInfo( + int index, net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.Builder builderForValue) { + copyOnWrite(); + instance.addInfo(index, builderForValue); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder addAllInfo( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllInfo(values); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder clearInfo() { + copyOnWrite(); + instance.clearInfo(); + return this; + } + /** + * repeated .proto.ClientSearchResponse.Info info = 2; + */ + public Builder removeInfo(int index) { + copyOnWrite(); + instance.removeInfo(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:proto.ClientSearchResponse) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new net.iGap.proto.ProtoClientSearch.ClientSearchResponse(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + info_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + net.iGap.proto.ProtoClientSearch.ClientSearchResponse other = (net.iGap.proto.ProtoClientSearch.ClientSearchResponse) arg1; + response_ = visitor.visitMessage(response_, other.response_); + info_= visitor.visitList(info_, other.info_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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 (!info_.isModifiable()) { + info_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(info_); + } + info_.add( + input.readMessage(net.iGap.proto.ProtoClientSearch.ClientSearchResponse.Info.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (net.iGap.proto.ProtoClientSearch.ClientSearchResponse.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.ClientSearchResponse) + private static final net.iGap.proto.ProtoClientSearch.ClientSearchResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClientSearchResponse(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoClientSearch.ClientSearchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +}