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: instruments.proto
package ru.tinkoff.piapi.contract.v1;
/**
*
*Операция начисления купонов.
*
*
* Protobuf type {@code tinkoff.public.invest.api.contract.v1.AccruedInterest}
*/
public final class AccruedInterest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.AccruedInterest)
AccruedInterestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccruedInterest.newBuilder() to construct.
private AccruedInterest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccruedInterest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccruedInterest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AccruedInterest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AccruedInterest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AccruedInterest.class, ru.tinkoff.piapi.contract.v1.AccruedInterest.Builder.class);
}
public static final int DATE_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp date_;
/**
*
*Дата и время выплаты в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp date = 1;
* @return Whether the date field is set.
*/
@java.lang.Override
public boolean hasDate() {
return date_ != null;
}
/**
*
*Дата и время выплаты в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp date = 1;
* @return The date.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDate() {
return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_;
}
/**
*
*Дата и время выплаты в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp date = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDateOrBuilder() {
return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private ru.tinkoff.piapi.contract.v1.Quotation value_;
/**
*
*Величина выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return value_ != null;
}
/**
*
*Величина выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation value = 2;
* @return The value.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.Quotation getValue() {
return value_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : value_;
}
/**
*
*Величина выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation value = 2;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getValueOrBuilder() {
return value_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : value_;
}
public static final int VALUE_PERCENT_FIELD_NUMBER = 3;
private ru.tinkoff.piapi.contract.v1.Quotation valuePercent_;
/**
*
*Величина выплаты в процентах от номинала.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation value_percent = 3;
* @return Whether the valuePercent field is set.
*/
@java.lang.Override
public boolean hasValuePercent() {
return valuePercent_ != null;
}
/**
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation nominal = 4;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.QuotationOrBuilder getNominalOrBuilder() {
return nominal_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : nominal_;
}
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 (date_ != null) {
output.writeMessage(1, getDate());
}
if (value_ != null) {
output.writeMessage(2, getValue());
}
if (valuePercent_ != null) {
output.writeMessage(3, getValuePercent());
}
if (nominal_ != null) {
output.writeMessage(4, getNominal());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (date_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDate());
}
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
if (valuePercent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getValuePercent());
}
if (nominal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getNominal());
}
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.AccruedInterest)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.AccruedInterest other = (ru.tinkoff.piapi.contract.v1.AccruedInterest) obj;
if (hasDate() != other.hasDate()) return false;
if (hasDate()) {
if (!getDate()
.equals(other.getDate())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (hasValuePercent() != other.hasValuePercent()) return false;
if (hasValuePercent()) {
if (!getValuePercent()
.equals(other.getValuePercent())) return false;
}
if (hasNominal() != other.hasNominal()) return false;
if (hasNominal()) {
if (!getNominal()
.equals(other.getNominal())) 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 (hasDate()) {
hash = (37 * hash) + DATE_FIELD_NUMBER;
hash = (53 * hash) + getDate().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
if (hasValuePercent()) {
hash = (37 * hash) + VALUE_PERCENT_FIELD_NUMBER;
hash = (53 * hash) + getValuePercent().hashCode();
}
if (hasNominal()) {
hash = (37 * hash) + NOMINAL_FIELD_NUMBER;
hash = (53 * hash) + getNominal().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.AccruedInterest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.AccruedInterest 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.AccruedInterest 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.AccruedInterest 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.AccruedInterest 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.AccruedInterest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.AccruedInterest)
ru.tinkoff.piapi.contract.v1.AccruedInterestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AccruedInterest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AccruedInterest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.AccruedInterest.class, ru.tinkoff.piapi.contract.v1.AccruedInterest.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.AccruedInterest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
date_ = null;
if (dateBuilder_ != null) {
dateBuilder_.dispose();
dateBuilder_ = null;
}
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
valuePercent_ = null;
if (valuePercentBuilder_ != null) {
valuePercentBuilder_.dispose();
valuePercentBuilder_ = null;
}
nominal_ = null;
if (nominalBuilder_ != null) {
nominalBuilder_.dispose();
nominalBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_AccruedInterest_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AccruedInterest getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.AccruedInterest.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AccruedInterest build() {
ru.tinkoff.piapi.contract.v1.AccruedInterest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.AccruedInterest buildPartial() {
ru.tinkoff.piapi.contract.v1.AccruedInterest result = new ru.tinkoff.piapi.contract.v1.AccruedInterest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.AccruedInterest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.date_ = dateBuilder_ == null
? date_
: dateBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.valuePercent_ = valuePercentBuilder_ == null
? valuePercent_
: valuePercentBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.nominal_ = nominalBuilder_ == null
? nominal_
: nominalBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.AccruedInterest) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.AccruedInterest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.AccruedInterest other) {
if (other == ru.tinkoff.piapi.contract.v1.AccruedInterest.getDefaultInstance()) return this;
if (other.hasDate()) {
mergeDate(other.getDate());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
if (other.hasValuePercent()) {
mergeValuePercent(other.getValuePercent());
}
if (other.hasNominal()) {
mergeNominal(other.getNominal());
}
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: {
input.readMessage(
getDateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getValuePercentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getNominalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 com.google.protobuf.Timestamp date_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateBuilder_;
/**
*
*Дата и время выплаты в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp date = 1;
* @return Whether the date field is set.
*/
public boolean hasDate() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Дата и время выплаты в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp date = 1;
* @return The date.
*/
public com.google.protobuf.Timestamp getDate() {
if (dateBuilder_ == null) {
return date_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : date_;
} else {
return dateBuilder_.getMessage();
}
}
/**
*
*Дата и время выплаты в часовом поясе UTC.
*
*
* .google.protobuf.Timestamp date = 1;
*/
public Builder setDate(com.google.protobuf.Timestamp value) {
if (dateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
date_ = value;
} else {
dateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Величина выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation value = 2;
* @return The value.
*/
public ru.tinkoff.piapi.contract.v1.Quotation getValue() {
if (valueBuilder_ == null) {
return value_ == null ? ru.tinkoff.piapi.contract.v1.Quotation.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
*
*Величина выплаты.
*
*
* .tinkoff.public.invest.api.contract.v1.Quotation value = 2;
*/
public Builder setValue(ru.tinkoff.piapi.contract.v1.Quotation value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*