Class FileAppendTransactionBody

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

@Generated public final class FileAppendTransactionBody extends com.google.protobuf.GeneratedMessageLite<FileAppendTransactionBody,FileAppendTransactionBody.Builder> implements FileAppendTransactionBodyOrBuilder
 *
 A transaction body for an `appendContent` transaction.<br/>
 This transaction body provides a mechanism to append content to a "file" in
 network state. Hedera transactions are limited in size, but there are many
 uses for in-state byte arrays (e.g. smart contract bytecode) which require
 more than may fit within a single transaction. The `appendFile` transaction
 exists to support these requirements. The typical pattern is to create a
 file, append more data until the full content is stored, verify the file is
 correct, then update the file entry with any final metadata changes (e.g.
 adding threshold keys and removing the initial upload key).

 Each append transaction MUST remain within the total transaction size limit
 for the network (typically 6144 bytes).<br/>
 The total size of a file MUST remain within the maximum file size limit for
 the network (typically 1048576 bytes).

 #### Signature Requirements
 Append transactions MUST have signatures from _all_ keys in the `KeyList`
 assigned to the `keys` field of the file.<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.FileAppendTransactionBody
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A transaction body for an `appendContent` transaction.<br/> This transaction body provides a mechanism to append content to a "file" in network state.

    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
     

    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 to append.<br/> <p> This content SHALL be appended to the identified file if this transaction succeeds.<br/> This field is REQUIRED.<br/> This field MUST NOT be empty.
     
    * A file identifier.<br/> This identifies the file to which the `contents` will be appended.
    boolean
    * A file identifier.<br/> This identifies the file to which the `contents` will be appended.
     
     
     
    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<FileAppendTransactionBody>
     

    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.<br/>
       This identifies the file to which the `contents` will be appended.
       <p>
       This field is REQUIRED.<br/>
       The identified file MUST exist.<br/>
       The identified file MUST NOT be larger than the current maximum file
       size limit.<br/>
       The identified file MUST NOT be deleted.<br/>
       The identified file MUST NOT be immutable.
       
      .proto.FileID fileID = 2;
      Specified by:
      hasFileID in interface FileAppendTransactionBodyOrBuilder
      Returns:
      Whether the fileID field is set.
    • getFileID

      public FileID getFileID()
       *
       A file identifier.<br/>
       This identifies the file to which the `contents` will be appended.
       <p>
       This field is REQUIRED.<br/>
       The identified file MUST exist.<br/>
       The identified file MUST NOT be larger than the current maximum file
       size limit.<br/>
       The identified file MUST NOT be deleted.<br/>
       The identified file MUST NOT be immutable.
       
      .proto.FileID fileID = 2;
      Specified by:
      getFileID in interface FileAppendTransactionBodyOrBuilder
      Returns:
      The fileID.
    • getContents

      public com.google.protobuf.ByteString getContents()
       *
       An array of bytes to append.<br/>
       <p>
       This content SHALL be appended to the identified file if this
       transaction succeeds.<br/>
       This field is REQUIRED.<br/>
       This field MUST NOT be empty.
       
      bytes contents = 4;
      Specified by:
      getContents in interface FileAppendTransactionBodyOrBuilder
      Returns:
      The contents.
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static FileAppendTransactionBody.Builder newBuilder()
    • newBuilder

      public static FileAppendTransactionBody.Builder newBuilder(FileAppendTransactionBody 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<FileAppendTransactionBody,FileAppendTransactionBody.Builder>
    • getDefaultInstance

      public static FileAppendTransactionBody getDefaultInstance()
    • parser

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