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.
// 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.GetBrokerReportResponse}
*/
public final class GetBrokerReportResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetBrokerReportResponse)
GetBrokerReportResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBrokerReportResponse.newBuilder() to construct.
private GetBrokerReportResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBrokerReportResponse() {
brokerReport_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBrokerReportResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetBrokerReportResponse_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_GetBrokerReportResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse.class, ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse.Builder.class);
}
public static final int BROKER_REPORT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List brokerReport_;
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
@java.lang.Override
public java.util.List getBrokerReportList() {
return brokerReport_;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
@java.lang.Override
public java.util.List extends ru.tinkoff.piapi.contract.v1.BrokerReportOrBuilder>
getBrokerReportOrBuilderList() {
return brokerReport_;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
@java.lang.Override
public int getBrokerReportCount() {
return brokerReport_.size();
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.BrokerReport getBrokerReport(int index) {
return brokerReport_.get(index);
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.BrokerReportOrBuilder getBrokerReportOrBuilder(
int index) {
return brokerReport_.get(index);
}
public static final int ITEMSCOUNT_FIELD_NUMBER = 2;
private int itemsCount_ = 0;
/**
*
*Количество записей в отчете.
*
*
* int32 itemsCount = 2;
* @return The itemsCount.
*/
@java.lang.Override
public int getItemsCount() {
return itemsCount_;
}
public static final int PAGESCOUNT_FIELD_NUMBER = 3;
private int pagesCount_ = 0;
/**
*
*Количество страниц с данными отчета (начинается с 0).
*
*
* int32 pagesCount = 3;
* @return The pagesCount.
*/
@java.lang.Override
public int getPagesCount() {
return pagesCount_;
}
public static final int PAGE_FIELD_NUMBER = 4;
private int page_ = 0;
/**
*
*Текущая страница (начинается с 0).
*
*
* int32 page = 4;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
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 {
for (int i = 0; i < brokerReport_.size(); i++) {
output.writeMessage(1, brokerReport_.get(i));
}
if (itemsCount_ != 0) {
output.writeInt32(2, itemsCount_);
}
if (pagesCount_ != 0) {
output.writeInt32(3, pagesCount_);
}
if (page_ != 0) {
output.writeInt32(4, page_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < brokerReport_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, brokerReport_.get(i));
}
if (itemsCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, itemsCount_);
}
if (pagesCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, pagesCount_);
}
if (page_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, page_);
}
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.GetBrokerReportResponse)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse other = (ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse) obj;
if (!getBrokerReportList()
.equals(other.getBrokerReportList())) return false;
if (getItemsCount()
!= other.getItemsCount()) return false;
if (getPagesCount()
!= other.getPagesCount()) return false;
if (getPage()
!= other.getPage()) 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();
if (getBrokerReportCount() > 0) {
hash = (37 * hash) + BROKER_REPORT_FIELD_NUMBER;
hash = (53 * hash) + getBrokerReportList().hashCode();
}
hash = (37 * hash) + ITEMSCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getItemsCount();
hash = (37 * hash) + PAGESCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getPagesCount();
hash = (37 * hash) + PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPage();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse 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.GetBrokerReportResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse 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.GetBrokerReportResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse 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.GetBrokerReportResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse 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.GetBrokerReportResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse 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.GetBrokerReportResponse 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.GetBrokerReportResponse 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.GetBrokerReportResponse 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.GetBrokerReportResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetBrokerReportResponse)
ru.tinkoff.piapi.contract.v1.GetBrokerReportResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GetBrokerReportResponse_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_GetBrokerReportResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse.class, ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (brokerReportBuilder_ == null) {
brokerReport_ = java.util.Collections.emptyList();
} else {
brokerReport_ = null;
brokerReportBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
itemsCount_ = 0;
pagesCount_ = 0;
page_ = 0;
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_GetBrokerReportResponse_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse build() {
ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse buildPartial() {
ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse result = new ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse result) {
if (brokerReportBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
brokerReport_ = java.util.Collections.unmodifiableList(brokerReport_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.brokerReport_ = brokerReport_;
} else {
result.brokerReport_ = brokerReportBuilder_.build();
}
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.itemsCount_ = itemsCount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.pagesCount_ = pagesCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.page_ = page_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse other) {
if (other == ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse.getDefaultInstance()) return this;
if (brokerReportBuilder_ == null) {
if (!other.brokerReport_.isEmpty()) {
if (brokerReport_.isEmpty()) {
brokerReport_ = other.brokerReport_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBrokerReportIsMutable();
brokerReport_.addAll(other.brokerReport_);
}
onChanged();
}
} else {
if (!other.brokerReport_.isEmpty()) {
if (brokerReportBuilder_.isEmpty()) {
brokerReportBuilder_.dispose();
brokerReportBuilder_ = null;
brokerReport_ = other.brokerReport_;
bitField0_ = (bitField0_ & ~0x00000001);
brokerReportBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBrokerReportFieldBuilder() : null;
} else {
brokerReportBuilder_.addAllMessages(other.brokerReport_);
}
}
}
if (other.getItemsCount() != 0) {
setItemsCount(other.getItemsCount());
}
if (other.getPagesCount() != 0) {
setPagesCount(other.getPagesCount());
}
if (other.getPage() != 0) {
setPage(other.getPage());
}
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: {
ru.tinkoff.piapi.contract.v1.BrokerReport m =
input.readMessage(
ru.tinkoff.piapi.contract.v1.BrokerReport.parser(),
extensionRegistry);
if (brokerReportBuilder_ == null) {
ensureBrokerReportIsMutable();
brokerReport_.add(m);
} else {
brokerReportBuilder_.addMessage(m);
}
break;
} // case 10
case 16: {
itemsCount_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
pagesCount_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
page_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
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.util.List brokerReport_ =
java.util.Collections.emptyList();
private void ensureBrokerReportIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
brokerReport_ = new java.util.ArrayList(brokerReport_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.BrokerReport, ru.tinkoff.piapi.contract.v1.BrokerReport.Builder, ru.tinkoff.piapi.contract.v1.BrokerReportOrBuilder> brokerReportBuilder_;
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public java.util.List getBrokerReportList() {
if (brokerReportBuilder_ == null) {
return java.util.Collections.unmodifiableList(brokerReport_);
} else {
return brokerReportBuilder_.getMessageList();
}
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public int getBrokerReportCount() {
if (brokerReportBuilder_ == null) {
return brokerReport_.size();
} else {
return brokerReportBuilder_.getCount();
}
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public ru.tinkoff.piapi.contract.v1.BrokerReport getBrokerReport(int index) {
if (brokerReportBuilder_ == null) {
return brokerReport_.get(index);
} else {
return brokerReportBuilder_.getMessage(index);
}
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder setBrokerReport(
int index, ru.tinkoff.piapi.contract.v1.BrokerReport value) {
if (brokerReportBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrokerReportIsMutable();
brokerReport_.set(index, value);
onChanged();
} else {
brokerReportBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder setBrokerReport(
int index, ru.tinkoff.piapi.contract.v1.BrokerReport.Builder builderForValue) {
if (brokerReportBuilder_ == null) {
ensureBrokerReportIsMutable();
brokerReport_.set(index, builderForValue.build());
onChanged();
} else {
brokerReportBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder addBrokerReport(ru.tinkoff.piapi.contract.v1.BrokerReport value) {
if (brokerReportBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrokerReportIsMutable();
brokerReport_.add(value);
onChanged();
} else {
brokerReportBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder addBrokerReport(
int index, ru.tinkoff.piapi.contract.v1.BrokerReport value) {
if (brokerReportBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBrokerReportIsMutable();
brokerReport_.add(index, value);
onChanged();
} else {
brokerReportBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder addBrokerReport(
ru.tinkoff.piapi.contract.v1.BrokerReport.Builder builderForValue) {
if (brokerReportBuilder_ == null) {
ensureBrokerReportIsMutable();
brokerReport_.add(builderForValue.build());
onChanged();
} else {
brokerReportBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder addBrokerReport(
int index, ru.tinkoff.piapi.contract.v1.BrokerReport.Builder builderForValue) {
if (brokerReportBuilder_ == null) {
ensureBrokerReportIsMutable();
brokerReport_.add(index, builderForValue.build());
onChanged();
} else {
brokerReportBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder addAllBrokerReport(
java.lang.Iterable extends ru.tinkoff.piapi.contract.v1.BrokerReport> values) {
if (brokerReportBuilder_ == null) {
ensureBrokerReportIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, brokerReport_);
onChanged();
} else {
brokerReportBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder clearBrokerReport() {
if (brokerReportBuilder_ == null) {
brokerReport_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
brokerReportBuilder_.clear();
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public Builder removeBrokerReport(int index) {
if (brokerReportBuilder_ == null) {
ensureBrokerReportIsMutable();
brokerReport_.remove(index);
onChanged();
} else {
brokerReportBuilder_.remove(index);
}
return this;
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public ru.tinkoff.piapi.contract.v1.BrokerReport.Builder getBrokerReportBuilder(
int index) {
return getBrokerReportFieldBuilder().getBuilder(index);
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public ru.tinkoff.piapi.contract.v1.BrokerReportOrBuilder getBrokerReportOrBuilder(
int index) {
if (brokerReportBuilder_ == null) {
return brokerReport_.get(index); } else {
return brokerReportBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public java.util.List extends ru.tinkoff.piapi.contract.v1.BrokerReportOrBuilder>
getBrokerReportOrBuilderList() {
if (brokerReportBuilder_ != null) {
return brokerReportBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(brokerReport_);
}
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public ru.tinkoff.piapi.contract.v1.BrokerReport.Builder addBrokerReportBuilder() {
return getBrokerReportFieldBuilder().addBuilder(
ru.tinkoff.piapi.contract.v1.BrokerReport.getDefaultInstance());
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public ru.tinkoff.piapi.contract.v1.BrokerReport.Builder addBrokerReportBuilder(
int index) {
return getBrokerReportFieldBuilder().addBuilder(
index, ru.tinkoff.piapi.contract.v1.BrokerReport.getDefaultInstance());
}
/**
* repeated .tinkoff.public.invest.api.contract.v1.BrokerReport broker_report = 1;
*/
public java.util.List
getBrokerReportBuilderList() {
return getBrokerReportFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.BrokerReport, ru.tinkoff.piapi.contract.v1.BrokerReport.Builder, ru.tinkoff.piapi.contract.v1.BrokerReportOrBuilder>
getBrokerReportFieldBuilder() {
if (brokerReportBuilder_ == null) {
brokerReportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ru.tinkoff.piapi.contract.v1.BrokerReport, ru.tinkoff.piapi.contract.v1.BrokerReport.Builder, ru.tinkoff.piapi.contract.v1.BrokerReportOrBuilder>(
brokerReport_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
brokerReport_ = null;
}
return brokerReportBuilder_;
}
private int itemsCount_ ;
/**
*
*Количество записей в отчете.
*
*
* int32 itemsCount = 2;
* @return The itemsCount.
*/
@java.lang.Override
public int getItemsCount() {
return itemsCount_;
}
/**
*
*Количество записей в отчете.
*
*
* int32 itemsCount = 2;
* @param value The itemsCount to set.
* @return This builder for chaining.
*/
public Builder setItemsCount(int value) {
itemsCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Количество записей в отчете.
*
*
* int32 itemsCount = 2;
* @return This builder for chaining.
*/
public Builder clearItemsCount() {
bitField0_ = (bitField0_ & ~0x00000002);
itemsCount_ = 0;
onChanged();
return this;
}
private int pagesCount_ ;
/**
*
*Количество страниц с данными отчета (начинается с 0).
*
*
* int32 pagesCount = 3;
* @return The pagesCount.
*/
@java.lang.Override
public int getPagesCount() {
return pagesCount_;
}
/**
*
*Количество страниц с данными отчета (начинается с 0).
*
*
* int32 pagesCount = 3;
* @param value The pagesCount to set.
* @return This builder for chaining.
*/
public Builder setPagesCount(int value) {
pagesCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Количество страниц с данными отчета (начинается с 0).
*
*
* int32 pagesCount = 3;
* @return This builder for chaining.
*/
public Builder clearPagesCount() {
bitField0_ = (bitField0_ & ~0x00000004);
pagesCount_ = 0;
onChanged();
return this;
}
private int page_ ;
/**
*
*Текущая страница (начинается с 0).
*
*
* int32 page = 4;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
/**
*
*Текущая страница (начинается с 0).
*
*
* int32 page = 4;
* @param value The page to set.
* @return This builder for chaining.
*/
public Builder setPage(int value) {
page_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Текущая страница (начинается с 0).
*
*
* int32 page = 4;
* @return This builder for chaining.
*/
public Builder clearPage() {
bitField0_ = (bitField0_ & ~0x00000008);
page_ = 0;
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.GetBrokerReportResponse)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.GetBrokerReportResponse)
private static final ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse();
}
public static ru.tinkoff.piapi.contract.v1.GetBrokerReportResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBrokerReportResponse 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.GetBrokerReportResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}