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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: custom_fees.proto

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

/**
 * 
 **
 * A custom transfer fee that was assessed during handling of a CryptoTransfer.
 * 
* * Protobuf type {@code proto.AssessedCustomFee} */ public final class AssessedCustomFee extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.AssessedCustomFee) AssessedCustomFeeOrBuilder { private static final long serialVersionUID = 0L; // Use AssessedCustomFee.newBuilder() to construct. private AssessedCustomFee(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AssessedCustomFee() { effectivePayerAccountId_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AssessedCustomFee(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_AssessedCustomFee_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_AssessedCustomFee_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.AssessedCustomFee.class, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder.class); } private int bitField0_; public static final int AMOUNT_FIELD_NUMBER = 1; private long amount_ = 0L; /** *
   **
   * The number of units assessed for the fee
   * 
* * int64 amount = 1; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } public static final int TOKEN_ID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.TokenID tokenId_; /** *
   **
   * The denomination of the fee; taken as hbar if left unset
   * 
* * .proto.TokenID token_id = 2; * @return Whether the tokenId field is set. */ @java.lang.Override public boolean hasTokenId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The denomination of the fee; taken as hbar if left unset
   * 
* * .proto.TokenID token_id = 2; * @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 denomination of the fee; taken as hbar if left unset
   * 
* * .proto.TokenID token_id = 2; */ @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 FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.AccountID feeCollectorAccountId_; /** *
   **
   * The account to receive the assessed fee
   * 
* * .proto.AccountID fee_collector_account_id = 3; * @return Whether the feeCollectorAccountId field is set. */ @java.lang.Override public boolean hasFeeCollectorAccountId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * The account to receive the assessed fee
   * 
