// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Unique identifier for a token
*
*
* Protobuf type {@code proto.TokenID}
*/
public final class TokenID extends
com.google.protobuf.GeneratedMessageLite<
TokenID, TokenID.Builder> implements
// @@protoc_insertion_point(message_implements:proto.TokenID)
TokenIDOrBuilder {
private TokenID() {
}
public static final int SHARDNUM_FIELD_NUMBER = 1;
private long shardNum_;
/**
*
**
* A nonnegative shard number
*
*
* int64 shardNum = 1;
* @return The shardNum.
*/
@java.lang.Override
public long getShardNum() {
return shardNum_;
}
/**
*
**
* A nonnegative shard number
*
*
* int64 shardNum = 1;
* @param value The shardNum to set.
*/
private void setShardNum(long value) {
shardNum_ = value;
}
/**
*
**
* A nonnegative shard number
*
*
* int64 shardNum = 1;
*/
private void clearShardNum() {
shardNum_ = 0L;
}
public static final int REALMNUM_FIELD_NUMBER = 2;
private long realmNum_;
/**
*
**
* A nonnegative realm number
*
*
* int64 realmNum = 2;
* @return The realmNum.
*/
@java.lang.Override
public long getRealmNum() {
return realmNum_;
}
/**
*
**
* A nonnegative realm number
*
*
* int64 realmNum = 2;
* @param value The realmNum to set.
*/
private void setRealmNum(long value) {
realmNum_ = value;
}
/**
*
**
* A nonnegative realm number
*
*
* int64 realmNum = 2;
*/
private void clearRealmNum() {
realmNum_ = 0L;
}
public static final int TOKENNUM_FIELD_NUMBER = 3;
private long tokenNum_;
/**
*
**
* A nonnegative token number
*
*
* int64 tokenNum = 3;
* @return The tokenNum.
*/
@java.lang.Override
public long getTokenNum() {
return tokenNum_;
}
/**
*
**
* A nonnegative token number
*
*
* int64 tokenNum = 3;
* @param value The tokenNum to set.
*/
private void setTokenNum(long value) {
tokenNum_ = value;
}
/**
*
**
* A nonnegative token number
*
*
* int64 tokenNum = 3;
*/
private void clearTokenNum() {
tokenNum_ = 0L;
}
public static com.hedera.hashgraph.sdk.proto.TokenID 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.TokenID 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.TokenID 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.TokenID 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.TokenID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TokenID 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.TokenID 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.TokenID 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.TokenID parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenID 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.TokenID 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.TokenID 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.TokenID prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* Unique identifier for a token
*
*
* Protobuf type {@code proto.TokenID}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.TokenID, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.TokenID)
com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.TokenID.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* A nonnegative shard number
*
*
* int64 shardNum = 1;
* @return The shardNum.
*/
@java.lang.Override
public long getShardNum() {
return instance.getShardNum();
}
/**
*
**
* A nonnegative shard number
*
*
* 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;
}
/**
*
**
* A nonnegative shard number
*
*
* int64 shardNum = 1;
* @return This builder for chaining.
*/
public Builder clearShardNum() {
copyOnWrite();
instance.clearShardNum();
return this;
}
/**
*
**
* A nonnegative realm number
*
*
* int64 realmNum = 2;
* @return The realmNum.
*/
@java.lang.Override
public long getRealmNum() {
return instance.getRealmNum();
}
/**
*
**
* A nonnegative realm number
*
*
* 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;
}
/**
*
**
* A nonnegative realm number
*
*
* int64 realmNum = 2;
* @return This builder for chaining.
*/
public Builder clearRealmNum() {
copyOnWrite();
instance.clearRealmNum();
return this;
}
/**
*
**
* A nonnegative token number
*
*
* int64 tokenNum = 3;
* @return The tokenNum.
*/
@java.lang.Override
public long getTokenNum() {
return instance.getTokenNum();
}
/**
*
**
* A nonnegative token number
*
*
* int64 tokenNum = 3;
* @param value The tokenNum to set.
* @return This builder for chaining.
*/
public Builder setTokenNum(long value) {
copyOnWrite();
instance.setTokenNum(value);
return this;
}
/**
*
**
* A nonnegative token number
*
*
* int64 tokenNum = 3;
* @return This builder for chaining.
*/
public Builder clearTokenNum() {
copyOnWrite();
instance.clearTokenNum();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.TokenID)
}
@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.TokenID();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"shardNum_",
"realmNum_",
"tokenNum_",
};
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.TokenID.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.TokenID)
private static final com.hedera.hashgraph.sdk.proto.TokenID DEFAULT_INSTANCE;
static {
TokenID defaultInstance = new TokenID();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TokenID.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.TokenID getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}