ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest Maven / Gradle / Ivy
// 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.TradingSchedulesRequest}
*/
public final class TradingSchedulesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.TradingSchedulesRequest)
TradingSchedulesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TradingSchedulesRequest.newBuilder() to construct.
private TradingSchedulesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TradingSchedulesRequest() {
exchange_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TradingSchedulesRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_TradingSchedulesRequest_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_TradingSchedulesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.class, ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.Builder.class);
}
public static final int EXCHANGE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object exchange_ = "";
/**
*
*Наименование биржи или расчетного календаря. </br>Если не передаётся, возвращается информация по всем доступным торговым площадкам.
*
*
* 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;
}
}
/**
*
*Наименование биржи или расчетного календаря. </br>Если не передаётся, возвращается информация по всем доступным торговым площадкам.
*
*
* 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 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_;
}
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_);
}
if (from_ != null) {
output.writeMessage(2, getFrom());
}
if (to_ != null) {
output.writeMessage(3, getTo());
}
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_);
}
if (from_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFrom());
}
if (to_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTo());
}
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.TradingSchedulesRequest)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest other = (ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest) obj;
if (!getExchange()
.equals(other.getExchange())) 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 (!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 (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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest 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.TradingSchedulesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest 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.TradingSchedulesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest 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.TradingSchedulesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest 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.TradingSchedulesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest 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.TradingSchedulesRequest 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.TradingSchedulesRequest 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.TradingSchedulesRequest 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.TradingSchedulesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.TradingSchedulesRequest)
ru.tinkoff.piapi.contract.v1.TradingSchedulesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_TradingSchedulesRequest_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_TradingSchedulesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.class, ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
exchange_ = "";
from_ = null;
if (fromBuilder_ != null) {
fromBuilder_.dispose();
fromBuilder_ = null;
}
to_ = null;
if (toBuilder_ != null) {
toBuilder_.dispose();
toBuilder_ = null;
}
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_TradingSchedulesRequest_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest build() {
ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest buildPartial() {
ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest result = new ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.exchange_ = exchange_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.from_ = fromBuilder_ == null
? from_
: fromBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.to_ = toBuilder_ == null
? to_
: toBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest other) {
if (other == ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest.getDefaultInstance()) return this;
if (!other.getExchange().isEmpty()) {
exchange_ = other.exchange_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasFrom()) {
mergeFrom(other.getFrom());
}
if (other.hasTo()) {
mergeTo(other.getTo());
}
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: {
input.readMessage(
getFromFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getToFieldBuilder().getBuilder(),
extensionRegistry);
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 exchange_ = "";
/**
*
*Наименование биржи или расчетного календаря. </br>Если не передаётся, возвращается информация по всем доступным торговым площадкам.
*
*
* 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;
}
}
/**
*
*Наименование биржи или расчетного календаря. </br>Если не передаётся, возвращается информация по всем доступным торговым площадкам.
*
*
* 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;
}
}
/**
*
*Наименование биржи или расчетного календаря. </br>Если не передаётся, возвращается информация по всем доступным торговым площадкам.
*
*
* 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;
}
/**
*
*Наименование биржи или расчетного календаря. </br>Если не передаётся, возвращается информация по всем доступным торговым площадкам.
*
*
* string exchange = 1;
* @return This builder for chaining.
*/
public Builder clearExchange() {
exchange_ = getDefaultInstance().getExchange();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Наименование биржи или расчетного календаря. </br>Если не передаётся, возвращается информация по всем доступным торговым площадкам.
*
*
* 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 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_;
}
@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.TradingSchedulesRequest)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.TradingSchedulesRequest)
private static final ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest();
}
public static ru.tinkoff.piapi.contract.v1.TradingSchedulesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TradingSchedulesRequest 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.TradingSchedulesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}