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

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

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

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Representation of a Hedera Token Service token relationship entity in the network Merkle tree.
 *
 * As with all network entities, a token relationship has a unique entity number pair, which is represented
 * with the account and the token involved in the relationship.
 * 
* * Protobuf type {@code proto.TokenRelation} */ public final class TokenRelation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TokenRelation) TokenRelationOrBuilder { private static final long serialVersionUID = 0L; // Use TokenRelation.newBuilder() to construct. private TokenRelation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenRelation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TokenRelation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TokenRelationOuterClass.internal_static_proto_TokenRelation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TokenRelationOuterClass.internal_static_proto_TokenRelation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenRelation.class, com.hedera.hashgraph.sdk.proto.TokenRelation.Builder.class); } private int bitField0_; public static final int TOKEN_ID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.TokenID tokenId_; /** *
   **
   * The token involved in this relation.It takes only positive
   * 
* * .proto.TokenID token_id = 1; * @return Whether the tokenId field is set. */ @java.lang.Override public boolean hasTokenId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The token involved in this relation.It takes only positive
   * 
* * .proto.TokenID token_id = 1; * @return The tokenId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } /** *
   **
   * The token involved in this relation.It takes only positive
   * 
* * .proto.TokenID token_id = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenIdOrBuilder() { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } public static final int ACCOUNT_ID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.AccountID accountId_; /** *
   **
   * The account involved in this association.
   * 
* * .proto.AccountID account_id = 2; * @return Whether the accountId field is set. */ @java.lang.Override public boolean hasAccountId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * The account involved in this association.
   * 
* * .proto.AccountID account_id = 2; * @return The accountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } /** *
   **
   * The account involved in this association.
   * 
* * .proto.AccountID account_id = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } public static final int BALANCE_FIELD_NUMBER = 3; private long balance_ = 0L; /** *
   **
   * The balance of the token relationship.
   * 
* * int64 balance = 3; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } public static final int FROZEN_FIELD_NUMBER = 4; private boolean frozen_ = false; /** *
   **
   * The flags specifying the token relationship is frozen or not.
   * 
* * bool frozen = 4; * @return The frozen. */ @java.lang.Override public boolean getFrozen() { return frozen_; } public static final int KYC_GRANTED_FIELD_NUMBER = 5; private boolean kycGranted_ = false; /** *
   **
   * The flag indicating if the token relationship has been granted KYC.
   * 
* * bool kyc_granted = 5; * @return The kycGranted. */ @java.lang.Override public boolean getKycGranted() { return kycGranted_; } public static final int AUTOMATIC_ASSOCIATION_FIELD_NUMBER = 6; private boolean automaticAssociation_ = false; /** *
   **
   * The flag indicating if the token relationship was created using automatic association.
   * 
* * bool automatic_association = 6; * @return The automaticAssociation. */ @java.lang.Override public boolean getAutomaticAssociation() { return automaticAssociation_; } public static final int PREVIOUS_TOKEN_FIELD_NUMBER = 7; private com.hedera.hashgraph.sdk.proto.TokenID previousToken_; /** *
   **
   * The previous token id of account's association linked list
   * 
* * .proto.TokenID previous_token = 7; * @return Whether the previousToken field is set. */ @java.lang.Override public boolean hasPreviousToken() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * The previous token id of account's association linked list
   * 
