diff --git a/src/main/java/net/iGap/proto/ProtoClientGetFavoriteMenu.java b/src/main/java/net/iGap/proto/ProtoClientGetFavoriteMenu.java new file mode 100644 index 0000000..3bb7e14 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoClientGetFavoriteMenu.java @@ -0,0 +1,922 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ClientGetFavoriteMenu.proto + +package net.iGap.proto; + +public final class ProtoClientGetFavoriteMenu { + private ProtoClientGetFavoriteMenu() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface ClientGetFavoriteMenuOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientGetFavoriteMenu) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + } + /** + * Protobuf type {@code proto.ClientGetFavoriteMenu} + */ + public static final class ClientGetFavoriteMenu extends + com.google.protobuf.GeneratedMessageLite< + ClientGetFavoriteMenu, ClientGetFavoriteMenu.Builder> implements + // @@protoc_insertion_point(message_implements:proto.ClientGetFavoriteMenu) + ClientGetFavoriteMenuOrBuilder { + private ClientGetFavoriteMenu() { + } + 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 void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.ClientGetFavoriteMenu} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.ClientGetFavoriteMenu) + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuOrBuilder { + // Construct using net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.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; + } + + // @@protoc_insertion_point(builder_scope:proto.ClientGetFavoriteMenu) + } + 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu(); + } + 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu other = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu) arg1; + request_ = visitor.visitMessage(request_, other.request_); + 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; + } + } + } + } 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.ClientGetFavoriteMenu) + private static final net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClientGetFavoriteMenu(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenu 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 ClientGetFavoriteMenuResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.ClientGetFavoriteMenuResponse) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + + /** + * repeated .proto.Favorite favorites = 2; + */ + java.util.List + getFavoritesList(); + /** + * repeated .proto.Favorite favorites = 2; + */ + net.iGap.proto.ProtoGlobal.Favorite getFavorites(int index); + /** + * repeated .proto.Favorite favorites = 2; + */ + int getFavoritesCount(); + } + /** + * Protobuf type {@code proto.ClientGetFavoriteMenuResponse} + */ + public static final class ClientGetFavoriteMenuResponse extends + com.google.protobuf.GeneratedMessageLite< + ClientGetFavoriteMenuResponse, ClientGetFavoriteMenuResponse.Builder> implements + // @@protoc_insertion_point(message_implements:proto.ClientGetFavoriteMenuResponse) + ClientGetFavoriteMenuResponseOrBuilder { + private ClientGetFavoriteMenuResponse() { + favorites_ = emptyProtobufList(); + } + 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 FAVORITES_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.ProtobufList favorites_; + /** + * repeated .proto.Favorite favorites = 2; + */ + public java.util.List getFavoritesList() { + return favorites_; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public java.util.List + getFavoritesOrBuilderList() { + return favorites_; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public int getFavoritesCount() { + return favorites_.size(); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public net.iGap.proto.ProtoGlobal.Favorite getFavorites(int index) { + return favorites_.get(index); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public net.iGap.proto.ProtoGlobal.FavoriteOrBuilder getFavoritesOrBuilder( + int index) { + return favorites_.get(index); + } + private void ensureFavoritesIsMutable() { + if (!favorites_.isModifiable()) { + favorites_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(favorites_); + } + } + + /** + * repeated .proto.Favorite favorites = 2; + */ + private void setFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFavoritesIsMutable(); + favorites_.set(index, value); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void setFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { + ensureFavoritesIsMutable(); + favorites_.set(index, builderForValue.build()); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void addFavorites(net.iGap.proto.ProtoGlobal.Favorite value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFavoritesIsMutable(); + favorites_.add(value); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void addFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFavoritesIsMutable(); + favorites_.add(index, value); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void addFavorites( + net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { + ensureFavoritesIsMutable(); + favorites_.add(builderForValue.build()); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void addFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { + ensureFavoritesIsMutable(); + favorites_.add(index, builderForValue.build()); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void addAllFavorites( + java.lang.Iterable values) { + ensureFavoritesIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, favorites_); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void clearFavorites() { + favorites_ = emptyProtobufList(); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + private void removeFavorites(int index) { + ensureFavoritesIsMutable(); + favorites_.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 < favorites_.size(); i++) { + output.writeMessage(2, favorites_.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 < favorites_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, favorites_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.ClientGetFavoriteMenuResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.ClientGetFavoriteMenuResponse) + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponseOrBuilder { + // Construct using net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.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.Favorite favorites = 2; + */ + public java.util.List getFavoritesList() { + return java.util.Collections.unmodifiableList( + instance.getFavoritesList()); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public int getFavoritesCount() { + return instance.getFavoritesCount(); + }/** + * repeated .proto.Favorite favorites = 2; + */ + public net.iGap.proto.ProtoGlobal.Favorite getFavorites(int index) { + return instance.getFavorites(index); + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder setFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite value) { + copyOnWrite(); + instance.setFavorites(index, value); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder setFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { + copyOnWrite(); + instance.setFavorites(index, builderForValue); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder addFavorites(net.iGap.proto.ProtoGlobal.Favorite value) { + copyOnWrite(); + instance.addFavorites(value); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder addFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite value) { + copyOnWrite(); + instance.addFavorites(index, value); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder addFavorites( + net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { + copyOnWrite(); + instance.addFavorites(builderForValue); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder addFavorites( + int index, net.iGap.proto.ProtoGlobal.Favorite.Builder builderForValue) { + copyOnWrite(); + instance.addFavorites(index, builderForValue); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder addAllFavorites( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllFavorites(values); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder clearFavorites() { + copyOnWrite(); + instance.clearFavorites(); + return this; + } + /** + * repeated .proto.Favorite favorites = 2; + */ + public Builder removeFavorites(int index) { + copyOnWrite(); + instance.removeFavorites(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:proto.ClientGetFavoriteMenuResponse) + } + 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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + favorites_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse other = (net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse) arg1; + response_ = visitor.visitMessage(response_, other.response_); + favorites_= visitor.visitList(favorites_, other.favorites_); + 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 (!favorites_.isModifiable()) { + favorites_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(favorites_); + } + favorites_.add( + input.readMessage(net.iGap.proto.ProtoGlobal.Favorite.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.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.ClientGetFavoriteMenuResponse) + private static final net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClientGetFavoriteMenuResponse(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoClientGetFavoriteMenu.ClientGetFavoriteMenuResponse 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) +} diff --git a/src/main/java/net/iGap/proto/ProtoGlobal.java b/src/main/java/net/iGap/proto/ProtoGlobal.java index aeedb6f..4bd48d6 100644 --- a/src/main/java/net/iGap/proto/ProtoGlobal.java +++ b/src/main/java/net/iGap/proto/ProtoGlobal.java @@ -22021,6 +22021,766 @@ public static com.google.protobuf.Parser parser() { } } + public interface FavoriteOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.Favorite) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional string name = 1; + */ + java.lang.String getName(); + /** + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string textcolor = 2; + */ + java.lang.String getTextcolor(); + /** + * optional string textcolor = 2; + */ + com.google.protobuf.ByteString + getTextcolorBytes(); + + /** + * optional string bgcolor = 3; + */ + java.lang.String getBgcolor(); + /** + * optional string bgcolor = 3; + */ + com.google.protobuf.ByteString + getBgcolorBytes(); + + /** + * optional string value = 4; + */ + java.lang.String getValue(); + /** + * optional string value = 4; + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * optional string image = 5; + */ + java.lang.String getImage(); + /** + * optional string image = 5; + */ + com.google.protobuf.ByteString + getImageBytes(); + } + /** + * Protobuf type {@code proto.Favorite} + */ + public static final class Favorite extends + com.google.protobuf.GeneratedMessageLite< + Favorite, Favorite.Builder> implements + // @@protoc_insertion_point(message_implements:proto.Favorite) + FavoriteOrBuilder { + private Favorite() { + name_ = ""; + textcolor_ = ""; + bgcolor_ = ""; + value_ = ""; + image_ = ""; + } + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.String name_; + /** + * optional string name = 1; + */ + public java.lang.String getName() { + return name_; + } + /** + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(name_); + } + /** + * optional string name = 1; + */ + private void setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + } + /** + * optional string name = 1; + */ + private void clearName() { + + name_ = getDefaultInstance().getName(); + } + /** + * optional string name = 1; + */ + private void setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value.toStringUtf8(); + } + + public static final int TEXTCOLOR_FIELD_NUMBER = 2; + private java.lang.String textcolor_; + /** + * optional string textcolor = 2; + */ + public java.lang.String getTextcolor() { + return textcolor_; + } + /** + * optional string textcolor = 2; + */ + public com.google.protobuf.ByteString + getTextcolorBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(textcolor_); + } + /** + * optional string textcolor = 2; + */ + private void setTextcolor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + textcolor_ = value; + } + /** + * optional string textcolor = 2; + */ + private void clearTextcolor() { + + textcolor_ = getDefaultInstance().getTextcolor(); + } + /** + * optional string textcolor = 2; + */ + private void setTextcolorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + textcolor_ = value.toStringUtf8(); + } + + public static final int BGCOLOR_FIELD_NUMBER = 3; + private java.lang.String bgcolor_; + /** + * optional string bgcolor = 3; + */ + public java.lang.String getBgcolor() { + return bgcolor_; + } + /** + * optional string bgcolor = 3; + */ + public com.google.protobuf.ByteString + getBgcolorBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(bgcolor_); + } + /** + * optional string bgcolor = 3; + */ + private void setBgcolor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bgcolor_ = value; + } + /** + * optional string bgcolor = 3; + */ + private void clearBgcolor() { + + bgcolor_ = getDefaultInstance().getBgcolor(); + } + /** + * optional string bgcolor = 3; + */ + private void setBgcolorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bgcolor_ = value.toStringUtf8(); + } + + public static final int VALUE_FIELD_NUMBER = 4; + private java.lang.String value_; + /** + * optional string value = 4; + */ + public java.lang.String getValue() { + return value_; + } + /** + * optional string value = 4; + */ + public com.google.protobuf.ByteString + getValueBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(value_); + } + /** + * optional string value = 4; + */ + private void setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + } + /** + * optional string value = 4; + */ + private void clearValue() { + + value_ = getDefaultInstance().getValue(); + } + /** + * optional string value = 4; + */ + private void setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value.toStringUtf8(); + } + + public static final int IMAGE_FIELD_NUMBER = 5; + private java.lang.String image_; + /** + * optional string image = 5; + */ + public java.lang.String getImage() { + return image_; + } + /** + * optional string image = 5; + */ + public com.google.protobuf.ByteString + getImageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(image_); + } + /** + * optional string image = 5; + */ + private void setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + } + /** + * optional string image = 5; + */ + private void clearImage() { + + image_ = getDefaultInstance().getImage(); + } + /** + * optional string image = 5; + */ + private void setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!name_.isEmpty()) { + output.writeString(1, getName()); + } + if (!textcolor_.isEmpty()) { + output.writeString(2, getTextcolor()); + } + if (!bgcolor_.isEmpty()) { + output.writeString(3, getBgcolor()); + } + if (!value_.isEmpty()) { + output.writeString(4, getValue()); + } + if (!image_.isEmpty()) { + output.writeString(5, getImage()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getName()); + } + if (!textcolor_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getTextcolor()); + } + if (!bgcolor_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(3, getBgcolor()); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(4, getValue()); + } + if (!image_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(5, getImage()); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoGlobal.Favorite 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.ProtoGlobal.Favorite 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.ProtoGlobal.Favorite parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoGlobal.Favorite 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.ProtoGlobal.Favorite parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoGlobal.Favorite 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.ProtoGlobal.Favorite parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoGlobal.Favorite 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.ProtoGlobal.Favorite parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoGlobal.Favorite 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.ProtoGlobal.Favorite prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.Favorite} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoGlobal.Favorite, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.Favorite) + net.iGap.proto.ProtoGlobal.FavoriteOrBuilder { + // Construct using net.iGap.proto.ProtoGlobal.Favorite.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional string name = 1; + */ + public java.lang.String getName() { + return instance.getName(); + } + /** + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + return instance.getNameBytes(); + } + /** + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + copyOnWrite(); + instance.setName(value); + return this; + } + /** + * optional string name = 1; + */ + public Builder clearName() { + copyOnWrite(); + instance.clearName(); + return this; + } + /** + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setNameBytes(value); + return this; + } + + /** + * optional string textcolor = 2; + */ + public java.lang.String getTextcolor() { + return instance.getTextcolor(); + } + /** + * optional string textcolor = 2; + */ + public com.google.protobuf.ByteString + getTextcolorBytes() { + return instance.getTextcolorBytes(); + } + /** + * optional string textcolor = 2; + */ + public Builder setTextcolor( + java.lang.String value) { + copyOnWrite(); + instance.setTextcolor(value); + return this; + } + /** + * optional string textcolor = 2; + */ + public Builder clearTextcolor() { + copyOnWrite(); + instance.clearTextcolor(); + return this; + } + /** + * optional string textcolor = 2; + */ + public Builder setTextcolorBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setTextcolorBytes(value); + return this; + } + + /** + * optional string bgcolor = 3; + */ + public java.lang.String getBgcolor() { + return instance.getBgcolor(); + } + /** + * optional string bgcolor = 3; + */ + public com.google.protobuf.ByteString + getBgcolorBytes() { + return instance.getBgcolorBytes(); + } + /** + * optional string bgcolor = 3; + */ + public Builder setBgcolor( + java.lang.String value) { + copyOnWrite(); + instance.setBgcolor(value); + return this; + } + /** + * optional string bgcolor = 3; + */ + public Builder clearBgcolor() { + copyOnWrite(); + instance.clearBgcolor(); + return this; + } + /** + * optional string bgcolor = 3; + */ + public Builder setBgcolorBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setBgcolorBytes(value); + return this; + } + + /** + * optional string value = 4; + */ + public java.lang.String getValue() { + return instance.getValue(); + } + /** + * optional string value = 4; + */ + public com.google.protobuf.ByteString + getValueBytes() { + return instance.getValueBytes(); + } + /** + * optional string value = 4; + */ + public Builder setValue( + java.lang.String value) { + copyOnWrite(); + instance.setValue(value); + return this; + } + /** + * optional string value = 4; + */ + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + /** + * optional string value = 4; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setValueBytes(value); + return this; + } + + /** + * optional string image = 5; + */ + public java.lang.String getImage() { + return instance.getImage(); + } + /** + * optional string image = 5; + */ + public com.google.protobuf.ByteString + getImageBytes() { + return instance.getImageBytes(); + } + /** + * optional string image = 5; + */ + public Builder setImage( + java.lang.String value) { + copyOnWrite(); + instance.setImage(value); + return this; + } + /** + * optional string image = 5; + */ + public Builder clearImage() { + copyOnWrite(); + instance.clearImage(); + return this; + } + /** + * optional string image = 5; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setImageBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:proto.Favorite) + } + 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.ProtoGlobal.Favorite(); + } + 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.ProtoGlobal.Favorite other = (net.iGap.proto.ProtoGlobal.Favorite) arg1; + name_ = visitor.visitString(!name_.isEmpty(), name_, + !other.name_.isEmpty(), other.name_); + textcolor_ = visitor.visitString(!textcolor_.isEmpty(), textcolor_, + !other.textcolor_.isEmpty(), other.textcolor_); + bgcolor_ = visitor.visitString(!bgcolor_.isEmpty(), bgcolor_, + !other.bgcolor_.isEmpty(), other.bgcolor_); + value_ = visitor.visitString(!value_.isEmpty(), value_, + !other.value_.isEmpty(), other.value_); + image_ = visitor.visitString(!image_.isEmpty(), image_, + !other.image_.isEmpty(), other.image_); + 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: { + String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + textcolor_ = s; + break; + } + case 26: { + String s = input.readStringRequireUtf8(); + + bgcolor_ = s; + break; + } + case 34: { + String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 42: { + String s = input.readStringRequireUtf8(); + + image_ = s; + 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.ProtoGlobal.Favorite.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.Favorite) + private static final net.iGap.proto.ProtoGlobal.Favorite DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Favorite(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoGlobal.Favorite getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + static { } diff --git a/src/main/java/net/iGap/proto/ProtoMplGetSalesToken.java b/src/main/java/net/iGap/proto/ProtoMplGetSalesToken.java new file mode 100644 index 0000000..3902be8 --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoMplGetSalesToken.java @@ -0,0 +1,1154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MplGetSalesToken.proto + +package net.iGap.proto; + +public final class ProtoMplGetSalesToken { + private ProtoMplGetSalesToken() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface MplGetSalesTokenOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MplGetSalesToken) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + + /** + * optional uint64 amount = 2; + */ + long getAmount(); + + /** + * optional uint64 bot_id = 3; + */ + long getBotId(); + } + /** + * Protobuf type {@code proto.MplGetSalesToken} + */ + public static final class MplGetSalesToken extends + com.google.protobuf.GeneratedMessageLite< + MplGetSalesToken, MplGetSalesToken.Builder> implements + // @@protoc_insertion_point(message_implements:proto.MplGetSalesToken) + MplGetSalesTokenOrBuilder { + private MplGetSalesToken() { + } + 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 AMOUNT_FIELD_NUMBER = 2; + private long amount_; + /** + * optional uint64 amount = 2; + */ + public long getAmount() { + return amount_; + } + /** + * optional uint64 amount = 2; + */ + private void setAmount(long value) { + + amount_ = value; + } + /** + * optional uint64 amount = 2; + */ + private void clearAmount() { + + amount_ = 0L; + } + + public static final int BOT_ID_FIELD_NUMBER = 3; + private long botId_; + /** + * optional uint64 bot_id = 3; + */ + public long getBotId() { + return botId_; + } + /** + * optional uint64 bot_id = 3; + */ + private void setBotId(long value) { + + botId_ = value; + } + /** + * optional uint64 bot_id = 3; + */ + private void clearBotId() { + + botId_ = 0L; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (amount_ != 0L) { + output.writeUInt64(2, amount_); + } + if (botId_ != 0L) { + output.writeUInt64(3, botId_); + } + } + + 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 (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, amount_); + } + if (botId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, botId_); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken 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.ProtoMplGetSalesToken.MplGetSalesToken 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.ProtoMplGetSalesToken.MplGetSalesToken parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken 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.ProtoMplGetSalesToken.MplGetSalesToken parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken 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.ProtoMplGetSalesToken.MplGetSalesToken parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken 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.ProtoMplGetSalesToken.MplGetSalesToken parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken 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.ProtoMplGetSalesToken.MplGetSalesToken prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.MplGetSalesToken} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.MplGetSalesToken) + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenOrBuilder { + // Construct using net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken.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 uint64 amount = 2; + */ + public long getAmount() { + return instance.getAmount(); + } + /** + * optional uint64 amount = 2; + */ + public Builder setAmount(long value) { + copyOnWrite(); + instance.setAmount(value); + return this; + } + /** + * optional uint64 amount = 2; + */ + public Builder clearAmount() { + copyOnWrite(); + instance.clearAmount(); + return this; + } + + /** + * optional uint64 bot_id = 3; + */ + public long getBotId() { + return instance.getBotId(); + } + /** + * optional uint64 bot_id = 3; + */ + public Builder setBotId(long value) { + copyOnWrite(); + instance.setBotId(value); + return this; + } + /** + * optional uint64 bot_id = 3; + */ + public Builder clearBotId() { + copyOnWrite(); + instance.clearBotId(); + return this; + } + + // @@protoc_insertion_point(builder_scope:proto.MplGetSalesToken) + } + 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.ProtoMplGetSalesToken.MplGetSalesToken(); + } + 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.ProtoMplGetSalesToken.MplGetSalesToken other = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken) arg1; + request_ = visitor.visitMessage(request_, other.request_); + amount_ = visitor.visitLong(amount_ != 0L, amount_, + other.amount_ != 0L, other.amount_); + botId_ = visitor.visitLong(botId_ != 0L, botId_, + other.botId_ != 0L, other.botId_); + 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 16: { + + amount_ = input.readUInt64(); + break; + } + case 24: { + + botId_ = input.readUInt64(); + 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.ProtoMplGetSalesToken.MplGetSalesToken.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.MplGetSalesToken) + private static final net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new MplGetSalesToken(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesToken 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 MplGetSalesTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.MplGetSalesTokenResponse) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + + /** + * optional uint32 status = 2; + */ + int getStatus(); + + /** + * optional string token = 3; + */ + java.lang.String getToken(); + /** + * optional string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + * optional uint32 expire_time = 4; + */ + int getExpireTime(); + + /** + * optional string message = 5; + */ + java.lang.String getMessage(); + /** + * optional string message = 5; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + * Protobuf type {@code proto.MplGetSalesTokenResponse} + */ + public static final class MplGetSalesTokenResponse extends + com.google.protobuf.GeneratedMessageLite< + MplGetSalesTokenResponse, MplGetSalesTokenResponse.Builder> implements + // @@protoc_insertion_point(message_implements:proto.MplGetSalesTokenResponse) + MplGetSalesTokenResponseOrBuilder { + private MplGetSalesTokenResponse() { + token_ = ""; + message_ = ""; + } + 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 STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * optional uint32 status = 2; + */ + public int getStatus() { + return status_; + } + /** + * optional uint32 status = 2; + */ + private void setStatus(int value) { + + status_ = value; + } + /** + * optional uint32 status = 2; + */ + private void clearStatus() { + + status_ = 0; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private java.lang.String token_; + /** + * optional string token = 3; + */ + public java.lang.String getToken() { + return token_; + } + /** + * optional string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(token_); + } + /** + * optional string token = 3; + */ + private void setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + } + /** + * optional string token = 3; + */ + private void clearToken() { + + token_ = getDefaultInstance().getToken(); + } + /** + * optional string token = 3; + */ + private void setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value.toStringUtf8(); + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 4; + private int expireTime_; + /** + * optional uint32 expire_time = 4; + */ + public int getExpireTime() { + return expireTime_; + } + /** + * optional uint32 expire_time = 4; + */ + private void setExpireTime(int value) { + + expireTime_ = value; + } + /** + * optional uint32 expire_time = 4; + */ + private void clearExpireTime() { + + expireTime_ = 0; + } + + public static final int MESSAGE_FIELD_NUMBER = 5; + private java.lang.String message_; + /** + * optional string message = 5; + */ + public java.lang.String getMessage() { + return message_; + } + /** + * optional string message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(message_); + } + /** + * optional string message = 5; + */ + private void setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + } + /** + * optional string message = 5; + */ + private void clearMessage() { + + message_ = getDefaultInstance().getMessage(); + } + /** + * optional string message = 5; + */ + private void setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (status_ != 0) { + output.writeUInt32(2, status_); + } + if (!token_.isEmpty()) { + output.writeString(3, getToken()); + } + if (expireTime_ != 0) { + output.writeUInt32(4, expireTime_); + } + if (!message_.isEmpty()) { + output.writeString(5, getMessage()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, status_); + } + if (!token_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(3, getToken()); + } + if (expireTime_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, expireTime_); + } + if (!message_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(5, getMessage()); + } + memoizedSerializedSize = size; + return size; + } + + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code proto.MplGetSalesTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse, Builder> implements + // @@protoc_insertion_point(builder_implements:proto.MplGetSalesTokenResponse) + net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponseOrBuilder { + // Construct using net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse.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; + } + + /** + * optional uint32 status = 2; + */ + public int getStatus() { + return instance.getStatus(); + } + /** + * optional uint32 status = 2; + */ + public Builder setStatus(int value) { + copyOnWrite(); + instance.setStatus(value); + return this; + } + /** + * optional uint32 status = 2; + */ + public Builder clearStatus() { + copyOnWrite(); + instance.clearStatus(); + return this; + } + + /** + * optional string token = 3; + */ + public java.lang.String getToken() { + return instance.getToken(); + } + /** + * optional string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + return instance.getTokenBytes(); + } + /** + * optional string token = 3; + */ + public Builder setToken( + java.lang.String value) { + copyOnWrite(); + instance.setToken(value); + return this; + } + /** + * optional string token = 3; + */ + public Builder clearToken() { + copyOnWrite(); + instance.clearToken(); + return this; + } + /** + * optional string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setTokenBytes(value); + return this; + } + + /** + * optional uint32 expire_time = 4; + */ + public int getExpireTime() { + return instance.getExpireTime(); + } + /** + * optional uint32 expire_time = 4; + */ + public Builder setExpireTime(int value) { + copyOnWrite(); + instance.setExpireTime(value); + return this; + } + /** + * optional uint32 expire_time = 4; + */ + public Builder clearExpireTime() { + copyOnWrite(); + instance.clearExpireTime(); + return this; + } + + /** + * optional string message = 5; + */ + public java.lang.String getMessage() { + return instance.getMessage(); + } + /** + * optional string message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return instance.getMessageBytes(); + } + /** + * optional string message = 5; + */ + public Builder setMessage( + java.lang.String value) { + copyOnWrite(); + instance.setMessage(value); + return this; + } + /** + * optional string message = 5; + */ + public Builder clearMessage() { + copyOnWrite(); + instance.clearMessage(); + return this; + } + /** + * optional string message = 5; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setMessageBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:proto.MplGetSalesTokenResponse) + } + 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse(); + } + 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse other = (net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse) arg1; + response_ = visitor.visitMessage(response_, other.response_); + status_ = visitor.visitInt(status_ != 0, status_, + other.status_ != 0, other.status_); + token_ = visitor.visitString(!token_.isEmpty(), token_, + !other.token_.isEmpty(), other.token_); + expireTime_ = visitor.visitInt(expireTime_ != 0, expireTime_, + other.expireTime_ != 0, other.expireTime_); + message_ = visitor.visitString(!message_.isEmpty(), message_, + !other.message_.isEmpty(), other.message_); + 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.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: { + + status_ = input.readUInt32(); + break; + } + case 26: { + String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 32: { + + expireTime_ = input.readUInt32(); + break; + } + case 42: { + String s = input.readStringRequireUtf8(); + + message_ = s; + 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.ProtoMplGetSalesToken.MplGetSalesTokenResponse.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:proto.MplGetSalesTokenResponse) + private static final net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new MplGetSalesTokenResponse(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static net.iGap.proto.ProtoMplGetSalesToken.MplGetSalesTokenResponse 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) +}