Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class FileGetContentsQuery.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FileGetContentsQuery,FileGetContentsQuery.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FileGetContentsQuery,FileGetContentsQuery.Builder>
com.hedera.hashgraph.sdk.proto.FileGetContentsQuery.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FileGetContentsQueryOrBuilder,Cloneable
- Enclosing class:
FileGetContentsQuery
public static final class FileGetContentsQuery.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FileGetContentsQuery,FileGetContentsQuery.Builder>
implements FileGetContentsQueryOrBuilder
* A query request to the Hedera File Service (HFS) for file content.<br/> This query requests the content of a file, but none of the information _about_ a file. A client should submit a `fileGetInfo` query to view information about a file.<br/> File content may also be available from a block node or mirror node, generally at lower cost.Protobuf type
proto.FileGetContentsQuery-
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 interfaceFileGetContentsQueryOrBuilder- 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 interfaceFileGetContentsQueryOrBuilder- 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 interfaceFileGetContentsQueryOrBuilder- 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 interfaceFileGetContentsQueryOrBuilder- 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;
-