All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.SandboxPayInResponse Maven / Gradle / Ivy

There is a newer version: 1.25
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: sandbox.proto

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Результат пополнения счёта, текущий баланс.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.SandboxPayInResponse} */ public final class SandboxPayInResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.SandboxPayInResponse) SandboxPayInResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SandboxPayInResponse.newBuilder() to construct. private SandboxPayInResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SandboxPayInResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SandboxPayInResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Sandbox.internal_static_tinkoff_public_invest_api_contract_v1_SandboxPayInResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Sandbox.internal_static_tinkoff_public_invest_api_contract_v1_SandboxPayInResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.class, ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.Builder.class); } public static final int BALANCE_FIELD_NUMBER = 1; private ru.tinkoff.piapi.contract.v1.MoneyValue balance_; /** *
   *Текущий баланс счёта
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; * @return Whether the balance field is set. */ @java.lang.Override public boolean hasBalance() { return balance_ != null; } /** *
   *Текущий баланс счёта
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; * @return The balance. */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValue getBalance() { return balance_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : balance_; } /** *
   *Текущий баланс счёта
   * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getBalanceOrBuilder() { return balance_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : balance_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (balance_ != null) { output.writeMessage(1, getBalance()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (balance_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBalance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ru.tinkoff.piapi.contract.v1.SandboxPayInResponse)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.SandboxPayInResponse other = (ru.tinkoff.piapi.contract.v1.SandboxPayInResponse) obj; if (hasBalance() != other.hasBalance()) return false; if (hasBalance()) { if (!getBalance() .equals(other.getBalance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBalance()) { hash = (37 * hash) + BALANCE_FIELD_NUMBER; hash = (53 * hash) + getBalance().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse 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 ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse 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 ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ru.tinkoff.piapi.contract.v1.SandboxPayInResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 tinkoff.public.invest.api.contract.v1.SandboxPayInResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.SandboxPayInResponse) ru.tinkoff.piapi.contract.v1.SandboxPayInResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Sandbox.internal_static_tinkoff_public_invest_api_contract_v1_SandboxPayInResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Sandbox.internal_static_tinkoff_public_invest_api_contract_v1_SandboxPayInResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.class, ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; balance_ = null; if (balanceBuilder_ != null) { balanceBuilder_.dispose(); balanceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Sandbox.internal_static_tinkoff_public_invest_api_contract_v1_SandboxPayInResponse_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.SandboxPayInResponse getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.SandboxPayInResponse build() { ru.tinkoff.piapi.contract.v1.SandboxPayInResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.SandboxPayInResponse buildPartial() { ru.tinkoff.piapi.contract.v1.SandboxPayInResponse result = new ru.tinkoff.piapi.contract.v1.SandboxPayInResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.SandboxPayInResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.balance_ = balanceBuilder_ == null ? balance_ : balanceBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.SandboxPayInResponse) { return mergeFrom((ru.tinkoff.piapi.contract.v1.SandboxPayInResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.SandboxPayInResponse other) { if (other == ru.tinkoff.piapi.contract.v1.SandboxPayInResponse.getDefaultInstance()) return this; if (other.hasBalance()) { mergeBalance(other.getBalance()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getBalanceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private ru.tinkoff.piapi.contract.v1.MoneyValue balance_; private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> balanceBuilder_; /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; * @return Whether the balance field is set. */ public boolean hasBalance() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; * @return The balance. */ public ru.tinkoff.piapi.contract.v1.MoneyValue getBalance() { if (balanceBuilder_ == null) { return balance_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : balance_; } else { return balanceBuilder_.getMessage(); } } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ public Builder setBalance(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (balanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } balance_ = value; } else { balanceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ public Builder setBalance( ru.tinkoff.piapi.contract.v1.MoneyValue.Builder builderForValue) { if (balanceBuilder_ == null) { balance_ = builderForValue.build(); } else { balanceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ public Builder mergeBalance(ru.tinkoff.piapi.contract.v1.MoneyValue value) { if (balanceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && balance_ != null && balance_ != ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance()) { getBalanceBuilder().mergeFrom(value); } else { balance_ = value; } } else { balanceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ public Builder clearBalance() { bitField0_ = (bitField0_ & ~0x00000001); balance_ = null; if (balanceBuilder_ != null) { balanceBuilder_.dispose(); balanceBuilder_ = null; } onChanged(); return this; } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValue.Builder getBalanceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBalanceFieldBuilder().getBuilder(); } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ public ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder getBalanceOrBuilder() { if (balanceBuilder_ != null) { return balanceBuilder_.getMessageOrBuilder(); } else { return balance_ == null ? ru.tinkoff.piapi.contract.v1.MoneyValue.getDefaultInstance() : balance_; } } /** *
     *Текущий баланс счёта
     * 
* * .tinkoff.public.invest.api.contract.v1.MoneyValue balance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder> getBalanceFieldBuilder() { if (balanceBuilder_ == null) { balanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ru.tinkoff.piapi.contract.v1.MoneyValue, ru.tinkoff.piapi.contract.v1.MoneyValue.Builder, ru.tinkoff.piapi.contract.v1.MoneyValueOrBuilder>( getBalance(), getParentForChildren(), isClean()); balance_ = null; } return balanceBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.SandboxPayInResponse) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.SandboxPayInResponse) private static final ru.tinkoff.piapi.contract.v1.SandboxPayInResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.SandboxPayInResponse(); } public static ru.tinkoff.piapi.contract.v1.SandboxPayInResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SandboxPayInResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.SandboxPayInResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy