com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody 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: file_update.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Modify the metadata and/or contents of a file. If a field is not set in the transaction body, the
* corresponding file attribute will be unchanged. This transaction must be signed by all the keys
* in the top level of a key list (M-of-M) of the file being updated. If the keys themselves are
* being updated, then the transaction must also be signed by all the new keys. If the keys contain
* additional KeyList or ThresholdKey then M-of-M secondary KeyList or ThresholdKey signing
* requirements must be meet If the update transaction sets the <tt>auto_renew_account_id</tt> field
* to anything other than the sentinel <tt>0.0.0</tt>, the key of the referenced account must sign.
*
*
* Protobuf type {@code proto.FileUpdateTransactionBody}
*/
public final class FileUpdateTransactionBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.FileUpdateTransactionBody)
FileUpdateTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileUpdateTransactionBody.newBuilder() to construct.
private FileUpdateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileUpdateTransactionBody() {
contents_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileUpdateTransactionBody();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileUpdate.internal_static_proto_FileUpdateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileUpdate.internal_static_proto_FileUpdateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody.Builder.class);
}
private int bitField0_;
public static final int FILEID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.FileID fileID_;
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
* @return Whether the fileID field is set.
*/
@java.lang.Override
public boolean hasFileID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
* @return The fileID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
* @return Whether the expirationTime field is set.
*/
@java.lang.Override
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
* @return The expirationTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
public static final int KEYS_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.KeyList keys_;
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
* @return Whether the keys field is set.
*/
@java.lang.Override
public boolean hasKeys() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
* @return The keys.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.KeyList getKeys() {
return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_;
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.KeyListOrBuilder getKeysOrBuilder() {
return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_;
}
public static final int CONTENTS_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The new contents that should overwrite the file's current contents
*
*
* bytes contents = 4;
* @return The contents.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContents() {
return contents_;
}
public static final int MEMO_FIELD_NUMBER = 5;
private com.google.protobuf.StringValue memo_;
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
* @return Whether the memo field is set.
*/
@java.lang.Override
public boolean hasMemo() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
* @return The memo.
*/
@java.lang.Override
public com.google.protobuf.StringValue getMemo() {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getFileID());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getExpirationTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getKeys());
}
if (!contents_.isEmpty()) {
output.writeBytes(4, contents_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getMemo());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFileID());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getExpirationTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getKeys());
}
if (!contents_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, contents_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getMemo());
}
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.FileUpdateTransactionBody)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody other = (com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody) obj;
if (hasFileID() != other.hasFileID()) return false;
if (hasFileID()) {
if (!getFileID()
.equals(other.getFileID())) return false;
}
if (hasExpirationTime() != other.hasExpirationTime()) return false;
if (hasExpirationTime()) {
if (!getExpirationTime()
.equals(other.getExpirationTime())) return false;
}
if (hasKeys() != other.hasKeys()) return false;
if (hasKeys()) {
if (!getKeys()
.equals(other.getKeys())) return false;
}
if (!getContents()
.equals(other.getContents())) return false;
if (hasMemo() != other.hasMemo()) return false;
if (hasMemo()) {
if (!getMemo()
.equals(other.getMemo())) return false;
}
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 (hasFileID()) {
hash = (37 * hash) + FILEID_FIELD_NUMBER;
hash = (53 * hash) + getFileID().hashCode();
}
if (hasExpirationTime()) {
hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTime().hashCode();
}
if (hasKeys()) {
hash = (37 * hash) + KEYS_FIELD_NUMBER;
hash = (53 * hash) + getKeys().hashCode();
}
hash = (37 * hash) + CONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getContents().hashCode();
if (hasMemo()) {
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody 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.FileUpdateTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody 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.FileUpdateTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody 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.FileUpdateTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody 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.FileUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody 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.FileUpdateTransactionBody 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.FileUpdateTransactionBody 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.FileUpdateTransactionBody 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;
}
/**
*
**
* Modify the metadata and/or contents of a file. If a field is not set in the transaction body, the
* corresponding file attribute will be unchanged. This transaction must be signed by all the keys
* in the top level of a key list (M-of-M) of the file being updated. If the keys themselves are
* being updated, then the transaction must also be signed by all the new keys. If the keys contain
* additional KeyList or ThresholdKey then M-of-M secondary KeyList or ThresholdKey signing
* requirements must be meet If the update transaction sets the <tt>auto_renew_account_id</tt> field
* to anything other than the sentinel <tt>0.0.0</tt>, the key of the referenced account must sign.
*
*
* Protobuf type {@code proto.FileUpdateTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.FileUpdateTransactionBody)
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.FileUpdate.internal_static_proto_FileUpdateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.FileUpdate.internal_static_proto_FileUpdateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody.class, com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFileIDFieldBuilder();
getExpirationTimeFieldBuilder();
getKeysFieldBuilder();
getMemoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
keys_ = null;
if (keysBuilder_ != null) {
keysBuilder_.dispose();
keysBuilder_ = null;
}
contents_ = com.google.protobuf.ByteString.EMPTY;
memo_ = null;
if (memoBuilder_ != null) {
memoBuilder_.dispose();
memoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.FileUpdate.internal_static_proto_FileUpdateTransactionBody_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody build() {
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody buildPartial() {
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody result = new com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fileID_ = fileIDBuilder_ == null
? fileID_
: fileIDBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.expirationTime_ = expirationTimeBuilder_ == null
? expirationTime_
: expirationTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.keys_ = keysBuilder_ == null
? keys_
: keysBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.contents_ = contents_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.memo_ = memoBuilder_ == null
? memo_
: memoBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@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.FileUpdateTransactionBody) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody other) {
if (other == com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody.getDefaultInstance()) return this;
if (other.hasFileID()) {
mergeFileID(other.getFileID());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
if (other.hasKeys()) {
mergeKeys(other.getKeys());
}
if (other.getContents() != com.google.protobuf.ByteString.EMPTY) {
setContents(other.getContents());
}
if (other.hasMemo()) {
mergeMemo(other.getMemo());
}
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);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getExpirationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getKeysFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
contents_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getMemoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
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 bitField0_;
private com.hedera.hashgraph.sdk.proto.FileID fileID_;
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 ID of the file to update
*
*
* .proto.FileID fileID = 1;
* @return Whether the fileID field is set.
*/
public boolean hasFileID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
* @return The fileID.
*/
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
if (fileIDBuilder_ == null) {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
} else {
return fileIDBuilder_.getMessage();
}
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileID_ = value;
} else {
fileIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
*/
public Builder setFileID(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
if (fileIDBuilder_ == null) {
fileID_ = builderForValue.build();
} else {
fileIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
*/
public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
fileID_ != null &&
fileID_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) {
getFileIDBuilder().mergeFrom(value);
} else {
fileID_ = value;
}
} else {
fileIDBuilder_.mergeFrom(value);
}
if (fileID_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
*/
public Builder clearFileID() {
bitField0_ = (bitField0_ & ~0x00000001);
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
*/
public com.hedera.hashgraph.sdk.proto.FileID.Builder getFileIDBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getFileIDFieldBuilder().getBuilder();
}
/**
*
**
* The ID of the file to update
*
*
* .proto.FileID fileID = 1;
*/
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
if (fileIDBuilder_ != null) {
return fileIDBuilder_.getMessageOrBuilder();
} else {
return fileID_ == null ?
com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
}
/**
*
**
* The ID of the file to update
*
*
* .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) {
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>(
getFileID(),
getParentForChildren(),
isClean());
fileID_ = null;
}
return fileIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> expirationTimeBuilder_;
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
* @return The expirationTime.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
} else {
expirationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder setExpirationTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
expirationTime_ != null &&
expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getExpirationTimeBuilder().mergeFrom(value);
} else {
expirationTime_ = value;
}
} else {
expirationTimeBuilder_.mergeFrom(value);
}
if (expirationTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder clearExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000002);
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* The new expiry time (ignored if not later than the current expiry)
*
*
* .proto.Timestamp expirationTime = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
private com.hedera.hashgraph.sdk.proto.KeyList keys_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder> keysBuilder_;
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
* @return Whether the keys field is set.
*/
public boolean hasKeys() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
* @return The keys.
*/
public com.hedera.hashgraph.sdk.proto.KeyList getKeys() {
if (keysBuilder_ == null) {
return keys_ == null ? com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_;
} else {
return keysBuilder_.getMessage();
}
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
public Builder setKeys(com.hedera.hashgraph.sdk.proto.KeyList value) {
if (keysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keys_ = value;
} else {
keysBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
public Builder setKeys(
com.hedera.hashgraph.sdk.proto.KeyList.Builder builderForValue) {
if (keysBuilder_ == null) {
keys_ = builderForValue.build();
} else {
keysBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
public Builder mergeKeys(com.hedera.hashgraph.sdk.proto.KeyList value) {
if (keysBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
keys_ != null &&
keys_ != com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance()) {
getKeysBuilder().mergeFrom(value);
} else {
keys_ = value;
}
} else {
keysBuilder_.mergeFrom(value);
}
if (keys_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
public Builder clearKeys() {
bitField0_ = (bitField0_ & ~0x00000004);
keys_ = null;
if (keysBuilder_ != null) {
keysBuilder_.dispose();
keysBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
public com.hedera.hashgraph.sdk.proto.KeyList.Builder getKeysBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getKeysFieldBuilder().getBuilder();
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
public com.hedera.hashgraph.sdk.proto.KeyListOrBuilder getKeysOrBuilder() {
if (keysBuilder_ != null) {
return keysBuilder_.getMessageOrBuilder();
} else {
return keys_ == null ?
com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance() : keys_;
}
}
/**
*
**
* The new list of keys that can modify or delete the file
*
*
* .proto.KeyList keys = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder>
getKeysFieldBuilder() {
if (keysBuilder_ == null) {
keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.KeyList, com.hedera.hashgraph.sdk.proto.KeyList.Builder, com.hedera.hashgraph.sdk.proto.KeyListOrBuilder>(
getKeys(),
getParentForChildren(),
isClean());
keys_ = null;
}
return keysBuilder_;
}
private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The new contents that should overwrite the file's current contents
*
*
* bytes contents = 4;
* @return The contents.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContents() {
return contents_;
}
/**
*
**
* The new contents that should overwrite the file's current contents
*
*
* bytes contents = 4;
* @param value The contents to set.
* @return This builder for chaining.
*/
public Builder setContents(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
contents_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The new contents that should overwrite the file's current contents
*
*
* bytes contents = 4;
* @return This builder for chaining.
*/
public Builder clearContents() {
bitField0_ = (bitField0_ & ~0x00000008);
contents_ = getDefaultInstance().getContents();
onChanged();
return this;
}
private com.google.protobuf.StringValue memo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> memoBuilder_;
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
* @return Whether the memo field is set.
*/
public boolean hasMemo() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
* @return The memo.
*/
public com.google.protobuf.StringValue getMemo() {
if (memoBuilder_ == null) {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
} else {
return memoBuilder_.getMessage();
}
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
public Builder setMemo(com.google.protobuf.StringValue value) {
if (memoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
} else {
memoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
public Builder setMemo(
com.google.protobuf.StringValue.Builder builderForValue) {
if (memoBuilder_ == null) {
memo_ = builderForValue.build();
} else {
memoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
public Builder mergeMemo(com.google.protobuf.StringValue value) {
if (memoBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
memo_ != null &&
memo_ != com.google.protobuf.StringValue.getDefaultInstance()) {
getMemoBuilder().mergeFrom(value);
} else {
memo_ = value;
}
} else {
memoBuilder_.mergeFrom(value);
}
if (memo_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
public Builder clearMemo() {
bitField0_ = (bitField0_ & ~0x00000010);
memo_ = null;
if (memoBuilder_ != null) {
memoBuilder_.dispose();
memoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
public com.google.protobuf.StringValue.Builder getMemoBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getMemoFieldBuilder().getBuilder();
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() {
if (memoBuilder_ != null) {
return memoBuilder_.getMessageOrBuilder();
} else {
return memo_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
}
/**
*
**
* If set, the new memo to be associated with the file (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getMemoFieldBuilder() {
if (memoBuilder_ == null) {
memoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getMemo(),
getParentForChildren(),
isClean());
memo_ = null;
}
return memoBuilder_;
}
@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.FileUpdateTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.FileUpdateTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody();
}
public static com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileUpdateTransactionBody 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.FileUpdateTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}