diff --git a/src/main/java/net/iGap/proto/ProtoWalletPaymentInit.java b/src/main/java/net/iGap/proto/ProtoWalletPaymentInit.java new file mode 100644 index 0000000..3aa390e --- /dev/null +++ b/src/main/java/net/iGap/proto/ProtoWalletPaymentInit.java @@ -0,0 +1,1968 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: WalletPaymentInit.proto + +package net.iGap.proto; + +public final class ProtoWalletPaymentInit { + private ProtoWalletPaymentInit() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WalletPaymentInitOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.WalletPaymentInit) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Request request = 1; + */ + boolean hasRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.Request getRequest(); + /** + * optional .proto.Request request = 1; + */ + net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder(); + + /** + * optional .proto.Language language = 2; + */ + int getLanguageValue(); + /** + * optional .proto.Language language = 2; + */ + net.iGap.proto.ProtoGlobal.Language getLanguage(); + + /** + * optional string jwt = 3; + */ + java.lang.String getJwt(); + /** + * optional string jwt = 3; + */ + com.google.protobuf.ByteString + getJwtBytes(); + + /** + * optional uint64 to_user_id = 4; + */ + long getToUserId(); + + /** + * optional uint64 amount = 5; + */ + long getAmount(); + + /** + * optional string description = 6; + */ + java.lang.String getDescription(); + /** + * optional string description = 6; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + * Protobuf type {@code proto.WalletPaymentInit} + */ + public static final class WalletPaymentInit extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.WalletPaymentInit) + WalletPaymentInitOrBuilder { + // Use WalletPaymentInit.newBuilder() to construct. + private WalletPaymentInit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WalletPaymentInit() { + language_ = 0; + jwt_ = ""; + toUserId_ = 0L; + amount_ = 0L; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private WalletPaymentInit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + net.iGap.proto.ProtoRequest.Request.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(net.iGap.proto.ProtoRequest.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + language_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + jwt_ = s; + break; + } + case 32: { + + toUserId_ = input.readUInt64(); + break; + } + case 40: { + + amount_ = input.readUInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.Builder.class); + } + + public static final int REQUEST_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoRequest.Request request_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int LANGUAGE_FIELD_NUMBER = 2; + private int language_; + /** + * optional .proto.Language language = 2; + */ + public int getLanguageValue() { + return language_; + } + /** + * optional .proto.Language language = 2; + */ + public net.iGap.proto.ProtoGlobal.Language getLanguage() { + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); + return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; + } + + public static final int JWT_FIELD_NUMBER = 3; + private volatile java.lang.Object jwt_; + /** + * optional string jwt = 3; + */ + public java.lang.String getJwt() { + java.lang.Object ref = jwt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwt_ = s; + return s; + } + } + /** + * optional string jwt = 3; + */ + public com.google.protobuf.ByteString + getJwtBytes() { + java.lang.Object ref = jwt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TO_USER_ID_FIELD_NUMBER = 4; + private long toUserId_; + /** + * optional uint64 to_user_id = 4; + */ + public long getToUserId() { + return toUserId_; + } + + public static final int AMOUNT_FIELD_NUMBER = 5; + private long amount_; + /** + * optional uint64 amount = 5; + */ + public long getAmount() { + return amount_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object description_; + /** + * optional string description = 6; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * optional string description = 6; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (request_ != null) { + output.writeMessage(1, getRequest()); + } + if (language_ != net.iGap.proto.ProtoGlobal.Language.EN_US.getNumber()) { + output.writeEnum(2, language_); + } + if (!getJwtBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jwt_); + } + if (toUserId_ != 0L) { + output.writeUInt64(4, toUserId_); + } + if (amount_ != 0L) { + output.writeUInt64(5, amount_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRequest()); + } + if (language_ != net.iGap.proto.ProtoGlobal.Language.EN_US.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, language_); + } + if (!getJwtBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jwt_); + } + if (toUserId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, toUserId_); + } + if (amount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, amount_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit other = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && language_ == other.language_; + result = result && getJwt() + .equals(other.getJwt()); + result = result && (getToUserId() + == other.getToUserId()); + result = result && (getAmount() + == other.getAmount()); + result = result && getDescription() + .equals(other.getDescription()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + hash = (37 * hash) + JWT_FIELD_NUMBER; + hash = (53 * hash) + getJwt().hashCode(); + hash = (37 * hash) + TO_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToUserId()); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.WalletPaymentInit} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.WalletPaymentInit) + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.Builder.class); + } + + // Construct using net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + language_ = 0; + + jwt_ = ""; + + toUserId_ = 0L; + + amount_ = 0L; + + description_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInit_descriptor; + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.getDefaultInstance(); + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit build() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit buildPartial() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit result = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit(this); + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.language_ = language_; + result.jwt_ = jwt_; + result.toUserId_ = toUserId_; + result.amount_ = amount_; + result.description_ = description_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit) { + return mergeFrom((net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit other) { + if (other == net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit.getDefaultInstance()) return this; + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.language_ != 0) { + setLanguageValue(other.getLanguageValue()); + } + if (!other.getJwt().isEmpty()) { + jwt_ = other.jwt_; + onChanged(); + } + if (other.getToUserId() != 0L) { + setToUserId(other.getToUserId()); + } + if (other.getAmount() != 0L) { + setAmount(other.getAmount()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoRequest.Request request_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> requestBuilder_; + /** + * optional .proto.Request request = 1; + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder setRequest( + net.iGap.proto.ProtoRequest.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder mergeRequest(net.iGap.proto.ProtoRequest.Request value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + net.iGap.proto.ProtoRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.Request.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .proto.Request request = 1; + */ + public net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + net.iGap.proto.ProtoRequest.Request.getDefaultInstance() : request_; + } + } + /** + * optional .proto.Request request = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoRequest.Request, net.iGap.proto.ProtoRequest.Request.Builder, net.iGap.proto.ProtoRequest.RequestOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + private int language_ = 0; + /** + * optional .proto.Language language = 2; + */ + public int getLanguageValue() { + return language_; + } + /** + * optional .proto.Language language = 2; + */ + public Builder setLanguageValue(int value) { + language_ = value; + onChanged(); + return this; + } + /** + * optional .proto.Language language = 2; + */ + public net.iGap.proto.ProtoGlobal.Language getLanguage() { + net.iGap.proto.ProtoGlobal.Language result = net.iGap.proto.ProtoGlobal.Language.valueOf(language_); + return result == null ? net.iGap.proto.ProtoGlobal.Language.UNRECOGNIZED : result; + } + /** + * optional .proto.Language language = 2; + */ + public Builder setLanguage(net.iGap.proto.ProtoGlobal.Language value) { + if (value == null) { + throw new NullPointerException(); + } + + language_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.Language language = 2; + */ + public Builder clearLanguage() { + + language_ = 0; + onChanged(); + return this; + } + + private java.lang.Object jwt_ = ""; + /** + * optional string jwt = 3; + */ + public java.lang.String getJwt() { + java.lang.Object ref = jwt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string jwt = 3; + */ + public com.google.protobuf.ByteString + getJwtBytes() { + java.lang.Object ref = jwt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string jwt = 3; + */ + public Builder setJwt( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jwt_ = value; + onChanged(); + return this; + } + /** + * optional string jwt = 3; + */ + public Builder clearJwt() { + + jwt_ = getDefaultInstance().getJwt(); + onChanged(); + return this; + } + /** + * optional string jwt = 3; + */ + public Builder setJwtBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jwt_ = value; + onChanged(); + return this; + } + + private long toUserId_ ; + /** + * optional uint64 to_user_id = 4; + */ + public long getToUserId() { + return toUserId_; + } + /** + * optional uint64 to_user_id = 4; + */ + public Builder setToUserId(long value) { + + toUserId_ = value; + onChanged(); + return this; + } + /** + * optional uint64 to_user_id = 4; + */ + public Builder clearToUserId() { + + toUserId_ = 0L; + onChanged(); + return this; + } + + private long amount_ ; + /** + * optional uint64 amount = 5; + */ + public long getAmount() { + return amount_; + } + /** + * optional uint64 amount = 5; + */ + public Builder setAmount(long value) { + + amount_ = value; + onChanged(); + return this; + } + /** + * optional uint64 amount = 5; + */ + public Builder clearAmount() { + + amount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * optional string description = 6; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string description = 6; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string description = 6; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * optional string description = 6; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * optional string description = 6; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:proto.WalletPaymentInit) + } + + // @@protoc_insertion_point(class_scope:proto.WalletPaymentInit) + private static final net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit(); + } + + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WalletPaymentInit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletPaymentInit(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WalletPaymentInitResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:proto.WalletPaymentInitResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .proto.Response response = 1; + */ + boolean hasResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.Response getResponse(); + /** + * optional .proto.Response response = 1; + */ + net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder(); + + /** + * optional string token = 2; + */ + java.lang.String getToken(); + /** + * optional string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + * optional string public_key = 3; + */ + java.lang.String getPublicKey(); + /** + * optional string public_key = 3; + */ + com.google.protobuf.ByteString + getPublicKeyBytes(); + } + /** + * Protobuf type {@code proto.WalletPaymentInitResponse} + */ + public static final class WalletPaymentInitResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:proto.WalletPaymentInitResponse) + WalletPaymentInitResponseOrBuilder { + // Use WalletPaymentInitResponse.newBuilder() to construct. + private WalletPaymentInitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WalletPaymentInitResponse() { + token_ = ""; + publicKey_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private WalletPaymentInitResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + net.iGap.proto.ProtoResponse.Response.Builder subBuilder = null; + if (response_ != null) { + subBuilder = response_.toBuilder(); + } + response_ = input.readMessage(net.iGap.proto.ProtoResponse.Response.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(response_); + response_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + publicKey_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.Builder.class); + } + + public static final int RESPONSE_FIELD_NUMBER = 1; + private net.iGap.proto.ProtoResponse.Response response_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + return getResponse(); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + * optional string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + * optional string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_KEY_FIELD_NUMBER = 3; + private volatile java.lang.Object publicKey_; + /** + * optional string public_key = 3; + */ + public java.lang.String getPublicKey() { + java.lang.Object ref = publicKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicKey_ = s; + return s; + } + } + /** + * optional string public_key = 3; + */ + public com.google.protobuf.ByteString + getPublicKeyBytes() { + java.lang.Object ref = publicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (response_ != null) { + output.writeMessage(1, getResponse()); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + if (!getPublicKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publicKey_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (response_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResponse()); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + if (!getPublicKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicKey_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse)) { + return super.equals(obj); + } + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse other = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse) obj; + + boolean result = true; + result = result && (hasResponse() == other.hasResponse()); + if (hasResponse()) { + result = result && getResponse() + .equals(other.getResponse()); + } + result = result && getToken() + .equals(other.getToken()); + result = result && getPublicKey() + .equals(other.getPublicKey()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPublicKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.WalletPaymentInitResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:proto.WalletPaymentInitResponse) + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.class, net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.Builder.class); + } + + // Construct using net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (responseBuilder_ == null) { + response_ = null; + } else { + response_ = null; + responseBuilder_ = null; + } + token_ = ""; + + publicKey_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return net.iGap.proto.ProtoWalletPaymentInit.internal_static_proto_WalletPaymentInitResponse_descriptor; + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse getDefaultInstanceForType() { + return net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.getDefaultInstance(); + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse build() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse buildPartial() { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse result = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse(this); + if (responseBuilder_ == null) { + result.response_ = response_; + } else { + result.response_ = responseBuilder_.build(); + } + result.token_ = token_; + result.publicKey_ = publicKey_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse) { + return mergeFrom((net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse other) { + if (other == net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getPublicKey().isEmpty()) { + publicKey_ = other.publicKey_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private net.iGap.proto.ProtoResponse.Response response_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> responseBuilder_; + /** + * optional .proto.Response response = 1; + */ + public boolean hasResponse() { + return responseBuilder_ != null || response_ != null; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + responseBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder setResponse( + net.iGap.proto.ProtoResponse.Response.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder mergeResponse(net.iGap.proto.ProtoResponse.Response value) { + if (responseBuilder_ == null) { + if (response_ != null) { + response_ = + net.iGap.proto.ProtoResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + responseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public Builder clearResponse() { + if (responseBuilder_ == null) { + response_ = null; + onChanged(); + } else { + response_ = null; + responseBuilder_ = null; + } + + return this; + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.Response.Builder getResponseBuilder() { + + onChanged(); + return getResponseFieldBuilder().getBuilder(); + } + /** + * optional .proto.Response response = 1; + */ + public net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? + net.iGap.proto.ProtoResponse.Response.getDefaultInstance() : response_; + } + } + /** + * optional .proto.Response response = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder> + getResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + net.iGap.proto.ProtoResponse.Response, net.iGap.proto.ProtoResponse.Response.Builder, net.iGap.proto.ProtoResponse.ResponseOrBuilder>( + getResponse(), + getParentForChildren(), + isClean()); + response_ = null; + } + return responseBuilder_; + } + + private java.lang.Object token_ = ""; + /** + * optional string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * optional string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * optional string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object publicKey_ = ""; + /** + * optional string public_key = 3; + */ + public java.lang.String getPublicKey() { + java.lang.Object ref = publicKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string public_key = 3; + */ + public com.google.protobuf.ByteString + getPublicKeyBytes() { + java.lang.Object ref = publicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + publicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string public_key = 3; + */ + public Builder setPublicKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicKey_ = value; + onChanged(); + return this; + } + /** + * optional string public_key = 3; + */ + public Builder clearPublicKey() { + + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } + /** + * optional string public_key = 3; + */ + public Builder setPublicKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicKey_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:proto.WalletPaymentInitResponse) + } + + // @@protoc_insertion_point(class_scope:proto.WalletPaymentInitResponse) + private static final net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse(); + } + + public static net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WalletPaymentInitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WalletPaymentInitResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public net.iGap.proto.ProtoWalletPaymentInit.WalletPaymentInitResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletPaymentInit_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletPaymentInit_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_proto_WalletPaymentInitResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\027WalletPaymentInit.proto\022\005proto\032\rReques" + + "t.proto\032\016Response.proto\032\014Global.proto\"\235\001" + + "\n\021WalletPaymentInit\022\037\n\007request\030\001 \001(\0132\016.p" + + "roto.Request\022!\n\010language\030\002 \001(\0162\017.proto.L" + + "anguage\022\013\n\003jwt\030\003 \001(\t\022\022\n\nto_user_id\030\004 \001(\004" + + "\022\016\n\006amount\030\005 \001(\004\022\023\n\013description\030\006 \001(\t\"a\n" + + "\031WalletPaymentInitResponse\022!\n\010response\030\001" + + " \001(\0132\017.proto.Response\022\r\n\005token\030\002 \001(\t\022\022\n\n" + + "public_key\030\003 \001(\tB(\n\016net.iGap.protoB\026Prot" + + "oWalletPaymentInitb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + net.iGap.proto.ProtoRequest.getDescriptor(), + net.iGap.proto.ProtoResponse.getDescriptor(), + net.iGap.proto.ProtoGlobal.getDescriptor(), + }, assigner); + internal_static_proto_WalletPaymentInit_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_proto_WalletPaymentInit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletPaymentInit_descriptor, + new java.lang.String[] { "Request", "Language", "Jwt", "ToUserId", "Amount", "Description", }); + internal_static_proto_WalletPaymentInitResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_proto_WalletPaymentInitResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_WalletPaymentInitResponse_descriptor, + new java.lang.String[] { "Response", "Token", "PublicKey", }); + net.iGap.proto.ProtoRequest.getDescriptor(); + net.iGap.proto.ProtoResponse.getDescriptor(); + net.iGap.proto.ProtoGlobal.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}