Interface FileCreateTransactionBodyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
FileCreateTransactionBody, FileCreateTransactionBody.Builder

@Generated public interface FileCreateTransactionBodyOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    * A byte array of file content.
    * An expiration timestamp.
    * A list of keys that represent file "owners".
    * A short description of this file.
    com.google.protobuf.ByteString
    * A short description of this file.
    Deprecated.
    proto.FileCreateTransactionBody.newRealmAdminKey is deprecated.
    * A realm in which this file is created.
    * A shard in which this file is created
    boolean
    * An expiration timestamp.
    boolean
    * A list of keys that represent file "owners".
    boolean
    Deprecated.
    proto.FileCreateTransactionBody.newRealmAdminKey is deprecated.
    boolean
    * A realm in which this file is created.
    boolean
    * A shard in which this file is created

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasExpirationTime

      boolean hasExpirationTime()
       *
       An expiration timestamp.
       <p>
       When the network consensus time exceeds this value, the network
       SHALL expire the file.
       
      .proto.Timestamp expirationTime = 2;
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      Timestamp getExpirationTime()
       *
       An expiration timestamp.
       <p>
       When the network consensus time exceeds this value, the network
       SHALL expire the file.
       
      .proto.Timestamp expirationTime = 2;
      Returns:
      The expirationTime.
    • hasKeys

      boolean hasKeys()
       *
       A list of keys that represent file "owners".
       <p>
       Every `Key` in this list MUST sign this `fileCreate` transaction, as
       well as any `fileUpdate` or `fileAppend` that modifies this file.<br/>
       At least one `Key` in this list MUST sign any `fileDelete` transaction
       to delete this file.<br/>
       If this `KeyList` is empty, the file SHALL be created immutable and the
       only field that may be changed subsequently is the `expirationTime`.
       An immutable file cannot be deleted except with a `systemDelete`
       transaction, or by expiration.
       
      .proto.KeyList keys = 3;
      Returns:
      Whether the keys field is set.
    • getKeys

      KeyList getKeys()
       *
       A list of keys that represent file "owners".
       <p>
       Every `Key` in this list MUST sign this `fileCreate` transaction, as
       well as any `fileUpdate` or `fileAppend` that modifies this file.<br/>
       At least one `Key` in this list MUST sign any `fileDelete` transaction
       to delete this file.<br/>
       If this `KeyList` is empty, the file SHALL be created immutable and the
       only field that may be changed subsequently is the `expirationTime`.
       An immutable file cannot be deleted except with a `systemDelete`
       transaction, or by expiration.
       
      .proto.KeyList keys = 3;
      Returns:
      The keys.
    • getContents

      com.google.protobuf.ByteString getContents()
       *
       A byte array of file content.
       <p>
       The file SHALL be created with initial content equal to this field.
       
      bytes contents = 4;
      Returns:
      The contents.
    • hasShardID

      boolean hasShardID()
       *
       A shard in which this file is created
       
      .proto.ShardID shardID = 5;
      Returns:
      Whether the shardID field is set.
    • getShardID

      ShardID getShardID()
       *
       A shard in which this file is created
       
      .proto.ShardID shardID = 5;
      Returns:
      The shardID.
    • hasRealmID

      boolean hasRealmID()
       *
       A realm in which this file is created.
       <p>
       The shard number for this realm MUST match the value in `shardID`.<br/>
       Currently, this MUST be `0` for both fields.<br/>
       If the desired realm is `0.0`, this SHOULD NOT be set.
       
      .proto.RealmID realmID = 6;
      Returns:
      Whether the realmID field is set.
    • getRealmID

      RealmID getRealmID()
       *
       A realm in which this file is created.
       <p>
       The shard number for this realm MUST match the value in `shardID`.<br/>
       Currently, this MUST be `0` for both fields.<br/>
       If the desired realm is `0.0`, this SHOULD NOT be set.
       
      .proto.RealmID realmID = 6;
      Returns:
      The realmID.
    • hasNewRealmAdminKey

      @Deprecated boolean hasNewRealmAdminKey()
      Deprecated.
      proto.FileCreateTransactionBody.newRealmAdminKey is deprecated. See file_create.proto;l=114
       *
       The "create realm" was never enabled, and
       should not be possible on file creation.<br/>
       An admin key for a new realm, if one is created.
       Added deprecated tag 2024-05.
       
      .proto.Key newRealmAdminKey = 7 [deprecated = true];
      Returns:
      Whether the newRealmAdminKey field is set.
    • getNewRealmAdminKey

      @Deprecated Key getNewRealmAdminKey()
      Deprecated.
      proto.FileCreateTransactionBody.newRealmAdminKey is deprecated. See file_create.proto;l=114
       *
       The "create realm" was never enabled, and
       should not be possible on file creation.<br/>
       An admin key for a new realm, if one is created.
       Added deprecated tag 2024-05.
       
      .proto.Key newRealmAdminKey = 7 [deprecated = true];
      Returns:
      The newRealmAdminKey.
    • getMemo

      String getMemo()
       *
       A short description of this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 8;
      Returns:
      The memo.
    • getMemoBytes

      com.google.protobuf.ByteString getMemoBytes()
       *
       A short description of this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 8;
      Returns:
      The bytes for memo.