Please wait. This can take some minutes ...
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.
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse}
*/
public final class SubscribeLastPriceResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.SubscribeLastPriceResponse)
SubscribeLastPriceResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscribeLastPriceResponse.newBuilder() to construct.
private SubscribeLastPriceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscribeLastPriceResponse() {
trackingId_ = "";
lastPriceSubscriptions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubscribeLastPriceResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_SubscribeLastPriceResponse_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_SubscribeLastPriceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse.class, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse.Builder.class);
}
public static final int TRACKING_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object trackingId_ = "";
/**
*
*Уникальный идентификатор запроса, подробнее: [tracking_id](https://russianinvestments.github.io/investAPI/grpc#tracking-id).
*
*
* string tracking_id = 1;
* @return The trackingId.
*/
@java.lang.Override
public java.lang.String getTrackingId() {
java.lang.Object ref = trackingId_;
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();
trackingId_ = s;
return s;
}
}
/**
*
*Уникальный идентификатор запроса, подробнее: [tracking_id](https://russianinvestments.github.io/investAPI/grpc#tracking-id).
*
*
* string tracking_id = 1;
* @return The bytes for trackingId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTrackingIdBytes() {
java.lang.Object ref = trackingId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_PRICE_SUBSCRIPTIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List lastPriceSubscriptions_;
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
@java.lang.Override
public java.util.List getLastPriceSubscriptionsList() {
return lastPriceSubscriptions_;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.LastPriceSubscriptionOrBuilder>
getLastPriceSubscriptionsOrBuilderList() {
return lastPriceSubscriptions_;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
@java.lang.Override
public int getLastPriceSubscriptionsCount() {
return lastPriceSubscriptions_.size();
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.LastPriceSubscription getLastPriceSubscriptions(int index) {
return lastPriceSubscriptions_.get(index);
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.LastPriceSubscriptionOrBuilder getLastPriceSubscriptionsOrBuilder(
int index) {
return lastPriceSubscriptions_.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(trackingId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trackingId_);
}
for (int i = 0; i < lastPriceSubscriptions_.size(); i++) {
output.writeMessage(2, lastPriceSubscriptions_.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(trackingId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trackingId_);
}
for (int i = 0; i < lastPriceSubscriptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, lastPriceSubscriptions_.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.SubscribeLastPriceResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse other = (ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse) obj;
if (!getTrackingId()
.equals(other.getTrackingId())) return false;
if (!getLastPriceSubscriptionsList()
.equals(other.getLastPriceSubscriptionsList())) 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) + TRACKING_ID_FIELD_NUMBER;
hash = (53 * hash) + getTrackingId().hashCode();
if (getLastPriceSubscriptionsCount() > 0) {
hash = (37 * hash) + LAST_PRICE_SUBSCRIPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLastPriceSubscriptionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse 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.SubscribeLastPriceResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.SubscribeLastPriceResponse)
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Marketdata.internal_static_tinkoff_public_invest_api_contract_v1_SubscribeLastPriceResponse_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_SubscribeLastPriceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse.class, ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
trackingId_ = "";
if (lastPriceSubscriptionsBuilder_ == null) {
lastPriceSubscriptions_ = java.util.Collections.emptyList();
} else {
lastPriceSubscriptions_ = null;
lastPriceSubscriptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
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_SubscribeLastPriceResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse build() {
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse result = new ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse result) {
if (lastPriceSubscriptionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
lastPriceSubscriptions_ = java.util.Collections.unmodifiableList(lastPriceSubscriptions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.lastPriceSubscriptions_ = lastPriceSubscriptions_;
} else {
result.lastPriceSubscriptions_ = lastPriceSubscriptionsBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.trackingId_ = trackingId_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse.getDefaultInstance()) return this;
if (!other.getTrackingId().isEmpty()) {
trackingId_ = other.trackingId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (lastPriceSubscriptionsBuilder_ == null) {
if (!other.lastPriceSubscriptions_.isEmpty()) {
if (lastPriceSubscriptions_.isEmpty()) {
lastPriceSubscriptions_ = other.lastPriceSubscriptions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.addAll(other.lastPriceSubscriptions_);
}
onChanged();
}
} else {
if (!other.lastPriceSubscriptions_.isEmpty()) {
if (lastPriceSubscriptionsBuilder_.isEmpty()) {
lastPriceSubscriptionsBuilder_.dispose();
lastPriceSubscriptionsBuilder_ = null;
lastPriceSubscriptions_ = other.lastPriceSubscriptions_;
bitField0_ = (bitField0_ & ~0x00000002);
lastPriceSubscriptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLastPriceSubscriptionsFieldBuilder() : null;
} else {
lastPriceSubscriptionsBuilder_.addAllMessages(other.lastPriceSubscriptions_);
}
}
}
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: {
trackingId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
ru.tinkoff.piapi.contract.v1.LastPriceSubscription m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.LastPriceSubscription.parser(),
extensionRegistry);
if (lastPriceSubscriptionsBuilder_ == null) {
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.add(m);
} else {
lastPriceSubscriptionsBuilder_.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 trackingId_ = "";
/**
*
*Уникальный идентификатор запроса, подробнее: [tracking_id](https://russianinvestments.github.io/investAPI/grpc#tracking-id).
*
*
* string tracking_id = 1;
* @return The trackingId.
*/
public java.lang.String getTrackingId() {
java.lang.Object ref = trackingId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
trackingId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Уникальный идентификатор запроса, подробнее: [tracking_id](https://russianinvestments.github.io/investAPI/grpc#tracking-id).
*
*
* string tracking_id = 1;
* @return The bytes for trackingId.
*/
public com.google.protobuf.ByteString
getTrackingIdBytes() {
java.lang.Object ref = trackingId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Уникальный идентификатор запроса, подробнее: [tracking_id](https://russianinvestments.github.io/investAPI/grpc#tracking-id).
*
*
* string tracking_id = 1;
* @param value The trackingId to set.
* @return This builder for chaining.
*/
public Builder setTrackingId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
trackingId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Уникальный идентификатор запроса, подробнее: [tracking_id](https://russianinvestments.github.io/investAPI/grpc#tracking-id).
*
*
* string tracking_id = 1;
* @return This builder for chaining.
*/
public Builder clearTrackingId() {
trackingId_ = getDefaultInstance().getTrackingId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Уникальный идентификатор запроса, подробнее: [tracking_id](https://russianinvestments.github.io/investAPI/grpc#tracking-id).
*
*
* string tracking_id = 1;
* @param value The bytes for trackingId to set.
* @return This builder for chaining.
*/
public Builder setTrackingIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
trackingId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List lastPriceSubscriptions_ =
java.util.Collections.emptyList();
private void ensureLastPriceSubscriptionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
lastPriceSubscriptions_ = new java.util.ArrayList(lastPriceSubscriptions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.LastPriceSubscription, ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder, ru.tinkoff.piapi.contract.v1.LastPriceSubscriptionOrBuilder> lastPriceSubscriptionsBuilder_;
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public java.util.List getLastPriceSubscriptionsList() {
if (lastPriceSubscriptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(lastPriceSubscriptions_);
} else {
return lastPriceSubscriptionsBuilder_.getMessageList();
}
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public int getLastPriceSubscriptionsCount() {
if (lastPriceSubscriptionsBuilder_ == null) {
return lastPriceSubscriptions_.size();
} else {
return lastPriceSubscriptionsBuilder_.getCount();
}
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public ru.tinkoff.piapi.contract.v1.LastPriceSubscription getLastPriceSubscriptions(int index) {
if (lastPriceSubscriptionsBuilder_ == null) {
return lastPriceSubscriptions_.get(index);
} else {
return lastPriceSubscriptionsBuilder_.getMessage(index);
}
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder setLastPriceSubscriptions(
int index, ru.tinkoff.piapi.contract.v1.LastPriceSubscription value) {
if (lastPriceSubscriptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.set(index, value);
onChanged();
} else {
lastPriceSubscriptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder setLastPriceSubscriptions(
int index, ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder builderForValue) {
if (lastPriceSubscriptionsBuilder_ == null) {
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.set(index, builderForValue.build());
onChanged();
} else {
lastPriceSubscriptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder addLastPriceSubscriptions(ru.tinkoff.piapi.contract.v1.LastPriceSubscription value) {
if (lastPriceSubscriptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.add(value);
onChanged();
} else {
lastPriceSubscriptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder addLastPriceSubscriptions(
int index, ru.tinkoff.piapi.contract.v1.LastPriceSubscription value) {
if (lastPriceSubscriptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.add(index, value);
onChanged();
} else {
lastPriceSubscriptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder addLastPriceSubscriptions(
ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder builderForValue) {
if (lastPriceSubscriptionsBuilder_ == null) {
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.add(builderForValue.build());
onChanged();
} else {
lastPriceSubscriptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder addLastPriceSubscriptions(
int index, ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder builderForValue) {
if (lastPriceSubscriptionsBuilder_ == null) {
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.add(index, builderForValue.build());
onChanged();
} else {
lastPriceSubscriptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder addAllLastPriceSubscriptions(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.LastPriceSubscription> values) {
if (lastPriceSubscriptionsBuilder_ == null) {
ensureLastPriceSubscriptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, lastPriceSubscriptions_);
onChanged();
} else {
lastPriceSubscriptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder clearLastPriceSubscriptions() {
if (lastPriceSubscriptionsBuilder_ == null) {
lastPriceSubscriptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
lastPriceSubscriptionsBuilder_.clear();
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public Builder removeLastPriceSubscriptions(int index) {
if (lastPriceSubscriptionsBuilder_ == null) {
ensureLastPriceSubscriptionsIsMutable();
lastPriceSubscriptions_.remove(index);
onChanged();
} else {
lastPriceSubscriptionsBuilder_.remove(index);
}
return this;
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder getLastPriceSubscriptionsBuilder(
int index) {
return getLastPriceSubscriptionsFieldBuilder().getBuilder(index);
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public ru.tinkoff.piapi.contract.v1.LastPriceSubscriptionOrBuilder getLastPriceSubscriptionsOrBuilder(
int index) {
if (lastPriceSubscriptionsBuilder_ == null) {
return lastPriceSubscriptions_.get(index); } else {
return lastPriceSubscriptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.LastPriceSubscriptionOrBuilder>
getLastPriceSubscriptionsOrBuilderList() {
if (lastPriceSubscriptionsBuilder_ != null) {
return lastPriceSubscriptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(lastPriceSubscriptions_);
}
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder addLastPriceSubscriptionsBuilder() {
return getLastPriceSubscriptionsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.LastPriceSubscription.getDefaultInstance());
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder addLastPriceSubscriptionsBuilder(
int index) {
return getLastPriceSubscriptionsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.LastPriceSubscription.getDefaultInstance());
}
/**
*
*Массив статусов подписки на цену последней сделки.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.LastPriceSubscription last_price_subscriptions = 2;
*/
public java.util.List
getLastPriceSubscriptionsBuilderList() {
return getLastPriceSubscriptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.LastPriceSubscription, ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder, ru.tinkoff.piapi.contract.v1.LastPriceSubscriptionOrBuilder>
getLastPriceSubscriptionsFieldBuilder() {
if (lastPriceSubscriptionsBuilder_ == null) {
lastPriceSubscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.LastPriceSubscription, ru.tinkoff.piapi.contract.v1.LastPriceSubscription.Builder, ru.tinkoff.piapi.contract.v1.LastPriceSubscriptionOrBuilder>(
lastPriceSubscriptions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
lastPriceSubscriptions_ = null;
}
return lastPriceSubscriptionsBuilder_;
}
@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.SubscribeLastPriceResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.SubscribeLastPriceResponse)
private static final ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse();
}
public static ru.tinkoff.piapi.contract.v1.SubscribeLastPriceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscribeLastPriceResponse 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.SubscribeLastPriceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}