com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: system_delete.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Delete a file or smart contract - can only be done with a Hedera administrative multisignature.
* When it is deleted, it immediately disappears from the system as seen by the user, but is still
* stored internally until the expiration time, at which time it is truly and permanently deleted.
* Until that time, it can be undeleted by the Hedera administrative multisignature. When a smart
* contract is deleted, the cryptocurrency account within it continues to exist, and is not affected
* by the expiration time here.
*
*
* Protobuf type {@code proto.SystemDeleteTransactionBody}
*/
public final class SystemDeleteTransactionBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.SystemDeleteTransactionBody)
SystemDeleteTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use SystemDeleteTransactionBody.newBuilder() to construct.
private SystemDeleteTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SystemDeleteTransactionBody() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SystemDeleteTransactionBody();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.class, com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.Builder.class);
}
private int bitField0_;
private int idCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object id_;
public enum IdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FILEID(1),
CONTRACTID(2),
ID_NOT_SET(0);
private final int value;
private IdCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdCase valueOf(int value) {
return forNumber(value);
}
public static IdCase forNumber(int value) {
switch (value) {
case 1: return FILEID;
case 2: return CONTRACTID;
case 0: return ID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public static final int FILEID_FIELD_NUMBER = 1;
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
* @return Whether the fileID field is set.
*/
@java.lang.Override
public boolean hasFileID() {
return idCase_ == 1;
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
* @return The fileID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
if (idCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FileID) id_;
}
return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance();
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
if (idCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FileID) id_;
}
return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance();
}
public static final int CONTRACTID_FIELD_NUMBER = 2;
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
* @return Whether the contractID field is set.
*/
@java.lang.Override
public boolean hasContractID() {
return idCase_ == 2;
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
* @return The contractID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
if (idCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.ContractID) id_;
}
return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance();
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
if (idCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.ContractID) id_;
}
return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance();
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.TimestampSeconds expirationTime_;
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return Whether the expirationTime field is set.
*/
@java.lang.Override
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return The expirationTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpirationTime() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
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 (idCase_ == 1) {
output.writeMessage(1, (com.hedera.hashgraph.sdk.proto.FileID) id_);
}
if (idCase_ == 2) {
output.writeMessage(2, (com.hedera.hashgraph.sdk.proto.ContractID) id_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getExpirationTime());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (idCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.hedera.hashgraph.sdk.proto.FileID) id_);
}
if (idCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.hedera.hashgraph.sdk.proto.ContractID) id_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExpirationTime());
}
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.SystemDeleteTransactionBody)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody other = (com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody) obj;
if (hasExpirationTime() != other.hasExpirationTime()) return false;
if (hasExpirationTime()) {
if (!getExpirationTime()
.equals(other.getExpirationTime())) return false;
}
if (!getIdCase().equals(other.getIdCase())) return false;
switch (idCase_) {
case 1:
if (!getFileID()
.equals(other.getFileID())) return false;
break;
case 2:
if (!getContractID()
.equals(other.getContractID())) return false;
break;
case 0:
default:
}
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();
if (hasExpirationTime()) {
hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTime().hashCode();
}
switch (idCase_) {
case 1:
hash = (37 * hash) + FILEID_FIELD_NUMBER;
hash = (53 * hash) + getFileID().hashCode();
break;
case 2:
hash = (37 * hash) + CONTRACTID_FIELD_NUMBER;
hash = (53 * hash) + getContractID().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody 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;
}
/**
*
**
* Delete a file or smart contract - can only be done with a Hedera administrative multisignature.
* When it is deleted, it immediately disappears from the system as seen by the user, but is still
* stored internally until the expiration time, at which time it is truly and permanently deleted.
* Until that time, it can be undeleted by the Hedera administrative multisignature. When a smart
* contract is deleted, the cryptocurrency account within it continues to exist, and is not affected
* by the expiration time here.
*
*
* Protobuf type {@code proto.SystemDeleteTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.SystemDeleteTransactionBody)
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.class, com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExpirationTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (fileIDBuilder_ != null) {
fileIDBuilder_.clear();
}
if (contractIDBuilder_ != null) {
contractIDBuilder_.clear();
}
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
idCase_ = 0;
id_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody build() {
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody buildPartial() {
com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody result = new com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.expirationTime_ = expirationTimeBuilder_ == null
? expirationTime_
: expirationTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody result) {
result.idCase_ = idCase_;
result.id_ = this.id_;
if (idCase_ == 1 &&
fileIDBuilder_ != null) {
result.id_ = fileIDBuilder_.build();
}
if (idCase_ == 2 &&
contractIDBuilder_ != null) {
result.id_ = contractIDBuilder_.build();
}
}
@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.SystemDeleteTransactionBody) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody other) {
if (other == com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody.getDefaultInstance()) return this;
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
switch (other.getIdCase()) {
case FILEID: {
mergeFileID(other.getFileID());
break;
}
case CONTRACTID: {
mergeContractID(other.getContractID());
break;
}
case ID_NOT_SET: {
break;
}
}
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 10: {
input.readMessage(
getFileIDFieldBuilder().getBuilder(),
extensionRegistry);
idCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getContractIDFieldBuilder().getBuilder(),
extensionRegistry);
idCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getExpirationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 idCase_ = 0;
private java.lang.Object id_;
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public Builder clearId() {
idCase_ = 0;
id_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> fileIDBuilder_;
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
* @return Whether the fileID field is set.
*/
@java.lang.Override
public boolean hasFileID() {
return idCase_ == 1;
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
* @return The fileID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
if (fileIDBuilder_ == null) {
if (idCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FileID) id_;
}
return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance();
} else {
if (idCase_ == 1) {
return fileIDBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance();
}
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
fileIDBuilder_.setMessage(value);
}
idCase_ = 1;
return this;
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
if (fileIDBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
fileIDBuilder_.setMessage(builderForValue.build());
}
idCase_ = 1;
return this;
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (idCase_ == 1 &&
id_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) {
id_ = com.hedera.hashgraph.sdk.proto.FileID.newBuilder((com.hedera.hashgraph.sdk.proto.FileID) id_)
.mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
if (idCase_ == 1) {
fileIDBuilder_.mergeFrom(value);
} else {
fileIDBuilder_.setMessage(value);
}
}
idCase_ = 1;
return this;
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder clearFileID() {
if (fileIDBuilder_ == null) {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
onChanged();
}
} else {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
}
fileIDBuilder_.clear();
}
return this;
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public com.hedera.hashgraph.sdk.proto.FileID.Builder getFileIDBuilder() {
return getFileIDFieldBuilder().getBuilder();
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
if ((idCase_ == 1) && (fileIDBuilder_ != null)) {
return fileIDBuilder_.getMessageOrBuilder();
} else {
if (idCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FileID) id_;
}
return com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance();
}
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>
getFileIDFieldBuilder() {
if (fileIDBuilder_ == null) {
if (!(idCase_ == 1)) {
id_ = com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance();
}
fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>(
(com.hedera.hashgraph.sdk.proto.FileID) id_,
getParentForChildren(),
isClean());
id_ = null;
}
idCase_ = 1;
onChanged();
return fileIDBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> contractIDBuilder_;
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
* @return Whether the contractID field is set.
*/
@java.lang.Override
public boolean hasContractID() {
return idCase_ == 2;
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
* @return The contractID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
if (contractIDBuilder_ == null) {
if (idCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.ContractID) id_;
}
return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance();
} else {
if (idCase_ == 2) {
return contractIDBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance();
}
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
contractIDBuilder_.setMessage(value);
}
idCase_ = 2;
return this;
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
idCase_ = 2;
return this;
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (idCase_ == 2 &&
id_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) {
id_ = com.hedera.hashgraph.sdk.proto.ContractID.newBuilder((com.hedera.hashgraph.sdk.proto.ContractID) id_)
.mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
if (idCase_ == 2) {
contractIDBuilder_.mergeFrom(value);
} else {
contractIDBuilder_.setMessage(value);
}
}
idCase_ = 2;
return this;
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder clearContractID() {
if (contractIDBuilder_ == null) {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
onChanged();
}
} else {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
}
contractIDBuilder_.clear();
}
return this;
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() {
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
if ((idCase_ == 2) && (contractIDBuilder_ != null)) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
if (idCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.ContractID) id_;
}
return com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance();
}
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
if (!(idCase_ == 2)) {
id_ = com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance();
}
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>(
(com.hedera.hashgraph.sdk.proto.ContractID) id_,
getParentForChildren(),
isClean());
id_ = null;
}
idCase_ = 2;
onChanged();
return contractIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.TimestampSeconds expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder> expirationTimeBuilder_;
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
* @return The expirationTime.
*/
public com.hedera.hashgraph.sdk.proto.TimestampSeconds getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
} else {
expirationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder setExpirationTime(
com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.TimestampSeconds value) {
if (expirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
expirationTime_ != null &&
expirationTime_ != com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance()) {
getExpirationTimeBuilder().mergeFrom(value);
} else {
expirationTime_ = value;
}
} else {
expirationTimeBuilder_.mergeFrom(value);
}
if (expirationTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public Builder clearExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000004);
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder getExpirationTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hedera.hashgraph.sdk.proto.TimestampSeconds.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TimestampSeconds, com.hedera.hashgraph.sdk.proto.TimestampSeconds.Builder, com.hedera.hashgraph.sdk.proto.TimestampSecondsOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
@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.SystemDeleteTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.SystemDeleteTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody();
}
public static com.hedera.hashgraph.sdk.proto.SystemDeleteTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SystemDeleteTransactionBody 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.SystemDeleteTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}