Class FileUpdateTransactionBody

java.lang.Object
com.google.protobuf.AbstractMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.FileUpdateTransactionBody
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, FileUpdateTransactionBodyOrBuilder

@Generated public final class FileUpdateTransactionBody extends com.google.protobuf.GeneratedMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder> implements FileUpdateTransactionBodyOrBuilder
 *
 Update the metadata, and/or replace the content, of a file in the
 Hedera File Service (HFS).

 Any field which is not set (i.e. is null) in this message, other than
 `fileID`, SHALL be ignored.<br/>
 If the `keys` list for the identified file is an empty `KeyList`, then
 this message MUST NOT set any field except `expirationTime`.

 #### Signature Requirements
 Every `Key` in the `keys` list for the identified file MUST sign this
 transaction, if any field other than `expirationTime` is to be updated.<br/>
 If the `keys` list for the identified file is an empty `KeyList` (because
 this file was previously created or updated to have an empty `KeyList`),
 then the file is considered immutable and this message MUST NOT set any
 field except `expirationTime`.<br/>
 See the [File Service](#FileService) specification for a detailed
 explanation of the signature requirements for all file transactions.

 ### Block Stream Effects
 None
 
Protobuf type proto.FileUpdateTransactionBody
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * Update the metadata, and/or replace the content, of a file in the Hedera File Service (HFS).

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    com.google.protobuf.ByteString
    * An array of bytes.
     
    * An expiration timestamp.
    * A file identifier for the file to update.
    * The new list of keys that "own" this file.
    com.google.protobuf.StringValue
    * A short description of this file.
    boolean
    * An expiration timestamp.
    boolean
    * A file identifier for the file to update.
    boolean
    * The new list of keys that "own" this file.
    boolean
    * A short description of this file.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<FileUpdateTransactionBody>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • hasFileID

      public boolean hasFileID()
       *
       A file identifier for the file to update.
       <p>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
      Specified by:
      hasFileID in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      Whether the fileID field is set.
    • getFileID

      public FileID getFileID()
       *
       A file identifier for the file to update.
       <p>
       This field is REQUIRED.
       
      .proto.FileID fileID = 1;
      Specified by:
      getFileID in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      The fileID.
    • hasExpirationTime

      public boolean hasExpirationTime()
       *
       An expiration timestamp.
       <p>
       If set, this value MUST be strictly later than the existing
       `expirationTime` value, or else it will be ignored.<br/>
       If set, this value SHALL replace the existing `expirationTime`.<br/>
       If this field is the only field set, then this transaction SHALL NOT
       require any signature other than the `payer` for the transaction.<br/>
       When the network consensus time exceeds the then-current
       `expirationTime`, the network SHALL expire the file.
       
      .proto.Timestamp expirationTime = 2;
      Specified by:
      hasExpirationTime in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public Timestamp getExpirationTime()
       *
       An expiration timestamp.
       <p>
       If set, this value MUST be strictly later than the existing
       `expirationTime` value, or else it will be ignored.<br/>
       If set, this value SHALL replace the existing `expirationTime`.<br/>
       If this field is the only field set, then this transaction SHALL NOT
       require any signature other than the `payer` for the transaction.<br/>
       When the network consensus time exceeds the then-current
       `expirationTime`, the network SHALL expire the file.
       
      .proto.Timestamp expirationTime = 2;
      Specified by:
      getExpirationTime in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      The expirationTime.
    • hasKeys

      public boolean hasKeys()
       *
       The new list of keys that "own" this file.
       <p>
       If set, every key in this `KeyList` MUST sign this transaction.<br/>
       If set, every key in the _previous_ `KeyList` MUST _also_
       sign this transaction.<br/>
       If this value is an empty `KeyList`, then the file SHALL be immutable
       after completion of this transaction.
       
      .proto.KeyList keys = 3;
      Specified by:
      hasKeys in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      Whether the keys field is set.
    • getKeys

      public KeyList getKeys()
       *
       The new list of keys that "own" this file.
       <p>
       If set, every key in this `KeyList` MUST sign this transaction.<br/>
       If set, every key in the _previous_ `KeyList` MUST _also_
       sign this transaction.<br/>
       If this value is an empty `KeyList`, then the file SHALL be immutable
       after completion of this transaction.
       
      .proto.KeyList keys = 3;
      Specified by:
      getKeys in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      The keys.
    • getContents

      public com.google.protobuf.ByteString getContents()
       *
       An array of bytes.
       <p>
       This value, if set, SHALL _replace_ the existing file content.
       If this value is set to an empty byte array, the content of the file
       SHALL be unchanged.
       
      bytes contents = 4;
      Specified by:
      getContents in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      The contents.
    • hasMemo

      public boolean hasMemo()
       *
       A short description of this file.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      .google.protobuf.StringValue memo = 5;
      Specified by:
      hasMemo in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      Whether the memo field is set.
    • getMemo

      public com.google.protobuf.StringValue 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.
       
      .google.protobuf.StringValue memo = 5;
      Specified by:
      getMemo in interface FileUpdateTransactionBodyOrBuilder
      Returns:
      The memo.
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FileUpdateTransactionBody parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FileUpdateTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FileUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static FileUpdateTransactionBody.Builder newBuilder()
    • newBuilder

      public static FileUpdateTransactionBody.Builder newBuilder(FileUpdateTransactionBody prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<FileUpdateTransactionBody,FileUpdateTransactionBody.Builder>
    • getDefaultInstance

      public static FileUpdateTransactionBody getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FileUpdateTransactionBody> parser()