ru.tinkoff.piapi.contract.v1.GetLastTradesRequest Maven / Gradle / Ivy
// 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.GetLastTradesRequest}
*/
public final class GetLastTradesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetLastTradesRequest)
GetLastTradesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLastTradesRequest.newBuilder() to construct.
private GetLastTradesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLastTradesRequest() {
figi_ = "";
instrumentId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetLastTradesRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_GetLastTradesRequest_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_GetLastTradesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetLastTradesRequest.class, ru.tinkoff.piapi.contract.v1.GetLastTradesRequest.Builder.class);
}
public static final int FIGI_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object figi_ = "";
/**
*
*Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.GetLastTradesRequest.figi is deprecated.
* See marketdata.proto;l=426
* @return The figi.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getFigi() {
java.lang.Object ref = figi_;
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();
figi_ = s;
return s;
}
}
/**
*
*Deprecated Figi-идентификатор инструмента. Необходимо использовать instrument_id.
*
*
* string figi = 1 [deprecated = true];
* @deprecated tinkoff.public.invest.api.contract.v1.GetLastTradesRequest.figi is deprecated.
* See marketdata.proto;l=426
* @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 FROM_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp from_;
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
* @return Whether the from field is set.
*/
@java.lang.Override
public boolean hasFrom() {
return from_ != null;
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
* @return The from.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getFrom() {
return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_;
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() {
return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_;
}
public static final int TO_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp to_;
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
* @return Whether the to field is set.
*/
@java.lang.Override
public boolean hasTo() {
return to_ != null;
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
* @return The to.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTo() {
return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_;
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getToOrBuilder() {
return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_;
}
public static final int INSTRUMENT_ID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object instrumentId_ = "";
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid.
*
*
* string instrument_id = 4;
* @return The instrumentId.
*/
@java.lang.Override
public java.lang.String getInstrumentId() {
java.lang.Object ref = instrumentId_;
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();
instrumentId_ = s;
return s;
}
}
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid.
*
*
* string instrument_id = 4;
* @return The bytes for instrumentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstrumentIdBytes() {
java.lang.Object ref = instrumentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instrumentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(figi_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, figi_);
}
if (from_ != null) {
output.writeMessage(2, getFrom());
}
if (to_ != null) {
output.writeMessage(3, getTo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instrumentId_);
}
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(figi_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, figi_);
}
if (from_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFrom());
}
if (to_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instrumentId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instrumentId_);
}
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.GetLastTradesRequest)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetLastTradesRequest other = (ru.tinkoff.piapi.contract.v1.GetLastTradesRequest) obj;
if (!getFigi()
.equals(other.getFigi())) return false;
if (hasFrom() != other.hasFrom()) return false;
if (hasFrom()) {
if (!getFrom()
.equals(other.getFrom())) return false;
}
if (hasTo() != other.hasTo()) return false;
if (hasTo()) {
if (!getTo()
.equals(other.getTo())) return false;
}
if (!getInstrumentId()
.equals(other.getInstrumentId())) 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) + FIGI_FIELD_NUMBER;
hash = (53 * hash) + getFigi().hashCode();
if (hasFrom()) {
hash = (37 * hash) + FROM_FIELD_NUMBER;
hash = (53 * hash) + getFrom().hashCode();
}
if (hasTo()) {
hash = (37 * hash) + TO_FIELD_NUMBER;
hash = (53 * hash) + getTo().hashCode();
}
hash = (37 * hash) + INSTRUMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetLastTradesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetLastTradesRequest 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.GetLastTradesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetLastTradesRequest 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.GetLastTradesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetLastTradesRequest 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.GetLastTradesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetLastTradesRequest 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.GetLastTradesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetLastTradesRequest 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.GetLastTradesRequest 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.GetLastTradesRequest 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.GetLastTradesRequest 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.GetLastTradesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetLastTradesRequest)
ru.tinkoff.piapi.contract.v1.GetLastTradesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_GetLastTradesRequest_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_GetLastTradesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetLastTradesRequest.class, ru.tinkoff.piapi.contract.v1.GetLastTradesRequest.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetLastTradesRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
figi_ = "";
from_ = null;
if (fromBuilder_ != null) {
fromBuilder_.dispose();
fromBuilder_ = null;
}
to_ = null;
if (toBuilder_ != null) {
toBuilder_.dispose();
toBuilder_ = null;
}
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_GetLastTradesRequest_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetLastTradesRequest getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetLastTradesRequest.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetLastTradesRequest build() {
ru.tinkoff.piapi.contract.v1.GetLastTradesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetLastTradesRequest buildPartial() {
ru.tinkoff.piapi.contract.v1.GetLastTradesRequest result = new ru.tinkoff.piapi.contract.v1.GetLastTradesRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetLastTradesRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.figi_ = figi_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.from_ = fromBuilder_ == null
? from_
: fromBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.to_ = toBuilder_ == null
? to_
: toBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.instrumentId_ = instrumentId_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetLastTradesRequest) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetLastTradesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetLastTradesRequest other) {
if (other == ru.tinkoff.piapi.contract.v1.GetLastTradesRequest.getDefaultInstance()) return this;
if (!other.getFigi().isEmpty()) {
figi_ = other.figi_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasFrom()) {
mergeFrom(other.getFrom());
}
if (other.hasTo()) {
mergeTo(other.getTo());
}
if (!other.getInstrumentId().isEmpty()) {
instrumentId_ = other.instrumentId_;
bitField0_ |= 0x00000008;
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 18: {
input.readMessage(
getFromFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getToFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
instrumentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
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.GetLastTradesRequest.figi is deprecated.
* See marketdata.proto;l=426
* @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.GetLastTradesRequest.figi is deprecated.
* See marketdata.proto;l=426
* @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.GetLastTradesRequest.figi is deprecated.
* See marketdata.proto;l=426
* @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.GetLastTradesRequest.figi is deprecated.
* See marketdata.proto;l=426
* @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.GetLastTradesRequest.figi is deprecated.
* See marketdata.proto;l=426
* @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 com.google.protobuf.Timestamp from_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> fromBuilder_;
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
* @return Whether the from field is set.
*/
public boolean hasFrom() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
* @return The from.
*/
public com.google.protobuf.Timestamp getFrom() {
if (fromBuilder_ == null) {
return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_;
} else {
return fromBuilder_.getMessage();
}
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
public Builder setFrom(com.google.protobuf.Timestamp value) {
if (fromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
from_ = value;
} else {
fromBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
public Builder setFrom(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (fromBuilder_ == null) {
from_ = builderForValue.build();
} else {
fromBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
public Builder mergeFrom(com.google.protobuf.Timestamp value) {
if (fromBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
from_ != null &&
from_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getFromBuilder().mergeFrom(value);
} else {
from_ = value;
}
} else {
fromBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
public Builder clearFrom() {
bitField0_ = (bitField0_ & ~0x00000002);
from_ = null;
if (fromBuilder_ != null) {
fromBuilder_.dispose();
fromBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
public com.google.protobuf.Timestamp.Builder getFromBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFromFieldBuilder().getBuilder();
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() {
if (fromBuilder_ != null) {
return fromBuilder_.getMessageOrBuilder();
} else {
return from_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : from_;
}
}
/**
*
*Начало запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp from = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getFromFieldBuilder() {
if (fromBuilder_ == null) {
fromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getFrom(),
getParentForChildren(),
isClean());
from_ = null;
}
return fromBuilder_;
}
private com.google.protobuf.Timestamp to_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> toBuilder_;
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
* @return Whether the to field is set.
*/
public boolean hasTo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
* @return The to.
*/
public com.google.protobuf.Timestamp getTo() {
if (toBuilder_ == null) {
return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_;
} else {
return toBuilder_.getMessage();
}
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
public Builder setTo(com.google.protobuf.Timestamp value) {
if (toBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
to_ = value;
} else {
toBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
public Builder setTo(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (toBuilder_ == null) {
to_ = builderForValue.build();
} else {
toBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
public Builder mergeTo(com.google.protobuf.Timestamp value) {
if (toBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
to_ != null &&
to_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getToBuilder().mergeFrom(value);
} else {
to_ = value;
}
} else {
toBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
public Builder clearTo() {
bitField0_ = (bitField0_ & ~0x00000004);
to_ = null;
if (toBuilder_ != null) {
toBuilder_.dispose();
toBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
public com.google.protobuf.Timestamp.Builder getToBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getToFieldBuilder().getBuilder();
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
public com.google.protobuf.TimestampOrBuilder getToOrBuilder() {
if (toBuilder_ != null) {
return toBuilder_.getMessageOrBuilder();
} else {
return to_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : to_;
}
}
/**
*
*Окончание запрашиваемого периода в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp to = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getToFieldBuilder() {
if (toBuilder_ == null) {
toBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTo(),
getParentForChildren(),
isClean());
to_ = null;
}
return toBuilder_;
}
private java.lang.Object instrumentId_ = "";
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid.
*
*
* string instrument_id = 4;
* @return The instrumentId.
*/
public java.lang.String getInstrumentId() {
java.lang.Object ref = instrumentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instrumentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid.
*
*
* string instrument_id = 4;
* @return The bytes for instrumentId.
*/
public com.google.protobuf.ByteString
getInstrumentIdBytes() {
java.lang.Object ref = instrumentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instrumentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid.
*
*
* string instrument_id = 4;
* @param value The instrumentId to set.
* @return This builder for chaining.
*/
public Builder setInstrumentId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instrumentId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid.
*
*
* string instrument_id = 4;
* @return This builder for chaining.
*/
public Builder clearInstrumentId() {
instrumentId_ = getDefaultInstance().getInstrumentId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*Идентификатор инструмента, принимает значение figi или instrument_uid.
*
*
* string instrument_id = 4;
* @param value The bytes for instrumentId to set.
* @return This builder for chaining.
*/
public Builder setInstrumentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instrumentId_ = value;
bitField0_ |= 0x00000008;
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.GetLastTradesRequest)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetLastTradesRequest)
private static final ru.tinkoff.piapi.contract.v1.GetLastTradesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetLastTradesRequest();
}
public static ru.tinkoff.piapi.contract.v1.GetLastTradesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLastTradesRequest 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.GetLastTradesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}