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.
*
* string account_id = 1;
* @return The bytes for accountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountIdBytes() {
java.lang.Object ref = accountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountId_ = 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(accountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountId_);
}
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(accountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountId_);
}
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.GenerateDividendsForeignIssuerReportRequest)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest other = (ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest) obj;
if (!getAccountId()
.equals(other.getAccountId())) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAccountId().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.GenerateDividendsForeignIssuerReportRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest 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.GenerateDividendsForeignIssuerReportRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GenerateDividendsForeignIssuerReportRequest)
ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GenerateDividendsForeignIssuerReportRequest_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_GenerateDividendsForeignIssuerReportRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest.class, ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
accountId_ = "";
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.Operations.internal_static_tinkoff_public_invest_api_contract_v1_GenerateDividendsForeignIssuerReportRequest_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest build() {
ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest buildPartial() {
ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest result = new ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.accountId_ = accountId_;
}
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.GenerateDividendsForeignIssuerReportRequest) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest other) {
if (other == ru.tinkoff.piapi.contract.v1.GenerateDividendsForeignIssuerReportRequest.getDefaultInstance()) return this;
if (!other.getAccountId().isEmpty()) {
accountId_ = other.accountId_;
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: {
accountId_ = 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 accountId_ = "";
/**
*
*
* string account_id = 1;
* @param value The bytes for accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
accountId_ = 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;
}
/**
*
*
* .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;
}
/**
*