com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_approve_allowance.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Creates one or more hbar/token approved allowances <b>relative to the owner account specified in the allowances of
* this transaction</b>. Each allowance grants a spender the right to transfer a pre-determined amount of the owner's
* hbar/token to any other account of the spender's choice. If the owner is not specified in any allowance, the payer
* of transaction is considered to be the owner for that particular allowance.
* Setting the amount to zero in CryptoAllowance or TokenAllowance will remove the respective allowance for the spender.
*
* (So if account <tt>0.0.X</tt> pays for this transaction and owner is not specified in the allowance,
* then at consensus each spender account will have new allowances to spend hbar or tokens from <tt>0.0.X</tt>).
*
*
* Protobuf type {@code proto.CryptoApproveAllowanceTransactionBody}
*/
public final class CryptoApproveAllowanceTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
CryptoApproveAllowanceTransactionBody, CryptoApproveAllowanceTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.CryptoApproveAllowanceTransactionBody)
CryptoApproveAllowanceTransactionBodyOrBuilder {
private CryptoApproveAllowanceTransactionBody() {
cryptoAllowances_ = emptyProtobufList();
nftAllowances_ = emptyProtobufList();
tokenAllowances_ = emptyProtobufList();
}
public static final int CRYPTOALLOWANCES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList cryptoAllowances_;
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
@java.lang.Override
public java.util.List getCryptoAllowancesList() {
return cryptoAllowances_;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.CryptoAllowanceOrBuilder>
getCryptoAllowancesOrBuilderList() {
return cryptoAllowances_;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
@java.lang.Override
public int getCryptoAllowancesCount() {
return cryptoAllowances_.size();
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoAllowance getCryptoAllowances(int index) {
return cryptoAllowances_.get(index);
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public com.hedera.hashgraph.sdk.proto.CryptoAllowanceOrBuilder getCryptoAllowancesOrBuilder(
int index) {
return cryptoAllowances_.get(index);
}
private void ensureCryptoAllowancesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = cryptoAllowances_;
if (!tmp.isModifiable()) {
cryptoAllowances_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
private void setCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.CryptoAllowance value) {
value.getClass();
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.set(index, value);
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
private void addCryptoAllowances(com.hedera.hashgraph.sdk.proto.CryptoAllowance value) {
value.getClass();
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(value);
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
private void addCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.CryptoAllowance value) {
value.getClass();
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(index, value);
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
private void addAllCryptoAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.CryptoAllowance> values) {
ensureCryptoAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, cryptoAllowances_);
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
private void clearCryptoAllowances() {
cryptoAllowances_ = emptyProtobufList();
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
private void removeCryptoAllowances(int index) {
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.remove(index);
}
public static final int NFTALLOWANCES_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.ProtobufList nftAllowances_;
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
@java.lang.Override
public java.util.List getNftAllowancesList() {
return nftAllowances_;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.NftAllowanceOrBuilder>
getNftAllowancesOrBuilderList() {
return nftAllowances_;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
@java.lang.Override
public int getNftAllowancesCount() {
return nftAllowances_.size();
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftAllowance getNftAllowances(int index) {
return nftAllowances_.get(index);
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public com.hedera.hashgraph.sdk.proto.NftAllowanceOrBuilder getNftAllowancesOrBuilder(
int index) {
return nftAllowances_.get(index);
}
private void ensureNftAllowancesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = nftAllowances_;
if (!tmp.isModifiable()) {
nftAllowances_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
private void setNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftAllowance value) {
value.getClass();
ensureNftAllowancesIsMutable();
nftAllowances_.set(index, value);
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
private void addNftAllowances(com.hedera.hashgraph.sdk.proto.NftAllowance value) {
value.getClass();
ensureNftAllowancesIsMutable();
nftAllowances_.add(value);
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
private void addNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftAllowance value) {
value.getClass();
ensureNftAllowancesIsMutable();
nftAllowances_.add(index, value);
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
private void addAllNftAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.NftAllowance> values) {
ensureNftAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, nftAllowances_);
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
private void clearNftAllowances() {
nftAllowances_ = emptyProtobufList();
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
private void removeNftAllowances(int index) {
ensureNftAllowancesIsMutable();
nftAllowances_.remove(index);
}
public static final int TOKENALLOWANCES_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.ProtobufList tokenAllowances_;
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
@java.lang.Override
public java.util.List getTokenAllowancesList() {
return tokenAllowances_;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenAllowanceOrBuilder>
getTokenAllowancesOrBuilderList() {
return tokenAllowances_;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
@java.lang.Override
public int getTokenAllowancesCount() {
return tokenAllowances_.size();
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenAllowance getTokenAllowances(int index) {
return tokenAllowances_.get(index);
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public com.hedera.hashgraph.sdk.proto.TokenAllowanceOrBuilder getTokenAllowancesOrBuilder(
int index) {
return tokenAllowances_.get(index);
}
private void ensureTokenAllowancesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = tokenAllowances_;
if (!tmp.isModifiable()) {
tokenAllowances_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
private void setTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.TokenAllowance value) {
value.getClass();
ensureTokenAllowancesIsMutable();
tokenAllowances_.set(index, value);
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
private void addTokenAllowances(com.hedera.hashgraph.sdk.proto.TokenAllowance value) {
value.getClass();
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(value);
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
private void addTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.TokenAllowance value) {
value.getClass();
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(index, value);
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
private void addAllTokenAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TokenAllowance> values) {
ensureTokenAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, tokenAllowances_);
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
private void clearTokenAllowances() {
tokenAllowances_ = emptyProtobufList();
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
private void removeTokenAllowances(int index) {
ensureTokenAllowancesIsMutable();
tokenAllowances_.remove(index);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* Creates one or more hbar/token approved allowances <b>relative to the owner account specified in the allowances of
* this transaction</b>. Each allowance grants a spender the right to transfer a pre-determined amount of the owner's
* hbar/token to any other account of the spender's choice. If the owner is not specified in any allowance, the payer
* of transaction is considered to be the owner for that particular allowance.
* Setting the amount to zero in CryptoAllowance or TokenAllowance will remove the respective allowance for the spender.
*
* (So if account <tt>0.0.X</tt> pays for this transaction and owner is not specified in the allowance,
* then at consensus each spender account will have new allowances to spend hbar or tokens from <tt>0.0.X</tt>).
*
*
* Protobuf type {@code proto.CryptoApproveAllowanceTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.CryptoApproveAllowanceTransactionBody)
com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
@java.lang.Override
public java.util.List getCryptoAllowancesList() {
return java.util.Collections.unmodifiableList(
instance.getCryptoAllowancesList());
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
@java.lang.Override
public int getCryptoAllowancesCount() {
return instance.getCryptoAllowancesCount();
}/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoAllowance getCryptoAllowances(int index) {
return instance.getCryptoAllowances(index);
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder setCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.CryptoAllowance value) {
copyOnWrite();
instance.setCryptoAllowances(index, value);
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder setCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.CryptoAllowance.Builder builderForValue) {
copyOnWrite();
instance.setCryptoAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder addCryptoAllowances(com.hedera.hashgraph.sdk.proto.CryptoAllowance value) {
copyOnWrite();
instance.addCryptoAllowances(value);
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder addCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.CryptoAllowance value) {
copyOnWrite();
instance.addCryptoAllowances(index, value);
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder addCryptoAllowances(
com.hedera.hashgraph.sdk.proto.CryptoAllowance.Builder builderForValue) {
copyOnWrite();
instance.addCryptoAllowances(builderForValue.build());
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder addCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.CryptoAllowance.Builder builderForValue) {
copyOnWrite();
instance.addCryptoAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder addAllCryptoAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.CryptoAllowance> values) {
copyOnWrite();
instance.addAllCryptoAllowances(values);
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder clearCryptoAllowances() {
copyOnWrite();
instance.clearCryptoAllowances();
return this;
}
/**
*
**
* List of hbar allowances approved by the account owner.
*
*
* repeated .proto.CryptoAllowance cryptoAllowances = 1;
*/
public Builder removeCryptoAllowances(int index) {
copyOnWrite();
instance.removeCryptoAllowances(index);
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
@java.lang.Override
public java.util.List getNftAllowancesList() {
return java.util.Collections.unmodifiableList(
instance.getNftAllowancesList());
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
@java.lang.Override
public int getNftAllowancesCount() {
return instance.getNftAllowancesCount();
}/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftAllowance getNftAllowances(int index) {
return instance.getNftAllowances(index);
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder setNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftAllowance value) {
copyOnWrite();
instance.setNftAllowances(index, value);
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder setNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftAllowance.Builder builderForValue) {
copyOnWrite();
instance.setNftAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(com.hedera.hashgraph.sdk.proto.NftAllowance value) {
copyOnWrite();
instance.addNftAllowances(value);
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftAllowance value) {
copyOnWrite();
instance.addNftAllowances(index, value);
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
com.hedera.hashgraph.sdk.proto.NftAllowance.Builder builderForValue) {
copyOnWrite();
instance.addNftAllowances(builderForValue.build());
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftAllowance.Builder builderForValue) {
copyOnWrite();
instance.addNftAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder addAllNftAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.NftAllowance> values) {
copyOnWrite();
instance.addAllNftAllowances(values);
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder clearNftAllowances() {
copyOnWrite();
instance.clearNftAllowances();
return this;
}
/**
*
**
* List of non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.NftAllowance nftAllowances = 2;
*/
public Builder removeNftAllowances(int index) {
copyOnWrite();
instance.removeNftAllowances(index);
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
@java.lang.Override
public java.util.List getTokenAllowancesList() {
return java.util.Collections.unmodifiableList(
instance.getTokenAllowancesList());
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
@java.lang.Override
public int getTokenAllowancesCount() {
return instance.getTokenAllowancesCount();
}/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenAllowance getTokenAllowances(int index) {
return instance.getTokenAllowances(index);
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder setTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.TokenAllowance value) {
copyOnWrite();
instance.setTokenAllowances(index, value);
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder setTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.TokenAllowance.Builder builderForValue) {
copyOnWrite();
instance.setTokenAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder addTokenAllowances(com.hedera.hashgraph.sdk.proto.TokenAllowance value) {
copyOnWrite();
instance.addTokenAllowances(value);
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder addTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.TokenAllowance value) {
copyOnWrite();
instance.addTokenAllowances(index, value);
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder addTokenAllowances(
com.hedera.hashgraph.sdk.proto.TokenAllowance.Builder builderForValue) {
copyOnWrite();
instance.addTokenAllowances(builderForValue.build());
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder addTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.TokenAllowance.Builder builderForValue) {
copyOnWrite();
instance.addTokenAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder addAllTokenAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TokenAllowance> values) {
copyOnWrite();
instance.addAllTokenAllowances(values);
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder clearTokenAllowances() {
copyOnWrite();
instance.clearTokenAllowances();
return this;
}
/**
*
**
* List of fungible token allowances approved by the account owner.
*
*
* repeated .proto.TokenAllowance tokenAllowances = 3;
*/
public Builder removeTokenAllowances(int index) {
copyOnWrite();
instance.removeTokenAllowances(index);
return this;
}
// @@protoc_insertion_point(builder_scope:proto.CryptoApproveAllowanceTransactionBody)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"cryptoAllowances_",
com.hedera.hashgraph.sdk.proto.CryptoAllowance.class,
"nftAllowances_",
com.hedera.hashgraph.sdk.proto.NftAllowance.class,
"tokenAllowances_",
com.hedera.hashgraph.sdk.proto.TokenAllowance.class,
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0003\u0000\u0001\u001b\u0002\u001b" +
"\u0003\u001b";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.CryptoApproveAllowanceTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody DEFAULT_INSTANCE;
static {
CryptoApproveAllowanceTransactionBody defaultInstance = new CryptoApproveAllowanceTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CryptoApproveAllowanceTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy