Class ConsensusTopicInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ConsensusTopicInfo,ConsensusTopicInfo.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ConsensusTopicInfo,ConsensusTopicInfo.Builder>
com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ConsensusTopicInfoOrBuilder, Cloneable
Enclosing class:
ConsensusTopicInfo

public static final class ConsensusTopicInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ConsensusTopicInfo,ConsensusTopicInfo.Builder> implements ConsensusTopicInfoOrBuilder
 *
 A query response describing the current state of a topic for the Hedera
 Consensus Service (HCS).
 
Protobuf type proto.ConsensusTopicInfo
  • Method Details

    • getMemo

      public String getMemo()
       *
       A short description of this topic.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 1;
      Specified by:
      getMemo in interface ConsensusTopicInfoOrBuilder
      Returns:
      The memo.
    • getMemoBytes

      public com.google.protobuf.ByteString getMemoBytes()
       *
       A short description of this topic.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 1;
      Specified by:
      getMemoBytes in interface ConsensusTopicInfoOrBuilder
      Returns:
      The bytes for memo.
    • setMemo

      public ConsensusTopicInfo.Builder setMemo(String value)
       *
       A short description of this topic.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 1;
      Parameters:
      value - The memo to set.
      Returns:
      This builder for chaining.
    • clearMemo

      public ConsensusTopicInfo.Builder clearMemo()
       *
       A short description of this topic.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 1;
      Returns:
      This builder for chaining.
    • setMemoBytes

      public ConsensusTopicInfo.Builder setMemoBytes(com.google.protobuf.ByteString value)
       *
       A short description of this topic.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 1;
      Parameters:
      value - The bytes for memo to set.
      Returns:
      This builder for chaining.
    • getRunningHash

      public com.google.protobuf.ByteString getRunningHash()
       *
       The latest running hash of the topic.
       <p>
       This 48-byte field is the output of a SHA-384 digest with input
       data determined by the current version of the running hash algorithm
       used by the network.<br/>
       All new transactions SHALL use algorithm version `3`.<br/>
       The bytes of each uint64 or uint32 encoded for the hash input
       MUST be in Big-Endian format.
       <p>
       <hr/>
       If the algorithm version is '3', then the input data to the
       SHA-384 digest are, in order:
       <ol>
       <li>The previous running hash of the topic (48 bytes)</li>
       <li>The `topicRunningHashVersion` (8 bytes)</li>
       <li>The payer account's shard (8 bytes)</li>
       <li>The payer account's realm (8 bytes)</li>
       <li>The payer account's number (8 bytes)</li>
       <li>The topic's shard (8 bytes)</li>
       <li>The topic's realm (8 bytes)</li>
       <li>The topic's number (8 bytes)</li>
       <li>The number of seconds since the epoch when the
       `ConsensusSubmitMessage` reached consensus (8 bytes)</li>
       <li>The number of nanoseconds within the second when the
       `ConsensusSubmitMessage` reached consensus (4 bytes)</li>
       <li>The `topicSequenceNumber` (8 bytes)</li>
       <li>The output of a SHA-384 digest of the message bytes from the
       `ConsensusSubmitMessage` (48 bytes)</li>
       </ol>
       
      bytes runningHash = 2;
      Specified by:
      getRunningHash in interface ConsensusTopicInfoOrBuilder
      Returns:
      The runningHash.
    • setRunningHash

      public ConsensusTopicInfo.Builder setRunningHash(com.google.protobuf.ByteString value)
       *
       The latest running hash of the topic.
       <p>
       This 48-byte field is the output of a SHA-384 digest with input
       data determined by the current version of the running hash algorithm
       used by the network.<br/>
       All new transactions SHALL use algorithm version `3`.<br/>
       The bytes of each uint64 or uint32 encoded for the hash input
       MUST be in Big-Endian format.
       <p>
       <hr/>
       If the algorithm version is '3', then the input data to the
       SHA-384 digest are, in order:
       <ol>
       <li>The previous running hash of the topic (48 bytes)</li>
       <li>The `topicRunningHashVersion` (8 bytes)</li>
       <li>The payer account's shard (8 bytes)</li>
       <li>The payer account's realm (8 bytes)</li>
       <li>The payer account's number (8 bytes)</li>
       <li>The topic's shard (8 bytes)</li>
       <li>The topic's realm (8 bytes)</li>
       <li>The topic's number (8 bytes)</li>
       <li>The number of seconds since the epoch when the
       `ConsensusSubmitMessage` reached consensus (8 bytes)</li>
       <li>The number of nanoseconds within the second when the
       `ConsensusSubmitMessage` reached consensus (4 bytes)</li>
       <li>The `topicSequenceNumber` (8 bytes)</li>
       <li>The output of a SHA-384 digest of the message bytes from the
       `ConsensusSubmitMessage` (48 bytes)</li>
       </ol>
       
      bytes runningHash = 2;
      Parameters:
      value - The runningHash to set.
      Returns:
      This builder for chaining.
    • clearRunningHash

      public ConsensusTopicInfo.Builder clearRunningHash()
       *
       The latest running hash of the topic.
       <p>
       This 48-byte field is the output of a SHA-384 digest with input
       data determined by the current version of the running hash algorithm
       used by the network.<br/>
       All new transactions SHALL use algorithm version `3`.<br/>
       The bytes of each uint64 or uint32 encoded for the hash input
       MUST be in Big-Endian format.
       <p>
       <hr/>
       If the algorithm version is '3', then the input data to the
       SHA-384 digest are, in order:
       <ol>
       <li>The previous running hash of the topic (48 bytes)</li>
       <li>The `topicRunningHashVersion` (8 bytes)</li>
       <li>The payer account's shard (8 bytes)</li>
       <li>The payer account's realm (8 bytes)</li>
       <li>The payer account's number (8 bytes)</li>
       <li>The topic's shard (8 bytes)</li>
       <li>The topic's realm (8 bytes)</li>
       <li>The topic's number (8 bytes)</li>
       <li>The number of seconds since the epoch when the
       `ConsensusSubmitMessage` reached consensus (8 bytes)</li>
       <li>The number of nanoseconds within the second when the
       `ConsensusSubmitMessage` reached consensus (4 bytes)</li>
       <li>The `topicSequenceNumber` (8 bytes)</li>
       <li>The output of a SHA-384 digest of the message bytes from the
       `ConsensusSubmitMessage` (48 bytes)</li>
       </ol>
       
      bytes runningHash = 2;
      Returns:
      This builder for chaining.
    • getSequenceNumber

      public long getSequenceNumber()
       *
       A current sequence number (starting at 1 for the first message)
       for messages on this topic.
       
      uint64 sequenceNumber = 3;
      Specified by:
      getSequenceNumber in interface ConsensusTopicInfoOrBuilder
      Returns:
      The sequenceNumber.
    • setSequenceNumber

      public ConsensusTopicInfo.Builder setSequenceNumber(long value)
       *
       A current sequence number (starting at 1 for the first message)
       for messages on this topic.
       
      uint64 sequenceNumber = 3;
      Parameters:
      value - The sequenceNumber to set.
      Returns:
      This builder for chaining.
    • clearSequenceNumber

      public ConsensusTopicInfo.Builder clearSequenceNumber()
       *
       A current sequence number (starting at 1 for the first message)
       for messages on this topic.
       
      uint64 sequenceNumber = 3;
      Returns:
      This builder for chaining.
    • hasExpirationTime

      public boolean hasExpirationTime()
       *
       An expiration time for this topic, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp expirationTime = 4;
      Specified by:
      hasExpirationTime in interface ConsensusTopicInfoOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public Timestamp getExpirationTime()
       *
       An expiration time for this topic, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp expirationTime = 4;
      Specified by:
      getExpirationTime in interface ConsensusTopicInfoOrBuilder
      Returns:
      The expirationTime.
    • setExpirationTime

      public ConsensusTopicInfo.Builder setExpirationTime(Timestamp value)
       *
       An expiration time for this topic, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp expirationTime = 4;
    • setExpirationTime

      public ConsensusTopicInfo.Builder setExpirationTime(Timestamp.Builder builderForValue)
       *
       An expiration time for this topic, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp expirationTime = 4;
    • mergeExpirationTime

      public ConsensusTopicInfo.Builder mergeExpirationTime(Timestamp value)
       *
       An expiration time for this topic, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp expirationTime = 4;
    • clearExpirationTime

      public ConsensusTopicInfo.Builder clearExpirationTime()
       *
       An expiration time for this topic, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp expirationTime = 4;
    • hasAdminKey

      public boolean hasAdminKey()
       *
       A key that MUST sign any transaction to update or delete this topic.
       <p>
       If this value is not set (null) then the topic CANNOT be deleted,
       modified, or updated.
       
      .proto.Key adminKey = 5;
      Specified by:
      hasAdminKey in interface ConsensusTopicInfoOrBuilder
      Returns:
      Whether the adminKey field is set.
    • getAdminKey

      public Key getAdminKey()
       *
       A key that MUST sign any transaction to update or delete this topic.
       <p>
       If this value is not set (null) then the topic CANNOT be deleted,
       modified, or updated.
       
      .proto.Key adminKey = 5;
      Specified by:
      getAdminKey in interface ConsensusTopicInfoOrBuilder
      Returns:
      The adminKey.
    • setAdminKey

      public ConsensusTopicInfo.Builder setAdminKey(Key value)
       *
       A key that MUST sign any transaction to update or delete this topic.
       <p>
       If this value is not set (null) then the topic CANNOT be deleted,
       modified, or updated.
       
      .proto.Key adminKey = 5;
    • setAdminKey

      public ConsensusTopicInfo.Builder setAdminKey(Key.Builder builderForValue)
       *
       A key that MUST sign any transaction to update or delete this topic.
       <p>
       If this value is not set (null) then the topic CANNOT be deleted,
       modified, or updated.
       
      .proto.Key adminKey = 5;
    • mergeAdminKey

      public ConsensusTopicInfo.Builder mergeAdminKey(Key value)
       *
       A key that MUST sign any transaction to update or delete this topic.
       <p>
       If this value is not set (null) then the topic CANNOT be deleted,
       modified, or updated.
       
      .proto.Key adminKey = 5;
    • clearAdminKey

      public ConsensusTopicInfo.Builder clearAdminKey()
       *
       A key that MUST sign any transaction to update or delete this topic.
       <p>
       If this value is not set (null) then the topic CANNOT be deleted,
       modified, or updated.
       
      .proto.Key adminKey = 5;
    • hasSubmitKey

      public boolean hasSubmitKey()
       *
       A key that MUST sign any transaction to submit a message to this topic.
       <p>
       If this value is not set (null) then any account MAY submit messages to
       this topic.
       
      .proto.Key submitKey = 6;
      Specified by:
      hasSubmitKey in interface ConsensusTopicInfoOrBuilder
      Returns:
      Whether the submitKey field is set.
    • getSubmitKey

      public Key getSubmitKey()
       *
       A key that MUST sign any transaction to submit a message to this topic.
       <p>
       If this value is not set (null) then any account MAY submit messages to
       this topic.
       
      .proto.Key submitKey = 6;
      Specified by:
      getSubmitKey in interface ConsensusTopicInfoOrBuilder
      Returns:
      The submitKey.
    • setSubmitKey

      public ConsensusTopicInfo.Builder setSubmitKey(Key value)
       *
       A key that MUST sign any transaction to submit a message to this topic.
       <p>
       If this value is not set (null) then any account MAY submit messages to
       this topic.
       
      .proto.Key submitKey = 6;
    • setSubmitKey

      public ConsensusTopicInfo.Builder setSubmitKey(Key.Builder builderForValue)
       *
       A key that MUST sign any transaction to submit a message to this topic.
       <p>
       If this value is not set (null) then any account MAY submit messages to
       this topic.
       
      .proto.Key submitKey = 6;
    • mergeSubmitKey

      public ConsensusTopicInfo.Builder mergeSubmitKey(Key value)
       *
       A key that MUST sign any transaction to submit a message to this topic.
       <p>
       If this value is not set (null) then any account MAY submit messages to
       this topic.
       
      .proto.Key submitKey = 6;
    • clearSubmitKey

      public ConsensusTopicInfo.Builder clearSubmitKey()
       *
       A key that MUST sign any transaction to submit a message to this topic.
       <p>
       If this value is not set (null) then any account MAY submit messages to
       this topic.
       
      .proto.Key submitKey = 6;
    • hasAutoRenewPeriod

      public boolean hasAutoRenewPeriod()
       *
       A duration, in seconds, to extend the `expirationTime` value when
       this topic is automatically renewed.
       <p>
       If the `autoRenewAccount` value for this topic is set to a valid account
       with sufficient HBAR balance to pay renewal fees when this topic
       expires, the system SHALL automatically renew this topic, extending the
       `expirationTime` value by the number of seconds described here.<br/>
       If, however, the `autoRenewAccount` lacks sufficient HBAR balance
       to pay renewal fees when this topic expires, this topic SHALL be
       deleted after the time period specified in the `AUTORENEW_GRACE_PERIOD`
       configuration value.
       
      .proto.Duration autoRenewPeriod = 7;
      Specified by:
      hasAutoRenewPeriod in interface ConsensusTopicInfoOrBuilder
      Returns:
      Whether the autoRenewPeriod field is set.
    • getAutoRenewPeriod

      public Duration getAutoRenewPeriod()
       *
       A duration, in seconds, to extend the `expirationTime` value when
       this topic is automatically renewed.
       <p>
       If the `autoRenewAccount` value for this topic is set to a valid account
       with sufficient HBAR balance to pay renewal fees when this topic
       expires, the system SHALL automatically renew this topic, extending the
       `expirationTime` value by the number of seconds described here.<br/>
       If, however, the `autoRenewAccount` lacks sufficient HBAR balance
       to pay renewal fees when this topic expires, this topic SHALL be
       deleted after the time period specified in the `AUTORENEW_GRACE_PERIOD`
       configuration value.
       
      .proto.Duration autoRenewPeriod = 7;
      Specified by:
      getAutoRenewPeriod in interface ConsensusTopicInfoOrBuilder
      Returns:
      The autoRenewPeriod.
    • setAutoRenewPeriod

      public ConsensusTopicInfo.Builder setAutoRenewPeriod(Duration value)
       *
       A duration, in seconds, to extend the `expirationTime` value when
       this topic is automatically renewed.
       <p>
       If the `autoRenewAccount` value for this topic is set to a valid account
       with sufficient HBAR balance to pay renewal fees when this topic
       expires, the system SHALL automatically renew this topic, extending the
       `expirationTime` value by the number of seconds described here.<br/>
       If, however, the `autoRenewAccount` lacks sufficient HBAR balance
       to pay renewal fees when this topic expires, this topic SHALL be
       deleted after the time period specified in the `AUTORENEW_GRACE_PERIOD`
       configuration value.
       
      .proto.Duration autoRenewPeriod = 7;
    • setAutoRenewPeriod

      public ConsensusTopicInfo.Builder setAutoRenewPeriod(Duration.Builder builderForValue)
       *
       A duration, in seconds, to extend the `expirationTime` value when
       this topic is automatically renewed.
       <p>
       If the `autoRenewAccount` value for this topic is set to a valid account
       with sufficient HBAR balance to pay renewal fees when this topic
       expires, the system SHALL automatically renew this topic, extending the
       `expirationTime` value by the number of seconds described here.<br/>
       If, however, the `autoRenewAccount` lacks sufficient HBAR balance
       to pay renewal fees when this topic expires, this topic SHALL be
       deleted after the time period specified in the `AUTORENEW_GRACE_PERIOD`
       configuration value.
       
      .proto.Duration autoRenewPeriod = 7;
    • mergeAutoRenewPeriod

      public ConsensusTopicInfo.Builder mergeAutoRenewPeriod(Duration value)
       *
       A duration, in seconds, to extend the `expirationTime` value when
       this topic is automatically renewed.
       <p>
       If the `autoRenewAccount` value for this topic is set to a valid account
       with sufficient HBAR balance to pay renewal fees when this topic
       expires, the system SHALL automatically renew this topic, extending the
       `expirationTime` value by the number of seconds described here.<br/>
       If, however, the `autoRenewAccount` lacks sufficient HBAR balance
       to pay renewal fees when this topic expires, this topic SHALL be
       deleted after the time period specified in the `AUTORENEW_GRACE_PERIOD`
       configuration value.
       
      .proto.Duration autoRenewPeriod = 7;
    • clearAutoRenewPeriod

      public ConsensusTopicInfo.Builder clearAutoRenewPeriod()
       *
       A duration, in seconds, to extend the `expirationTime` value when
       this topic is automatically renewed.
       <p>
       If the `autoRenewAccount` value for this topic is set to a valid account
       with sufficient HBAR balance to pay renewal fees when this topic
       expires, the system SHALL automatically renew this topic, extending the
       `expirationTime` value by the number of seconds described here.<br/>
       If, however, the `autoRenewAccount` lacks sufficient HBAR balance
       to pay renewal fees when this topic expires, this topic SHALL be
       deleted after the time period specified in the `AUTORENEW_GRACE_PERIOD`
       configuration value.
       
      .proto.Duration autoRenewPeriod = 7;
    • hasAutoRenewAccount

      public boolean hasAutoRenewAccount()
       *
       An account that is designated to pay automatic renewal fees.
       <p>
       If this value is a valid account ID when this topic expires,
       this account SHALL be charged the renewal fees for this topic,
       if it holds sufficient HBAR balance. If the account does not hold
       sufficient HBAR balance to pay renewal fees when necessary, then
       this topic SHALL be deleted.<br/>
       If this value is not set (null), or is not a valid account ID, when
       this topic expires, then this topic SHALL be deleted after the time
       period specified in the `AUTORENEW_GRACE_PERIOD` configuration value.
       
      .proto.AccountID autoRenewAccount = 8;
      Specified by:
      hasAutoRenewAccount in interface ConsensusTopicInfoOrBuilder
      Returns:
      Whether the autoRenewAccount field is set.
    • getAutoRenewAccount

      public AccountID getAutoRenewAccount()
       *
       An account that is designated to pay automatic renewal fees.
       <p>
       If this value is a valid account ID when this topic expires,
       this account SHALL be charged the renewal fees for this topic,
       if it holds sufficient HBAR balance. If the account does not hold
       sufficient HBAR balance to pay renewal fees when necessary, then
       this topic SHALL be deleted.<br/>
       If this value is not set (null), or is not a valid account ID, when
       this topic expires, then this topic SHALL be deleted after the time
       period specified in the `AUTORENEW_GRACE_PERIOD` configuration value.
       
      .proto.AccountID autoRenewAccount = 8;
      Specified by:
      getAutoRenewAccount in interface ConsensusTopicInfoOrBuilder
      Returns:
      The autoRenewAccount.
    • setAutoRenewAccount

      public ConsensusTopicInfo.Builder setAutoRenewAccount(AccountID value)
       *
       An account that is designated to pay automatic renewal fees.
       <p>
       If this value is a valid account ID when this topic expires,
       this account SHALL be charged the renewal fees for this topic,
       if it holds sufficient HBAR balance. If the account does not hold
       sufficient HBAR balance to pay renewal fees when necessary, then
       this topic SHALL be deleted.<br/>
       If this value is not set (null), or is not a valid account ID, when
       this topic expires, then this topic SHALL be deleted after the time
       period specified in the `AUTORENEW_GRACE_PERIOD` configuration value.
       
      .proto.AccountID autoRenewAccount = 8;
    • setAutoRenewAccount

      public ConsensusTopicInfo.Builder setAutoRenewAccount(AccountID.Builder builderForValue)
       *
       An account that is designated to pay automatic renewal fees.
       <p>
       If this value is a valid account ID when this topic expires,
       this account SHALL be charged the renewal fees for this topic,
       if it holds sufficient HBAR balance. If the account does not hold
       sufficient HBAR balance to pay renewal fees when necessary, then
       this topic SHALL be deleted.<br/>
       If this value is not set (null), or is not a valid account ID, when
       this topic expires, then this topic SHALL be deleted after the time
       period specified in the `AUTORENEW_GRACE_PERIOD` configuration value.
       
      .proto.AccountID autoRenewAccount = 8;
    • mergeAutoRenewAccount

      public ConsensusTopicInfo.Builder mergeAutoRenewAccount(AccountID value)
       *
       An account that is designated to pay automatic renewal fees.
       <p>
       If this value is a valid account ID when this topic expires,
       this account SHALL be charged the renewal fees for this topic,
       if it holds sufficient HBAR balance. If the account does not hold
       sufficient HBAR balance to pay renewal fees when necessary, then
       this topic SHALL be deleted.<br/>
       If this value is not set (null), or is not a valid account ID, when
       this topic expires, then this topic SHALL be deleted after the time
       period specified in the `AUTORENEW_GRACE_PERIOD` configuration value.
       
      .proto.AccountID autoRenewAccount = 8;
    • clearAutoRenewAccount

      public ConsensusTopicInfo.Builder clearAutoRenewAccount()
       *
       An account that is designated to pay automatic renewal fees.
       <p>
       If this value is a valid account ID when this topic expires,
       this account SHALL be charged the renewal fees for this topic,
       if it holds sufficient HBAR balance. If the account does not hold
       sufficient HBAR balance to pay renewal fees when necessary, then
       this topic SHALL be deleted.<br/>
       If this value is not set (null), or is not a valid account ID, when
       this topic expires, then this topic SHALL be deleted after the time
       period specified in the `AUTORENEW_GRACE_PERIOD` configuration value.
       
      .proto.AccountID autoRenewAccount = 8;
    • getLedgerId

      public com.google.protobuf.ByteString getLedgerId()
       *
       A ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 9;
      Specified by:
      getLedgerId in interface ConsensusTopicInfoOrBuilder
      Returns:
      The ledgerId.
    • setLedgerId

      public ConsensusTopicInfo.Builder setLedgerId(com.google.protobuf.ByteString value)
       *
       A ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 9;
      Parameters:
      value - The ledgerId to set.
      Returns:
      This builder for chaining.
    • clearLedgerId

      public ConsensusTopicInfo.Builder clearLedgerId()
       *
       A ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 9;
      Returns:
      This builder for chaining.
    • hasFeeScheduleKey

      public boolean hasFeeScheduleKey()
       *
       Access control for update/delete of custom fees.
       <p>
       If unset, custom fees CANNOT be set for this topic.<br/>
       If not set when the topic is created, this field CANNOT be set via
       update.<br/>
       If set when the topic is created, this field MAY be changed via update.
       
      .proto.Key fee_schedule_key = 10;
      Specified by:
      hasFeeScheduleKey in interface ConsensusTopicInfoOrBuilder
      Returns:
      Whether the feeScheduleKey field is set.
    • getFeeScheduleKey

      public Key getFeeScheduleKey()
       *
       Access control for update/delete of custom fees.
       <p>
       If unset, custom fees CANNOT be set for this topic.<br/>
       If not set when the topic is created, this field CANNOT be set via
       update.<br/>
       If set when the topic is created, this field MAY be changed via update.
       
      .proto.Key fee_schedule_key = 10;
      Specified by:
      getFeeScheduleKey in interface ConsensusTopicInfoOrBuilder
      Returns:
      The feeScheduleKey.
    • setFeeScheduleKey

      public ConsensusTopicInfo.Builder setFeeScheduleKey(Key value)
       *
       Access control for update/delete of custom fees.
       <p>
       If unset, custom fees CANNOT be set for this topic.<br/>
       If not set when the topic is created, this field CANNOT be set via
       update.<br/>
       If set when the topic is created, this field MAY be changed via update.
       
      .proto.Key fee_schedule_key = 10;
    • setFeeScheduleKey

      public ConsensusTopicInfo.Builder setFeeScheduleKey(Key.Builder builderForValue)
       *
       Access control for update/delete of custom fees.
       <p>
       If unset, custom fees CANNOT be set for this topic.<br/>
       If not set when the topic is created, this field CANNOT be set via
       update.<br/>
       If set when the topic is created, this field MAY be changed via update.
       
      .proto.Key fee_schedule_key = 10;
    • mergeFeeScheduleKey

      public ConsensusTopicInfo.Builder mergeFeeScheduleKey(Key value)
       *
       Access control for update/delete of custom fees.
       <p>
       If unset, custom fees CANNOT be set for this topic.<br/>
       If not set when the topic is created, this field CANNOT be set via
       update.<br/>
       If set when the topic is created, this field MAY be changed via update.
       
      .proto.Key fee_schedule_key = 10;
    • clearFeeScheduleKey

      public ConsensusTopicInfo.Builder clearFeeScheduleKey()
       *
       Access control for update/delete of custom fees.
       <p>
       If unset, custom fees CANNOT be set for this topic.<br/>
       If not set when the topic is created, this field CANNOT be set via
       update.<br/>
       If set when the topic is created, this field MAY be changed via update.
       
      .proto.Key fee_schedule_key = 10;
    • getFeeExemptKeyListList

      public List<Key> getFeeExemptKeyListList()
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
      Specified by:
      getFeeExemptKeyListList in interface ConsensusTopicInfoOrBuilder
    • getFeeExemptKeyListCount

      public int getFeeExemptKeyListCount()
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
      Specified by:
      getFeeExemptKeyListCount in interface ConsensusTopicInfoOrBuilder
    • getFeeExemptKeyList

      public Key getFeeExemptKeyList(int index)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
      Specified by:
      getFeeExemptKeyList in interface ConsensusTopicInfoOrBuilder
    • setFeeExemptKeyList

      public ConsensusTopicInfo.Builder setFeeExemptKeyList(int index, Key value)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • setFeeExemptKeyList

      public ConsensusTopicInfo.Builder setFeeExemptKeyList(int index, Key.Builder builderForValue)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • addFeeExemptKeyList

      public ConsensusTopicInfo.Builder addFeeExemptKeyList(Key value)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • addFeeExemptKeyList

      public ConsensusTopicInfo.Builder addFeeExemptKeyList(int index, Key value)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • addFeeExemptKeyList

      public ConsensusTopicInfo.Builder addFeeExemptKeyList(Key.Builder builderForValue)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • addFeeExemptKeyList

      public ConsensusTopicInfo.Builder addFeeExemptKeyList(int index, Key.Builder builderForValue)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • addAllFeeExemptKeyList

      public ConsensusTopicInfo.Builder addAllFeeExemptKeyList(Iterable<? extends Key> values)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • clearFeeExemptKeyList

      public ConsensusTopicInfo.Builder clearFeeExemptKeyList()
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • removeFeeExemptKeyList

      public ConsensusTopicInfo.Builder removeFeeExemptKeyList(int index)
       *
       A set of keys.<br/>
       Keys in this list are permitted to submit messages to this topic without
       paying custom fees associated with this topic.
       <p>
       If a topic submit message is signed by _any_ key included in this set,
       custom fees SHALL NOT be charged for that transaction.<br/>
       `fee_exempt_key_list` MAY contain keys for accounts that are inactive,
       deleted, or non-existent.<br/>
       If not set, there SHALL NOT be any fee-exempt keys.  In particular, the
       following keys SHALL NOT be implicitly or automatically added to this
       list: `adminKey`, `submitKey`, `fee_schedule_key`.
       A `fee_exempt_key_list` MUST NOT contain more than
       `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.
       A `fee_exempt_key_list` MUST NOT contain any duplicate keys.
       
      repeated .proto.Key fee_exempt_key_list = 11;
    • getCustomFeesList

      public List<FixedCustomFee> getCustomFeesList()
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
      Specified by:
      getCustomFeesList in interface ConsensusTopicInfoOrBuilder
    • getCustomFeesCount

      public int getCustomFeesCount()
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
      Specified by:
      getCustomFeesCount in interface ConsensusTopicInfoOrBuilder
    • getCustomFees

      public FixedCustomFee getCustomFees(int index)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
      Specified by:
      getCustomFees in interface ConsensusTopicInfoOrBuilder
    • setCustomFees

      public ConsensusTopicInfo.Builder setCustomFees(int index, FixedCustomFee value)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • setCustomFees

      public ConsensusTopicInfo.Builder setCustomFees(int index, FixedCustomFee.Builder builderForValue)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • addCustomFees

      public ConsensusTopicInfo.Builder addCustomFees(FixedCustomFee value)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • addCustomFees

      public ConsensusTopicInfo.Builder addCustomFees(int index, FixedCustomFee value)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • addCustomFees

      public ConsensusTopicInfo.Builder addCustomFees(FixedCustomFee.Builder builderForValue)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • addCustomFees

      public ConsensusTopicInfo.Builder addCustomFees(int index, FixedCustomFee.Builder builderForValue)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • addAllCustomFees

      public ConsensusTopicInfo.Builder addAllCustomFees(Iterable<? extends FixedCustomFee> values)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • clearCustomFees

      public ConsensusTopicInfo.Builder clearCustomFees()
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;
    • removeCustomFees

      public ConsensusTopicInfo.Builder removeCustomFees(int index)
       *
       A set of custom fee definitions.<br/>
       These are fees to be assessed for each submit to this topic.
       <p>
       Each fee defined in this set SHALL be evaluated for
       each message submitted to this topic, and the resultant
       total assessed fees SHALL be charged.<br/>
       Custom fees defined here SHALL be assessed in addition to the base
       network and node fees.
       
      repeated .proto.FixedCustomFee custom_fees = 12;