com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: system_undelete.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.SystemUndeleteTransactionBody)
SystemUndeleteTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use SystemUndeleteTransactionBody.newBuilder() to construct.
private SystemUndeleteTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SystemUndeleteTransactionBody() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SystemUndeleteTransactionBody();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SystemUndeleteTransactionBody(
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;
}
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.SystemUndelete.internal_static_proto_SystemUndeleteTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.SystemUndelete.internal_static_proto_SystemUndeleteTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody.class, com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody.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 to undelete, 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 to undelete, 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 to undelete, 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 undelete, 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 undelete, 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 undelete, 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();
}
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_);
}
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_);
}
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.SystemUndeleteTransactionBody)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody other = (com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody) obj;
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();
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.SystemUndeleteTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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.SystemUndeleteTransactionBody 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;
}
/**
*
**
* 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.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.SystemUndeleteTransactionBody)
com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.SystemUndelete.internal_static_proto_SystemUndeleteTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.SystemUndelete.internal_static_proto_SystemUndeleteTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody.class, com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody.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();
idCase_ = 0;
id_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.SystemUndelete.internal_static_proto_SystemUndeleteTransactionBody_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody build() {
com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody buildPartial() {
com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody result = new com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody(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();
}
}
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.SystemUndeleteTransactionBody) {
return mergeFrom((com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody other) {
if (other == com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody.getDefaultInstance()) return this;
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.SystemUndeleteTransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody) 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 to undelete, 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 to undelete, 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 to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(com.hederahashgraph.api.proto.java.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 to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(
com.hederahashgraph.api.proto.java.FileID.Builder builderForValue) {
if (fileIDBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
fileIDBuilder_.setMessage(builderForValue.build());
}
idCase_ = 1;
return this;
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public Builder mergeFileID(com.hederahashgraph.api.proto.java.FileID value) {
if (fileIDBuilder_ == null) {
if (idCase_ == 1 &&
id_ != com.hederahashgraph.api.proto.java.FileID.getDefaultInstance()) {
id_ = com.hederahashgraph.api.proto.java.FileID.newBuilder((com.hederahashgraph.api.proto.java.FileID) id_)
.mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
if (idCase_ == 1) {
fileIDBuilder_.mergeFrom(value);
}
fileIDBuilder_.setMessage(value);
}
idCase_ = 1;
return this;
}
/**
*
**
* The file ID to undelete, 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 to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
public com.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() {
return getFileIDFieldBuilder().getBuilder();
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() {
if ((idCase_ == 1) && (fileIDBuilder_ != null)) {
return fileIDBuilder_.getMessageOrBuilder();
} else {
if (idCase_ == 1) {
return (com.hederahashgraph.api.proto.java.FileID) id_;
}
return com.hederahashgraph.api.proto.java.FileID.getDefaultInstance();
}
}
/**
*
**
* The file ID to undelete, in the format used in transactions
*
*
* .proto.FileID fileID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>
getFileIDFieldBuilder() {
if (fileIDBuilder_ == null) {
if (!(idCase_ == 1)) {
id_ = com.hederahashgraph.api.proto.java.FileID.getDefaultInstance();
}
fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>(
(com.hederahashgraph.api.proto.java.FileID) id_,
getParentForChildren(),
isClean());
id_ = null;
}
idCase_ = 1;
onChanged();;
return fileIDBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> contractIDBuilder_;
/**
*
**
* The contract ID instance to undelete, 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 undelete, 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 (contractIDBuilder_ == null) {
if (idCase_ == 2) {
return (com.hederahashgraph.api.proto.java.ContractID) id_;
}
return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance();
} else {
if (idCase_ == 2) {
return contractIDBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance();
}
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(com.hederahashgraph.api.proto.java.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 undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(
com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
idCase_ = 2;
return this;
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (idCase_ == 2 &&
id_ != com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance()) {
id_ = com.hederahashgraph.api.proto.java.ContractID.newBuilder((com.hederahashgraph.api.proto.java.ContractID) id_)
.mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
if (idCase_ == 2) {
contractIDBuilder_.mergeFrom(value);
}
contractIDBuilder_.setMessage(value);
}
idCase_ = 2;
return this;
}
/**
*
**
* The contract ID instance to undelete, 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 undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() {
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
if ((idCase_ == 2) && (contractIDBuilder_ != null)) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
if (idCase_ == 2) {
return (com.hederahashgraph.api.proto.java.ContractID) id_;
}
return com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance();
}
}
/**
*
**
* The contract ID instance to undelete, in the format used in transactions
*
*
* .proto.ContractID contractID = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
if (!(idCase_ == 2)) {
id_ = com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance();
}
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>(
(com.hederahashgraph.api.proto.java.ContractID) id_,
getParentForChildren(),
isClean());
id_ = null;
}
idCase_ = 2;
onChanged();;
return contractIDBuilder_;
}
@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.SystemUndeleteTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.SystemUndeleteTransactionBody)
private static final com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody();
}
public static com.hederahashgraph.api.proto.java.SystemUndeleteTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SystemUndeleteTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SystemUndeleteTransactionBody(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.SystemUndeleteTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}