com.hedera.hashgraph.sdk.proto.TokenRelationship Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
// Protobuf Java Version: 3.25.4
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Token's information related to the given Account
*
*
* Protobuf type {@code proto.TokenRelationship}
*/
public final class TokenRelationship extends
com.google.protobuf.GeneratedMessageLite<
TokenRelationship, TokenRelationship.Builder> implements
// @@protoc_insertion_point(message_implements:proto.TokenRelationship)
TokenRelationshipOrBuilder {
private TokenRelationship() {
symbol_ = "";
}
private int bitField0_;
public static final int TOKENID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.TokenID tokenId_;
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public boolean hasTokenId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() {
return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
private void setTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
tokenId_ = value;
bitField0_ |= 0x00000001;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
if (tokenId_ != null &&
tokenId_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) {
tokenId_ =
com.hedera.hashgraph.sdk.proto.TokenID.newBuilder(tokenId_).mergeFrom(value).buildPartial();
} else {
tokenId_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
private void clearTokenId() { tokenId_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int SYMBOL_FIELD_NUMBER = 2;
private java.lang.String symbol_;
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
return symbol_;
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(symbol_);
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @param value The symbol to set.
*/
private void setSymbol(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
symbol_ = value;
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
*/
private void clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @param value The bytes for symbol to set.
*/
private void setSymbolBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
symbol_ = value.toStringUtf8();
}
public static final int BALANCE_FIELD_NUMBER = 3;
private long balance_;
/**
*
**
* For token of type FUNGIBLE_COMMON - the balance that the Account holds in the smallest
* denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of NFTs held by the account
*
*
* uint64 balance = 3;
* @return The balance.
*/
@java.lang.Override
public long getBalance() {
return balance_;
}
/**
*
**
* For token of type FUNGIBLE_COMMON - the balance that the Account holds in the smallest
* denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of NFTs held by the account
*
*
* uint64 balance = 3;
* @param value The balance to set.
*/
private void setBalance(long value) {
balance_ = value;
}
/**
*
**
* For token of type FUNGIBLE_COMMON - the balance that the Account holds in the smallest
* denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of NFTs held by the account
*
*
* uint64 balance = 3;
*/
private void clearBalance() {
balance_ = 0L;
}
public static final int KYCSTATUS_FIELD_NUMBER = 4;
private int kycStatus_;
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @return The enum numeric value on the wire for kycStatus.
*/
@java.lang.Override
public int getKycStatusValue() {
return kycStatus_;
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @return The kycStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenKycStatus getKycStatus() {
com.hedera.hashgraph.sdk.proto.TokenKycStatus result = com.hedera.hashgraph.sdk.proto.TokenKycStatus.forNumber(kycStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenKycStatus.UNRECOGNIZED : result;
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @param value The enum numeric value on the wire for kycStatus to set.
*/
private void setKycStatusValue(int value) {
kycStatus_ = value;
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @param value The kycStatus to set.
*/
private void setKycStatus(com.hedera.hashgraph.sdk.proto.TokenKycStatus value) {
kycStatus_ = value.getNumber();
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
*/
private void clearKycStatus() {
kycStatus_ = 0;
}
public static final int FREEZESTATUS_FIELD_NUMBER = 5;
private int freezeStatus_;
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @return The enum numeric value on the wire for freezeStatus.
*/
@java.lang.Override
public int getFreezeStatusValue() {
return freezeStatus_;
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @return The freezeStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenFreezeStatus getFreezeStatus() {
com.hedera.hashgraph.sdk.proto.TokenFreezeStatus result = com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.forNumber(freezeStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.UNRECOGNIZED : result;
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @param value The enum numeric value on the wire for freezeStatus to set.
*/
private void setFreezeStatusValue(int value) {
freezeStatus_ = value;
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @param value The freezeStatus to set.
*/
private void setFreezeStatus(com.hedera.hashgraph.sdk.proto.TokenFreezeStatus value) {
freezeStatus_ = value.getNumber();
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
*/
private void clearFreezeStatus() {
freezeStatus_ = 0;
}
public static final int DECIMALS_FIELD_NUMBER = 6;
private int decimals_;
/**
*
**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*
*
* uint32 decimals = 6;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return decimals_;
}
/**
*
**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*
*
* uint32 decimals = 6;
* @param value The decimals to set.
*/
private void setDecimals(int value) {
decimals_ = value;
}
/**
*
**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*
*
* uint32 decimals = 6;
*/
private void clearDecimals() {
decimals_ = 0;
}
public static final int AUTOMATIC_ASSOCIATION_FIELD_NUMBER = 7;
private boolean automaticAssociation_;
/**
*
**
* Specifies if the relationship is created implicitly. False : explicitly associated, True :
* implicitly associated.
*
*
* bool automatic_association = 7;
* @return The automaticAssociation.
*/
@java.lang.Override
public boolean getAutomaticAssociation() {
return automaticAssociation_;
}
/**
*
**
* Specifies if the relationship is created implicitly. False : explicitly associated, True :
* implicitly associated.
*
*
* bool automatic_association = 7;
* @param value The automaticAssociation to set.
*/
private void setAutomaticAssociation(boolean value) {
automaticAssociation_ = value;
}
/**
*
**
* Specifies if the relationship is created implicitly. False : explicitly associated, True :
* implicitly associated.
*
*
* bool automatic_association = 7;
*/
private void clearAutomaticAssociation() {
automaticAssociation_ = false;
}
public static com.hedera.hashgraph.sdk.proto.TokenRelationship 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.TokenRelationship 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.TokenRelationship 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.TokenRelationship 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.TokenRelationship parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TokenRelationship 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.TokenRelationship 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.TokenRelationship 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.TokenRelationship parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenRelationship 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.TokenRelationship 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.TokenRelationship 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.TokenRelationship prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* Token's information related to the given Account
*
*
* Protobuf type {@code proto.TokenRelationship}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.TokenRelationship, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.TokenRelationship)
com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.TokenRelationship.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public boolean hasTokenId() {
return instance.hasTokenId();
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() {
return instance.getTokenId();
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder setTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.setTokenId(value);
return this;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder setTokenId(
com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) {
copyOnWrite();
instance.setTokenId(builderForValue.build());
return this;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder mergeTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.mergeTokenId(value);
return this;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder clearTokenId() { copyOnWrite();
instance.clearTokenId();
return this;
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
return instance.getSymbol();
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
return instance.getSymbolBytes();
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @param value The symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbol(
java.lang.String value) {
copyOnWrite();
instance.setSymbol(value);
return this;
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
copyOnWrite();
instance.clearSymbol();
return this;
}
/**
*
**
* The Symbol of the token
*
*
* string symbol = 2;
* @param value The bytes for symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSymbolBytes(value);
return this;
}
/**
*
**
* For token of type FUNGIBLE_COMMON - the balance that the Account holds in the smallest
* denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of NFTs held by the account
*
*
* uint64 balance = 3;
* @return The balance.
*/
@java.lang.Override
public long getBalance() {
return instance.getBalance();
}
/**
*
**
* For token of type FUNGIBLE_COMMON - the balance that the Account holds in the smallest
* denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of NFTs held by the account
*
*
* uint64 balance = 3;
* @param value The balance to set.
* @return This builder for chaining.
*/
public Builder setBalance(long value) {
copyOnWrite();
instance.setBalance(value);
return this;
}
/**
*
**
* For token of type FUNGIBLE_COMMON - the balance that the Account holds in the smallest
* denomination. For token of type NON_FUNGIBLE_UNIQUE - the number of NFTs held by the account
*
*
* uint64 balance = 3;
* @return This builder for chaining.
*/
public Builder clearBalance() {
copyOnWrite();
instance.clearBalance();
return this;
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @return The enum numeric value on the wire for kycStatus.
*/
@java.lang.Override
public int getKycStatusValue() {
return instance.getKycStatusValue();
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @param value The kycStatus to set.
* @return This builder for chaining.
*/
public Builder setKycStatusValue(int value) {
copyOnWrite();
instance.setKycStatusValue(value);
return this;
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @return The kycStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenKycStatus getKycStatus() {
return instance.getKycStatus();
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @param value The enum numeric value on the wire for kycStatus to set.
* @return This builder for chaining.
*/
public Builder setKycStatus(com.hedera.hashgraph.sdk.proto.TokenKycStatus value) {
copyOnWrite();
instance.setKycStatus(value);
return this;
}
/**
*
**
* The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does not
* have KYC key, KycNotApplicable is returned
*
*
* .proto.TokenKycStatus kycStatus = 4;
* @return This builder for chaining.
*/
public Builder clearKycStatus() {
copyOnWrite();
instance.clearKycStatus();
return this;
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @return The enum numeric value on the wire for freezeStatus.
*/
@java.lang.Override
public int getFreezeStatusValue() {
return instance.getFreezeStatusValue();
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @param value The freezeStatus to set.
* @return This builder for chaining.
*/
public Builder setFreezeStatusValue(int value) {
copyOnWrite();
instance.setFreezeStatusValue(value);
return this;
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @return The freezeStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenFreezeStatus getFreezeStatus() {
return instance.getFreezeStatus();
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @param value The enum numeric value on the wire for freezeStatus to set.
* @return This builder for chaining.
*/
public Builder setFreezeStatus(com.hedera.hashgraph.sdk.proto.TokenFreezeStatus value) {
copyOnWrite();
instance.setFreezeStatus(value);
return this;
}
/**
*
**
* The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token does
* not have Freeze key, FreezeNotApplicable is returned
*
*
* .proto.TokenFreezeStatus freezeStatus = 5;
* @return This builder for chaining.
*/
public Builder clearFreezeStatus() {
copyOnWrite();
instance.clearFreezeStatus();
return this;
}
/**
*
**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*
*
* uint32 decimals = 6;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return instance.getDecimals();
}
/**
*
**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*
*
* uint32 decimals = 6;
* @param value The decimals to set.
* @return This builder for chaining.
*/
public Builder setDecimals(int value) {
copyOnWrite();
instance.setDecimals(value);
return this;
}
/**
*
**
* Tokens divide into <tt>10<sup>decimals</sup></tt> pieces
*
*
* uint32 decimals = 6;
* @return This builder for chaining.
*/
public Builder clearDecimals() {
copyOnWrite();
instance.clearDecimals();
return this;
}
/**
*
**
* Specifies if the relationship is created implicitly. False : explicitly associated, True :
* implicitly associated.
*
*
* bool automatic_association = 7;
* @return The automaticAssociation.
*/
@java.lang.Override
public boolean getAutomaticAssociation() {
return instance.getAutomaticAssociation();
}
/**
*
**
* Specifies if the relationship is created implicitly. False : explicitly associated, True :
* implicitly associated.
*
*
* bool automatic_association = 7;
* @param value The automaticAssociation to set.
* @return This builder for chaining.
*/
public Builder setAutomaticAssociation(boolean value) {
copyOnWrite();
instance.setAutomaticAssociation(value);
return this;
}
/**
*
**
* Specifies if the relationship is created implicitly. False : explicitly associated, True :
* implicitly associated.
*
*
* bool automatic_association = 7;
* @return This builder for chaining.
*/
public Builder clearAutomaticAssociation() {
copyOnWrite();
instance.clearAutomaticAssociation();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.TokenRelationship)
}
@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.TokenRelationship();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"tokenId_",
"symbol_",
"balance_",
"kycStatus_",
"freezeStatus_",
"decimals_",
"automaticAssociation_",
};
java.lang.String info =
"\u0000\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\u0208\u0003\u0003\u0004\f\u0005\f\u0006\u000b\u0007\u0007";
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.TokenRelationship.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.TokenRelationship)
private static final com.hedera.hashgraph.sdk.proto.TokenRelationship DEFAULT_INSTANCE;
static {
TokenRelationship defaultInstance = new TokenRelationship();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TokenRelationship.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.TokenRelationship getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}