Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A byte array of file content.* A file identifier.com.google.protobuf.ByteString* A byte array of file content.* A file identifier.boolean* A file identifier.mergeFileID(FileID value) * A file identifier.setContents(com.google.protobuf.ByteString value) * A byte array of file content.* A file identifier.setFileID(FileID.Builder builderForValue) * A file identifier.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
-
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:
hasFileIDin interfaceFileGetContentsResponse.FileContentsOrBuilder- Returns:
- Whether the fileID field is set.
-
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:
getFileIDin interfaceFileGetContentsResponse.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:
getContentsin interfaceFileGetContentsResponse.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.
-