java.lang.Object
com.hedera.hashgraph.sdk.TopicInfo
Current state of a topic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal KeyAccess control for update/delete of the topic.final AccountIdThe account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.final DurationIf an auto-renew account is specified, when the topic expires, its lifetime will be extended by up to this duration (depending on the solvency of the auto-renew account).final List<CustomFixedFee> final InstantEffective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic.final Keyfinal LedgerIdThe ledger ID the response was returned from; please see HIP-198 for the network-specific IDs.final com.google.protobuf.ByteStringSHA-384 running hash of (previousRunningHash, topicId, consensusTimestamp, sequenceNumber, message).final longSequence number (starting at 1 for the first submitMessage) of messages on the topic.final KeyAccess control for ConsensusService.submitMessage.final TopicIdThe ID of the topic for which information is requested.final StringShort publicly visible memo about the topic. -
Method Summary
Modifier and TypeMethodDescriptionstatic TopicInfofromBytes(byte[] bytes) Create a topic info object from a byte array.(package private) static TopicInfofromProtobuf(ConsensusGetTopicInfoResponse topicInfoResponse) Create a topic info object from a protobuf.byte[]toBytes()Create the byte array.(package private) ConsensusGetTopicInfoResponseCreate the protobuf.toString()
-
Field Details
-
topicId
The ID of the topic for which information is requested. -
topicMemo
Short publicly visible memo about the topic. No guarantee of uniqueness. -
runningHash
public final com.google.protobuf.ByteString runningHashSHA-384 running hash of (previousRunningHash, topicId, consensusTimestamp, sequenceNumber, message). -
sequenceNumber
public final long sequenceNumberSequence number (starting at 1 for the first submitMessage) of messages on the topic. -
expirationTime
Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic. -
adminKey
Access control for update/delete of the topic. Null if there is no key. -
submitKey
Access control for ConsensusService.submitMessage. Null if there is no key. -
autoRenewPeriod
If an auto-renew account is specified, when the topic expires, its lifetime will be extended by up to this duration (depending on the solvency of the auto-renew account). If the auto-renew account has no funds at all, the topic will be deleted instead. -
autoRenewAccountId
The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry. -
ledgerId
The ledger ID the response was returned from; please see HIP-198 for the network-specific IDs. -
feeScheduleKey
-
feeExemptKeys
-
customFees
-
-
Method Details
-
fromProtobuf
Create a topic info object from a protobuf.- Parameters:
topicInfoResponse- the protobuf- Returns:
- the new topic info object
-
fromBytes
public static TopicInfo fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException Create a topic info object from a byte array.- Parameters:
bytes- the byte array- Returns:
- the new topic info object
- Throws:
com.google.protobuf.InvalidProtocolBufferException- when there is an issue with the protobuf
-
toProtobuf
ConsensusGetTopicInfoResponse toProtobuf()Create the protobuf.- Returns:
- the protobuf representation
-
toString
-
toBytes
public byte[] toBytes()Create the byte array.- Returns:
- the byte array representation
-