* * .proto.TokenID previous_token = 7; * @return The previousToken. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenID getPreviousToken() { return previousToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : previousToken_; } /** *
   **
   * The previous token id of account's association linked list
   * 
* * .proto.TokenID previous_token = 7; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getPreviousTokenOrBuilder() { return previousToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : previousToken_; } public static final int NEXT_TOKEN_FIELD_NUMBER = 8; private com.hedera.hashgraph.sdk.proto.TokenID nextToken_; /** *
   **
   * The next token id of account's association linked list
   * 
* * .proto.TokenID next_token = 8; * @return Whether the nextToken field is set. */ @java.lang.Override public boolean hasNextToken() { return ((bitField0_ & 0x00000008) != 0); } /** *
   **
   * The next token id of account's association linked list
   * 
* * .proto.TokenID next_token = 8; * @return The nextToken. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenID getNextToken() { return nextToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : nextToken_; } /** *
   **
   * The next token id of account's association linked list
   * 
* * .proto.TokenID next_token = 8; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getNextTokenOrBuilder() { return nextToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : nextToken_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTokenId()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAccountId()); } if (balance_ != 0L) { output.writeInt64(3, balance_); } if (frozen_ != false) { output.writeBool(4, frozen_); } if (kycGranted_ != false) { output.writeBool(5, kycGranted_); } if (automaticAssociation_ != false) { output.writeBool(6, automaticAssociation_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getPreviousToken()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getNextToken()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTokenId()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAccountId()); } if (balance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, balance_); } if (frozen_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, frozen_); } if (kycGranted_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, kycGranted_); } if (automaticAssociation_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, automaticAssociation_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPreviousToken()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getNextToken()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.TokenRelation)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.TokenRelation other = (com.hedera.hashgraph.sdk.proto.TokenRelation) obj; if (hasTokenId() != other.hasTokenId()) return false; if (hasTokenId()) { if (!getTokenId() .equals(other.getTokenId())) return false; } if (hasAccountId() != other.hasAccountId()) return false; if (hasAccountId()) { if (!getAccountId() .equals(other.getAccountId())) return false; } if (getBalance() != other.getBalance()) return false; if (getFrozen() != other.getFrozen()) return false; if (getKycGranted() != other.getKycGranted()) return false; if (getAutomaticAssociation() != other.getAutomaticAssociation()) return false; if (hasPreviousToken() != other.hasPreviousToken()) return false; if (hasPreviousToken()) { if (!getPreviousToken() .equals(other.getPreviousToken())) return false; } if (hasNextToken() != other.hasNextToken()) return false; if (hasNextToken()) { if (!getNextToken() .equals(other.getNextToken())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTokenId()) { hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getTokenId().hashCode(); } if (hasAccountId()) { hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); } hash = (37 * hash) + BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBalance()); hash = (37 * hash) + FROZEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFrozen()); hash = (37 * hash) + KYC_GRANTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKycGranted()); hash = (37 * hash) + AUTOMATIC_ASSOCIATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutomaticAssociation()); if (hasPreviousToken()) { hash = (37 * hash) + PREVIOUS_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPreviousToken().hashCode(); } if (hasNextToken()) { hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextToken().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TokenRelation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TokenRelation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * Representation of a Hedera Token Service token relationship entity in the network Merkle tree.
   *
   * As with all network entities, a token relationship has a unique entity number pair, which is represented
   * with the account and the token involved in the relationship.
   * 
* * Protobuf type {@code proto.TokenRelation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TokenRelation) com.hedera.hashgraph.sdk.proto.TokenRelationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TokenRelationOuterClass.internal_static_proto_TokenRelation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TokenRelationOuterClass.internal_static_proto_TokenRelation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenRelation.class, com.hedera.hashgraph.sdk.proto.TokenRelation.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.TokenRelation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTokenIdFieldBuilder(); getAccountIdFieldBuilder(); getPreviousTokenFieldBuilder(); getNextTokenFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tokenId_ = null; if (tokenIdBuilder_ != null) { tokenIdBuilder_.dispose(); tokenIdBuilder_ = null; } accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } balance_ = 0L; frozen_ = false; kycGranted_ = false; automaticAssociation_ = false; previousToken_ = null; if (previousTokenBuilder_ != null) { previousTokenBuilder_.dispose(); previousTokenBuilder_ = null; } nextToken_ = null; if (nextTokenBuilder_ != null) { nextTokenBuilder_.dispose(); nextTokenBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.TokenRelationOuterClass.internal_static_proto_TokenRelation_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenRelation getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.TokenRelation.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenRelation build() { com.hedera.hashgraph.sdk.proto.TokenRelation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenRelation buildPartial() { com.hedera.hashgraph.sdk.proto.TokenRelation result = new com.hedera.hashgraph.sdk.proto.TokenRelation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.TokenRelation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tokenId_ = tokenIdBuilder_ == null ? tokenId_ : tokenIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.accountId_ = accountIdBuilder_ == null ? accountId_ : accountIdBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.balance_ = balance_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.frozen_ = frozen_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.kycGranted_ = kycGranted_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.automaticAssociation_ = automaticAssociation_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.previousToken_ = previousTokenBuilder_ == null ? previousToken_ : previousTokenBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.nextToken_ = nextTokenBuilder_ == null ? nextToken_ : nextTokenBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.TokenRelation) { return mergeFrom((com.hedera.hashgraph.sdk.proto.TokenRelation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TokenRelation other) { if (other == com.hedera.hashgraph.sdk.proto.TokenRelation.getDefaultInstance()) return this; if (other.hasTokenId()) { mergeTokenId(other.getTokenId()); } if (other.hasAccountId()) { mergeAccountId(other.getAccountId()); } if (other.getBalance() != 0L) { setBalance(other.getBalance()); } if (other.getFrozen() != false) { setFrozen(other.getFrozen()); } if (other.getKycGranted() != false) { setKycGranted(other.getKycGranted()); } if (other.getAutomaticAssociation() != false) { setAutomaticAssociation(other.getAutomaticAssociation()); } if (other.hasPreviousToken()) { mergePreviousToken(other.getPreviousToken()); } if (other.hasNextToken()) { mergeNextToken(other.getNextToken()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTokenIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { balance_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { frozen_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { kycGranted_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { automaticAssociation_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage( getPreviousTokenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getNextTokenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.TokenID tokenId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> tokenIdBuilder_; /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; * @return Whether the tokenId field is set. */ public boolean hasTokenId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; * @return The tokenId. */ public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() { if (tokenIdBuilder_ == null) { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } else { return tokenIdBuilder_.getMessage(); } } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; */ public Builder setTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tokenId_ = value; } else { tokenIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; */ public Builder setTokenId( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (tokenIdBuilder_ == null) { tokenId_ = builderForValue.build(); } else { tokenIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; */ public Builder mergeTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tokenId_ != null && tokenId_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) { getTokenIdBuilder().mergeFrom(value); } else { tokenId_ = value; } } else { tokenIdBuilder_.mergeFrom(value); } if (tokenId_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000001); tokenId_ = null; if (tokenIdBuilder_ != null) { tokenIdBuilder_.dispose(); tokenIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; */ public com.hedera.hashgraph.sdk.proto.TokenID.Builder getTokenIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTokenIdFieldBuilder().getBuilder(); } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; */ public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenIdOrBuilder() { if (tokenIdBuilder_ != null) { return tokenIdBuilder_.getMessageOrBuilder(); } else { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } } /** *
     **
     * The token involved in this relation.It takes only positive
     * 
* * .proto.TokenID token_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> getTokenIdFieldBuilder() { if (tokenIdBuilder_ == null) { tokenIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>( getTokenId(), getParentForChildren(), isClean()); tokenId_ = null; } return tokenIdBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID accountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIdBuilder_; /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; * @return Whether the accountId field is set. */ public boolean hasAccountId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; * @return The accountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { if (accountIdBuilder_ == null) { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } else { return accountIdBuilder_.getMessage(); } } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; */ public Builder setAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountId_ = value; } else { accountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; */ public Builder setAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (accountIdBuilder_ == null) { accountId_ = builderForValue.build(); } else { accountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; */ public Builder mergeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && accountId_ != null && accountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAccountIdBuilder().mergeFrom(value); } else { accountId_ = value; } } else { accountIdBuilder_.mergeFrom(value); } if (accountId_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000002); accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { if (accountIdBuilder_ != null) { return accountIdBuilder_.getMessageOrBuilder(); } else { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } } /** *
     **
     * The account involved in this association.
     * 
* * .proto.AccountID account_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAccountIdFieldBuilder() { if (accountIdBuilder_ == null) { accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAccountId(), getParentForChildren(), isClean()); accountId_ = null; } return accountIdBuilder_; } private long balance_ ; /** *
     **
     * The balance of the token relationship.
     * 
* * int64 balance = 3; * @return The balance. */ @java.lang.Override public long getBalance() { return balance_; } /** *
     **
     * The balance of the token relationship.
     * 
* * int64 balance = 3; * @param value The balance to set. * @return This builder for chaining. */ public Builder setBalance(long value) { balance_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The balance of the token relationship.
     * 
* * int64 balance = 3; * @return This builder for chaining. */ public Builder clearBalance() { bitField0_ = (bitField0_ & ~0x00000004); balance_ = 0L; onChanged(); return this; } private boolean frozen_ ; /** *
     **
     * The flags specifying the token relationship is frozen or not.
     * 
* * bool frozen = 4; * @return The frozen. */ @java.lang.Override public boolean getFrozen() { return frozen_; } /** *
     **
     * The flags specifying the token relationship is frozen or not.
     * 
* * bool frozen = 4; * @param value The frozen to set. * @return This builder for chaining. */ public Builder setFrozen(boolean value) { frozen_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The flags specifying the token relationship is frozen or not.
     * 
* * bool frozen = 4; * @return This builder for chaining. */ public Builder clearFrozen() { bitField0_ = (bitField0_ & ~0x00000008); frozen_ = false; onChanged(); return this; } private boolean kycGranted_ ; /** *
     **
     * The flag indicating if the token relationship has been granted KYC.
     * 
* * bool kyc_granted = 5; * @return The kycGranted. */ @java.lang.Override public boolean getKycGranted() { return kycGranted_; } /** *
     **
     * The flag indicating if the token relationship has been granted KYC.
     * 
* * bool kyc_granted = 5; * @param value The kycGranted to set. * @return This builder for chaining. */ public Builder setKycGranted(boolean value) { kycGranted_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The flag indicating if the token relationship has been granted KYC.
     * 
* * bool kyc_granted = 5; * @return This builder for chaining. */ public Builder clearKycGranted() { bitField0_ = (bitField0_ & ~0x00000010); kycGranted_ = false; onChanged(); return this; } private boolean automaticAssociation_ ; /** *
     **
     * The flag indicating if the token relationship was created using automatic association.
     * 
* * bool automatic_association = 6; * @return The automaticAssociation. */ @java.lang.Override public boolean getAutomaticAssociation() { return automaticAssociation_; } /** *
     **
     * The flag indicating if the token relationship was created using automatic association.
     * 
* * bool automatic_association = 6; * @param value The automaticAssociation to set. * @return This builder for chaining. */ public Builder setAutomaticAssociation(boolean value) { automaticAssociation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * The flag indicating if the token relationship was created using automatic association.
     * 
* * bool automatic_association = 6; * @return This builder for chaining. */ public Builder clearAutomaticAssociation() { bitField0_ = (bitField0_ & ~0x00000020); automaticAssociation_ = false; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.TokenID previousToken_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> previousTokenBuilder_; /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; * @return Whether the previousToken field is set. */ public boolean hasPreviousToken() { return ((bitField0_ & 0x00000040) != 0); } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; * @return The previousToken. */ public com.hedera.hashgraph.sdk.proto.TokenID getPreviousToken() { if (previousTokenBuilder_ == null) { return previousToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : previousToken_; } else { return previousTokenBuilder_.getMessage(); } } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; */ public Builder setPreviousToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (previousTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } previousToken_ = value; } else { previousTokenBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; */ public Builder setPreviousToken( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (previousTokenBuilder_ == null) { previousToken_ = builderForValue.build(); } else { previousTokenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; */ public Builder mergePreviousToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (previousTokenBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && previousToken_ != null && previousToken_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) { getPreviousTokenBuilder().mergeFrom(value); } else { previousToken_ = value; } } else { previousTokenBuilder_.mergeFrom(value); } if (previousToken_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; */ public Builder clearPreviousToken() { bitField0_ = (bitField0_ & ~0x00000040); previousToken_ = null; if (previousTokenBuilder_ != null) { previousTokenBuilder_.dispose(); previousTokenBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; */ public com.hedera.hashgraph.sdk.proto.TokenID.Builder getPreviousTokenBuilder() { bitField0_ |= 0x00000040; onChanged(); return getPreviousTokenFieldBuilder().getBuilder(); } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; */ public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getPreviousTokenOrBuilder() { if (previousTokenBuilder_ != null) { return previousTokenBuilder_.getMessageOrBuilder(); } else { return previousToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : previousToken_; } } /** *
     **
     * The previous token id of account's association linked list
     * 
* * .proto.TokenID previous_token = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> getPreviousTokenFieldBuilder() { if (previousTokenBuilder_ == null) { previousTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>( getPreviousToken(), getParentForChildren(), isClean()); previousToken_ = null; } return previousTokenBuilder_; } private com.hedera.hashgraph.sdk.proto.TokenID nextToken_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> nextTokenBuilder_; /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; * @return Whether the nextToken field is set. */ public boolean hasNextToken() { return ((bitField0_ & 0x00000080) != 0); } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; * @return The nextToken. */ public com.hedera.hashgraph.sdk.proto.TokenID getNextToken() { if (nextTokenBuilder_ == null) { return nextToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : nextToken_; } else { return nextTokenBuilder_.getMessage(); } } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; */ public Builder setNextToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (nextTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nextToken_ = value; } else { nextTokenBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; */ public Builder setNextToken( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (nextTokenBuilder_ == null) { nextToken_ = builderForValue.build(); } else { nextTokenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; */ public Builder mergeNextToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (nextTokenBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && nextToken_ != null && nextToken_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) { getNextTokenBuilder().mergeFrom(value); } else { nextToken_ = value; } } else { nextTokenBuilder_.mergeFrom(value); } if (nextToken_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; */ public Builder clearNextToken() { bitField0_ = (bitField0_ & ~0x00000080); nextToken_ = null; if (nextTokenBuilder_ != null) { nextTokenBuilder_.dispose(); nextTokenBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; */ public com.hedera.hashgraph.sdk.proto.TokenID.Builder getNextTokenBuilder() { bitField0_ |= 0x00000080; onChanged(); return getNextTokenFieldBuilder().getBuilder(); } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; */ public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getNextTokenOrBuilder() { if (nextTokenBuilder_ != null) { return nextTokenBuilder_.getMessageOrBuilder(); } else { return nextToken_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : nextToken_; } } /** *
     **
     * The next token id of account's association linked list
     * 
* * .proto.TokenID next_token = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> getNextTokenFieldBuilder() { if (nextTokenBuilder_ == null) { nextTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>( getNextToken(), getParentForChildren(), isClean()); nextToken_ = null; } return nextTokenBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.TokenRelation) } // @@protoc_insertion_point(class_scope:proto.TokenRelation) private static final com.hedera.hashgraph.sdk.proto.TokenRelation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TokenRelation(); } public static com.hedera.hashgraph.sdk.proto.TokenRelation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenRelation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenRelation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy