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.GetOperationsByCursorResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: operations.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Список операций по счёту с пагинацией.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.GetOperationsByCursorResponse}
*/
public final class GetOperationsByCursorResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetOperationsByCursorResponse)
GetOperationsByCursorResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetOperationsByCursorResponse.newBuilder() to construct.
private GetOperationsByCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetOperationsByCursorResponse() {
nextCursor_ = "";
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetOperationsByCursorResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.class, ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.Builder.class);
}
public static final int HAS_NEXT_FIELD_NUMBER = 1;
private boolean hasNext_ = false;
/**
*
*Признак, есть ли следующий элемент.
*
*
* bool has_next = 1;
* @return The hasNext.
*/
@java.lang.Override
public boolean getHasNext() {
return hasNext_;
}
public static final int NEXT_CURSOR_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object nextCursor_ = "";
/**
*
*Следующий курсор.
*
*
* string next_cursor = 2;
* @return The nextCursor.
*/
@java.lang.Override
public java.lang.String getNextCursor() {
java.lang.Object ref = nextCursor_;
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();
nextCursor_ = s;
return s;
}
}
/**
*
*Следующий курсор.
*
*
* string next_cursor = 2;
* @return The bytes for nextCursor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextCursorBytes() {
java.lang.Object ref = nextCursor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextCursor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ITEMS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List items_;
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OperationItem getItems(int index) {
return items_.get(index);
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder getItemsOrBuilder(
int index) {
return items_.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 (hasNext_ != false) {
output.writeBool(1, hasNext_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextCursor_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextCursor_);
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(6, items_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hasNext_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, hasNext_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextCursor_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextCursor_);
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, items_.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.GetOperationsByCursorResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse other = (ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse) obj;
if (getHasNext()
!= other.getHasNext()) return false;
if (!getNextCursor()
.equals(other.getNextCursor())) return false;
if (!getItemsList()
.equals(other.getItemsList())) 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) + HAS_NEXT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasNext());
hash = (37 * hash) + NEXT_CURSOR_FIELD_NUMBER;
hash = (53 * hash) + getNextCursor().hashCode();
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse 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.GetOperationsByCursorResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetOperationsByCursorResponse)
ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.class, ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hasNext_ = false;
nextCursor_ = "";
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
} else {
items_ = null;
itemsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetOperationsByCursorResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse build() {
ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse result = new ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse result) {
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hasNext_ = hasNext_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nextCursor_ = nextCursor_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse.getDefaultInstance()) return this;
if (other.getHasNext() != false) {
setHasNext(other.getHasNext());
}
if (!other.getNextCursor().isEmpty()) {
nextCursor_ = other.nextCursor_;
bitField0_ |= 0x00000002;
onChanged();
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000004);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
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 8: {
hasNext_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
nextCursor_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 50: {
ru.tinkoff.piapi.contract.v1.OperationItem m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.OperationItem.parser(),
extensionRegistry);
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(m);
} else {
itemsBuilder_.addMessage(m);
}
break;
} // case 50
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 boolean hasNext_ ;
/**
*
*Признак, есть ли следующий элемент.
*
*
* bool has_next = 1;
* @return The hasNext.
*/
@java.lang.Override
public boolean getHasNext() {
return hasNext_;
}
/**
*
*Признак, есть ли следующий элемент.
*
*
* bool has_next = 1;
* @param value The hasNext to set.
* @return This builder for chaining.
*/
public Builder setHasNext(boolean value) {
hasNext_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Признак, есть ли следующий элемент.
*
*
* bool has_next = 1;
* @return This builder for chaining.
*/
public Builder clearHasNext() {
bitField0_ = (bitField0_ & ~0x00000001);
hasNext_ = false;
onChanged();
return this;
}
private java.lang.Object nextCursor_ = "";
/**
*
*Следующий курсор.
*
*
* string next_cursor = 2;
* @return The nextCursor.
*/
public java.lang.String getNextCursor() {
java.lang.Object ref = nextCursor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextCursor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Следующий курсор.
*
*
* string next_cursor = 2;
* @return The bytes for nextCursor.
*/
public com.google.protobuf.ByteString
getNextCursorBytes() {
java.lang.Object ref = nextCursor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextCursor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Следующий курсор.
*
*
* string next_cursor = 2;
* @param value The nextCursor to set.
* @return This builder for chaining.
*/
public Builder setNextCursor(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nextCursor_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Следующий курсор.
*
*
* string next_cursor = 2;
* @return This builder for chaining.
*/
public Builder clearNextCursor() {
nextCursor_ = getDefaultInstance().getNextCursor();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*Следующий курсор.
*
*
* string next_cursor = 2;
* @param value The bytes for nextCursor to set.
* @return This builder for chaining.
*/
public Builder setNextCursorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nextCursor_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OperationItem, ru.tinkoff.piapi.contract.v1.OperationItem.Builder, ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder> itemsBuilder_;
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public ru.tinkoff.piapi.contract.v1.OperationItem getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder setItems(
int index, ru.tinkoff.piapi.contract.v1.OperationItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder setItems(
int index, ru.tinkoff.piapi.contract.v1.OperationItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder addItems(ru.tinkoff.piapi.contract.v1.OperationItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder addItems(
int index, ru.tinkoff.piapi.contract.v1.OperationItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder addItems(
ru.tinkoff.piapi.contract.v1.OperationItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder addItems(
int index, ru.tinkoff.piapi.contract.v1.OperationItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder addAllItems(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.OperationItem> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public ru.tinkoff.piapi.contract.v1.OperationItem.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public ru.tinkoff.piapi.contract.v1.OperationItem.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.OperationItem.getDefaultInstance());
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public ru.tinkoff.piapi.contract.v1.OperationItem.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.OperationItem.getDefaultInstance());
}
/**
*
*Список операций.
*
*
* repeated .tinkoff.public.invest.api.contract.v1.OperationItem items = 6;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OperationItem, ru.tinkoff.piapi.contract.v1.OperationItem.Builder, ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.OperationItem, ru.tinkoff.piapi.contract.v1.OperationItem.Builder, ru.tinkoff.piapi.contract.v1.OperationItemOrBuilder>(
items_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@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.GetOperationsByCursorResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetOperationsByCursorResponse)
private static final ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse();
}
public static ru.tinkoff.piapi.contract.v1.GetOperationsByCursorResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetOperationsByCursorResponse 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.GetOperationsByCursorResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}