
com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: system_undelete.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Undelete a file or smart contract that was deleted by SystemDelete; requires a Hedera
* administrative multisignature.
*
*
* Protobuf type {@code proto.SystemUndeleteTransactionBody}
*/
public final class SystemUndeleteTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
SystemUndeleteTransactionBody, SystemUndeleteTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.SystemUndeleteTransactionBody)
SystemUndeleteTransactionBodyOrBuilder {
private SystemUndeleteTransactionBody() {
}
private int idCase_ = 0;
private java.lang.Object id_;
public enum IdCase {
FILEID(1),
CONTRACTID(2),
ID_NOT_SET(0);
private final int value;
private IdCase(int value) {
this.value = value;
}
/**
* @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;
}
};
@java.lang.Override
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
private void clearId() {
idCase_ = 0;
id_ = null;
}
public static final int FILEID_FIELD_NUMBER = 1;
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public boolean hasFileID() {
return idCase_ == 1;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
@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 to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
private void setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
value.getClass();
id_ = value;
idCase_ = 1;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
private void mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
value.getClass();
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;
}
idCase_ = 1;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
private void clearFileID() {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
}
}
public static final int CONTRACTID_FIELD_NUMBER = 2;
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public boolean hasContractID() {
return idCase_ == 2;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@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 undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
private void setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
value.getClass();
id_ = value;
idCase_ = 2;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
private void mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
value.getClass();
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;
}
idCase_ = 2;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
private void clearContractID() {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
}
}
public static com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* Undelete a file or smart contract that was deleted by SystemDelete; requires a Hedera
* administrative multisignature.
*
*
* Protobuf type {@code proto.SystemUndeleteTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.SystemUndeleteTransactionBody)
com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public IdCase
getIdCase() {
return instance.getIdCase();
}
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public boolean hasFileID() {
return instance.hasFileID();
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
return instance.getFileID();
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
copyOnWrite();
instance.setFileID(value);
return this;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
copyOnWrite();
instance.setFileID(builderForValue.build());
return this;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
copyOnWrite();
instance.mergeFileID(value);
return this;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder clearFileID() {
copyOnWrite();
instance.clearFileID();
return this;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public boolean hasContractID() {
return instance.hasContractID();
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
return instance.getContractID();
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
copyOnWrite();
instance.setContractID(value);
return this;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
copyOnWrite();
instance.setContractID(builderForValue.build());
return this;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
copyOnWrite();
instance.mergeContractID(value);
return this;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder clearContractID() {
copyOnWrite();
instance.clearContractID();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.SystemUndeleteTransactionBody)
}
@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.SystemUndeleteTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"idCase_",
com.hedera.hashgraph.sdk.proto.FileID.class,
com.hedera.hashgraph.sdk.proto.ContractID.class,
};
java.lang.String info =
"\u0000\u0002\u0001\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001<\u0000\u0002<" +
"\u0000";
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.SystemUndeleteTransactionBody.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.SystemUndeleteTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody DEFAULT_INSTANCE;
static {
SystemUndeleteTransactionBody defaultInstance = new SystemUndeleteTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
SystemUndeleteTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.SystemUndeleteTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy