Class FileGetInfoQuery.Builder

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

public static final class FileGetInfoQuery.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<FileGetInfoQuery,FileGetInfoQuery.Builder> implements FileGetInfoQueryOrBuilder
 *
 Query to request file metadata from the Hedera File Service (HFS).<br/>
 This query requests all of the information _about_ a file, but none of the
 _content_ of a file. A client should submit a `fileGetContents` query to
 view the content of a file. File content _may_ also be available from a
 block node or mirror node, generally at lower cost.

 File metadata SHALL be available for active files and deleted files.<br/>
 The size of a deleted file SHALL be `0` and the content SHALL be empty.
 
Protobuf type proto.FileGetInfoQuery
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A file identifier.
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    * A file identifier.
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    boolean
    * A file identifier.
    boolean
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    * A file identifier.
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    * A file identifier.
    setFileID(FileID.Builder builderForValue)
    * A file identifier.
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).
    setHeader(QueryHeader.Builder builderForValue)
    * Standard information sent with every query operation.<br/> This includes the signed payment and what kind of response is requested (cost, state proof, both, or neither).

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasHeader

      public boolean hasHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      hasHeader in interface FileGetInfoQueryOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public QueryHeader getHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      getHeader in interface FileGetInfoQueryOrBuilder
      Returns:
      The header.
    • setHeader

      public FileGetInfoQuery.Builder setHeader(QueryHeader value)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • setHeader

      public FileGetInfoQuery.Builder setHeader(QueryHeader.Builder builderForValue)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • mergeHeader

      public FileGetInfoQuery.Builder mergeHeader(QueryHeader value)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • clearHeader

      public FileGetInfoQuery.Builder clearHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • hasFileID

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

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

      public FileGetInfoQuery.Builder setFileID(FileID value)
       *
       A file identifier.
       <p>
       This MUST be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file to be queried.
       
      .proto.FileID fileID = 2;
    • setFileID

      public FileGetInfoQuery.Builder setFileID(FileID.Builder builderForValue)
       *
       A file identifier.
       <p>
       This MUST be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file to be queried.
       
      .proto.FileID fileID = 2;
    • mergeFileID

      public FileGetInfoQuery.Builder mergeFileID(FileID value)
       *
       A file identifier.
       <p>
       This MUST be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file to be queried.
       
      .proto.FileID fileID = 2;
    • clearFileID

      public FileGetInfoQuery.Builder clearFileID()
       *
       A file identifier.
       <p>
       This MUST be the identifier of a file that exists in HFS.<br/>
       This value SHALL identify the file to be queried.
       
      .proto.FileID fileID = 2;