Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: system_delete.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SystemDeleteTransactionBody(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 10: {
com.hederahashgraph.api.proto.java.FileID.Builder subBuilder = null;
if (idCase_ == 1) {
subBuilder = ((com.hederahashgraph.api.proto.java.FileID) id_).toBuilder();
}
id_ =
input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.FileID) id_);
id_ = subBuilder.buildPartial();
}
idCase_ = 1;
break;
}
case 18: {
com.hederahashgraph.api.proto.java.ContractID.Builder subBuilder = null;
if (idCase_ == 2) {
subBuilder = ((com.hederahashgraph.api.proto.java.ContractID) id_).toBuilder();
}
id_ =
input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.ContractID) id_);
id_ = subBuilder.buildPartial();
}
idCase_ = 2;
break;
}
case 26: {
com.hederahashgraph.api.proto.java.TimestampSeconds.Builder subBuilder = null;
if (expirationTime_ != null) {
subBuilder = expirationTime_.toBuilder();
}
expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.TimestampSeconds.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expirationTime_);
expirationTime_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody.class, com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody.Builder.class);
}
private int idCase_ = 0;
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.hederahashgraph.api.proto.java.FileID getFileID() {
if (idCase_ == 1) {
return (com.hederahashgraph.api.proto.java.FileID) id_;
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() {
if (idCase_ == 1) {
return (com.hederahashgraph.api.proto.java.FileID) id_;
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ContractID getContractID() {
if (idCase_ == 2) {
return (com.hederahashgraph.api.proto.java.ContractID) id_;
}
return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance();
}
/**
*
**
* The contract ID instance to delete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
if (idCase_ == 2) {
return (com.hederahashgraph.api.proto.java.ContractID) id_;
}
return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance();
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.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 expirationTime_ != null;
}
/**
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
**
* The timestamp in seconds at which the "deleted" file should truly be permanently deleted
*
*
* .proto.TimestampSeconds expirationTime = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampSecondsOrBuilder getExpirationTimeOrBuilder() {
return getExpirationTime();
}
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.hederahashgraph.api.proto.java.FileID) id_);
}
if (idCase_ == 2) {
output.writeMessage(2, (com.hederahashgraph.api.proto.java.ContractID) id_);
}
if (expirationTime_ != null) {
output.writeMessage(3, getExpirationTime());
}
unknownFields.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.hederahashgraph.api.proto.java.FileID) id_);
}
if (idCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.hederahashgraph.api.proto.java.ContractID) id_);
}
if (expirationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExpirationTime());
}
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.SystemDeleteTransactionBody)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody other = (com.hederahashgraph.api.proto.java.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 (!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 (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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SystemDeleteTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody 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.SystemDeleteTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SystemDeleteTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SystemDeleteTransactionBody 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.SystemDeleteTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody.class, com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
idCase_ = 0;
id_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.SystemDelete.internal_static_proto_SystemDeleteTransactionBody_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody build() {
com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody buildPartial() {
com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody result = new com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody(this);
if (idCase_ == 1) {
if (fileIDBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = fileIDBuilder_.build();
}
}
if (idCase_ == 2) {
if (contractIDBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = contractIDBuilder_.build();
}
}
if (expirationTimeBuilder_ == null) {
result.expirationTime_ = expirationTime_;
} else {
result.expirationTime_ = expirationTimeBuilder_.build();
}
result.idCase_ = idCase_;
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.SystemDeleteTransactionBody) {
return mergeFrom((com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody other) {
if (other == com.hederahashgraph.api.proto.java.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.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.SystemDeleteTransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.SystemDeleteTransactionBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.FileID getFileID() {
if (fileIDBuilder_ == null) {
if (idCase_ == 1) {
return (com.hederahashgraph.api.proto.java.FileID) id_;
}
return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance();
} else {
if (idCase_ == 1) {
return fileIDBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance();
}
}
/**
*
**
* The file ID of the file to delete, in the format used in transactions
*