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

com.hedera.services.stream.proto.AllAccountBalances Maven / Gradle / Ivy

There is a newer version: 0.57.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: account_balance_file.proto

package com.hedera.services.stream.proto;

/**
 * 
 **
 * Includes all currency balances (both hbar and token) of all accounts in the ledger.
 * 
* * Protobuf type {@code proto.AllAccountBalances} */ public final class AllAccountBalances extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.AllAccountBalances) AllAccountBalancesOrBuilder { private static final long serialVersionUID = 0L; // Use AllAccountBalances.newBuilder() to construct. private AllAccountBalances(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllAccountBalances() { allAccounts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AllAccountBalances(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllAccountBalances( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null; if (consensusTimestamp_ != null) { subBuilder = consensusTimestamp_.toBuilder(); } consensusTimestamp_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(consensusTimestamp_); consensusTimestamp_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { allAccounts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } allAccounts_.add( input.readMessage(com.hedera.services.stream.proto.SingleAccountBalances.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allAccounts_ = java.util.Collections.unmodifiableList(allAccounts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.AccountBalanceFile.internal_static_proto_AllAccountBalances_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.AccountBalanceFile.internal_static_proto_AllAccountBalances_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.AllAccountBalances.class, com.hedera.services.stream.proto.AllAccountBalances.Builder.class); } public static final int CONSENSUSTIMESTAMP_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.Timestamp consensusTimestamp_; /** *
   **
   * An instant in consensus time 
   * 
* * .proto.Timestamp consensusTimestamp = 1; * @return Whether the consensusTimestamp field is set. */ @java.lang.Override public boolean hasConsensusTimestamp() { return consensusTimestamp_ != null; } /** *
   **
   * An instant in consensus time 
   * 
* * .proto.Timestamp consensusTimestamp = 1; * @return The consensusTimestamp. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Timestamp getConsensusTimestamp() { return consensusTimestamp_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consensusTimestamp_; } /** *
   **
   * An instant in consensus time 
   * 
* * .proto.Timestamp consensusTimestamp = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getConsensusTimestampOrBuilder() { return getConsensusTimestamp(); } public static final int ALLACCOUNTS_FIELD_NUMBER = 2; private java.util.List allAccounts_; /** *
   **
   * The list of account balances for all accounts, after handling all transactions with consensus
   * timestamp up to and including the above instant
   * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ @java.lang.Override public java.util.List getAllAccountsList() { return allAccounts_; } /** *
   **
   * The list of account balances for all accounts, after handling all transactions with consensus
   * timestamp up to and including the above instant
   * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ @java.lang.Override public java.util.List getAllAccountsOrBuilderList() { return allAccounts_; } /** *
   **
   * The list of account balances for all accounts, after handling all transactions with consensus
   * timestamp up to and including the above instant
   * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ @java.lang.Override public int getAllAccountsCount() { return allAccounts_.size(); } /** *
   **
   * The list of account balances for all accounts, after handling all transactions with consensus
   * timestamp up to and including the above instant
   * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ @java.lang.Override public com.hedera.services.stream.proto.SingleAccountBalances getAllAccounts(int index) { return allAccounts_.get(index); } /** *
   **
   * The list of account balances for all accounts, after handling all transactions with consensus
   * timestamp up to and including the above instant
   * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ @java.lang.Override public com.hedera.services.stream.proto.SingleAccountBalancesOrBuilder getAllAccountsOrBuilder( int index) { return allAccounts_.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 { if (consensusTimestamp_ != null) { output.writeMessage(1, getConsensusTimestamp()); } for (int i = 0; i < allAccounts_.size(); i++) { output.writeMessage(2, allAccounts_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (consensusTimestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConsensusTimestamp()); } for (int i = 0; i < allAccounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, allAccounts_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.services.stream.proto.AllAccountBalances)) { return super.equals(obj); } com.hedera.services.stream.proto.AllAccountBalances other = (com.hedera.services.stream.proto.AllAccountBalances) obj; if (hasConsensusTimestamp() != other.hasConsensusTimestamp()) return false; if (hasConsensusTimestamp()) { if (!getConsensusTimestamp() .equals(other.getConsensusTimestamp())) return false; } if (!getAllAccountsList() .equals(other.getAllAccountsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConsensusTimestamp()) { hash = (37 * hash) + CONSENSUSTIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getConsensusTimestamp().hashCode(); } if (getAllAccountsCount() > 0) { hash = (37 * hash) + ALLACCOUNTS_FIELD_NUMBER; hash = (53 * hash) + getAllAccountsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.services.stream.proto.AllAccountBalances parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.AllAccountBalances parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.AllAccountBalances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.AllAccountBalances parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.AllAccountBalances parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.AllAccountBalances parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.AllAccountBalances parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.AllAccountBalances 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 com.hedera.services.stream.proto.AllAccountBalances parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.AllAccountBalances 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 com.hedera.services.stream.proto.AllAccountBalances parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.AllAccountBalances 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(com.hedera.services.stream.proto.AllAccountBalances 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; } /** *
   **
   * Includes all currency balances (both hbar and token) of all accounts in the ledger.
   * 
* * Protobuf type {@code proto.AllAccountBalances} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.AllAccountBalances) com.hedera.services.stream.proto.AllAccountBalancesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.AccountBalanceFile.internal_static_proto_AllAccountBalances_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.AccountBalanceFile.internal_static_proto_AllAccountBalances_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.AllAccountBalances.class, com.hedera.services.stream.proto.AllAccountBalances.Builder.class); } // Construct using com.hedera.services.stream.proto.AllAccountBalances.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAllAccountsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (consensusTimestampBuilder_ == null) { consensusTimestamp_ = null; } else { consensusTimestamp_ = null; consensusTimestampBuilder_ = null; } if (allAccountsBuilder_ == null) { allAccounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { allAccountsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.services.stream.proto.AccountBalanceFile.internal_static_proto_AllAccountBalances_descriptor; } @java.lang.Override public com.hedera.services.stream.proto.AllAccountBalances getDefaultInstanceForType() { return com.hedera.services.stream.proto.AllAccountBalances.getDefaultInstance(); } @java.lang.Override public com.hedera.services.stream.proto.AllAccountBalances build() { com.hedera.services.stream.proto.AllAccountBalances result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.services.stream.proto.AllAccountBalances buildPartial() { com.hedera.services.stream.proto.AllAccountBalances result = new com.hedera.services.stream.proto.AllAccountBalances(this); int from_bitField0_ = bitField0_; if (consensusTimestampBuilder_ == null) { result.consensusTimestamp_ = consensusTimestamp_; } else { result.consensusTimestamp_ = consensusTimestampBuilder_.build(); } if (allAccountsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { allAccounts_ = java.util.Collections.unmodifiableList(allAccounts_); bitField0_ = (bitField0_ & ~0x00000001); } result.allAccounts_ = allAccounts_; } else { result.allAccounts_ = allAccountsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.services.stream.proto.AllAccountBalances) { return mergeFrom((com.hedera.services.stream.proto.AllAccountBalances)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.services.stream.proto.AllAccountBalances other) { if (other == com.hedera.services.stream.proto.AllAccountBalances.getDefaultInstance()) return this; if (other.hasConsensusTimestamp()) { mergeConsensusTimestamp(other.getConsensusTimestamp()); } if (allAccountsBuilder_ == null) { if (!other.allAccounts_.isEmpty()) { if (allAccounts_.isEmpty()) { allAccounts_ = other.allAccounts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAllAccountsIsMutable(); allAccounts_.addAll(other.allAccounts_); } onChanged(); } } else { if (!other.allAccounts_.isEmpty()) { if (allAccountsBuilder_.isEmpty()) { allAccountsBuilder_.dispose(); allAccountsBuilder_ = null; allAccounts_ = other.allAccounts_; bitField0_ = (bitField0_ & ~0x00000001); allAccountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllAccountsFieldBuilder() : null; } else { allAccountsBuilder_.addAllMessages(other.allAccounts_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.hedera.services.stream.proto.AllAccountBalances parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.services.stream.proto.AllAccountBalances) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.hederahashgraph.api.proto.java.Timestamp consensusTimestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> consensusTimestampBuilder_; /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; * @return Whether the consensusTimestamp field is set. */ public boolean hasConsensusTimestamp() { return consensusTimestampBuilder_ != null || consensusTimestamp_ != null; } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; * @return The consensusTimestamp. */ public com.hederahashgraph.api.proto.java.Timestamp getConsensusTimestamp() { if (consensusTimestampBuilder_ == null) { return consensusTimestamp_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consensusTimestamp_; } else { return consensusTimestampBuilder_.getMessage(); } } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder setConsensusTimestamp(com.hederahashgraph.api.proto.java.Timestamp value) { if (consensusTimestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consensusTimestamp_ = value; onChanged(); } else { consensusTimestampBuilder_.setMessage(value); } return this; } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder setConsensusTimestamp( com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (consensusTimestampBuilder_ == null) { consensusTimestamp_ = builderForValue.build(); onChanged(); } else { consensusTimestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder mergeConsensusTimestamp(com.hederahashgraph.api.proto.java.Timestamp value) { if (consensusTimestampBuilder_ == null) { if (consensusTimestamp_ != null) { consensusTimestamp_ = com.hederahashgraph.api.proto.java.Timestamp.newBuilder(consensusTimestamp_).mergeFrom(value).buildPartial(); } else { consensusTimestamp_ = value; } onChanged(); } else { consensusTimestampBuilder_.mergeFrom(value); } return this; } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder clearConsensusTimestamp() { if (consensusTimestampBuilder_ == null) { consensusTimestamp_ = null; onChanged(); } else { consensusTimestamp_ = null; consensusTimestampBuilder_ = null; } return this; } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getConsensusTimestampBuilder() { onChanged(); return getConsensusTimestampFieldBuilder().getBuilder(); } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public com.hederahashgraph.api.proto.java.TimestampOrBuilder getConsensusTimestampOrBuilder() { if (consensusTimestampBuilder_ != null) { return consensusTimestampBuilder_.getMessageOrBuilder(); } else { return consensusTimestamp_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consensusTimestamp_; } } /** *
     **
     * An instant in consensus time 
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getConsensusTimestampFieldBuilder() { if (consensusTimestampBuilder_ == null) { consensusTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( getConsensusTimestamp(), getParentForChildren(), isClean()); consensusTimestamp_ = null; } return consensusTimestampBuilder_; } private java.util.List allAccounts_ = java.util.Collections.emptyList(); private void ensureAllAccountsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { allAccounts_ = new java.util.ArrayList(allAccounts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.SingleAccountBalances, com.hedera.services.stream.proto.SingleAccountBalances.Builder, com.hedera.services.stream.proto.SingleAccountBalancesOrBuilder> allAccountsBuilder_; /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public java.util.List getAllAccountsList() { if (allAccountsBuilder_ == null) { return java.util.Collections.unmodifiableList(allAccounts_); } else { return allAccountsBuilder_.getMessageList(); } } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public int getAllAccountsCount() { if (allAccountsBuilder_ == null) { return allAccounts_.size(); } else { return allAccountsBuilder_.getCount(); } } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public com.hedera.services.stream.proto.SingleAccountBalances getAllAccounts(int index) { if (allAccountsBuilder_ == null) { return allAccounts_.get(index); } else { return allAccountsBuilder_.getMessage(index); } } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder setAllAccounts( int index, com.hedera.services.stream.proto.SingleAccountBalances value) { if (allAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllAccountsIsMutable(); allAccounts_.set(index, value); onChanged(); } else { allAccountsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder setAllAccounts( int index, com.hedera.services.stream.proto.SingleAccountBalances.Builder builderForValue) { if (allAccountsBuilder_ == null) { ensureAllAccountsIsMutable(); allAccounts_.set(index, builderForValue.build()); onChanged(); } else { allAccountsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder addAllAccounts(com.hedera.services.stream.proto.SingleAccountBalances value) { if (allAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllAccountsIsMutable(); allAccounts_.add(value); onChanged(); } else { allAccountsBuilder_.addMessage(value); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder addAllAccounts( int index, com.hedera.services.stream.proto.SingleAccountBalances value) { if (allAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllAccountsIsMutable(); allAccounts_.add(index, value); onChanged(); } else { allAccountsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder addAllAccounts( com.hedera.services.stream.proto.SingleAccountBalances.Builder builderForValue) { if (allAccountsBuilder_ == null) { ensureAllAccountsIsMutable(); allAccounts_.add(builderForValue.build()); onChanged(); } else { allAccountsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder addAllAccounts( int index, com.hedera.services.stream.proto.SingleAccountBalances.Builder builderForValue) { if (allAccountsBuilder_ == null) { ensureAllAccountsIsMutable(); allAccounts_.add(index, builderForValue.build()); onChanged(); } else { allAccountsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder addAllAllAccounts( java.lang.Iterable values) { if (allAccountsBuilder_ == null) { ensureAllAccountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, allAccounts_); onChanged(); } else { allAccountsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder clearAllAccounts() { if (allAccountsBuilder_ == null) { allAccounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { allAccountsBuilder_.clear(); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public Builder removeAllAccounts(int index) { if (allAccountsBuilder_ == null) { ensureAllAccountsIsMutable(); allAccounts_.remove(index); onChanged(); } else { allAccountsBuilder_.remove(index); } return this; } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public com.hedera.services.stream.proto.SingleAccountBalances.Builder getAllAccountsBuilder( int index) { return getAllAccountsFieldBuilder().getBuilder(index); } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public com.hedera.services.stream.proto.SingleAccountBalancesOrBuilder getAllAccountsOrBuilder( int index) { if (allAccountsBuilder_ == null) { return allAccounts_.get(index); } else { return allAccountsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public java.util.List getAllAccountsOrBuilderList() { if (allAccountsBuilder_ != null) { return allAccountsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allAccounts_); } } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public com.hedera.services.stream.proto.SingleAccountBalances.Builder addAllAccountsBuilder() { return getAllAccountsFieldBuilder().addBuilder( com.hedera.services.stream.proto.SingleAccountBalances.getDefaultInstance()); } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public com.hedera.services.stream.proto.SingleAccountBalances.Builder addAllAccountsBuilder( int index) { return getAllAccountsFieldBuilder().addBuilder( index, com.hedera.services.stream.proto.SingleAccountBalances.getDefaultInstance()); } /** *
     **
     * The list of account balances for all accounts, after handling all transactions with consensus
     * timestamp up to and including the above instant
     * 
* * repeated .proto.SingleAccountBalances allAccounts = 2; */ public java.util.List getAllAccountsBuilderList() { return getAllAccountsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.SingleAccountBalances, com.hedera.services.stream.proto.SingleAccountBalances.Builder, com.hedera.services.stream.proto.SingleAccountBalancesOrBuilder> getAllAccountsFieldBuilder() { if (allAccountsBuilder_ == null) { allAccountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.services.stream.proto.SingleAccountBalances, com.hedera.services.stream.proto.SingleAccountBalances.Builder, com.hedera.services.stream.proto.SingleAccountBalancesOrBuilder>( allAccounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); allAccounts_ = null; } return allAccountsBuilder_; } @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:proto.AllAccountBalances) } // @@protoc_insertion_point(class_scope:proto.AllAccountBalances) private static final com.hedera.services.stream.proto.AllAccountBalances DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.services.stream.proto.AllAccountBalances(); } public static com.hedera.services.stream.proto.AllAccountBalances getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AllAccountBalances parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllAccountBalances(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.services.stream.proto.AllAccountBalances getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy