Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ConsensusUpdateTopicTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<ConsensusUpdateTopicTransactionBody,ConsensusUpdateTopicTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<ConsensusUpdateTopicTransactionBody,ConsensusUpdateTopicTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.ConsensusUpdateTopicTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ConsensusUpdateTopicTransactionBodyOrBuilder
@Generated
public final class ConsensusUpdateTopicTransactionBody
extends com.google.protobuf.GeneratedMessageLite<ConsensusUpdateTopicTransactionBody,ConsensusUpdateTopicTransactionBody.Builder>
implements ConsensusUpdateTopicTransactionBodyOrBuilder
* Update the fields of an existing HCS topic. The topicID field is REQUIRED. All other fields are OPTIONAL.<br/> Fields set on this transaction SHALL be updated.<br/> Fields _not_ set on this transaction SHALL NOT be updated. ### Block Stream Effects NoneProtobuf type
proto.ConsensusUpdateTopicTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Update the fields of an existing HCS topic.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) * Updated access control for modification of the topic.* An updated ID for the account to be charged renewal fees at the topic's `expirationTime` to extend the lifetime of the topic.An updated value for the number of seconds by which the topic expiration will be automatically extended upon expiration, if it has a valid auto-renew account.* A set of custom fee definitions.<br/> These are fees to be assessed for each submit to this topic.* An updated expiration time for this topic, in seconds since the epoch.* 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.* Access control for update/delete of custom fees.com.google.protobuf.StringValuegetMemo()* An updated memo to be associated with this topic.* Updated access control for message submission to the topic.* The topic ID specifying the topic to update.boolean* Updated access control for modification of the topic.boolean* An updated ID for the account to be charged renewal fees at the topic's `expirationTime` to extend the lifetime of the topic.booleanAn updated value for the number of seconds by which the topic expiration will be automatically extended upon expiration, if it has a valid auto-renew account.boolean* A set of custom fee definitions.<br/> These are fees to be assessed for each submit to this topic.boolean* An updated expiration time for this topic, in seconds since the epoch.boolean* 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.boolean* Access control for update/delete of custom fees.booleanhasMemo()* An updated memo to be associated with this topic.boolean* Updated access control for message submission to the topic.boolean* The topic ID specifying the topic to update.newBuilder(ConsensusUpdateTopicTransactionBody prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ConsensusUpdateTopicTransactionBody> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
TOPICID_FIELD_NUMBER
public static final int TOPICID_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
EXPIRATIONTIME_FIELD_NUMBER
public static final int EXPIRATIONTIME_FIELD_NUMBER- See Also:
-
ADMINKEY_FIELD_NUMBER
public static final int ADMINKEY_FIELD_NUMBER- See Also:
-
SUBMITKEY_FIELD_NUMBER
public static final int SUBMITKEY_FIELD_NUMBER- See Also:
-
AUTORENEWPERIOD_FIELD_NUMBER
public static final int AUTORENEWPERIOD_FIELD_NUMBER- See Also:
-
AUTORENEWACCOUNT_FIELD_NUMBER
public static final int AUTORENEWACCOUNT_FIELD_NUMBER- See Also:
-
FEE_SCHEDULE_KEY_FIELD_NUMBER
public static final int FEE_SCHEDULE_KEY_FIELD_NUMBER- See Also:
-
FEE_EXEMPT_KEY_LIST_FIELD_NUMBER
public static final int FEE_EXEMPT_KEY_LIST_FIELD_NUMBER- See Also:
-
CUSTOM_FEES_FIELD_NUMBER
public static final int CUSTOM_FEES_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasTopicID
public boolean hasTopicID()* The topic ID specifying the topic to update. <p> A topic with this ID MUST exist and MUST NOT be deleted.<br/> This value is REQUIRED.
.proto.TopicID topicID = 1;- Specified by:
hasTopicIDin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the topicID field is set.
-
getTopicID
* The topic ID specifying the topic to update. <p> A topic with this ID MUST exist and MUST NOT be deleted.<br/> This value is REQUIRED.
.proto.TopicID topicID = 1;- Specified by:
getTopicIDin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The topicID.
-
hasMemo
public boolean hasMemo()* An updated memo to be associated with this topic. <p> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> This value, if set, SHALL be encoded UTF-8 and SHALL NOT exceed 100 bytes when so encoded.
.google.protobuf.StringValue memo = 2;- Specified by:
hasMemoin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the memo field is set.
-
getMemo
public com.google.protobuf.StringValue getMemo()* An updated memo to be associated with this topic. <p> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> This value, if set, SHALL be encoded UTF-8 and SHALL NOT exceed 100 bytes when so encoded.
.google.protobuf.StringValue memo = 2;- Specified by:
getMemoin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The memo.
-
hasExpirationTime
public boolean hasExpirationTime()* An updated 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`.<br/> The expirationTime MUST NOT be greater than the sum of `MAX_AUTORENEW_PERIOD` and the actual consensus timestamp of this transaction.<br/> If `adminKey` is <b>unset</b> for the _topic_, this transaction MUST NOT modify any other field.
.proto.Timestamp expirationTime = 4;- Specified by:
hasExpirationTimein interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
* An updated 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`.<br/> The expirationTime MUST NOT be greater than the sum of `MAX_AUTORENEW_PERIOD` and the actual consensus timestamp of this transaction.<br/> If `adminKey` is <b>unset</b> for the _topic_, this transaction MUST NOT modify any other field.
.proto.Timestamp expirationTime = 4;- Specified by:
getExpirationTimein interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The expirationTime.
-
hasAdminKey
public boolean hasAdminKey()* Updated access control for modification of the topic. <p> If this field is set, that key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the topic SHALL be immutable after this transaction completes, except for expiration and renewal.
.proto.Key adminKey = 6;- Specified by:
hasAdminKeyin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* Updated access control for modification of the topic. <p> If this field is set, that key and the previously set key MUST both sign this transaction.<br/> If this value is an empty `KeyList`, the prior key MUST sign this transaction, and the topic SHALL be immutable after this transaction completes, except for expiration and renewal.
.proto.Key adminKey = 6;- Specified by:
getAdminKeyin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The adminKey.
-
hasSubmitKey
public boolean hasSubmitKey()* Updated access control for message submission to the topic. <p> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> If this value is set to an empty `KeyList`, the `submitKey` for the topic will be unset after this transaction completes. When the `submitKey` is unset, any account may submit a message on the topic, without restriction.
.proto.Key submitKey = 7;- Specified by:
hasSubmitKeyin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the submitKey field is set.
-
getSubmitKey
* Updated access control for message submission to the topic. <p> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> If this value is set to an empty `KeyList`, the `submitKey` for the topic will be unset after this transaction completes. When the `submitKey` is unset, any account may submit a message on the topic, without restriction.
.proto.Key submitKey = 7;- Specified by:
getSubmitKeyin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The submitKey.
-
hasAutoRenewPeriod
public boolean hasAutoRenewPeriod()An updated value for the number of seconds by which the topic expiration will be automatically extended upon expiration, if it has a valid auto-renew account. <p> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> This value, if set, MUST be greater than the configured MIN_AUTORENEW_PERIOD.<br/> This value, if set, MUST be less than the configured MAX_AUTORENEW_PERIOD.
.proto.Duration autoRenewPeriod = 8;- Specified by:
hasAutoRenewPeriodin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the autoRenewPeriod field is set.
-
getAutoRenewPeriod
An updated value for the number of seconds by which the topic expiration will be automatically extended upon expiration, if it has a valid auto-renew account. <p> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> This value, if set, MUST be greater than the configured MIN_AUTORENEW_PERIOD.<br/> This value, if set, MUST be less than the configured MAX_AUTORENEW_PERIOD.
.proto.Duration autoRenewPeriod = 8;- Specified by:
getAutoRenewPeriodin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The autoRenewPeriod.
-
hasAutoRenewAccount
public boolean hasAutoRenewAccount()* An updated ID for the account to be charged renewal fees at the topic's `expirationTime` to extend the lifetime of the topic. <p> If this value is set and not the "sentinel account", the referenced account MUST sign this transaction.<br/> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> If this value is set to the "sentinel account", which is `0.0.0`, the `autoRenewAccount` SHALL be removed from the topic.
.proto.AccountID autoRenewAccount = 9;- Specified by:
hasAutoRenewAccountin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the autoRenewAccount field is set.
-
getAutoRenewAccount
* An updated ID for the account to be charged renewal fees at the topic's `expirationTime` to extend the lifetime of the topic. <p> If this value is set and not the "sentinel account", the referenced account MUST sign this transaction.<br/> If this value is set, the current `adminKey` for the topic MUST sign this transaction.<br/> If this value is set to the "sentinel account", which is `0.0.0`, the `autoRenewAccount` SHALL be removed from the topic.
.proto.AccountID autoRenewAccount = 9;- Specified by:
getAutoRenewAccountin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The autoRenewAccount.
-
hasFeeScheduleKey
public boolean hasFeeScheduleKey()* Access control for update/delete of custom fees. <p> If set, subsequent consensus_update_topic transactions signed with this key MAY update or delete the custom fees for this topic.<br/> If this field is set, the admin key MUST sign this transaction.<br/> If this field is set, the previous value SHALL be replaced.<br/> If set to a 'Key' containing an empty 'KeyList', the previous value SHALL be cleared.<br/> If not set, the current key SHALL NOT change.<br/> If unset in state, this field MUST NOT be set in this transaction.<br/> If not set when the topic is created, this field CANNOT be set via update.<br/>
.proto.Key fee_schedule_key = 10;- Specified by:
hasFeeScheduleKeyin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the feeScheduleKey field is set.
-
getFeeScheduleKey
* Access control for update/delete of custom fees. <p> If set, subsequent consensus_update_topic transactions signed with this key MAY update or delete the custom fees for this topic.<br/> If this field is set, the admin key MUST sign this transaction.<br/> If this field is set, the previous value SHALL be replaced.<br/> If set to a 'Key' containing an empty 'KeyList', the previous value SHALL be cleared.<br/> If not set, the current key SHALL NOT change.<br/> If unset in state, this field MUST NOT be set in this transaction.<br/> If not set when the topic is created, this field CANNOT be set via update.<br/>
.proto.Key fee_schedule_key = 10;- Specified by:
getFeeScheduleKeyin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The feeScheduleKey.
-
hasFeeExemptKeyList
public boolean hasFeeExemptKeyList()* 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 submit transaction is signed by _any_ key included in this set, custom fees SHALL NOT be charged for that transaction.<br/> If this field is not set, the current set of keys SHALL NOT change.<br/> If this field is set, but contains an empty list, any existing fee-exempt keys SHALL be removed.<br/> A `fee_exempt_key_list` MUST NOT contain more than `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.<br/> A `fee_exempt_key_list` MUST NOT contain any duplicate keys.<br/> A `fee_exempt_key_list` MAY contain keys for accounts that are inactive, deleted, or non-existent.
.proto.FeeExemptKeyList fee_exempt_key_list = 11;- Specified by:
hasFeeExemptKeyListin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the feeExemptKeyList field is set.
-
getFeeExemptKeyList
* 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 submit transaction is signed by _any_ key included in this set, custom fees SHALL NOT be charged for that transaction.<br/> If this field is not set, the current set of keys SHALL NOT change.<br/> If this field is set, but contains an empty list, any existing fee-exempt keys SHALL be removed.<br/> A `fee_exempt_key_list` MUST NOT contain more than `MAX_ENTRIES_FOR_FEE_EXEMPT_KEY_LIST` keys.<br/> A `fee_exempt_key_list` MUST NOT contain any duplicate keys.<br/> A `fee_exempt_key_list` MAY contain keys for accounts that are inactive, deleted, or non-existent.
.proto.FeeExemptKeyList fee_exempt_key_list = 11;- Specified by:
getFeeExemptKeyListin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The feeExemptKeyList.
-
hasCustomFees
public boolean hasCustomFees()* 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.<br/> If this field is not set, the current set of custom fees SHALL NOT change.<br/> If this field is set, but contains an empty list, all current custom fees SHALL be removed. custom_fees list SHALL NOT contain more than `MAX_CUSTOM_FEE_ENTRIES_FOR_TOPICS` entries.
.proto.FixedCustomFeeList custom_fees = 12;- Specified by:
hasCustomFeesin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- Whether the customFees field is set.
-
getCustomFees
* 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.<br/> If this field is not set, the current set of custom fees SHALL NOT change.<br/> If this field is set, but contains an empty list, all current custom fees SHALL be removed. custom_fees list SHALL NOT contain more than `MAX_CUSTOM_FEE_ENTRIES_FOR_TOPICS` entries.
.proto.FixedCustomFeeList custom_fees = 12;- Specified by:
getCustomFeesin interfaceConsensusUpdateTopicTransactionBodyOrBuilder- Returns:
- The customFees.
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConsensusUpdateTopicTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConsensusUpdateTopicTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ConsensusUpdateTopicTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static ConsensusUpdateTopicTransactionBody.Builder newBuilder(ConsensusUpdateTopicTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ConsensusUpdateTopicTransactionBody,ConsensusUpdateTopicTransactionBody.Builder>
-
getDefaultInstance
-
parser
-