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

com.hederahashgraph.api.proto.java.TokenRejectTransactionBody Maven / Gradle / Ivy

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * Reject undesired token(s).<br/>
 * Transfer one or more token balances held by the requesting account to the treasury for each
 * token type.<br/>
 * Each transfer SHALL be one of the following
 * - A single non-fungible/unique token.
 * - The full balance held for a fungible/common token type.
 * A single tokenReject transaction SHALL support a maximum of 10 transfers.
 * ### Transaction Record Effects
 * - Each successful transfer from `payer` to `treasury` SHALL be recorded in `token_transfer_list` for the transaction record.
 * 
* * Protobuf type {@code proto.TokenRejectTransactionBody} */ public final class TokenRejectTransactionBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TokenRejectTransactionBody) TokenRejectTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use TokenRejectTransactionBody.newBuilder() to construct. private TokenRejectTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenRejectTransactionBody() { rejections_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TokenRejectTransactionBody(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TokenRejectTransactionBody( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (owner_ != null) { subBuilder = owner_.toBuilder(); } owner_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(owner_); owner_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { rejections_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rejections_.add( input.readMessage(com.hederahashgraph.api.proto.java.TokenReference.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { rejections_ = java.util.Collections.unmodifiableList(rejections_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.TokenReject.internal_static_proto_TokenRejectTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.TokenReject.internal_static_proto_TokenRejectTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.TokenRejectTransactionBody.class, com.hederahashgraph.api.proto.java.TokenRejectTransactionBody.Builder.class); } public static final int OWNER_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.AccountID owner_; /** *
   **
   * An account holding the tokens to be rejected.<br/>
   * If set, this account MUST sign this transaction.
   * If not set, the payer for this transaction SHALL be the account rejecting tokens.
   * 
* * .proto.AccountID owner = 1; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return owner_ != null; } /** *
   **
   * An account holding the tokens to be rejected.<br/>
   * If set, this account MUST sign this transaction.
   * If not set, the payer for this transaction SHALL be the account rejecting tokens.
   * 
* * .proto.AccountID owner = 1; * @return The owner. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getOwner() { return owner_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : owner_; } /** *
   **
   * An account holding the tokens to be rejected.<br/>
   * If set, this account MUST sign this transaction.
   * If not set, the payer for this transaction SHALL be the account rejecting tokens.
   * 
* * .proto.AccountID owner = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getOwnerOrBuilder() { return getOwner(); } public static final int REJECTIONS_FIELD_NUMBER = 2; private java.util.List rejections_; /** *
   **
   * A list of one or more token rejections.<br/>
   * On success each rejected token serial number or balance SHALL be transferred from
   * the requesting account to the treasury account for that token type.<br/>
   * After rejection the requesting account SHALL continue to be associated with the token.<br/>
   * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
   * 
* * repeated .proto.TokenReference rejections = 2; */ @java.lang.Override public java.util.List getRejectionsList() { return rejections_; } /** *
   **
   * A list of one or more token rejections.<br/>
   * On success each rejected token serial number or balance SHALL be transferred from
   * the requesting account to the treasury account for that token type.<br/>
   * After rejection the requesting account SHALL continue to be associated with the token.<br/>
   * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
   * 
* * repeated .proto.TokenReference rejections = 2; */ @java.lang.Override public java.util.List getRejectionsOrBuilderList() { return rejections_; } /** *
   **
   * A list of one or more token rejections.<br/>
   * On success each rejected token serial number or balance SHALL be transferred from
   * the requesting account to the treasury account for that token type.<br/>
   * After rejection the requesting account SHALL continue to be associated with the token.<br/>
   * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
   * 
* * repeated .proto.TokenReference rejections = 2; */ @java.lang.Override public int getRejectionsCount() { return rejections_.size(); } /** *
   **
   * A list of one or more token rejections.<br/>
   * On success each rejected token serial number or balance SHALL be transferred from
   * the requesting account to the treasury account for that token type.<br/>
   * After rejection the requesting account SHALL continue to be associated with the token.<br/>
   * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
   * 
* * repeated .proto.TokenReference rejections = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TokenReference getRejections(int index) { return rejections_.get(index); } /** *
   **
   * A list of one or more token rejections.<br/>
   * On success each rejected token serial number or balance SHALL be transferred from
   * the requesting account to the treasury account for that token type.<br/>
   * After rejection the requesting account SHALL continue to be associated with the token.<br/>
   * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
   * 
* * repeated .proto.TokenReference rejections = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TokenReferenceOrBuilder getRejectionsOrBuilder( int index) { return rejections_.get(index); } 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 (owner_ != null) { output.writeMessage(1, getOwner()); } for (int i = 0; i < rejections_.size(); i++) { output.writeMessage(2, rejections_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (owner_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOwner()); } for (int i = 0; i < rejections_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rejections_.get(i)); } size += unknownFields.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.hederahashgraph.api.proto.java.TokenRejectTransactionBody)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.TokenRejectTransactionBody other = (com.hederahashgraph.api.proto.java.TokenRejectTransactionBody) obj; if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (!getOwner() .equals(other.getOwner())) return false; } if (!getRejectionsList() .equals(other.getRejectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } if (getRejectionsCount() > 0) { hash = (37 * hash) + REJECTIONS_FIELD_NUMBER; hash = (53 * hash) + getRejectionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody 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.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody 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.hederahashgraph.api.proto.java.TokenRejectTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody 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.hederahashgraph.api.proto.java.TokenRejectTransactionBody 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; } /** *
   **
   * Reject undesired token(s).<br/>
   * Transfer one or more token balances held by the requesting account to the treasury for each
   * token type.<br/>
   * Each transfer SHALL be one of the following
   * - A single non-fungible/unique token.
   * - The full balance held for a fungible/common token type.
   * A single tokenReject transaction SHALL support a maximum of 10 transfers.
   * ### Transaction Record Effects
   * - Each successful transfer from `payer` to `treasury` SHALL be recorded in `token_transfer_list` for the transaction record.
   * 
* * Protobuf type {@code proto.TokenRejectTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TokenRejectTransactionBody) com.hederahashgraph.api.proto.java.TokenRejectTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.TokenReject.internal_static_proto_TokenRejectTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.TokenReject.internal_static_proto_TokenRejectTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.TokenRejectTransactionBody.class, com.hederahashgraph.api.proto.java.TokenRejectTransactionBody.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.TokenRejectTransactionBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRejectionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (ownerBuilder_ == null) { owner_ = null; } else { owner_ = null; ownerBuilder_ = null; } if (rejectionsBuilder_ == null) { rejections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rejectionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.TokenReject.internal_static_proto_TokenRejectTransactionBody_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.TokenRejectTransactionBody getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.TokenRejectTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.TokenRejectTransactionBody build() { com.hederahashgraph.api.proto.java.TokenRejectTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.TokenRejectTransactionBody buildPartial() { com.hederahashgraph.api.proto.java.TokenRejectTransactionBody result = new com.hederahashgraph.api.proto.java.TokenRejectTransactionBody(this); int from_bitField0_ = bitField0_; if (ownerBuilder_ == null) { result.owner_ = owner_; } else { result.owner_ = ownerBuilder_.build(); } if (rejectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rejections_ = java.util.Collections.unmodifiableList(rejections_); bitField0_ = (bitField0_ & ~0x00000001); } result.rejections_ = rejections_; } else { result.rejections_ = rejectionsBuilder_.build(); } onBuilt(); return result; } @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.hederahashgraph.api.proto.java.TokenRejectTransactionBody) { return mergeFrom((com.hederahashgraph.api.proto.java.TokenRejectTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.TokenRejectTransactionBody other) { if (other == com.hederahashgraph.api.proto.java.TokenRejectTransactionBody.getDefaultInstance()) return this; if (other.hasOwner()) { mergeOwner(other.getOwner()); } if (rejectionsBuilder_ == null) { if (!other.rejections_.isEmpty()) { if (rejections_.isEmpty()) { rejections_ = other.rejections_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRejectionsIsMutable(); rejections_.addAll(other.rejections_); } onChanged(); } } else { if (!other.rejections_.isEmpty()) { if (rejectionsBuilder_.isEmpty()) { rejectionsBuilder_.dispose(); rejectionsBuilder_ = null; rejections_ = other.rejections_; bitField0_ = (bitField0_ & ~0x00000001); rejectionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRejectionsFieldBuilder() : null; } else { rejectionsBuilder_.addAllMessages(other.rejections_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.hederahashgraph.api.proto.java.TokenRejectTransactionBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.TokenRejectTransactionBody) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.hederahashgraph.api.proto.java.AccountID owner_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> ownerBuilder_; /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; * @return Whether the owner field is set. */ public boolean hasOwner() { return ownerBuilder_ != null || owner_ != null; } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; * @return The owner. */ public com.hederahashgraph.api.proto.java.AccountID getOwner() { if (ownerBuilder_ == null) { return owner_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : owner_; } else { return ownerBuilder_.getMessage(); } } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; */ public Builder setOwner(com.hederahashgraph.api.proto.java.AccountID value) { if (ownerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } owner_ = value; onChanged(); } else { ownerBuilder_.setMessage(value); } return this; } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; */ public Builder setOwner( com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); onChanged(); } else { ownerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; */ public Builder mergeOwner(com.hederahashgraph.api.proto.java.AccountID value) { if (ownerBuilder_ == null) { if (owner_ != null) { owner_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(owner_).mergeFrom(value).buildPartial(); } else { owner_ = value; } onChanged(); } else { ownerBuilder_.mergeFrom(value); } return this; } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; */ public Builder clearOwner() { if (ownerBuilder_ == null) { owner_ = null; onChanged(); } else { owner_ = null; ownerBuilder_ = null; } return this; } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getOwnerBuilder() { onChanged(); return getOwnerFieldBuilder().getBuilder(); } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; */ public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { return owner_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : owner_; } } /** *
     **
     * An account holding the tokens to be rejected.<br/>
     * If set, this account MUST sign this transaction.
     * If not set, the payer for this transaction SHALL be the account rejecting tokens.
     * 
* * .proto.AccountID owner = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getOwner(), getParentForChildren(), isClean()); owner_ = null; } return ownerBuilder_; } private java.util.List rejections_ = java.util.Collections.emptyList(); private void ensureRejectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rejections_ = new java.util.ArrayList(rejections_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.TokenReference, com.hederahashgraph.api.proto.java.TokenReference.Builder, com.hederahashgraph.api.proto.java.TokenReferenceOrBuilder> rejectionsBuilder_; /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public java.util.List getRejectionsList() { if (rejectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(rejections_); } else { return rejectionsBuilder_.getMessageList(); } } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public int getRejectionsCount() { if (rejectionsBuilder_ == null) { return rejections_.size(); } else { return rejectionsBuilder_.getCount(); } } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public com.hederahashgraph.api.proto.java.TokenReference getRejections(int index) { if (rejectionsBuilder_ == null) { return rejections_.get(index); } else { return rejectionsBuilder_.getMessage(index); } } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder setRejections( int index, com.hederahashgraph.api.proto.java.TokenReference value) { if (rejectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRejectionsIsMutable(); rejections_.set(index, value); onChanged(); } else { rejectionsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder setRejections( int index, com.hederahashgraph.api.proto.java.TokenReference.Builder builderForValue) { if (rejectionsBuilder_ == null) { ensureRejectionsIsMutable(); rejections_.set(index, builderForValue.build()); onChanged(); } else { rejectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder addRejections(com.hederahashgraph.api.proto.java.TokenReference value) { if (rejectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRejectionsIsMutable(); rejections_.add(value); onChanged(); } else { rejectionsBuilder_.addMessage(value); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder addRejections( int index, com.hederahashgraph.api.proto.java.TokenReference value) { if (rejectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRejectionsIsMutable(); rejections_.add(index, value); onChanged(); } else { rejectionsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder addRejections( com.hederahashgraph.api.proto.java.TokenReference.Builder builderForValue) { if (rejectionsBuilder_ == null) { ensureRejectionsIsMutable(); rejections_.add(builderForValue.build()); onChanged(); } else { rejectionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder addRejections( int index, com.hederahashgraph.api.proto.java.TokenReference.Builder builderForValue) { if (rejectionsBuilder_ == null) { ensureRejectionsIsMutable(); rejections_.add(index, builderForValue.build()); onChanged(); } else { rejectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder addAllRejections( java.lang.Iterable values) { if (rejectionsBuilder_ == null) { ensureRejectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rejections_); onChanged(); } else { rejectionsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder clearRejections() { if (rejectionsBuilder_ == null) { rejections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rejectionsBuilder_.clear(); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public Builder removeRejections(int index) { if (rejectionsBuilder_ == null) { ensureRejectionsIsMutable(); rejections_.remove(index); onChanged(); } else { rejectionsBuilder_.remove(index); } return this; } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public com.hederahashgraph.api.proto.java.TokenReference.Builder getRejectionsBuilder( int index) { return getRejectionsFieldBuilder().getBuilder(index); } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public com.hederahashgraph.api.proto.java.TokenReferenceOrBuilder getRejectionsOrBuilder( int index) { if (rejectionsBuilder_ == null) { return rejections_.get(index); } else { return rejectionsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public java.util.List getRejectionsOrBuilderList() { if (rejectionsBuilder_ != null) { return rejectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rejections_); } } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public com.hederahashgraph.api.proto.java.TokenReference.Builder addRejectionsBuilder() { return getRejectionsFieldBuilder().addBuilder( com.hederahashgraph.api.proto.java.TokenReference.getDefaultInstance()); } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public com.hederahashgraph.api.proto.java.TokenReference.Builder addRejectionsBuilder( int index) { return getRejectionsFieldBuilder().addBuilder( index, com.hederahashgraph.api.proto.java.TokenReference.getDefaultInstance()); } /** *
     **
     * A list of one or more token rejections.<br/>
     * On success each rejected token serial number or balance SHALL be transferred from
     * the requesting account to the treasury account for that token type.<br/>
     * After rejection the requesting account SHALL continue to be associated with the token.<br/>
     * if dissociation is desired then a separate TokenDissociate transaction MUST be submitted to remove the association.
     * 
* * repeated .proto.TokenReference rejections = 2; */ public java.util.List getRejectionsBuilderList() { return getRejectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.TokenReference, com.hederahashgraph.api.proto.java.TokenReference.Builder, com.hederahashgraph.api.proto.java.TokenReferenceOrBuilder> getRejectionsFieldBuilder() { if (rejectionsBuilder_ == null) { rejectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.TokenReference, com.hederahashgraph.api.proto.java.TokenReference.Builder, com.hederahashgraph.api.proto.java.TokenReferenceOrBuilder>( rejections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rejections_ = null; } return rejectionsBuilder_; } @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.TokenRejectTransactionBody) } // @@protoc_insertion_point(class_scope:proto.TokenRejectTransactionBody) private static final com.hederahashgraph.api.proto.java.TokenRejectTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TokenRejectTransactionBody(); } public static com.hederahashgraph.api.proto.java.TokenRejectTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenRejectTransactionBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TokenRejectTransactionBody(input, extensionRegistry); } }; 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.hederahashgraph.api.proto.java.TokenRejectTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy