Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class FileGetContentsResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FileGetContentsResponse,FileGetContentsResponse.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FileGetContentsResponse,FileGetContentsResponse.Builder>
com.hedera.hashgraph.sdk.proto.FileGetContentsResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FileGetContentsResponseOrBuilder,Cloneable
- Enclosing class:
FileGetContentsResponse
public static final class FileGetContentsResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FileGetContentsResponse,FileGetContentsResponse.Builder>
implements FileGetContentsResponseOrBuilder
* A response to a query for the content of a file in the Hedera File Service (HFS). This message SHALL contain the full content of the requested file, but SHALL NOT contain any metadata.Protobuf type
proto.FileGetContentsResponse-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A combination of File identifier and content bytes.* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).* A combination of File identifier and content bytes.* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).boolean* A combination of File identifier and content bytes.boolean* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).* A combination of File identifier and content bytes.mergeHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).* A combination of File identifier and content bytes.setFileContents(FileGetContentsResponse.FileContents.Builder builderForValue) * A combination of File identifier and content bytes.setHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).setHeader(ResponseHeader.Builder builderForValue) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (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()* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Specified by:
hasHeaderin interfaceFileGetContentsResponseOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1;- Specified by:
getHeaderin interfaceFileGetContentsResponseOrBuilder- Returns:
- The header.
-
setHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
setHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
mergeHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
clearHeader
* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).
.proto.ResponseHeader header = 1; -
hasFileContents
public boolean hasFileContents()* A combination of File identifier and content bytes. <p> This SHALL NOT be set if the file does not exist.<br/> The network MAY generate a state proof for this field.
.proto.FileGetContentsResponse.FileContents fileContents = 2;- Specified by:
hasFileContentsin interfaceFileGetContentsResponseOrBuilder- Returns:
- Whether the fileContents field is set.
-
getFileContents
* A combination of File identifier and content bytes. <p> This SHALL NOT be set if the file does not exist.<br/> The network MAY generate a state proof for this field.
.proto.FileGetContentsResponse.FileContents fileContents = 2;- Specified by:
getFileContentsin interfaceFileGetContentsResponseOrBuilder- Returns:
- The fileContents.
-
setFileContents
* A combination of File identifier and content bytes. <p> This SHALL NOT be set if the file does not exist.<br/> The network MAY generate a state proof for this field.
.proto.FileGetContentsResponse.FileContents fileContents = 2; -
setFileContents
public FileGetContentsResponse.Builder setFileContents(FileGetContentsResponse.FileContents.Builder builderForValue) * A combination of File identifier and content bytes. <p> This SHALL NOT be set if the file does not exist.<br/> The network MAY generate a state proof for this field.
.proto.FileGetContentsResponse.FileContents fileContents = 2; -
mergeFileContents
public FileGetContentsResponse.Builder mergeFileContents(FileGetContentsResponse.FileContents value) * A combination of File identifier and content bytes. <p> This SHALL NOT be set if the file does not exist.<br/> The network MAY generate a state proof for this field.
.proto.FileGetContentsResponse.FileContents fileContents = 2; -
clearFileContents
* A combination of File identifier and content bytes. <p> This SHALL NOT be set if the file does not exist.<br/> The network MAY generate a state proof for this field.
.proto.FileGetContentsResponse.FileContents fileContents = 2;
-