All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.OperationItemTrades Maven / Gradle / Ivy

There is a newer version: 1.25
Show newest version
// 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.OperationItemTrades} */ public final class OperationItemTrades extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.OperationItemTrades) OperationItemTradesOrBuilder { private static final long serialVersionUID = 0L; // Use OperationItemTrades.newBuilder() to construct. private OperationItemTrades(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OperationItemTrades() { trades_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OperationItemTrades(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_OperationItemTrades_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_OperationItemTrades_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.OperationItemTrades.class, ru.tinkoff.piapi.contract.v1.OperationItemTrades.Builder.class); } public static final int TRADES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List trades_; /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ @java.lang.Override public java.util.List getTradesList() { return trades_; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ @java.lang.Override public java.util.List getTradesOrBuilderList() { return trades_; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ @java.lang.Override public int getTradesCount() { return trades_.size(); } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItemTrade getTrades(int index) { return trades_.get(index); } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItemTradeOrBuilder getTradesOrBuilder( int index) { return trades_.get(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 < trades_.size(); i++) { output.writeMessage(6, trades_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < trades_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, trades_.get(i)); } 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.OperationItemTrades)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.OperationItemTrades other = (ru.tinkoff.piapi.contract.v1.OperationItemTrades) obj; if (!getTradesList() .equals(other.getTradesList())) 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 (getTradesCount() > 0) { hash = (37 * hash) + TRADES_FIELD_NUMBER; hash = (53 * hash) + getTradesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.OperationItemTrades parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OperationItemTrades 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.OperationItemTrades parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OperationItemTrades 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.OperationItemTrades parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.OperationItemTrades 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.OperationItemTrades parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.OperationItemTrades 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.OperationItemTrades parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.OperationItemTrades 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.OperationItemTrades 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.OperationItemTrades 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.OperationItemTrades 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.OperationItemTrades} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.OperationItemTrades) ru.tinkoff.piapi.contract.v1.OperationItemTradesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Operations.internal_static_tinkoff_public_invest_api_contract_v1_OperationItemTrades_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_OperationItemTrades_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.OperationItemTrades.class, ru.tinkoff.piapi.contract.v1.OperationItemTrades.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.OperationItemTrades.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tradesBuilder_ == null) { trades_ = java.util.Collections.emptyList(); } else { trades_ = null; tradesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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_OperationItemTrades_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItemTrades getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.OperationItemTrades.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItemTrades build() { ru.tinkoff.piapi.contract.v1.OperationItemTrades result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.OperationItemTrades buildPartial() { ru.tinkoff.piapi.contract.v1.OperationItemTrades result = new ru.tinkoff.piapi.contract.v1.OperationItemTrades(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ru.tinkoff.piapi.contract.v1.OperationItemTrades result) { if (tradesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trades_ = java.util.Collections.unmodifiableList(trades_); bitField0_ = (bitField0_ & ~0x00000001); } result.trades_ = trades_; } else { result.trades_ = tradesBuilder_.build(); } } private void buildPartial0(ru.tinkoff.piapi.contract.v1.OperationItemTrades result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.OperationItemTrades) { return mergeFrom((ru.tinkoff.piapi.contract.v1.OperationItemTrades)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.OperationItemTrades other) { if (other == ru.tinkoff.piapi.contract.v1.OperationItemTrades.getDefaultInstance()) return this; if (tradesBuilder_ == null) { if (!other.trades_.isEmpty()) { if (trades_.isEmpty()) { trades_ = other.trades_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTradesIsMutable(); trades_.addAll(other.trades_); } onChanged(); } } else { if (!other.trades_.isEmpty()) { if (tradesBuilder_.isEmpty()) { tradesBuilder_.dispose(); tradesBuilder_ = null; trades_ = other.trades_; bitField0_ = (bitField0_ & ~0x00000001); tradesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTradesFieldBuilder() : null; } else { tradesBuilder_.addAllMessages(other.trades_); } } } 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 50: { ru.tinkoff.piapi.contract.v1.OperationItemTrade m = input.readMessage( ru.tinkoff.piapi.contract.v1.OperationItemTrade.parser(), extensionRegistry); if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.add(m); } else { tradesBuilder_.addMessage(m); } break; } // case 50 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 trades_ = java.util.Collections.emptyList(); private void ensureTradesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { trades_ = new java.util.ArrayList(trades_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OperationItemTrade, ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder, ru.tinkoff.piapi.contract.v1.OperationItemTradeOrBuilder> tradesBuilder_; /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public java.util.List getTradesList() { if (tradesBuilder_ == null) { return java.util.Collections.unmodifiableList(trades_); } else { return tradesBuilder_.getMessageList(); } } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public int getTradesCount() { if (tradesBuilder_ == null) { return trades_.size(); } else { return tradesBuilder_.getCount(); } } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public ru.tinkoff.piapi.contract.v1.OperationItemTrade getTrades(int index) { if (tradesBuilder_ == null) { return trades_.get(index); } else { return tradesBuilder_.getMessage(index); } } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder setTrades( int index, ru.tinkoff.piapi.contract.v1.OperationItemTrade value) { if (tradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTradesIsMutable(); trades_.set(index, value); onChanged(); } else { tradesBuilder_.setMessage(index, value); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder setTrades( int index, ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder builderForValue) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.set(index, builderForValue.build()); onChanged(); } else { tradesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder addTrades(ru.tinkoff.piapi.contract.v1.OperationItemTrade value) { if (tradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTradesIsMutable(); trades_.add(value); onChanged(); } else { tradesBuilder_.addMessage(value); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder addTrades( int index, ru.tinkoff.piapi.contract.v1.OperationItemTrade value) { if (tradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTradesIsMutable(); trades_.add(index, value); onChanged(); } else { tradesBuilder_.addMessage(index, value); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder addTrades( ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder builderForValue) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.add(builderForValue.build()); onChanged(); } else { tradesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder addTrades( int index, ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder builderForValue) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.add(index, builderForValue.build()); onChanged(); } else { tradesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder addAllTrades( java.lang.Iterable values) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, trades_); onChanged(); } else { tradesBuilder_.addAllMessages(values); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder clearTrades() { if (tradesBuilder_ == null) { trades_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tradesBuilder_.clear(); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public Builder removeTrades(int index) { if (tradesBuilder_ == null) { ensureTradesIsMutable(); trades_.remove(index); onChanged(); } else { tradesBuilder_.remove(index); } return this; } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder getTradesBuilder( int index) { return getTradesFieldBuilder().getBuilder(index); } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public ru.tinkoff.piapi.contract.v1.OperationItemTradeOrBuilder getTradesOrBuilder( int index) { if (tradesBuilder_ == null) { return trades_.get(index); } else { return tradesBuilder_.getMessageOrBuilder(index); } } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public java.util.List getTradesOrBuilderList() { if (tradesBuilder_ != null) { return tradesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(trades_); } } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder addTradesBuilder() { return getTradesFieldBuilder().addBuilder( ru.tinkoff.piapi.contract.v1.OperationItemTrade.getDefaultInstance()); } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder addTradesBuilder( int index) { return getTradesFieldBuilder().addBuilder( index, ru.tinkoff.piapi.contract.v1.OperationItemTrade.getDefaultInstance()); } /** * repeated .tinkoff.public.invest.api.contract.v1.OperationItemTrade trades = 6; */ public java.util.List getTradesBuilderList() { return getTradesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OperationItemTrade, ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder, ru.tinkoff.piapi.contract.v1.OperationItemTradeOrBuilder> getTradesFieldBuilder() { if (tradesBuilder_ == null) { tradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ru.tinkoff.piapi.contract.v1.OperationItemTrade, ru.tinkoff.piapi.contract.v1.OperationItemTrade.Builder, ru.tinkoff.piapi.contract.v1.OperationItemTradeOrBuilder>( trades_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); trades_ = null; } return tradesBuilder_; } @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.OperationItemTrades) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.OperationItemTrades) private static final ru.tinkoff.piapi.contract.v1.OperationItemTrades DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.OperationItemTrades(); } public static ru.tinkoff.piapi.contract.v1.OperationItemTrades getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OperationItemTrades 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.OperationItemTrades getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy