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

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

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

package ru.tinkoff.piapi.contract.v1;

/**
 * 
 *Запрос получения цен последних сделок.
 * 
* * Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetLastPricesRequest} */ public final class GetLastPricesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetLastPricesRequest) GetLastPricesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetLastPricesRequest.newBuilder() to construct. private GetLastPricesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetLastPricesRequest() { figi_ = com.google.protobuf.LazyStringArrayList.emptyList(); instrumentId_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetLastPricesRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_GetLastPricesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_GetLastPricesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.GetLastPricesRequest.class, ru.tinkoff.piapi.contract.v1.GetLastPricesRequest.Builder.class); } public static final int FIGI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList figi_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
   * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @return A list containing the figi. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getFigiList() { return figi_; } /** *
   *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
   * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @return The count of figi. */ @java.lang.Deprecated public int getFigiCount() { return figi_.size(); } /** *
   *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
   * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param index The index of the element to return. * @return The figi at the given index. */ @java.lang.Deprecated public java.lang.String getFigi(int index) { return figi_.get(index); } /** *
   *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
   * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param index The index of the value to return. * @return The bytes of the figi at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getFigiBytes(int index) { return figi_.getByteString(index); } public static final int INSTRUMENT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList instrumentId_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
   * 
* * repeated string instrument_id = 2; * @return A list containing the instrumentId. */ public com.google.protobuf.ProtocolStringList getInstrumentIdList() { return instrumentId_; } /** *
   *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
   * 
* * repeated string instrument_id = 2; * @return The count of instrumentId. */ public int getInstrumentIdCount() { return instrumentId_.size(); } /** *
   *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
   * 
* * repeated string instrument_id = 2; * @param index The index of the element to return. * @return The instrumentId at the given index. */ public java.lang.String getInstrumentId(int index) { return instrumentId_.get(index); } /** *
   *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
   * 
* * repeated string instrument_id = 2; * @param index The index of the value to return. * @return The bytes of the instrumentId at the given index. */ public com.google.protobuf.ByteString getInstrumentIdBytes(int index) { return instrumentId_.getByteString(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 < figi_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, figi_.getRaw(i)); } for (int i = 0; i < instrumentId_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instrumentId_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < figi_.size(); i++) { dataSize += computeStringSizeNoTag(figi_.getRaw(i)); } size += dataSize; size += 1 * getFigiList().size(); } { int dataSize = 0; for (int i = 0; i < instrumentId_.size(); i++) { dataSize += computeStringSizeNoTag(instrumentId_.getRaw(i)); } size += dataSize; size += 1 * getInstrumentIdList().size(); } 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.GetLastPricesRequest)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.GetLastPricesRequest other = (ru.tinkoff.piapi.contract.v1.GetLastPricesRequest) obj; if (!getFigiList() .equals(other.getFigiList())) return false; if (!getInstrumentIdList() .equals(other.getInstrumentIdList())) 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 (getFigiCount() > 0) { hash = (37 * hash) + FIGI_FIELD_NUMBER; hash = (53 * hash) + getFigiList().hashCode(); } if (getInstrumentIdCount() > 0) { hash = (37 * hash) + INSTRUMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getInstrumentIdList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.GetLastPricesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetLastPricesRequest 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.GetLastPricesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetLastPricesRequest 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.GetLastPricesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.GetLastPricesRequest 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.GetLastPricesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.GetLastPricesRequest 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.GetLastPricesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.GetLastPricesRequest 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.GetLastPricesRequest 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.GetLastPricesRequest 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.GetLastPricesRequest 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.GetLastPricesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetLastPricesRequest) ru.tinkoff.piapi.contract.v1.GetLastPricesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_GetLastPricesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_GetLastPricesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.GetLastPricesRequest.class, ru.tinkoff.piapi.contract.v1.GetLastPricesRequest.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.GetLastPricesRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; figi_ = com.google.protobuf.LazyStringArrayList.emptyList(); instrumentId_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_GetLastPricesRequest_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetLastPricesRequest getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.GetLastPricesRequest.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetLastPricesRequest build() { ru.tinkoff.piapi.contract.v1.GetLastPricesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.GetLastPricesRequest buildPartial() { ru.tinkoff.piapi.contract.v1.GetLastPricesRequest result = new ru.tinkoff.piapi.contract.v1.GetLastPricesRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetLastPricesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { figi_.makeImmutable(); result.figi_ = figi_; } if (((from_bitField0_ & 0x00000002) != 0)) { instrumentId_.makeImmutable(); result.instrumentId_ = instrumentId_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.GetLastPricesRequest) { return mergeFrom((ru.tinkoff.piapi.contract.v1.GetLastPricesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetLastPricesRequest other) { if (other == ru.tinkoff.piapi.contract.v1.GetLastPricesRequest.getDefaultInstance()) return this; if (!other.figi_.isEmpty()) { if (figi_.isEmpty()) { figi_ = other.figi_; bitField0_ |= 0x00000001; } else { ensureFigiIsMutable(); figi_.addAll(other.figi_); } onChanged(); } if (!other.instrumentId_.isEmpty()) { if (instrumentId_.isEmpty()) { instrumentId_ = other.instrumentId_; bitField0_ |= 0x00000002; } else { ensureInstrumentIdIsMutable(); instrumentId_.addAll(other.instrumentId_); } onChanged(); } 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: { java.lang.String s = input.readStringRequireUtf8(); ensureFigiIsMutable(); figi_.add(s); break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureInstrumentIdIsMutable(); instrumentId_.add(s); break; } // case 18 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 com.google.protobuf.LazyStringArrayList figi_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFigiIsMutable() { if (!figi_.isModifiable()) { figi_ = new com.google.protobuf.LazyStringArrayList(figi_); } bitField0_ |= 0x00000001; } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @return A list containing the figi. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getFigiList() { figi_.makeImmutable(); return figi_; } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @return The count of figi. */ @java.lang.Deprecated public int getFigiCount() { return figi_.size(); } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param index The index of the element to return. * @return The figi at the given index. */ @java.lang.Deprecated public java.lang.String getFigi(int index) { return figi_.get(index); } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param index The index of the value to return. * @return The bytes of the figi at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getFigiBytes(int index) { return figi_.getByteString(index); } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param index The index to set the value at. * @param value The figi to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setFigi( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFigiIsMutable(); figi_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param value The figi to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addFigi( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFigiIsMutable(); figi_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param values The figi to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllFigi( java.lang.Iterable values) { ensureFigiIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, figi_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearFigi() { figi_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
     *Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
     * 
* * repeated string figi = 1 [deprecated = true]; * @deprecated tinkoff.public.invest.api.contract.v1.GetLastPricesRequest.figi is deprecated. * See marketdata.proto;l=358 * @param value The bytes of the figi to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addFigiBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFigiIsMutable(); figi_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList instrumentId_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureInstrumentIdIsMutable() { if (!instrumentId_.isModifiable()) { instrumentId_ = new com.google.protobuf.LazyStringArrayList(instrumentId_); } bitField0_ |= 0x00000002; } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @return A list containing the instrumentId. */ public com.google.protobuf.ProtocolStringList getInstrumentIdList() { instrumentId_.makeImmutable(); return instrumentId_; } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @return The count of instrumentId. */ public int getInstrumentIdCount() { return instrumentId_.size(); } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @param index The index of the element to return. * @return The instrumentId at the given index. */ public java.lang.String getInstrumentId(int index) { return instrumentId_.get(index); } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @param index The index of the value to return. * @return The bytes of the instrumentId at the given index. */ public com.google.protobuf.ByteString getInstrumentIdBytes(int index) { return instrumentId_.getByteString(index); } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @param index The index to set the value at. * @param value The instrumentId to set. * @return This builder for chaining. */ public Builder setInstrumentId( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInstrumentIdIsMutable(); instrumentId_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @param value The instrumentId to add. * @return This builder for chaining. */ public Builder addInstrumentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInstrumentIdIsMutable(); instrumentId_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @param values The instrumentId to add. * @return This builder for chaining. */ public Builder addAllInstrumentId( java.lang.Iterable values) { ensureInstrumentIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, instrumentId_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @return This builder for chaining. */ public Builder clearInstrumentId() { instrumentId_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     *Массив идентификаторов инструмента, принимает значения figi или instrument_uid.
     * 
* * repeated string instrument_id = 2; * @param value The bytes of the instrumentId to add. * @return This builder for chaining. */ public Builder addInstrumentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInstrumentIdIsMutable(); instrumentId_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } @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.GetLastPricesRequest) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetLastPricesRequest) private static final ru.tinkoff.piapi.contract.v1.GetLastPricesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetLastPricesRequest(); } public static ru.tinkoff.piapi.contract.v1.GetLastPricesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetLastPricesRequest 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.GetLastPricesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy