com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_delete_allowance.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CryptoDeleteAllowanceTransactionBody)
CryptoDeleteAllowanceTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CryptoDeleteAllowanceTransactionBody.newBuilder() to construct.
private CryptoDeleteAllowanceTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CryptoDeleteAllowanceTransactionBody() {
nftAllowances_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CryptoDeleteAllowanceTransactionBody();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CryptoDeleteAllowanceTransactionBody(
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 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
nftAllowances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nftAllowances_.add(
input.readMessage(com.hederahashgraph.api.proto.java.NftRemoveAllowance.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)) {
nftAllowances_ = java.util.Collections.unmodifiableList(nftAllowances_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.CryptoDeleteAllowance.internal_static_proto_CryptoDeleteAllowanceTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.CryptoDeleteAllowance.internal_static_proto_CryptoDeleteAllowanceTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody.class, com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody.Builder.class);
}
public static final int NFTALLOWANCES_FIELD_NUMBER = 2;
private java.util.List 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;
*/
@java.lang.Override
public java.util.List extends com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftRemoveAllowance getNftAllowances(int index) {
return nftAllowances_.get(index);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NftRemoveAllowanceOrBuilder getNftAllowancesOrBuilder(
int index) {
return nftAllowances_.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 {
for (int i = 0; i < nftAllowances_.size(); i++) {
output.writeMessage(2, nftAllowances_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nftAllowances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, nftAllowances_.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.CryptoDeleteAllowanceTransactionBody)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody other = (com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody) obj;
if (!getNftAllowancesList()
.equals(other.getNftAllowancesList())) 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 (getNftAllowancesCount() > 0) {
hash = (37 * hash) + NFTALLOWANCES_FIELD_NUMBER;
hash = (53 * hash) + getNftAllowancesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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.CryptoDeleteAllowanceTransactionBody 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;
}
/**
*
**
* 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.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.CryptoDeleteAllowanceTransactionBody)
com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.CryptoDeleteAllowance.internal_static_proto_CryptoDeleteAllowanceTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.CryptoDeleteAllowance.internal_static_proto_CryptoDeleteAllowanceTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody.class, com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNftAllowancesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nftAllowancesBuilder_ == null) {
nftAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nftAllowancesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.CryptoDeleteAllowance.internal_static_proto_CryptoDeleteAllowanceTransactionBody_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody build() {
com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody buildPartial() {
com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody result = new com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody(this);
int from_bitField0_ = bitField0_;
if (nftAllowancesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
nftAllowances_ = java.util.Collections.unmodifiableList(nftAllowances_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nftAllowances_ = nftAllowances_;
} else {
result.nftAllowances_ = nftAllowancesBuilder_.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.CryptoDeleteAllowanceTransactionBody) {
return mergeFrom((com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody other) {
if (other == com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody.getDefaultInstance()) return this;
if (nftAllowancesBuilder_ == null) {
if (!other.nftAllowances_.isEmpty()) {
if (nftAllowances_.isEmpty()) {
nftAllowances_ = other.nftAllowances_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNftAllowancesIsMutable();
nftAllowances_.addAll(other.nftAllowances_);
}
onChanged();
}
} else {
if (!other.nftAllowances_.isEmpty()) {
if (nftAllowancesBuilder_.isEmpty()) {
nftAllowancesBuilder_.dispose();
nftAllowancesBuilder_ = null;
nftAllowances_ = other.nftAllowances_;
bitField0_ = (bitField0_ & ~0x00000001);
nftAllowancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNftAllowancesFieldBuilder() : null;
} else {
nftAllowancesBuilder_.addAllMessages(other.nftAllowances_);
}
}
}
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.CryptoDeleteAllowanceTransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List nftAllowances_ =
java.util.Collections.emptyList();
private void ensureNftAllowancesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nftAllowances_ = new java.util.ArrayList(nftAllowances_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftRemoveAllowance, com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder, com.hederahashgraph.api.proto.java.NftRemoveAllowanceOrBuilder> nftAllowancesBuilder_;
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public java.util.List getNftAllowancesList() {
if (nftAllowancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nftAllowances_);
} else {
return nftAllowancesBuilder_.getMessageList();
}
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public int getNftAllowancesCount() {
if (nftAllowancesBuilder_ == null) {
return nftAllowances_.size();
} else {
return nftAllowancesBuilder_.getCount();
}
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public com.hederahashgraph.api.proto.java.NftRemoveAllowance getNftAllowances(int index) {
if (nftAllowancesBuilder_ == null) {
return nftAllowances_.get(index);
} else {
return nftAllowancesBuilder_.getMessage(index);
}
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder setNftAllowances(
int index, com.hederahashgraph.api.proto.java.NftRemoveAllowance value) {
if (nftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNftAllowancesIsMutable();
nftAllowances_.set(index, value);
onChanged();
} else {
nftAllowancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder setNftAllowances(
int index, com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder builderForValue) {
if (nftAllowancesBuilder_ == null) {
ensureNftAllowancesIsMutable();
nftAllowances_.set(index, builderForValue.build());
onChanged();
} else {
nftAllowancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(com.hederahashgraph.api.proto.java.NftRemoveAllowance value) {
if (nftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNftAllowancesIsMutable();
nftAllowances_.add(value);
onChanged();
} else {
nftAllowancesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
int index, com.hederahashgraph.api.proto.java.NftRemoveAllowance value) {
if (nftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNftAllowancesIsMutable();
nftAllowances_.add(index, value);
onChanged();
} else {
nftAllowancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder builderForValue) {
if (nftAllowancesBuilder_ == null) {
ensureNftAllowancesIsMutable();
nftAllowances_.add(builderForValue.build());
onChanged();
} else {
nftAllowancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder addNftAllowances(
int index, com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder builderForValue) {
if (nftAllowancesBuilder_ == null) {
ensureNftAllowancesIsMutable();
nftAllowances_.add(index, builderForValue.build());
onChanged();
} else {
nftAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.NftRemoveAllowance> values) {
if (nftAllowancesBuilder_ == null) {
ensureNftAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nftAllowances_);
onChanged();
} else {
nftAllowancesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder clearNftAllowances() {
if (nftAllowancesBuilder_ == null) {
nftAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nftAllowancesBuilder_.clear();
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public Builder removeNftAllowances(int index) {
if (nftAllowancesBuilder_ == null) {
ensureNftAllowancesIsMutable();
nftAllowances_.remove(index);
onChanged();
} else {
nftAllowancesBuilder_.remove(index);
}
return this;
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder getNftAllowancesBuilder(
int index) {
return getNftAllowancesFieldBuilder().getBuilder(index);
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public com.hederahashgraph.api.proto.java.NftRemoveAllowanceOrBuilder getNftAllowancesOrBuilder(
int index) {
if (nftAllowancesBuilder_ == null) {
return nftAllowances_.get(index); } else {
return nftAllowancesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public java.util.List extends com.hederahashgraph.api.proto.java.NftRemoveAllowanceOrBuilder>
getNftAllowancesOrBuilderList() {
if (nftAllowancesBuilder_ != null) {
return nftAllowancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nftAllowances_);
}
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder addNftAllowancesBuilder() {
return getNftAllowancesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.NftRemoveAllowance.getDefaultInstance());
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder addNftAllowancesBuilder(
int index) {
return getNftAllowancesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.NftRemoveAllowance.getDefaultInstance());
}
/**
*
**
* List of non-fungible token allowances to remove.
*
*
* repeated .proto.NftRemoveAllowance nftAllowances = 2;
*/
public java.util.List
getNftAllowancesBuilderList() {
return getNftAllowancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftRemoveAllowance, com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder, com.hederahashgraph.api.proto.java.NftRemoveAllowanceOrBuilder>
getNftAllowancesFieldBuilder() {
if (nftAllowancesBuilder_ == null) {
nftAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftRemoveAllowance, com.hederahashgraph.api.proto.java.NftRemoveAllowance.Builder, com.hederahashgraph.api.proto.java.NftRemoveAllowanceOrBuilder>(
nftAllowances_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
nftAllowances_ = null;
}
return nftAllowancesBuilder_;
}
@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.CryptoDeleteAllowanceTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.CryptoDeleteAllowanceTransactionBody)
private static final com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody();
}
public static com.hederahashgraph.api.proto.java.CryptoDeleteAllowanceTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CryptoDeleteAllowanceTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CryptoDeleteAllowanceTransactionBody(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.CryptoDeleteAllowanceTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}