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

ru.tinkoff.piapi.contract.v1.TradingSchedule 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.TradingSchedule} */ public final class TradingSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.TradingSchedule) TradingScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use TradingSchedule.newBuilder() to construct. private TradingSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TradingSchedule() { exchange_ = ""; days_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TradingSchedule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_TradingSchedule_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_TradingSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.TradingSchedule.class, ru.tinkoff.piapi.contract.v1.TradingSchedule.Builder.class); } public static final int EXCHANGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object exchange_ = ""; /** *
   * Наименование торговой площадки.
   * 
* * string exchange = 1; * @return The exchange. */ @java.lang.Override public java.lang.String getExchange() { java.lang.Object ref = exchange_; 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(); exchange_ = s; return s; } } /** *
   * Наименование торговой площадки.
   * 
* * string exchange = 1; * @return The bytes for exchange. */ @java.lang.Override public com.google.protobuf.ByteString getExchangeBytes() { java.lang.Object ref = exchange_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); exchange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DAYS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List days_; /** *
   * Массив с торговыми и неторговыми днями.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ @java.lang.Override public java.util.List getDaysList() { return days_; } /** *
   * Массив с торговыми и неторговыми днями.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ @java.lang.Override public java.util.List getDaysOrBuilderList() { return days_; } /** *
   * Массив с торговыми и неторговыми днями.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ @java.lang.Override public int getDaysCount() { return days_.size(); } /** *
   * Массив с торговыми и неторговыми днями.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.TradingDay getDays(int index) { return days_.get(index); } /** *
   * Массив с торговыми и неторговыми днями.
   * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.TradingDayOrBuilder getDaysOrBuilder( int index) { return days_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exchange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, exchange_); } for (int i = 0; i < days_.size(); i++) { output.writeMessage(2, days_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exchange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, exchange_); } for (int i = 0; i < days_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, days_.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.TradingSchedule)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.TradingSchedule other = (ru.tinkoff.piapi.contract.v1.TradingSchedule) obj; if (!getExchange() .equals(other.getExchange())) return false; if (!getDaysList() .equals(other.getDaysList())) 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(); hash = (37 * hash) + EXCHANGE_FIELD_NUMBER; hash = (53 * hash) + getExchange().hashCode(); if (getDaysCount() > 0) { hash = (37 * hash) + DAYS_FIELD_NUMBER; hash = (53 * hash) + getDaysList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.TradingSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.TradingSchedule 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.TradingSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.TradingSchedule 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.TradingSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.TradingSchedule 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.TradingSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.TradingSchedule 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.TradingSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.TradingSchedule 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.TradingSchedule 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.TradingSchedule 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.TradingSchedule 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.TradingSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.TradingSchedule) ru.tinkoff.piapi.contract.v1.TradingScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_TradingSchedule_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_TradingSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.TradingSchedule.class, ru.tinkoff.piapi.contract.v1.TradingSchedule.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.TradingSchedule.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; exchange_ = ""; if (daysBuilder_ == null) { days_ = java.util.Collections.emptyList(); } else { days_ = null; daysBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); 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_TradingSchedule_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.TradingSchedule getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.TradingSchedule.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.TradingSchedule build() { ru.tinkoff.piapi.contract.v1.TradingSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.TradingSchedule buildPartial() { ru.tinkoff.piapi.contract.v1.TradingSchedule result = new ru.tinkoff.piapi.contract.v1.TradingSchedule(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.TradingSchedule result) { if (daysBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { days_ = java.util.Collections.unmodifiableList(days_); bitField0_ = (bitField0_ & ~0x00000002); } result.days_ = days_; } else { result.days_ = daysBuilder_.build(); } } private void buildPartial0(ru.tinkoff.piapi.contract.v1.TradingSchedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.exchange_ = exchange_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.TradingSchedule) { return mergeFrom((ru.tinkoff.piapi.contract.v1.TradingSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.TradingSchedule other) { if (other == ru.tinkoff.piapi.contract.v1.TradingSchedule.getDefaultInstance()) return this; if (!other.getExchange().isEmpty()) { exchange_ = other.exchange_; bitField0_ |= 0x00000001; onChanged(); } if (daysBuilder_ == null) { if (!other.days_.isEmpty()) { if (days_.isEmpty()) { days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDaysIsMutable(); days_.addAll(other.days_); } onChanged(); } } else { if (!other.days_.isEmpty()) { if (daysBuilder_.isEmpty()) { daysBuilder_.dispose(); daysBuilder_ = null; days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000002); daysBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDaysFieldBuilder() : null; } else { daysBuilder_.addAllMessages(other.days_); } } } 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: { exchange_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ru.tinkoff.piapi.contract.v1.TradingDay m = input.readMessage( ru.tinkoff.piapi.contract.v1.TradingDay.parser(), extensionRegistry); if (daysBuilder_ == null) { ensureDaysIsMutable(); days_.add(m); } else { daysBuilder_.addMessage(m); } 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 java.lang.Object exchange_ = ""; /** *
     * Наименование торговой площадки.
     * 
* * string exchange = 1; * @return The exchange. */ public java.lang.String getExchange() { java.lang.Object ref = exchange_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exchange_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Наименование торговой площадки.
     * 
* * string exchange = 1; * @return The bytes for exchange. */ public com.google.protobuf.ByteString getExchangeBytes() { java.lang.Object ref = exchange_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); exchange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Наименование торговой площадки.
     * 
* * string exchange = 1; * @param value The exchange to set. * @return This builder for chaining. */ public Builder setExchange( java.lang.String value) { if (value == null) { throw new NullPointerException(); } exchange_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Наименование торговой площадки.
     * 
* * string exchange = 1; * @return This builder for chaining. */ public Builder clearExchange() { exchange_ = getDefaultInstance().getExchange(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Наименование торговой площадки.
     * 
* * string exchange = 1; * @param value The bytes for exchange to set. * @return This builder for chaining. */ public Builder setExchangeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); exchange_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List days_ = java.util.Collections.emptyList(); private void ensureDaysIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { days_ = new java.util.ArrayList(days_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.TradingDay, ru.tinkoff.piapi.contract.v1.TradingDay.Builder, ru.tinkoff.piapi.contract.v1.TradingDayOrBuilder> daysBuilder_; /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public java.util.List getDaysList() { if (daysBuilder_ == null) { return java.util.Collections.unmodifiableList(days_); } else { return daysBuilder_.getMessageList(); } } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public int getDaysCount() { if (daysBuilder_ == null) { return days_.size(); } else { return daysBuilder_.getCount(); } } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public ru.tinkoff.piapi.contract.v1.TradingDay getDays(int index) { if (daysBuilder_ == null) { return days_.get(index); } else { return daysBuilder_.getMessage(index); } } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder setDays( int index, ru.tinkoff.piapi.contract.v1.TradingDay value) { if (daysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDaysIsMutable(); days_.set(index, value); onChanged(); } else { daysBuilder_.setMessage(index, value); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder setDays( int index, ru.tinkoff.piapi.contract.v1.TradingDay.Builder builderForValue) { if (daysBuilder_ == null) { ensureDaysIsMutable(); days_.set(index, builderForValue.build()); onChanged(); } else { daysBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder addDays(ru.tinkoff.piapi.contract.v1.TradingDay value) { if (daysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDaysIsMutable(); days_.add(value); onChanged(); } else { daysBuilder_.addMessage(value); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder addDays( int index, ru.tinkoff.piapi.contract.v1.TradingDay value) { if (daysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDaysIsMutable(); days_.add(index, value); onChanged(); } else { daysBuilder_.addMessage(index, value); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder addDays( ru.tinkoff.piapi.contract.v1.TradingDay.Builder builderForValue) { if (daysBuilder_ == null) { ensureDaysIsMutable(); days_.add(builderForValue.build()); onChanged(); } else { daysBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder addDays( int index, ru.tinkoff.piapi.contract.v1.TradingDay.Builder builderForValue) { if (daysBuilder_ == null) { ensureDaysIsMutable(); days_.add(index, builderForValue.build()); onChanged(); } else { daysBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder addAllDays( java.lang.Iterable values) { if (daysBuilder_ == null) { ensureDaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, days_); onChanged(); } else { daysBuilder_.addAllMessages(values); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder clearDays() { if (daysBuilder_ == null) { days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { daysBuilder_.clear(); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public Builder removeDays(int index) { if (daysBuilder_ == null) { ensureDaysIsMutable(); days_.remove(index); onChanged(); } else { daysBuilder_.remove(index); } return this; } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public ru.tinkoff.piapi.contract.v1.TradingDay.Builder getDaysBuilder( int index) { return getDaysFieldBuilder().getBuilder(index); } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public ru.tinkoff.piapi.contract.v1.TradingDayOrBuilder getDaysOrBuilder( int index) { if (daysBuilder_ == null) { return days_.get(index); } else { return daysBuilder_.getMessageOrBuilder(index); } } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public java.util.List getDaysOrBuilderList() { if (daysBuilder_ != null) { return daysBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(days_); } } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public ru.tinkoff.piapi.contract.v1.TradingDay.Builder addDaysBuilder() { return getDaysFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.TradingDay.getDefaultInstance()); } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public ru.tinkoff.piapi.contract.v1.TradingDay.Builder addDaysBuilder( int index) { return getDaysFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.TradingDay.getDefaultInstance()); } /** *
     * Массив с торговыми и неторговыми днями.
     * 
* * repeated .tinkoff.public.invest.api.contract.v1.TradingDay days = 2; */ public java.util.List getDaysBuilderList() { return getDaysFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.TradingDay, ru.tinkoff.piapi.contract.v1.TradingDay.Builder, ru.tinkoff.piapi.contract.v1.TradingDayOrBuilder> getDaysFieldBuilder() { if (daysBuilder_ == null) { daysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.TradingDay, ru.tinkoff.piapi.contract.v1.TradingDay.Builder, ru.tinkoff.piapi.contract.v1.TradingDayOrBuilder>( days_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); days_ = null; } return daysBuilder_; } @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.TradingSchedule) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.TradingSchedule) private static final ru.tinkoff.piapi.contract.v1.TradingSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.TradingSchedule(); } public static ru.tinkoff.piapi.contract.v1.TradingSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TradingSchedule 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.TradingSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy