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.
*
* repeated .tinkoff.public.invest.api.contract.v1.EditFavoritesRequestInstrument instruments = 1;
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.EditFavoritesRequestInstrumentOrBuilder getInstrumentsOrBuilder(
int index) {
return instruments_.get(index);
}
public static final int ACTION_TYPE_FIELD_NUMBER = 6;
private int actionType_ = 0;
/**
*
*Тип действия со списком.
*
*
* .tinkoff.public.invest.api.contract.v1.EditFavoritesActionType action_type = 6;
* @return The enum numeric value on the wire for actionType.
*/
@java.lang.Override public int getActionTypeValue() {
return actionType_;
}
/**
*
*Тип действия со списком.
*
*
* .tinkoff.public.invest.api.contract.v1.EditFavoritesActionType action_type = 6;
* @return The actionType.
*/
@java.lang.Override public ru.tinkoff.piapi.contract.v1.EditFavoritesActionType getActionType() {
ru.tinkoff.piapi.contract.v1.EditFavoritesActionType result = ru.tinkoff.piapi.contract.v1.EditFavoritesActionType.forNumber(actionType_);
return result == null ? ru.tinkoff.piapi.contract.v1.EditFavoritesActionType.UNRECOGNIZED : result;
}
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 < instruments_.size(); i++) {
output.writeMessage(1, instruments_.get(i));
}
if (actionType_ != ru.tinkoff.piapi.contract.v1.EditFavoritesActionType.EDIT_FAVORITES_ACTION_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, actionType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < instruments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, instruments_.get(i));
}
if (actionType_ != ru.tinkoff.piapi.contract.v1.EditFavoritesActionType.EDIT_FAVORITES_ACTION_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, actionType_);
}
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.EditFavoritesRequest)) {
return super.equals(obj);
}
ru.tinkoff.piapi.contract.v1.EditFavoritesRequest other = (ru.tinkoff.piapi.contract.v1.EditFavoritesRequest) obj;
if (!getInstrumentsList()
.equals(other.getInstrumentsList())) return false;
if (actionType_ != other.actionType_) 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 (getInstrumentsCount() > 0) {
hash = (37 * hash) + INSTRUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getInstrumentsList().hashCode();
}
hash = (37 * hash) + ACTION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + actionType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static ru.tinkoff.piapi.contract.v1.EditFavoritesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.EditFavoritesRequest 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.EditFavoritesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.EditFavoritesRequest 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.EditFavoritesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ru.tinkoff.piapi.contract.v1.EditFavoritesRequest 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.EditFavoritesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.EditFavoritesRequest 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.EditFavoritesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ru.tinkoff.piapi.contract.v1.EditFavoritesRequest 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.EditFavoritesRequest 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.EditFavoritesRequest 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.EditFavoritesRequest 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;
}
/**
*
*
* .tinkoff.public.invest.api.contract.v1.EditFavoritesActionType action_type = 6;
* @return The enum numeric value on the wire for actionType.
*/
@java.lang.Override public int getActionTypeValue() {
return actionType_;
}
/**
*
*Тип действия со списком.
*
*
* .tinkoff.public.invest.api.contract.v1.EditFavoritesActionType action_type = 6;
* @param value The enum numeric value on the wire for actionType to set.
* @return This builder for chaining.
*/
public Builder setActionTypeValue(int value) {
actionType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Тип действия со списком.
*
*
* .tinkoff.public.invest.api.contract.v1.EditFavoritesActionType action_type = 6;
* @return The actionType.
*/
@java.lang.Override
public ru.tinkoff.piapi.contract.v1.EditFavoritesActionType getActionType() {
ru.tinkoff.piapi.contract.v1.EditFavoritesActionType result = ru.tinkoff.piapi.contract.v1.EditFavoritesActionType.forNumber(actionType_);
return result == null ? ru.tinkoff.piapi.contract.v1.EditFavoritesActionType.UNRECOGNIZED : result;
}
/**
*
*Тип действия со списком.
*
*
* .tinkoff.public.invest.api.contract.v1.EditFavoritesActionType action_type = 6;
* @param value The actionType to set.
* @return This builder for chaining.
*/
public Builder setActionType(ru.tinkoff.piapi.contract.v1.EditFavoritesActionType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
actionType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*Тип действия со списком.
*
*
* .tinkoff.public.invest.api.contract.v1.EditFavoritesActionType action_type = 6;
* @return This builder for chaining.
*/
public Builder clearActionType() {
bitField0_ = (bitField0_ & ~0x00000002);
actionType_ = 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.EditFavoritesRequest)
}
// @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.EditFavoritesRequest)
private static final ru.tinkoff.piapi.contract.v1.EditFavoritesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.EditFavoritesRequest();
}
public static ru.tinkoff.piapi.contract.v1.EditFavoritesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EditFavoritesRequest 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.EditFavoritesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}