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

com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody Maven / Gradle / Ivy

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

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * 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.GeneratedMessageLite< FileCreateTransactionBody, FileCreateTransactionBody.Builder> implements // @@protoc_insertion_point(message_implements:proto.FileCreateTransactionBody) FileCreateTransactionBodyOrBuilder { private FileCreateTransactionBody() { contents_ = com.google.protobuf.ByteString.EMPTY; memo_ = ""; } private int bitField0_; public static final int EXPIRATIONTIME_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.Timestamp 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 boolean hasExpirationTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.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 void setExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { value.getClass(); expirationTime_ = value; bitField0_ |= 0x00000001; } /** *
   **
   * The time at which this file should expire (unless FileUpdateTransaction is used before then
   * to extend its life)
   * 
* * .proto.Timestamp expirationTime = 2; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { value.getClass(); if (expirationTime_ != null && expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { expirationTime_ = com.hedera.hashgraph.sdk.proto.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } bitField0_ |= 0x00000001; } /** *
   **
   * The time at which this file should expire (unless FileUpdateTransaction is used before then
   * to extend its life)
   * 
* * .proto.Timestamp expirationTime = 2; */ private void clearExpirationTime() { expirationTime_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int KEYS_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.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; */ @java.lang.Override public boolean hasKeys() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.KeyList getKeys() { return keys_ == null ? com.hedera.hashgraph.sdk.proto.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 void setKeys(com.hedera.hashgraph.sdk.proto.KeyList value) { value.getClass(); keys_ = value; bitField0_ |= 0x00000002; } /** *
   **
   * 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.SuppressWarnings({"ReferenceEquality"}) private void mergeKeys(com.hedera.hashgraph.sdk.proto.KeyList value) { value.getClass(); if (keys_ != null && keys_ != com.hedera.hashgraph.sdk.proto.KeyList.getDefaultInstance()) { keys_ = com.hedera.hashgraph.sdk.proto.KeyList.newBuilder(keys_).mergeFrom(value).buildPartial(); } else { keys_ = value; } bitField0_ |= 0x00000002; } /** *
   **
   * 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 void clearKeys() { keys_ = null; bitField0_ = (bitField0_ & ~0x00000002); } 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_; } /** *
   **
   * The bytes that are the contents of the file
   * 
* * bytes contents = 4; * @param value The contents to set. */ private void setContents(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); contents_ = value; } /** *
   **
   * The bytes that are the contents of the file
   * 
* * bytes contents = 4; */ private void clearContents() { contents_ = getDefaultInstance().getContents(); } public static final int SHARDID_FIELD_NUMBER = 5; private com.hedera.hashgraph.sdk.proto.ShardID shardID_; /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; */ @java.lang.Override public boolean hasShardID() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ShardID getShardID() { return shardID_ == null ? com.hedera.hashgraph.sdk.proto.ShardID.getDefaultInstance() : shardID_; } /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; */ private void setShardID(com.hedera.hashgraph.sdk.proto.ShardID value) { value.getClass(); shardID_ = value; bitField0_ |= 0x00000004; } /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeShardID(com.hedera.hashgraph.sdk.proto.ShardID value) { value.getClass(); if (shardID_ != null && shardID_ != com.hedera.hashgraph.sdk.proto.ShardID.getDefaultInstance()) { shardID_ = com.hedera.hashgraph.sdk.proto.ShardID.newBuilder(shardID_).mergeFrom(value).buildPartial(); } else { shardID_ = value; } bitField0_ |= 0x00000004; } /** *
   **
   * Shard in which this file is created
   * 
* * .proto.ShardID shardID = 5; */ private void clearShardID() { shardID_ = null; bitField0_ = (bitField0_ & ~0x00000004); } public static final int REALMID_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.RealmID 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 boolean hasRealmID() { return ((bitField0_ & 0x00000008) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.RealmID getRealmID() { return realmID_ == null ? com.hedera.hashgraph.sdk.proto.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 void setRealmID(com.hedera.hashgraph.sdk.proto.RealmID value) { value.getClass(); realmID_ = value; bitField0_ |= 0x00000008; } /** *
   **
   * The Realm in which to the file is created (leave this null to create a new realm)
   * 
* * .proto.RealmID realmID = 6; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeRealmID(com.hedera.hashgraph.sdk.proto.RealmID value) { value.getClass(); if (realmID_ != null && realmID_ != com.hedera.hashgraph.sdk.proto.RealmID.getDefaultInstance()) { realmID_ = com.hedera.hashgraph.sdk.proto.RealmID.newBuilder(realmID_).mergeFrom(value).buildPartial(); } else { realmID_ = value; } bitField0_ |= 0x00000008; } /** *
   **
   * The Realm in which to the file is created (leave this null to create a new realm)
   * 
* * .proto.RealmID realmID = 6; */ private void clearRealmID() { realmID_ = null; bitField0_ = (bitField0_ & ~0x00000008); } public static final int NEWREALMADMINKEY_FIELD_NUMBER = 7; private com.hedera.hashgraph.sdk.proto.Key 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 boolean hasNewRealmAdminKey() { return ((bitField0_ & 0x00000010) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.Key getNewRealmAdminKey() { return newRealmAdminKey_ == null ? com.hedera.hashgraph.sdk.proto.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 void setNewRealmAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { value.getClass(); newRealmAdminKey_ = value; bitField0_ |= 0x00000010; } /** *
   **
   * If realmID is null, then this the admin key for the new realm that will be created
   * 
* * .proto.Key newRealmAdminKey = 7; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeNewRealmAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { value.getClass(); if (newRealmAdminKey_ != null && newRealmAdminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { newRealmAdminKey_ = com.hedera.hashgraph.sdk.proto.Key.newBuilder(newRealmAdminKey_).mergeFrom(value).buildPartial(); } else { newRealmAdminKey_ = value; } bitField0_ |= 0x00000010; } /** *
   **
   * If realmID is null, then this the admin key for the new realm that will be created
   * 
* * .proto.Key newRealmAdminKey = 7; */ private void clearNewRealmAdminKey() { newRealmAdminKey_ = null; bitField0_ = (bitField0_ & ~0x00000010); } public static final int MEMO_FIELD_NUMBER = 8; private java.lang.String 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() { return memo_; } /** *
   **
   * 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() { return com.google.protobuf.ByteString.copyFromUtf8(memo_); } /** *
   **
   * The memo associated with the file (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 8; * @param value The memo to set. */ private void setMemo( java.lang.String value) { java.lang.Class valueClass = value.getClass(); memo_ = value; } /** *
   **
   * The memo associated with the file (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 8; */ private void clearMemo() { memo_ = getDefaultInstance().getMemo(); } /** *
   **
   * The memo associated with the file (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 8; * @param value The bytes for memo to set. */ private void setMemoBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); memo_ = value.toStringUtf8(); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * 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.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody, Builder> implements // @@protoc_insertion_point(builder_implements:proto.FileCreateTransactionBody) com.hedera.hashgraph.sdk.proto.FileCreateTransactionBodyOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * 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 boolean hasExpirationTime() { return instance.hasExpirationTime(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { return instance.getExpirationTime(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.Timestamp value) { copyOnWrite(); instance.setExpirationTime(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.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) { copyOnWrite(); instance.setExpirationTime(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.hedera.hashgraph.sdk.proto.Timestamp value) { copyOnWrite(); instance.mergeExpirationTime(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() { copyOnWrite(); instance.clearExpirationTime(); 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; */ @java.lang.Override public boolean hasKeys() { return instance.hasKeys(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.KeyList getKeys() { return instance.getKeys(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.KeyList value) { copyOnWrite(); instance.setKeys(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.hedera.hashgraph.sdk.proto.KeyList.Builder builderForValue) { copyOnWrite(); instance.setKeys(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.hedera.hashgraph.sdk.proto.KeyList value) { copyOnWrite(); instance.mergeKeys(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() { copyOnWrite(); instance.clearKeys(); return this; } /** *
     **
     * 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 instance.getContents(); } /** *
     **
     * 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) { copyOnWrite(); instance.setContents(value); return this; } /** *
     **
     * The bytes that are the contents of the file
     * 
* * bytes contents = 4; * @return This builder for chaining. */ public Builder clearContents() { copyOnWrite(); instance.clearContents(); return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ @java.lang.Override public boolean hasShardID() { return instance.hasShardID(); } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ShardID getShardID() { return instance.getShardID(); } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder setShardID(com.hedera.hashgraph.sdk.proto.ShardID value) { copyOnWrite(); instance.setShardID(value); return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder setShardID( com.hedera.hashgraph.sdk.proto.ShardID.Builder builderForValue) { copyOnWrite(); instance.setShardID(builderForValue.build()); return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder mergeShardID(com.hedera.hashgraph.sdk.proto.ShardID value) { copyOnWrite(); instance.mergeShardID(value); return this; } /** *
     **
     * Shard in which this file is created
     * 
* * .proto.ShardID shardID = 5; */ public Builder clearShardID() { copyOnWrite(); instance.clearShardID(); return this; } /** *
     **
     * 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 boolean hasRealmID() { return instance.hasRealmID(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.RealmID getRealmID() { return instance.getRealmID(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.RealmID value) { copyOnWrite(); instance.setRealmID(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.hedera.hashgraph.sdk.proto.RealmID.Builder builderForValue) { copyOnWrite(); instance.setRealmID(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.hedera.hashgraph.sdk.proto.RealmID value) { copyOnWrite(); instance.mergeRealmID(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() { copyOnWrite(); instance.clearRealmID(); return this; } /** *
     **
     * 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 boolean hasNewRealmAdminKey() { return instance.hasNewRealmAdminKey(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.Key getNewRealmAdminKey() { return instance.getNewRealmAdminKey(); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.Key value) { copyOnWrite(); instance.setNewRealmAdminKey(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.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { copyOnWrite(); instance.setNewRealmAdminKey(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.hedera.hashgraph.sdk.proto.Key value) { copyOnWrite(); instance.mergeNewRealmAdminKey(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() { copyOnWrite(); instance.clearNewRealmAdminKey(); return this; } /** *
     **
     * 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() { return instance.getMemo(); } /** *
     **
     * 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() { return instance.getMemoBytes(); } /** *
     **
     * 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) { copyOnWrite(); instance.setMemo(value); 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() { copyOnWrite(); instance.clearMemo(); 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) { copyOnWrite(); instance.setMemoBytes(value); return this; } // @@protoc_insertion_point(builder_scope:proto.FileCreateTransactionBody) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "expirationTime_", "keys_", "contents_", "shardID_", "realmID_", "newRealmAdminKey_", "memo_", }; java.lang.String info = "\u0000\u0007\u0000\u0001\u0002\b\u0007\u0000\u0000\u0000\u0002\u1009\u0000\u0003" + "\u1009\u0001\u0004\n\u0005\u1009\u0002\u0006\u1009\u0003\u0007\u1009\u0004\b\u0208" + ""; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.FileCreateTransactionBody) private static final com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody DEFAULT_INSTANCE; static { FileCreateTransactionBody defaultInstance = new FileCreateTransactionBody(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( FileCreateTransactionBody.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.FileCreateTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy