Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.CandleInstrument.figi is deprecated.
* See marketdata.proto;l=117
* @return The bytes for figi.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getFigiBytes() {
java.lang.Object ref = figi_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
figi_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INTERVAL_FIELD_NUMBER = 2;
private int interval_ = 0;
/**
*
*Интервал свечей.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscriptionInterval interval = 2;
* @return The enum numeric value on the wire for interval.
*/
@java.lang.Override public int getIntervalValue() {
return interval_;
}
/**
*
*Интервал свечей.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscriptionInterval interval = 2;
* @return The interval.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.SubscriptionInterval getInterval() {
ru.tinkoff.piapi.contract.v1.SubscriptionInterval result = ru.tinkoff.piapi.contract.v1.SubscriptionInterval.forNumber(interval_);
return result == null ? ru.tinkoff.piapi.contract.v1.SubscriptionInterval.UNRECOGNIZED : result;
}
public static final int INSTRUMENT_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object instrumentId_ = "";
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.CandleInstrument}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.CandleInstrument)
ru.tinkoff.piapi.contract.v1.CandleInstrumentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_CandleInstrument_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_CandleInstrument_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.CandleInstrument.class, ru.tinkoff.piapi.contract.v1.CandleInstrument.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.CandleInstrument.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
figi_ = "";
interval_ = 0;
instrumentId_ = "";
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_CandleInstrument_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CandleInstrument getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.CandleInstrument.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CandleInstrument build() {
ru.tinkoff.piapi.contract.v1.CandleInstrument result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.CandleInstrument buildPartial() {
ru.tinkoff.piapi.contract.v1.CandleInstrument result = new ru.tinkoff.piapi.contract.v1.CandleInstrument(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.CandleInstrument result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.figi_ = figi_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.interval_ = interval_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.instrumentId_ = instrumentId_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.CandleInstrument) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.CandleInstrument)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.CandleInstrument other) {
if (other == ru.tinkoff.piapi.contract.v1.CandleInstrument.getDefaultInstance()) return this;
if (!other.getFigi().isEmpty()) {
figi_ = other.figi_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.interval_ != 0) {
setIntervalValue(other.getIntervalValue());
}
if (!other.getInstrumentId().isEmpty()) {
instrumentId_ = other.instrumentId_;
bitField0_ |= 0x00000004;
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: {
figi_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
interval_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
instrumentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
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 figi_ = "";
/**
*
* Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.CandleInstrument.figi is deprecated.
* See marketdata.proto;l=117
* @return The figi.
*/
@java.lang.Deprecated public java.lang.String getFigi() {
java.lang.Object ref = figi_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
figi_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.CandleInstrument.figi is deprecated.
* See marketdata.proto;l=117
* @return The bytes for figi.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getFigiBytes() {
java.lang.Object ref = figi_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
figi_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.CandleInstrument.figi is deprecated.
* See marketdata.proto;l=117
* @param value The figi to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setFigi(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
figi_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.CandleInstrument.figi is deprecated.
* See marketdata.proto;l=117
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearFigi() {
figi_ = getDefaultInstance().getFigi();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.CandleInstrument.figi is deprecated.
* See marketdata.proto;l=117
* @param value The bytes for figi to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setFigiBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
figi_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int interval_ = 0;
/**
*
*Интервал свечей.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscriptionInterval interval = 2;
* @return The enum numeric value on the wire for interval.
*/
@java.lang.Override public int getIntervalValue() {
return interval_;
}
/**
*
*Интервал свечей.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscriptionInterval interval = 2;
* @param value The enum numeric value on the wire for interval to set.
* @return This builder for chaining.
*/
public Builder setIntervalValue(int value) {
interval_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Интервал свечей.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscriptionInterval interval = 2;
* @return The interval.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.SubscriptionInterval getInterval() {
ru.tinkoff.piapi.contract.v1.SubscriptionInterval result = ru.tinkoff.piapi.contract.v1.SubscriptionInterval.forNumber(interval_);
return result == null ? ru.tinkoff.piapi.contract.v1.SubscriptionInterval.UNRECOGNIZED : result;
}
/**
*
*Интервал свечей.
*
*
* .tinkoff.public.invest.api.contract.v1.SubscriptionInterval interval = 2;
* @param value The interval to set.
* @return This builder for chaining.
*/
public Builder setInterval(ru.tinkoff.piapi.contract.v1.SubscriptionInterval value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
interval_ = value.getNumber();
onChanged();
return this;
}
/**
*