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

com.hedera.hashgraph.sdk.proto.TopicID Maven / Gradle / Ivy

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

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Unique identifier for a topic (used by the consensus service)
 * 
* * Protobuf type {@code proto.TopicID} */ public final class TopicID extends com.google.protobuf.GeneratedMessageLite< TopicID, TopicID.Builder> implements // @@protoc_insertion_point(message_implements:proto.TopicID) TopicIDOrBuilder { private TopicID() { } public static final int SHARDNUM_FIELD_NUMBER = 1; private long shardNum_; /** *
   **
   * The shard number (nonnegative)
   * 
* * int64 shardNum = 1; * @return The shardNum. */ @java.lang.Override public long getShardNum() { return shardNum_; } /** *
   **
   * The shard number (nonnegative)
   * 
* * int64 shardNum = 1; * @param value The shardNum to set. */ private void setShardNum(long value) { shardNum_ = value; } /** *
   **
   * The shard number (nonnegative)
   * 
* * int64 shardNum = 1; */ private void clearShardNum() { shardNum_ = 0L; } public static final int REALMNUM_FIELD_NUMBER = 2; private long realmNum_; /** *
   **
   * The realm number (nonnegative)
   * 
* * int64 realmNum = 2; * @return The realmNum. */ @java.lang.Override public long getRealmNum() { return realmNum_; } /** *
   **
   * The realm number (nonnegative)
   * 
* * int64 realmNum = 2; * @param value The realmNum to set. */ private void setRealmNum(long value) { realmNum_ = value; } /** *
   **
   * The realm number (nonnegative)
   * 
* * int64 realmNum = 2; */ private void clearRealmNum() { realmNum_ = 0L; } public static final int TOPICNUM_FIELD_NUMBER = 3; private long topicNum_; /** *
   **
   * Unique topic identifier within a realm (nonnegative).
   * 
* * int64 topicNum = 3; * @return The topicNum. */ @java.lang.Override public long getTopicNum() { return topicNum_; } /** *
   **
   * Unique topic identifier within a realm (nonnegative).
   * 
* * int64 topicNum = 3; * @param value The topicNum to set. */ private void setTopicNum(long value) { topicNum_ = value; } /** *
   **
   * Unique topic identifier within a realm (nonnegative).
   * 
* * int64 topicNum = 3; */ private void clearTopicNum() { topicNum_ = 0L; } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TopicID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.TopicID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.TopicID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TopicID prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Unique identifier for a topic (used by the consensus service)
   * 
* * Protobuf type {@code proto.TopicID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.TopicID, Builder> implements // @@protoc_insertion_point(builder_implements:proto.TopicID) com.hedera.hashgraph.sdk.proto.TopicIDOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.TopicID.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The shard number (nonnegative)
     * 
* * int64 shardNum = 1; * @return The shardNum. */ @java.lang.Override public long getShardNum() { return instance.getShardNum(); } /** *
     **
     * The shard number (nonnegative)
     * 
* * int64 shardNum = 1; * @param value The shardNum to set. * @return This builder for chaining. */ public Builder setShardNum(long value) { copyOnWrite(); instance.setShardNum(value); return this; } /** *
     **
     * The shard number (nonnegative)
     * 
* * int64 shardNum = 1; * @return This builder for chaining. */ public Builder clearShardNum() { copyOnWrite(); instance.clearShardNum(); return this; } /** *
     **
     * The realm number (nonnegative)
     * 
* * int64 realmNum = 2; * @return The realmNum. */ @java.lang.Override public long getRealmNum() { return instance.getRealmNum(); } /** *
     **
     * The realm number (nonnegative)
     * 
* * int64 realmNum = 2; * @param value The realmNum to set. * @return This builder for chaining. */ public Builder setRealmNum(long value) { copyOnWrite(); instance.setRealmNum(value); return this; } /** *
     **
     * The realm number (nonnegative)
     * 
* * int64 realmNum = 2; * @return This builder for chaining. */ public Builder clearRealmNum() { copyOnWrite(); instance.clearRealmNum(); return this; } /** *
     **
     * Unique topic identifier within a realm (nonnegative).
     * 
* * int64 topicNum = 3; * @return The topicNum. */ @java.lang.Override public long getTopicNum() { return instance.getTopicNum(); } /** *
     **
     * Unique topic identifier within a realm (nonnegative).
     * 
* * int64 topicNum = 3; * @param value The topicNum to set. * @return This builder for chaining. */ public Builder setTopicNum(long value) { copyOnWrite(); instance.setTopicNum(value); return this; } /** *
     **
     * Unique topic identifier within a realm (nonnegative).
     * 
* * int64 topicNum = 3; * @return This builder for chaining. */ public Builder clearTopicNum() { copyOnWrite(); instance.clearTopicNum(); return this; } // @@protoc_insertion_point(builder_scope:proto.TopicID) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.TopicID(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "shardNum_", "realmNum_", "topicNum_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0002\u0002\u0002" + "\u0003\u0002"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.TopicID.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.TopicID) private static final com.hedera.hashgraph.sdk.proto.TopicID DEFAULT_INSTANCE; static { TopicID defaultInstance = new TopicID(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( TopicID.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.TopicID getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy