Class FileGetContentsResponse.FileContents.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FileGetContentsResponse.FileContents,FileGetContentsResponse.FileContents.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FileGetContentsResponse.FileContents,FileGetContentsResponse.FileContents.Builder>
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.FileContents.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, FileGetContentsResponse.FileContentsOrBuilder, Cloneable
Enclosing class:
FileGetContentsResponse.FileContents

public static final class FileGetContentsResponse.FileContents.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<FileGetContentsResponse.FileContents,FileGetContentsResponse.FileContents.Builder> implements FileGetContentsResponse.FileContentsOrBuilder
Protobuf type proto.FileGetContentsResponse.FileContents
  • Method Details

    • hasFileID

      public boolean hasFileID()
       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
      Specified by:
      hasFileID in interface FileGetContentsResponse.FileContentsOrBuilder
      Returns:
      Whether the fileID field is set.
    • getFileID

      public FileID getFileID()
       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
      Specified by:
      getFileID in interface FileGetContentsResponse.FileContentsOrBuilder
      Returns:
      The fileID.
    • setFileID

       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • setFileID

       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • mergeFileID

       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • clearFileID

       *
       A file identifier.
       <p>
       This SHALL be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file that was queried.
       
      .proto.FileID fileID = 1;
    • getContents

      public com.google.protobuf.ByteString getContents()
       *
       A byte array of file content.
       <p>
       This SHALL contain the full content of the requested file.<br/>
       This SHALL be empty if, and only if, the file content is empty.
       
      bytes contents = 2;
      Specified by:
      getContents in interface FileGetContentsResponse.FileContentsOrBuilder
      Returns:
      The contents.
    • setContents

      public FileGetContentsResponse.FileContents.Builder setContents(com.google.protobuf.ByteString value)
       *
       A byte array of file content.
       <p>
       This SHALL contain the full content of the requested file.<br/>
       This SHALL be empty if, and only if, the file content is empty.
       
      bytes contents = 2;
      Parameters:
      value - The contents to set.
      Returns:
      This builder for chaining.
    • clearContents

       *
       A byte array of file content.
       <p>
       This SHALL contain the full content of the requested file.<br/>
       This SHALL be empty if, and only if, the file content is empty.
       
      bytes contents = 2;
      Returns:
      This builder for chaining.