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.GetAssetFundamentalsRequest}
*/
public final class GetAssetFundamentalsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.GetAssetFundamentalsRequest)
GetAssetFundamentalsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAssetFundamentalsRequest.newBuilder() to construct.
private GetAssetFundamentalsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAssetFundamentalsRequest() {
assets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAssetFundamentalsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetAssetFundamentalsRequest_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_GetAssetFundamentalsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.class, ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.Builder.class);
}
public static final int ASSETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList assets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @return A list containing the assets.
*/
public com.google.protobuf.ProtocolStringList
getAssetsList() {
return assets_;
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @return The count of assets.
*/
public int getAssetsCount() {
return assets_.size();
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @param index The index of the element to return.
* @return The assets at the given index.
*/
public java.lang.String getAssets(int index) {
return assets_.get(index);
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @param index The index of the value to return.
* @return The bytes of the assets at the given index.
*/
public com.google.protobuf.ByteString
getAssetsBytes(int index) {
return assets_.getByteString(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 {
for (int i = 0; i < assets_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assets_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < assets_.size(); i++) {
dataSize += computeStringSizeNoTag(assets_.getRaw(i));
}
size += dataSize;
size += 1 * getAssetsList().size();
}
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.GetAssetFundamentalsRequest)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest other = (ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest) obj;
if (!getAssetsList()
.equals(other.getAssetsList())) 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 (getAssetsCount() > 0) {
hash = (37 * hash) + ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getAssetsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest 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.GetAssetFundamentalsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.GetAssetFundamentalsRequest)
ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ru.tinkoff.piapi.contract.v1.Instruments.internal_static_tinkoff_public_invest_api_contract_v1_GetAssetFundamentalsRequest_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_GetAssetFundamentalsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.class, ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.Builder.class);
}
// Construct using ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
assets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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_GetAssetFundamentalsRequest_descriptor;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest getDefaultInstanceForType() {
return ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.getDefaultInstance();
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest build() {
ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest buildPartial() {
ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest result = new ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
assets_.makeImmutable();
result.assets_ = assets_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest) {
return mergeFrom((ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest other) {
if (other == ru.tinkoff.piapi.contract.v1.GetAssetFundamentalsRequest.getDefaultInstance()) return this;
if (!other.assets_.isEmpty()) {
if (assets_.isEmpty()) {
assets_ = other.assets_;
bitField0_ |= 0x00000001;
} else {
ensureAssetsIsMutable();
assets_.addAll(other.assets_);
}
onChanged();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureAssetsIsMutable();
assets_.add(s);
break;
} // case 10
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.LazyStringArrayList assets_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAssetsIsMutable() {
if (!assets_.isModifiable()) {
assets_ = new com.google.protobuf.LazyStringArrayList(assets_);
}
bitField0_ |= 0x00000001;
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @return A list containing the assets.
*/
public com.google.protobuf.ProtocolStringList
getAssetsList() {
assets_.makeImmutable();
return assets_;
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @return The count of assets.
*/
public int getAssetsCount() {
return assets_.size();
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @param index The index of the element to return.
* @return The assets at the given index.
*/
public java.lang.String getAssets(int index) {
return assets_.get(index);
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @param index The index of the value to return.
* @return The bytes of the assets at the given index.
*/
public com.google.protobuf.ByteString
getAssetsBytes(int index) {
return assets_.getByteString(index);
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @param index The index to set the value at.
* @param value The assets to set.
* @return This builder for chaining.
*/
public Builder setAssets(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAssetsIsMutable();
assets_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @param value The assets to add.
* @return This builder for chaining.
*/
public Builder addAssets(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAssetsIsMutable();
assets_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Массив идентификаторов активов.
*
*
* repeated string assets = 1;
* @param values The assets to add.
* @return This builder for chaining.
*/
public Builder addAllAssets(
java.lang.Iterable values) {
ensureAssetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, assets_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*