com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody 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_delete_allowance.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Deletes one or more non-fungible approved allowances from an owner's account. This operation
* will remove the allowances granted to one or more specific non-fungible token serial numbers. Each owner account
* listed as wiping an allowance must sign the transaction. Hbar and fungible token allowances
* can be removed by setting the amount to zero in CryptoApproveAllowance.
*
*
* Protobuf type {@code proto.CryptoDeleteAllowanceTransactionBody}
*/
public final class CryptoDeleteAllowanceTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
CryptoDeleteAllowanceTransactionBody, CryptoDeleteAllowanceTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.CryptoDeleteAllowanceTransactionBody)
CryptoDeleteAllowanceTransactionBodyOrBuilder {
private CryptoDeleteAllowanceTransactionBody() {
nftAllowances_ = emptyProtobufList();
}
public static final int NFTALLOWANCES_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.ProtobufList nftAllowances_;
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
@java.lang.Override
public java.util.List getNftAllowancesList() {
return nftAllowances_;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.NftRemoveAllowanceOrBuilder>
getNftAllowancesOrBuilderList() {
return nftAllowances_;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
@java.lang.Override
public int getNftAllowancesCount() {
return nftAllowances_.size();
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftRemoveAllowance getNftAllowances(int index) {
return nftAllowances_.get(index);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public com.hedera.hashgraph.sdk.proto.NftRemoveAllowanceOrBuilder 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 to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
private void setNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftRemoveAllowance value) {
value.getClass();
ensureNftAllowancesIsMutable();
nftAllowances_.set(index, value);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
private void addNftAllowances(com.hedera.hashgraph.sdk.proto.NftRemoveAllowance value) {
value.getClass();
ensureNftAllowancesIsMutable();
nftAllowances_.add(value);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
private void addNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftRemoveAllowance value) {
value.getClass();
ensureNftAllowancesIsMutable();
nftAllowances_.add(index, value);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
private void addAllNftAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.NftRemoveAllowance> values) {
ensureNftAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, nftAllowances_);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
private void clearNftAllowances() {
nftAllowances_ = emptyProtobufList();
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
private void removeNftAllowances(int index) {
ensureNftAllowancesIsMutable();
nftAllowances_.remove(index);
}
public static com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* Deletes one or more non-fungible approved allowances from an owner's account. This operation
* will remove the allowances granted to one or more specific non-fungible token serial numbers. Each owner account
* listed as wiping an allowance must sign the transaction. Hbar and fungible token allowances
* can be removed by setting the amount to zero in CryptoApproveAllowance.
*
*
* Protobuf type {@code proto.CryptoDeleteAllowanceTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.CryptoDeleteAllowanceTransactionBody)
com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
@java.lang.Override
public java.util.List getNftAllowancesList() {
return java.util.Collections.unmodifiableList(
instance.getNftAllowancesList());
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
@java.lang.Override
public int getNftAllowancesCount() {
return instance.getNftAllowancesCount();
}/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftRemoveAllowance getNftAllowances(int index) {
return instance.getNftAllowances(index);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder setNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftRemoveAllowance value) {
copyOnWrite();
instance.setNftAllowances(index, value);
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder setNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftRemoveAllowance.Builder builderForValue) {
copyOnWrite();
instance.setNftAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(com.hedera.hashgraph.sdk.proto.NftRemoveAllowance value) {
copyOnWrite();
instance.addNftAllowances(value);
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftRemoveAllowance value) {
copyOnWrite();
instance.addNftAllowances(index, value);
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
com.hedera.hashgraph.sdk.proto.NftRemoveAllowance.Builder builderForValue) {
copyOnWrite();
instance.addNftAllowances(builderForValue.build());
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.NftRemoveAllowance.Builder builderForValue) {
copyOnWrite();
instance.addNftAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addAllNftAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.NftRemoveAllowance> values) {
copyOnWrite();
instance.addAllNftAllowances(values);
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder clearNftAllowances() {
copyOnWrite();
instance.clearNftAllowances();
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder removeNftAllowances(int index) {
copyOnWrite();
instance.removeNftAllowances(index);
return this;
}
// @@protoc_insertion_point(builder_scope:proto.CryptoDeleteAllowanceTransactionBody)
}
@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.CryptoDeleteAllowanceTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"nftAllowances_",
com.hedera.hashgraph.sdk.proto.NftRemoveAllowance.class,
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0002\u0002\u0001\u0000\u0001\u0000\u0002\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.CryptoDeleteAllowanceTransactionBody.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.CryptoDeleteAllowanceTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody DEFAULT_INSTANCE;
static {
CryptoDeleteAllowanceTransactionBody defaultInstance = new CryptoDeleteAllowanceTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CryptoDeleteAllowanceTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.CryptoDeleteAllowanceTransactionBody 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