* * .proto.AccountID fee_collector_account_id = 3; * @return The feeCollectorAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getFeeCollectorAccountId() { return feeCollectorAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_; } /** *
   **
   * The account to receive the assessed fee
   * 
* * .proto.AccountID fee_collector_account_id = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getFeeCollectorAccountIdOrBuilder() { return feeCollectorAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_; } public static final int EFFECTIVE_PAYER_ACCOUNT_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List effectivePayerAccountId_; /** *
   **
   * The account(s) whose final balances would have been higher in the absence of this assessed fee
   * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ @java.lang.Override public java.util.List getEffectivePayerAccountIdList() { return effectivePayerAccountId_; } /** *
   **
   * The account(s) whose final balances would have been higher in the absence of this assessed fee
   * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ @java.lang.Override public java.util.List getEffectivePayerAccountIdOrBuilderList() { return effectivePayerAccountId_; } /** *
   **
   * The account(s) whose final balances would have been higher in the absence of this assessed fee
   * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ @java.lang.Override public int getEffectivePayerAccountIdCount() { return effectivePayerAccountId_.size(); } /** *
   **
   * The account(s) whose final balances would have been higher in the absence of this assessed fee
   * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getEffectivePayerAccountId(int index) { return effectivePayerAccountId_.get(index); } /** *
   **
   * The account(s) whose final balances would have been higher in the absence of this assessed fee
   * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getEffectivePayerAccountIdOrBuilder( int index) { return effectivePayerAccountId_.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 (amount_ != 0L) { output.writeInt64(1, amount_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTokenId()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getFeeCollectorAccountId()); } for (int i = 0; i < effectivePayerAccountId_.size(); i++) { output.writeMessage(4, effectivePayerAccountId_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, amount_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTokenId()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFeeCollectorAccountId()); } for (int i = 0; i < effectivePayerAccountId_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, effectivePayerAccountId_.get(i)); } 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.AssessedCustomFee)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.AssessedCustomFee other = (com.hedera.hashgraph.sdk.proto.AssessedCustomFee) obj; if (getAmount() != other.getAmount()) return false; if (hasTokenId() != other.hasTokenId()) return false; if (hasTokenId()) { if (!getTokenId() .equals(other.getTokenId())) return false; } if (hasFeeCollectorAccountId() != other.hasFeeCollectorAccountId()) return false; if (hasFeeCollectorAccountId()) { if (!getFeeCollectorAccountId() .equals(other.getFeeCollectorAccountId())) return false; } if (!getEffectivePayerAccountIdList() .equals(other.getEffectivePayerAccountIdList())) 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(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); if (hasTokenId()) { hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getTokenId().hashCode(); } if (hasFeeCollectorAccountId()) { hash = (37 * hash) + FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getFeeCollectorAccountId().hashCode(); } if (getEffectivePayerAccountIdCount() > 0) { hash = (37 * hash) + EFFECTIVE_PAYER_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectivePayerAccountIdList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.AssessedCustomFee parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.AssessedCustomFee 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.AssessedCustomFee parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.AssessedCustomFee 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.AssessedCustomFee parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.AssessedCustomFee 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.AssessedCustomFee parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.AssessedCustomFee 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.AssessedCustomFee parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.AssessedCustomFee 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.AssessedCustomFee 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.AssessedCustomFee 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.AssessedCustomFee 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; } /** *
   **
   * A custom transfer fee that was assessed during handling of a CryptoTransfer.
   * 
* * Protobuf type {@code proto.AssessedCustomFee} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.AssessedCustomFee) com.hedera.hashgraph.sdk.proto.AssessedCustomFeeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_AssessedCustomFee_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_AssessedCustomFee_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.AssessedCustomFee.class, com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.AssessedCustomFee.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(); getFeeCollectorAccountIdFieldBuilder(); getEffectivePayerAccountIdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; amount_ = 0L; tokenId_ = null; if (tokenIdBuilder_ != null) { tokenIdBuilder_.dispose(); tokenIdBuilder_ = null; } feeCollectorAccountId_ = null; if (feeCollectorAccountIdBuilder_ != null) { feeCollectorAccountIdBuilder_.dispose(); feeCollectorAccountIdBuilder_ = null; } if (effectivePayerAccountIdBuilder_ == null) { effectivePayerAccountId_ = java.util.Collections.emptyList(); } else { effectivePayerAccountId_ = null; effectivePayerAccountIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_AssessedCustomFee_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.AssessedCustomFee getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.AssessedCustomFee.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.AssessedCustomFee build() { com.hedera.hashgraph.sdk.proto.AssessedCustomFee result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.AssessedCustomFee buildPartial() { com.hedera.hashgraph.sdk.proto.AssessedCustomFee result = new com.hedera.hashgraph.sdk.proto.AssessedCustomFee(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.AssessedCustomFee result) { if (effectivePayerAccountIdBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { effectivePayerAccountId_ = java.util.Collections.unmodifiableList(effectivePayerAccountId_); bitField0_ = (bitField0_ & ~0x00000008); } result.effectivePayerAccountId_ = effectivePayerAccountId_; } else { result.effectivePayerAccountId_ = effectivePayerAccountIdBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.AssessedCustomFee result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.amount_ = amount_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.tokenId_ = tokenIdBuilder_ == null ? tokenId_ : tokenIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.feeCollectorAccountId_ = feeCollectorAccountIdBuilder_ == null ? feeCollectorAccountId_ : feeCollectorAccountIdBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.AssessedCustomFee) { return mergeFrom((com.hedera.hashgraph.sdk.proto.AssessedCustomFee)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.AssessedCustomFee other) { if (other == com.hedera.hashgraph.sdk.proto.AssessedCustomFee.getDefaultInstance()) return this; if (other.getAmount() != 0L) { setAmount(other.getAmount()); } if (other.hasTokenId()) { mergeTokenId(other.getTokenId()); } if (other.hasFeeCollectorAccountId()) { mergeFeeCollectorAccountId(other.getFeeCollectorAccountId()); } if (effectivePayerAccountIdBuilder_ == null) { if (!other.effectivePayerAccountId_.isEmpty()) { if (effectivePayerAccountId_.isEmpty()) { effectivePayerAccountId_ = other.effectivePayerAccountId_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.addAll(other.effectivePayerAccountId_); } onChanged(); } } else { if (!other.effectivePayerAccountId_.isEmpty()) { if (effectivePayerAccountIdBuilder_.isEmpty()) { effectivePayerAccountIdBuilder_.dispose(); effectivePayerAccountIdBuilder_ = null; effectivePayerAccountId_ = other.effectivePayerAccountId_; bitField0_ = (bitField0_ & ~0x00000008); effectivePayerAccountIdBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEffectivePayerAccountIdFieldBuilder() : null; } else { effectivePayerAccountIdBuilder_.addAllMessages(other.effectivePayerAccountId_); } } } 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 8: { amount_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getTokenIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getFeeCollectorAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.hedera.hashgraph.sdk.proto.AccountID m = input.readMessage( com.hedera.hashgraph.sdk.proto.AccountID.parser(), extensionRegistry); if (effectivePayerAccountIdBuilder_ == null) { ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.add(m); } else { effectivePayerAccountIdBuilder_.addMessage(m); } break; } // case 34 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 long amount_ ; /** *
     **
     * The number of units assessed for the fee
     * 
* * int64 amount = 1; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** *
     **
     * The number of units assessed for the fee
     * 
* * int64 amount = 1; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The number of units assessed for the fee
     * 
* * int64 amount = 1; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000001); amount_ = 0L; onChanged(); return this; } 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 denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; * @return Whether the tokenId field is set. */ public boolean hasTokenId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * The denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; * @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 denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; */ 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_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; */ public Builder setTokenId( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (tokenIdBuilder_ == null) { tokenId_ = builderForValue.build(); } else { tokenIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; */ public Builder mergeTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenIdBuilder_ == null) { if (((bitField0_ & 0x00000002) != 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_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * The denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000002); tokenId_ = null; if (tokenIdBuilder_ != null) { tokenIdBuilder_.dispose(); tokenIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; */ public com.hedera.hashgraph.sdk.proto.TokenID.Builder getTokenIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTokenIdFieldBuilder().getBuilder(); } /** *
     **
     * The denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; */ 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 denomination of the fee; taken as hbar if left unset
     * 
* * .proto.TokenID token_id = 2; */ 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 feeCollectorAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> feeCollectorAccountIdBuilder_; /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; * @return Whether the feeCollectorAccountId field is set. */ public boolean hasFeeCollectorAccountId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; * @return The feeCollectorAccountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getFeeCollectorAccountId() { if (feeCollectorAccountIdBuilder_ == null) { return feeCollectorAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_; } else { return feeCollectorAccountIdBuilder_.getMessage(); } } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; */ public Builder setFeeCollectorAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (feeCollectorAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feeCollectorAccountId_ = value; } else { feeCollectorAccountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; */ public Builder setFeeCollectorAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (feeCollectorAccountIdBuilder_ == null) { feeCollectorAccountId_ = builderForValue.build(); } else { feeCollectorAccountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; */ public Builder mergeFeeCollectorAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (feeCollectorAccountIdBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && feeCollectorAccountId_ != null && feeCollectorAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getFeeCollectorAccountIdBuilder().mergeFrom(value); } else { feeCollectorAccountId_ = value; } } else { feeCollectorAccountIdBuilder_.mergeFrom(value); } if (feeCollectorAccountId_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; */ public Builder clearFeeCollectorAccountId() { bitField0_ = (bitField0_ & ~0x00000004); feeCollectorAccountId_ = null; if (feeCollectorAccountIdBuilder_ != null) { feeCollectorAccountIdBuilder_.dispose(); feeCollectorAccountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getFeeCollectorAccountIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFeeCollectorAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getFeeCollectorAccountIdOrBuilder() { if (feeCollectorAccountIdBuilder_ != null) { return feeCollectorAccountIdBuilder_.getMessageOrBuilder(); } else { return feeCollectorAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_; } } /** *
     **
     * The account to receive the assessed fee
     * 
* * .proto.AccountID fee_collector_account_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getFeeCollectorAccountIdFieldBuilder() { if (feeCollectorAccountIdBuilder_ == null) { feeCollectorAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getFeeCollectorAccountId(), getParentForChildren(), isClean()); feeCollectorAccountId_ = null; } return feeCollectorAccountIdBuilder_; } private java.util.List effectivePayerAccountId_ = java.util.Collections.emptyList(); private void ensureEffectivePayerAccountIdIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { effectivePayerAccountId_ = new java.util.ArrayList(effectivePayerAccountId_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> effectivePayerAccountIdBuilder_; /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public java.util.List getEffectivePayerAccountIdList() { if (effectivePayerAccountIdBuilder_ == null) { return java.util.Collections.unmodifiableList(effectivePayerAccountId_); } else { return effectivePayerAccountIdBuilder_.getMessageList(); } } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public int getEffectivePayerAccountIdCount() { if (effectivePayerAccountIdBuilder_ == null) { return effectivePayerAccountId_.size(); } else { return effectivePayerAccountIdBuilder_.getCount(); } } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public com.hedera.hashgraph.sdk.proto.AccountID getEffectivePayerAccountId(int index) { if (effectivePayerAccountIdBuilder_ == null) { return effectivePayerAccountId_.get(index); } else { return effectivePayerAccountIdBuilder_.getMessage(index); } } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder setEffectivePayerAccountId( int index, com.hedera.hashgraph.sdk.proto.AccountID value) { if (effectivePayerAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.set(index, value); onChanged(); } else { effectivePayerAccountIdBuilder_.setMessage(index, value); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder setEffectivePayerAccountId( int index, com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (effectivePayerAccountIdBuilder_ == null) { ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.set(index, builderForValue.build()); onChanged(); } else { effectivePayerAccountIdBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder addEffectivePayerAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (effectivePayerAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.add(value); onChanged(); } else { effectivePayerAccountIdBuilder_.addMessage(value); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder addEffectivePayerAccountId( int index, com.hedera.hashgraph.sdk.proto.AccountID value) { if (effectivePayerAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.add(index, value); onChanged(); } else { effectivePayerAccountIdBuilder_.addMessage(index, value); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder addEffectivePayerAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (effectivePayerAccountIdBuilder_ == null) { ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.add(builderForValue.build()); onChanged(); } else { effectivePayerAccountIdBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder addEffectivePayerAccountId( int index, com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (effectivePayerAccountIdBuilder_ == null) { ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.add(index, builderForValue.build()); onChanged(); } else { effectivePayerAccountIdBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder addAllEffectivePayerAccountId( java.lang.Iterable values) { if (effectivePayerAccountIdBuilder_ == null) { ensureEffectivePayerAccountIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, effectivePayerAccountId_); onChanged(); } else { effectivePayerAccountIdBuilder_.addAllMessages(values); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder clearEffectivePayerAccountId() { if (effectivePayerAccountIdBuilder_ == null) { effectivePayerAccountId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { effectivePayerAccountIdBuilder_.clear(); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public Builder removeEffectivePayerAccountId(int index) { if (effectivePayerAccountIdBuilder_ == null) { ensureEffectivePayerAccountIdIsMutable(); effectivePayerAccountId_.remove(index); onChanged(); } else { effectivePayerAccountIdBuilder_.remove(index); } return this; } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getEffectivePayerAccountIdBuilder( int index) { return getEffectivePayerAccountIdFieldBuilder().getBuilder(index); } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getEffectivePayerAccountIdOrBuilder( int index) { if (effectivePayerAccountIdBuilder_ == null) { return effectivePayerAccountId_.get(index); } else { return effectivePayerAccountIdBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public java.util.List getEffectivePayerAccountIdOrBuilderList() { if (effectivePayerAccountIdBuilder_ != null) { return effectivePayerAccountIdBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(effectivePayerAccountId_); } } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder addEffectivePayerAccountIdBuilder() { return getEffectivePayerAccountIdFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()); } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder addEffectivePayerAccountIdBuilder( int index) { return getEffectivePayerAccountIdFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()); } /** *
     **
     * The account(s) whose final balances would have been higher in the absence of this assessed fee
     * 
* * repeated .proto.AccountID effective_payer_account_id = 4; */ public java.util.List getEffectivePayerAccountIdBuilderList() { return getEffectivePayerAccountIdFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getEffectivePayerAccountIdFieldBuilder() { if (effectivePayerAccountIdBuilder_ == null) { effectivePayerAccountIdBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( effectivePayerAccountId_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); effectivePayerAccountId_ = null; } return effectivePayerAccountIdBuilder_; } @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.AssessedCustomFee) } // @@protoc_insertion_point(class_scope:proto.AssessedCustomFee) private static final com.hedera.hashgraph.sdk.proto.AssessedCustomFee DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.AssessedCustomFee(); } public static com.hedera.hashgraph.sdk.proto.AssessedCustomFee getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AssessedCustomFee 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.AssessedCustomFee getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy