Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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 TypeMethodDescription* 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).mergeFileID(FileID value) * A file identifier.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).* A file identifier.setFileID(FileID.Builder builderForValue) * A file identifier.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).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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
hasHeaderin interfaceFileGetInfoQueryOrBuilder- Returns:
- Whether the header field is set.
-
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:
getHeaderin interfaceFileGetInfoQueryOrBuilder- Returns:
- The header.
-
setHeader
* 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
* 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
* 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
* 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:
hasFileIDin interfaceFileGetInfoQueryOrBuilder- Returns:
- Whether the fileID field is set.
-
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:
getFileIDin interfaceFileGetInfoQueryOrBuilder- Returns:
- The fileID.
-
setFileID
* 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
* 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
* 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
* 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;
-