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

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

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

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Список активов.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.AssetsResponse} */ public final class AssetsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.AssetsResponse) AssetsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AssetsResponse.newBuilder() to construct. private AssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssetsResponse() { assets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssetsResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.AssetsResponse.class, ru.tinkoff.piapi.contract.v1.AssetsResponse.Builder.class); } public static final int ASSETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List assets_; /** *
   *Активы.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ @java.lang.Override public java.util.List getAssetsList() { return assets_; } /** *
   *Активы.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ @java.lang.Override public java.util.List getAssetsOrBuilderList() { return assets_; } /** *
   *Активы.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ @java.lang.Override public int getAssetsCount() { return assets_.size(); } /** *
   *Активы.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.Asset getAssets(int index) { return assets_.get(index); } /** *
   *Активы.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetOrBuilder getAssetsOrBuilder( int index) { return assets_.get(index); } 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 { for (int i = 0; i < assets_.size(); i++) { output.writeMessage(1, assets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < assets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, assets_.get(i)); } 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.AssetsResponse)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.AssetsResponse other = (ru.tinkoff.piapi.contract.v1.AssetsResponse) obj; if (!getAssetsList() .equals(other.getAssetsList())) 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 (getAssetsCount() > 0) { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.AssetsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AssetsResponse 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.AssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AssetsResponse 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.AssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.AssetsResponse 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.AssetsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.AssetsResponse 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.AssetsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.AssetsResponse 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.AssetsResponse 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.AssetsResponse 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.AssetsResponse 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.AssetsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AssetsResponse) ru.tinkoff.piapi.contract.v1.AssetsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.AssetsResponse.class, ru.tinkoff.piapi.contract.v1.AssetsResponse.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.AssetsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); } else { assets_ = null; assetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AssetsResponse_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetsResponse getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.AssetsResponse.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetsResponse build() { ru.tinkoff.piapi.contract.v1.AssetsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.AssetsResponse buildPartial() { ru.tinkoff.piapi.contract.v1.AssetsResponse result = new ru.tinkoff.piapi.contract.v1.AssetsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.AssetsResponse result) { if (assetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { assets_ = java.util.Collections.unmodifiableList(assets_); bitField0_ = (bitField0_ & ~0x00000001); } result.assets_ = assets_; } else { result.assets_ = assetsBuilder_.build(); } } private void buildPartial0(ru.tinkoff.piapi.contract.v1.AssetsResponse result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.AssetsResponse) { return mergeFrom((ru.tinkoff.piapi.contract.v1.AssetsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AssetsResponse other) { if (other == ru.tinkoff.piapi.contract.v1.AssetsResponse.getDefaultInstance()) return this; if (assetsBuilder_ == null) { if (!other.assets_.isEmpty()) { if (assets_.isEmpty()) { assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssetsIsMutable(); assets_.addAll(other.assets_); } onChanged(); } } else { if (!other.assets_.isEmpty()) { if (assetsBuilder_.isEmpty()) { assetsBuilder_.dispose(); assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); assetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetsFieldBuilder() : null; } else { assetsBuilder_.addAllMessages(other.assets_); } } } 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: { ru.tinkoff.piapi.contract.v1.Asset m = input.readMessage( ru.tinkoff.piapi.contract.v1.Asset.parser(), extensionRegistry); if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(m); } else { assetsBuilder_.addMessage(m); } 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 java.util.List assets_ = java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Asset, ru.tinkoff.piapi.contract.v1.Asset.Builder, ru.tinkoff.piapi.contract.v1.AssetOrBuilder> assetsBuilder_; /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public java.util.List getAssetsList() { if (assetsBuilder_ == null) { return java.util.Collections.unmodifiableList(assets_); } else { return assetsBuilder_.getMessageList(); } } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public int getAssetsCount() { if (assetsBuilder_ == null) { return assets_.size(); } else { return assetsBuilder_.getCount(); } } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public ru.tinkoff.piapi.contract.v1.Asset getAssets(int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessage(index); } } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder setAssets( int index, ru.tinkoff.piapi.contract.v1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.set(index, value); onChanged(); } else { assetsBuilder_.setMessage(index, value); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder setAssets( int index, ru.tinkoff.piapi.contract.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.set(index, builderForValue.build()); onChanged(); } else { assetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder addAssets(ru.tinkoff.piapi.contract.v1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.add(value); onChanged(); } else { assetsBuilder_.addMessage(value); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder addAssets( int index, ru.tinkoff.piapi.contract.v1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetsIsMutable(); assets_.add(index, value); onChanged(); } else { assetsBuilder_.addMessage(index, value); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder addAssets( ru.tinkoff.piapi.contract.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); onChanged(); } else { assetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder addAssets( int index, ru.tinkoff.piapi.contract.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(index, builderForValue.build()); onChanged(); } else { assetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder clearAssets() { if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { assetsBuilder_.clear(); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public Builder removeAssets(int index) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.remove(index); onChanged(); } else { assetsBuilder_.remove(index); } return this; } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public ru.tinkoff.piapi.contract.v1.Asset.Builder getAssetsBuilder( int index) { return getAssetsFieldBuilder().getBuilder(index); } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public ru.tinkoff.piapi.contract.v1.AssetOrBuilder getAssetsOrBuilder( int index) { if (assetsBuilder_ == null) { return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public java.util.List getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assets_); } } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public ru.tinkoff.piapi.contract.v1.Asset.Builder addAssetsBuilder() { return getAssetsFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.Asset.getDefaultInstance()); } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public ru.tinkoff.piapi.contract.v1.Asset.Builder addAssetsBuilder( int index) { return getAssetsFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.Asset.getDefaultInstance()); } /** *
     *Активы.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.Asset assets = 1; */ public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Asset, ru.tinkoff.piapi.contract.v1.Asset.Builder, ru.tinkoff.piapi.contract.v1.AssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.Asset, ru.tinkoff.piapi.contract.v1.Asset.Builder, ru.tinkoff.piapi.contract.v1.AssetOrBuilder>( assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; } @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.AssetsResponse) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.AssetsResponse) private static final ru.tinkoff.piapi.contract.v1.AssetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.AssetsResponse(); } public static ru.tinkoff.piapi.contract.v1.AssetsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssetsResponse 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.AssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy