All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hederahashgraph.api.proto.java.FileCreateTransactionBody Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: file_create.proto

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * Create a new file, containing the given contents.
 * After the file is created, the FileID for it can be found in the receipt, or record, or retrieved
 * with a GetByKey query.
 * The file contains the specified contents (possibly empty). The file will automatically disappear
 * at the expirationTime, unless its expiration is extended by another transaction before that time.
 * If the file is deleted, then its contents will become empty and it will be marked as deleted
 * until it expires, and then it will cease to exist.
 * 
 * The keys field is a list of keys. All keys within the top-level key list must sign (M-M) to
 * create or modify a file. However, to delete the file, only one key (1-M) is required to sign from
 * the top-level key list.  Each of those "keys" may itself be threshold key containing other keys
 * (including other threshold keys). In other words, the behavior is an AND for create/modify, OR
 * for delete. This is useful for acting as a revocation server. If it is desired to have the
 * behavior be AND for all 3 operations (or OR for all 3), then the list should have only a single
 * Key, which is a threshold key, with N=1 for OR, N=M for AND. If the auto_renew_account field 
 * is set, the key of the referenced account must sign.
 * If a file is created without ANY keys in the keys field, the file is immutable and ONLY the
 * expirationTime of the file can be changed with a FileUpdate transaction. The file contents or its
 * keys cannot be changed.
 * An entity (account, file, or smart contract instance) must be created in a particular realm. If
 * the realmID is left null, then a new realm will be created with the given admin key. If a new
 * realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an
 * admin key is given, then any transaction to create/modify/delete an entity in that realm must be
 * signed by that key, though anyone can still call functions on smart contract instances that exist
 * in that realm. A realm ceases to exist when everything within it has expired and no longer
 * exists.
 * The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0
 * and realm 0, with a null key. Future versions of the API will support multiple realms and
 * multiple shards.
 * 
* * Protobuf type {@code proto.FileCreateTransactionBody} */ public final class FileCreateTransactionBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FileCreateTransactionBody) FileCreateTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use FileCreateTransactionBody.newBuilder() to construct. private FileCreateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FileCreateTransactionBody() { contents_ = com.google.protobuf.ByteString.EMPTY; memo_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FileCreateTransactionBody(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileCreateTransactionBody( 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 18: { com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null; if (expirationTime_ != null) { subBuilder = expirationTime_.toBuilder(); } expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expirationTime_); expirationTime_ = subBuilder.buildPartial(); } break; } case 26: { com.hederahashgraph.api.proto.java.KeyList.Builder subBuilder = null; if (keys_ != null) { subBuilder = keys_.toBuilder(); } keys_ = input.readMessage(com.hederahashgraph.api.proto.java.KeyList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keys_); keys_ = subBuilder.buildPartial(); } break; } case 34: { contents_ = input.readBytes(); break; } case 42: { com.hederahashgraph.api.proto.java.ShardID.Builder subBuilder = null; if (shardID_ != null) { subBuilder = shardID_.toBuilder(); } shardID_ = input.readMessage(com.hederahashgraph.api.proto.java.ShardID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shardID_); shardID_ = subBuilder.buildPartial(); } break; } case 50: { com.hederahashgraph.api.proto.java.RealmID.Builder subBuilder = null; if (realmID_ != null) { subBuilder = realmID_.toBuilder(); } realmID_ = input.readMessage(com.hederahashgraph.api.proto.java.RealmID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(realmID_); realmID_ = subBuilder.buildPartial(); } break; } case 58: { com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null; if (newRealmAdminKey_ != null) { subBuilder = newRealmAdminKey_.toBuilder(); } newRealmAdminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(newRealmAdminKey_); newRealmAdminKey_ = subBuilder.buildPartial(); } break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); memo_ = s; 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.FileCreate.internal_static_proto_FileCreateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.FileCreate.internal_static_proto_FileCreateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FileCreateTransactionBody.class, com.hederahashgraph.api.proto.java.FileCreateTransactionBody.Builder.class); } public static final int EXPIRATIONTIME_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.Timestamp expirationTime_; /** *
   **
   * The time at which this file should expire (unless FileUpdateTransaction is used before then
   * to extend its life)
   * 
* * .proto.Timestamp expirationTime = 2; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return expirationTime_ != null; } /** *
   **
   * The time at which this file should expire (unless FileUpdateTransaction is used before then
   * to extend its life)
   * 
* * .proto.Timestamp expirationTime = 2; * @return The expirationTime. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_; } /** *
   **
   * The time at which this file should expire (unless FileUpdateTransaction is used before then
   * to extend its life)
   * 
* * .proto.Timestamp expirationTime = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() { return getExpirationTime(); } public static final int KEYS_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.KeyList keys_; /** *
   **
   * All keys at the top level of a key list must sign to create or modify the file. Any one of
   * the keys at the top level key list can sign to delete the file.
   * 
* * .proto.KeyList keys = 3; * @return Whether the keys field is set. */ @java.lang.Override public boolean hasKeys() { return keys_ != null; } /** *
   **
   * All keys at the top level of a key list must sign to create or modify the file. Any one of
   * the keys at the top level key list can sign to delete the file.
   * 
* * .proto.KeyList keys = 3; * @return The keys. */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyList getKeys() { return keys_ == null ? com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance() : keys_; } /** *
   **
   * All keys at the top level of a key list must sign to create or modify the file. Any one of
   * the keys at the top level key list can sign to delete the file.
   * 
* * .proto.KeyList keys = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder() { return getKeys(); } public static final int CONTENTS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString contents_; /** *
   **
   * The bytes that are the contents of the file
   * 
* * bytes contents = 4; * @return The contents. */ @java.lang.Override public com.google.protobuf.ByteString getContents() { return contents_; } public static final int SHARDID_FIELD_NUMBER = 5; private com.hederahashgraph.api.proto.java.ShardID shardID_; /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; * @return Whether the shardID field is set. */ @java.lang.Override public boolean hasShardID() { return shardID_ != null; } /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; * @return The shardID. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ShardID getShardID() { return shardID_ == null ? com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance() : shardID_; } /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ShardIDOrBuilder getShardIDOrBuilder() { return getShardID(); } public static final int REALMID_FIELD_NUMBER = 6; private com.hederahashgraph.api.proto.java.RealmID realmID_; /** *
   **
   * The Realm in which to the file is created (leave this null to create a new realm)
   * 
* * .proto.RealmID realmID = 6; * @return Whether the realmID field is set. */ @java.lang.Override public boolean hasRealmID() { return realmID_ != null; } /** *
   **
   * The Realm in which to the file is created (leave this null to create a new realm)
   * 
* * .proto.RealmID realmID = 6; * @return The realmID. */ @java.lang.Override public com.hederahashgraph.api.proto.java.RealmID getRealmID() { return realmID_ == null ? com.hederahashgraph.api.proto.java.RealmID.getDefaultInstance() : realmID_; } /** *
   **
   * The Realm in which to the file is created (leave this null to create a new realm)
   * 
* * .proto.RealmID realmID = 6; */ @java.lang.Override public com.hederahashgraph.api.proto.java.RealmIDOrBuilder getRealmIDOrBuilder() { return getRealmID(); } public static final int NEWREALMADMINKEY_FIELD_NUMBER = 7; private com.hederahashgraph.api.proto.java.Key newRealmAdminKey_; /** *
   **
   * If realmID is null, then this the admin key for the new realm that will be created
   * 
* * .proto.Key newRealmAdminKey = 7; * @return Whether the newRealmAdminKey field is set. */ @java.lang.Override public boolean hasNewRealmAdminKey() { return newRealmAdminKey_ != null; } /** *
   **
   * If realmID is null, then this the admin key for the new realm that will be created
   * 
* * .proto.Key newRealmAdminKey = 7; * @return The newRealmAdminKey. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Key getNewRealmAdminKey() { return newRealmAdminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : newRealmAdminKey_; } /** *
   **
   * If realmID is null, then this the admin key for the new realm that will be created
   * 
* * .proto.Key newRealmAdminKey = 7; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyOrBuilder getNewRealmAdminKeyOrBuilder() { return getNewRealmAdminKey(); } public static final int MEMO_FIELD_NUMBER = 8; private volatile java.lang.Object memo_; /** *
   **
   * The memo associated with the file (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 8; * @return The memo. */ @java.lang.Override public java.lang.String getMemo() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } } /** *
   **
   * The memo associated with the file (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 8; * @return The bytes for memo. */ @java.lang.Override public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (expirationTime_ != null) { output.writeMessage(2, getExpirationTime()); } if (keys_ != null) { output.writeMessage(3, getKeys()); } if (!contents_.isEmpty()) { output.writeBytes(4, contents_); } if (shardID_ != null) { output.writeMessage(5, getShardID()); } if (realmID_ != null) { output.writeMessage(6, getRealmID()); } if (newRealmAdminKey_ != null) { output.writeMessage(7, getNewRealmAdminKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, memo_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (expirationTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpirationTime()); } if (keys_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKeys()); } if (!contents_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, contents_); } if (shardID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getShardID()); } if (realmID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getRealmID()); } if (newRealmAdminKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getNewRealmAdminKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, memo_); } 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.FileCreateTransactionBody)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.FileCreateTransactionBody other = (com.hederahashgraph.api.proto.java.FileCreateTransactionBody) obj; 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 (hasShardID() != other.hasShardID()) return false; if (hasShardID()) { if (!getShardID() .equals(other.getShardID())) return false; } if (hasRealmID() != other.hasRealmID()) return false; if (hasRealmID()) { if (!getRealmID() .equals(other.getRealmID())) return false; } if (hasNewRealmAdminKey() != other.hasNewRealmAdminKey()) return false; if (hasNewRealmAdminKey()) { if (!getNewRealmAdminKey() .equals(other.getNewRealmAdminKey())) return false; } if (!getMemo() .equals(other.getMemo())) return false; 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(); } 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 (hasShardID()) { hash = (37 * hash) + SHARDID_FIELD_NUMBER; hash = (53 * hash) + getShardID().hashCode(); } if (hasRealmID()) { hash = (37 * hash) + REALMID_FIELD_NUMBER; hash = (53 * hash) + getRealmID().hashCode(); } if (hasNewRealmAdminKey()) { hash = (37 * hash) + NEWREALMADMINKEY_FIELD_NUMBER; hash = (53 * hash) + getNewRealmAdminKey().hashCode(); } hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.FileCreateTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileCreateTransactionBody 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.FileCreateTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileCreateTransactionBody 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.FileCreateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.FileCreateTransactionBody 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.FileCreateTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FileCreateTransactionBody 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.FileCreateTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.FileCreateTransactionBody 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.FileCreateTransactionBody 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.FileCreateTransactionBody 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.FileCreateTransactionBody 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; } /** *
   **
   * Create a new file, containing the given contents.
   * After the file is created, the FileID for it can be found in the receipt, or record, or retrieved
   * with a GetByKey query.
   * The file contains the specified contents (possibly empty). The file will automatically disappear
   * at the expirationTime, unless its expiration is extended by another transaction before that time.
   * If the file is deleted, then its contents will become empty and it will be marked as deleted
   * until it expires, and then it will cease to exist.
   * 
   * The keys field is a list of keys. All keys within the top-level key list must sign (M-M) to
   * create or modify a file. However, to delete the file, only one key (1-M) is required to sign from
   * the top-level key list.  Each of those "keys" may itself be threshold key containing other keys
   * (including other threshold keys). In other words, the behavior is an AND for create/modify, OR
   * for delete. This is useful for acting as a revocation server. If it is desired to have the
   * behavior be AND for all 3 operations (or OR for all 3), then the list should have only a single
   * Key, which is a threshold key, with N=1 for OR, N=M for AND. If the auto_renew_account field 
   * is set, the key of the referenced account must sign.
   * If a file is created without ANY keys in the keys field, the file is immutable and ONLY the
   * expirationTime of the file can be changed with a FileUpdate transaction. The file contents or its
   * keys cannot be changed.
   * An entity (account, file, or smart contract instance) must be created in a particular realm. If
   * the realmID is left null, then a new realm will be created with the given admin key. If a new
   * realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an
   * admin key is given, then any transaction to create/modify/delete an entity in that realm must be
   * signed by that key, though anyone can still call functions on smart contract instances that exist
   * in that realm. A realm ceases to exist when everything within it has expired and no longer
   * exists.
   * The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0
   * and realm 0, with a null key. Future versions of the API will support multiple realms and
   * multiple shards.
   * 
* * Protobuf type {@code proto.FileCreateTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FileCreateTransactionBody) com.hederahashgraph.api.proto.java.FileCreateTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.FileCreate.internal_static_proto_FileCreateTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.FileCreate.internal_static_proto_FileCreateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.FileCreateTransactionBody.class, com.hederahashgraph.api.proto.java.FileCreateTransactionBody.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.FileCreateTransactionBody.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; } if (keysBuilder_ == null) { keys_ = null; } else { keys_ = null; keysBuilder_ = null; } contents_ = com.google.protobuf.ByteString.EMPTY; if (shardIDBuilder_ == null) { shardID_ = null; } else { shardID_ = null; shardIDBuilder_ = null; } if (realmIDBuilder_ == null) { realmID_ = null; } else { realmID_ = null; realmIDBuilder_ = null; } if (newRealmAdminKeyBuilder_ == null) { newRealmAdminKey_ = null; } else { newRealmAdminKey_ = null; newRealmAdminKeyBuilder_ = null; } memo_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.FileCreate.internal_static_proto_FileCreateTransactionBody_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.FileCreateTransactionBody getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.FileCreateTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.FileCreateTransactionBody build() { com.hederahashgraph.api.proto.java.FileCreateTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.FileCreateTransactionBody buildPartial() { com.hederahashgraph.api.proto.java.FileCreateTransactionBody result = new com.hederahashgraph.api.proto.java.FileCreateTransactionBody(this); if (expirationTimeBuilder_ == null) { result.expirationTime_ = expirationTime_; } else { result.expirationTime_ = expirationTimeBuilder_.build(); } if (keysBuilder_ == null) { result.keys_ = keys_; } else { result.keys_ = keysBuilder_.build(); } result.contents_ = contents_; if (shardIDBuilder_ == null) { result.shardID_ = shardID_; } else { result.shardID_ = shardIDBuilder_.build(); } if (realmIDBuilder_ == null) { result.realmID_ = realmID_; } else { result.realmID_ = realmIDBuilder_.build(); } if (newRealmAdminKeyBuilder_ == null) { result.newRealmAdminKey_ = newRealmAdminKey_; } else { result.newRealmAdminKey_ = newRealmAdminKeyBuilder_.build(); } result.memo_ = memo_; 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.FileCreateTransactionBody) { return mergeFrom((com.hederahashgraph.api.proto.java.FileCreateTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.FileCreateTransactionBody other) { if (other == com.hederahashgraph.api.proto.java.FileCreateTransactionBody.getDefaultInstance()) return this; 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.hasShardID()) { mergeShardID(other.getShardID()); } if (other.hasRealmID()) { mergeRealmID(other.getRealmID()); } if (other.hasNewRealmAdminKey()) { mergeNewRealmAdminKey(other.getNewRealmAdminKey()); } if (!other.getMemo().isEmpty()) { memo_ = other.memo_; onChanged(); } 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.FileCreateTransactionBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.FileCreateTransactionBody) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> expirationTimeBuilder_; /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return expirationTimeBuilder_ != null || expirationTime_ != null; } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; * @return The expirationTime. */ public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder setExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; onChanged(); } else { expirationTimeBuilder_.setMessage(value); } return this; } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder setExpirationTime( com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); onChanged(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder mergeExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) { if (expirationTimeBuilder_ == null) { if (expirationTime_ != null) { expirationTime_ = com.hederahashgraph.api.proto.java.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } onChanged(); } else { expirationTimeBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; */ public Builder clearExpirationTime() { if (expirationTimeBuilder_ == null) { expirationTime_ = null; onChanged(); } else { expirationTime_ = null; expirationTimeBuilder_ = null; } return this; } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() { onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; */ public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_; } } /** *
     **
     * The time at which this file should expire (unless FileUpdateTransaction is used before then
     * to extend its life)
     * 
* * .proto.Timestamp expirationTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private com.hederahashgraph.api.proto.java.KeyList keys_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder> keysBuilder_; /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; * @return Whether the keys field is set. */ public boolean hasKeys() { return keysBuilder_ != null || keys_ != null; } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; * @return The keys. */ public com.hederahashgraph.api.proto.java.KeyList getKeys() { if (keysBuilder_ == null) { return keys_ == null ? com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance() : keys_; } else { return keysBuilder_.getMessage(); } } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; */ public Builder setKeys(com.hederahashgraph.api.proto.java.KeyList value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keys_ = value; onChanged(); } else { keysBuilder_.setMessage(value); } return this; } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; */ public Builder setKeys( com.hederahashgraph.api.proto.java.KeyList.Builder builderForValue) { if (keysBuilder_ == null) { keys_ = builderForValue.build(); onChanged(); } else { keysBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; */ public Builder mergeKeys(com.hederahashgraph.api.proto.java.KeyList value) { if (keysBuilder_ == null) { if (keys_ != null) { keys_ = com.hederahashgraph.api.proto.java.KeyList.newBuilder(keys_).mergeFrom(value).buildPartial(); } else { keys_ = value; } onChanged(); } else { keysBuilder_.mergeFrom(value); } return this; } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; */ public Builder clearKeys() { if (keysBuilder_ == null) { keys_ = null; onChanged(); } else { keys_ = null; keysBuilder_ = null; } return this; } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; */ public com.hederahashgraph.api.proto.java.KeyList.Builder getKeysBuilder() { onChanged(); return getKeysFieldBuilder().getBuilder(); } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; */ public com.hederahashgraph.api.proto.java.KeyListOrBuilder getKeysOrBuilder() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilder(); } else { return keys_ == null ? com.hederahashgraph.api.proto.java.KeyList.getDefaultInstance() : keys_; } } /** *
     **
     * All keys at the top level of a key list must sign to create or modify the file. Any one of
     * the keys at the top level key list can sign to delete the file.
     * 
* * .proto.KeyList keys = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { keysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.KeyList, com.hederahashgraph.api.proto.java.KeyList.Builder, com.hederahashgraph.api.proto.java.KeyListOrBuilder>( getKeys(), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * The bytes that are the contents of the file
     * 
* * bytes contents = 4; * @return The contents. */ @java.lang.Override public com.google.protobuf.ByteString getContents() { return contents_; } /** *
     **
     * The bytes that are the contents of the file
     * 
* * 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; onChanged(); return this; } /** *
     **
     * The bytes that are the contents of the file
     * 
* * bytes contents = 4; * @return This builder for chaining. */ public Builder clearContents() { contents_ = getDefaultInstance().getContents(); onChanged(); return this; } private com.hederahashgraph.api.proto.java.ShardID shardID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ShardID, com.hederahashgraph.api.proto.java.ShardID.Builder, com.hederahashgraph.api.proto.java.ShardIDOrBuilder> shardIDBuilder_; /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; * @return Whether the shardID field is set. */ public boolean hasShardID() { return shardIDBuilder_ != null || shardID_ != null; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; * @return The shardID. */ public com.hederahashgraph.api.proto.java.ShardID getShardID() { if (shardIDBuilder_ == null) { return shardID_ == null ? com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance() : shardID_; } else { return shardIDBuilder_.getMessage(); } } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder setShardID(com.hederahashgraph.api.proto.java.ShardID value) { if (shardIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shardID_ = value; onChanged(); } else { shardIDBuilder_.setMessage(value); } return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder setShardID( com.hederahashgraph.api.proto.java.ShardID.Builder builderForValue) { if (shardIDBuilder_ == null) { shardID_ = builderForValue.build(); onChanged(); } else { shardIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder mergeShardID(com.hederahashgraph.api.proto.java.ShardID value) { if (shardIDBuilder_ == null) { if (shardID_ != null) { shardID_ = com.hederahashgraph.api.proto.java.ShardID.newBuilder(shardID_).mergeFrom(value).buildPartial(); } else { shardID_ = value; } onChanged(); } else { shardIDBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder clearShardID() { if (shardIDBuilder_ == null) { shardID_ = null; onChanged(); } else { shardID_ = null; shardIDBuilder_ = null; } return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public com.hederahashgraph.api.proto.java.ShardID.Builder getShardIDBuilder() { onChanged(); return getShardIDFieldBuilder().getBuilder(); } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public com.hederahashgraph.api.proto.java.ShardIDOrBuilder getShardIDOrBuilder() { if (shardIDBuilder_ != null) { return shardIDBuilder_.getMessageOrBuilder(); } else { return shardID_ == null ? com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance() : shardID_; } } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ShardID, com.hederahashgraph.api.proto.java.ShardID.Builder, com.hederahashgraph.api.proto.java.ShardIDOrBuilder> getShardIDFieldBuilder() { if (shardIDBuilder_ == null) { shardIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ShardID, com.hederahashgraph.api.proto.java.ShardID.Builder, com.hederahashgraph.api.proto.java.ShardIDOrBuilder>( getShardID(), getParentForChildren(), isClean()); shardID_ = null; } return shardIDBuilder_; } private com.hederahashgraph.api.proto.java.RealmID realmID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.RealmID, com.hederahashgraph.api.proto.java.RealmID.Builder, com.hederahashgraph.api.proto.java.RealmIDOrBuilder> realmIDBuilder_; /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; * @return Whether the realmID field is set. */ public boolean hasRealmID() { return realmIDBuilder_ != null || realmID_ != null; } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; * @return The realmID. */ public com.hederahashgraph.api.proto.java.RealmID getRealmID() { if (realmIDBuilder_ == null) { return realmID_ == null ? com.hederahashgraph.api.proto.java.RealmID.getDefaultInstance() : realmID_; } else { return realmIDBuilder_.getMessage(); } } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; */ public Builder setRealmID(com.hederahashgraph.api.proto.java.RealmID value) { if (realmIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } realmID_ = value; onChanged(); } else { realmIDBuilder_.setMessage(value); } return this; } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; */ public Builder setRealmID( com.hederahashgraph.api.proto.java.RealmID.Builder builderForValue) { if (realmIDBuilder_ == null) { realmID_ = builderForValue.build(); onChanged(); } else { realmIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; */ public Builder mergeRealmID(com.hederahashgraph.api.proto.java.RealmID value) { if (realmIDBuilder_ == null) { if (realmID_ != null) { realmID_ = com.hederahashgraph.api.proto.java.RealmID.newBuilder(realmID_).mergeFrom(value).buildPartial(); } else { realmID_ = value; } onChanged(); } else { realmIDBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; */ public Builder clearRealmID() { if (realmIDBuilder_ == null) { realmID_ = null; onChanged(); } else { realmID_ = null; realmIDBuilder_ = null; } return this; } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; */ public com.hederahashgraph.api.proto.java.RealmID.Builder getRealmIDBuilder() { onChanged(); return getRealmIDFieldBuilder().getBuilder(); } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; */ public com.hederahashgraph.api.proto.java.RealmIDOrBuilder getRealmIDOrBuilder() { if (realmIDBuilder_ != null) { return realmIDBuilder_.getMessageOrBuilder(); } else { return realmID_ == null ? com.hederahashgraph.api.proto.java.RealmID.getDefaultInstance() : realmID_; } } /** *
     **
     * The Realm in which to the file is created (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.RealmID, com.hederahashgraph.api.proto.java.RealmID.Builder, com.hederahashgraph.api.proto.java.RealmIDOrBuilder> getRealmIDFieldBuilder() { if (realmIDBuilder_ == null) { realmIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.RealmID, com.hederahashgraph.api.proto.java.RealmID.Builder, com.hederahashgraph.api.proto.java.RealmIDOrBuilder>( getRealmID(), getParentForChildren(), isClean()); realmID_ = null; } return realmIDBuilder_; } private com.hederahashgraph.api.proto.java.Key newRealmAdminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> newRealmAdminKeyBuilder_; /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; * @return Whether the newRealmAdminKey field is set. */ public boolean hasNewRealmAdminKey() { return newRealmAdminKeyBuilder_ != null || newRealmAdminKey_ != null; } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; * @return The newRealmAdminKey. */ public com.hederahashgraph.api.proto.java.Key getNewRealmAdminKey() { if (newRealmAdminKeyBuilder_ == null) { return newRealmAdminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : newRealmAdminKey_; } else { return newRealmAdminKeyBuilder_.getMessage(); } } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; */ public Builder setNewRealmAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (newRealmAdminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } newRealmAdminKey_ = value; onChanged(); } else { newRealmAdminKeyBuilder_.setMessage(value); } return this; } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; */ public Builder setNewRealmAdminKey( com.hederahashgraph.api.proto.java.Key.Builder builderForValue) { if (newRealmAdminKeyBuilder_ == null) { newRealmAdminKey_ = builderForValue.build(); onChanged(); } else { newRealmAdminKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; */ public Builder mergeNewRealmAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (newRealmAdminKeyBuilder_ == null) { if (newRealmAdminKey_ != null) { newRealmAdminKey_ = com.hederahashgraph.api.proto.java.Key.newBuilder(newRealmAdminKey_).mergeFrom(value).buildPartial(); } else { newRealmAdminKey_ = value; } onChanged(); } else { newRealmAdminKeyBuilder_.mergeFrom(value); } return this; } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; */ public Builder clearNewRealmAdminKey() { if (newRealmAdminKeyBuilder_ == null) { newRealmAdminKey_ = null; onChanged(); } else { newRealmAdminKey_ = null; newRealmAdminKeyBuilder_ = null; } return this; } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; */ public com.hederahashgraph.api.proto.java.Key.Builder getNewRealmAdminKeyBuilder() { onChanged(); return getNewRealmAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; */ public com.hederahashgraph.api.proto.java.KeyOrBuilder getNewRealmAdminKeyOrBuilder() { if (newRealmAdminKeyBuilder_ != null) { return newRealmAdminKeyBuilder_.getMessageOrBuilder(); } else { return newRealmAdminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : newRealmAdminKey_; } } /** *
     **
     * If realmID is null, then this the admin key for the new realm that will be created
     * 
* * .proto.Key newRealmAdminKey = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> getNewRealmAdminKeyFieldBuilder() { if (newRealmAdminKeyBuilder_ == null) { newRealmAdminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>( getNewRealmAdminKey(), getParentForChildren(), isClean()); newRealmAdminKey_ = null; } return newRealmAdminKeyBuilder_; } private java.lang.Object memo_ = ""; /** *
     **
     * The memo associated with the file (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 8; * @return The memo. */ public java.lang.String getMemo() { java.lang.Object ref = memo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * The memo associated with the file (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 8; * @return The bytes for memo. */ public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * The memo associated with the file (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 8; * @param value The memo to set. * @return This builder for chaining. */ public Builder setMemo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } memo_ = value; onChanged(); return this; } /** *
     **
     * The memo associated with the file (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 8; * @return This builder for chaining. */ public Builder clearMemo() { memo_ = getDefaultInstance().getMemo(); onChanged(); return this; } /** *
     **
     * The memo associated with the file (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 8; * @param value The bytes for memo to set. * @return This builder for chaining. */ public Builder setMemoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); memo_ = value; onChanged(); return this; } @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.FileCreateTransactionBody) } // @@protoc_insertion_point(class_scope:proto.FileCreateTransactionBody) private static final com.hederahashgraph.api.proto.java.FileCreateTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.FileCreateTransactionBody(); } public static com.hederahashgraph.api.proto.java.FileCreateTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FileCreateTransactionBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileCreateTransactionBody(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.FileCreateTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy