Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class FileGetInfoResponse.FileInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite<FileGetInfoResponse.FileInfo,FileGetInfoResponse.FileInfo.Builder>
com.google.protobuf.GeneratedMessageLite<FileGetInfoResponse.FileInfo,FileGetInfoResponse.FileInfo.Builder>
com.hedera.hashgraph.sdk.proto.FileGetInfoResponse.FileInfo
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,FileGetInfoResponse.FileInfoOrBuilder
- Enclosing class:
FileGetInfoResponse
public static final class FileGetInfoResponse.FileInfo
extends com.google.protobuf.GeneratedMessageLite<FileGetInfoResponse.FileInfo,FileGetInfoResponse.FileInfo.Builder>
implements FileGetInfoResponse.FileInfoOrBuilder
Protobuf type
proto.FileGetInfoResponse.FileInfo-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeproto.FileGetInfoResponse.FileInfoNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static FileGetInfoResponse.FileInfoboolean* A flag indicating this file is deleted.* An expiration timestamp.* A file identifier.getKeys()* A KeyList listing all keys that "own" the file.com.google.protobuf.ByteString* A ledger identifier for the responding network.getMemo()* A short description for this file.com.google.protobuf.ByteString* A short description for this file.longgetSize()* A size, in bytes, for the file.boolean* An expiration timestamp.boolean* A file identifier.booleanhasKeys()* A KeyList listing all keys that "own" the file.newBuilder(FileGetInfoResponse.FileInfo prototype) static FileGetInfoResponse.FileInfoparseDelimitedFrom(InputStream input) static FileGetInfoResponse.FileInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileGetInfoResponse.FileInfoparseFrom(byte[] data) static FileGetInfoResponse.FileInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileGetInfoResponse.FileInfoparseFrom(com.google.protobuf.ByteString data) static FileGetInfoResponse.FileInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileGetInfoResponse.FileInfoparseFrom(com.google.protobuf.CodedInputStream input) static FileGetInfoResponse.FileInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileGetInfoResponse.FileInfoparseFrom(InputStream input) static FileGetInfoResponse.FileInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FileGetInfoResponse.FileInfoparseFrom(ByteBuffer data) static FileGetInfoResponse.FileInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FileGetInfoResponse.FileInfo> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
FILEID_FIELD_NUMBER
public static final int FILEID_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
EXPIRATIONTIME_FIELD_NUMBER
public static final int EXPIRATIONTIME_FIELD_NUMBER- See Also:
-
DELETED_FIELD_NUMBER
public static final int DELETED_FIELD_NUMBER- See Also:
-
KEYS_FIELD_NUMBER
public static final int KEYS_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
LEDGER_ID_FIELD_NUMBER
public static final int LEDGER_ID_FIELD_NUMBER- See Also:
-
-
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 interfaceFileGetInfoResponse.FileInfoOrBuilder- 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 interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The fileID.
-
getSize
public long getSize()* A size, in bytes, for the file.
int64 size = 2;- Specified by:
getSizein interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The size.
-
hasExpirationTime
public boolean hasExpirationTime()* An expiration timestamp. <p> The file SHALL NOT expire before the network consensus time exceeds this value.<br/> The file SHALL expire after the network consensus time exceeds this value.<br/>
.proto.Timestamp expirationTime = 3;- Specified by:
hasExpirationTimein interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
* An expiration timestamp. <p> The file SHALL NOT expire before the network consensus time exceeds this value.<br/> The file SHALL expire after the network consensus time exceeds this value.<br/>
.proto.Timestamp expirationTime = 3;- Specified by:
getExpirationTimein interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The expirationTime.
-
getDeleted
public boolean getDeleted()* A flag indicating this file is deleted. <p> A deleted file SHALL have a size `0` and empty content.
bool deleted = 4;- Specified by:
getDeletedin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The deleted.
-
hasKeys
public boolean hasKeys()* A KeyList listing all keys that "own" the file. <p> All keys in this list MUST sign a transaction to append to the file content, or to modify file metadata.<br/> At least _one_ key in this list MUST sign a transaction to delete this file.<br/> If this is an empty `KeyList`, the file is immutable, cannot be modified or deleted, but MAY expire. A `fileUpdate` transaction MAY extend the expiration time for an immutable file.
.proto.KeyList keys = 5;- Specified by:
hasKeysin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- Whether the keys field is set.
-
getKeys
* A KeyList listing all keys that "own" the file. <p> All keys in this list MUST sign a transaction to append to the file content, or to modify file metadata.<br/> At least _one_ key in this list MUST sign a transaction to delete this file.<br/> If this is an empty `KeyList`, the file is immutable, cannot be modified or deleted, but MAY expire. A `fileUpdate` transaction MAY extend the expiration time for an immutable file.
.proto.KeyList keys = 5;- Specified by:
getKeysin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The keys.
-
getMemo
* A short description for this file. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 6;- Specified by:
getMemoin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()* A short description for this file. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 6;- Specified by:
getMemoBytesin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The bytes for memo.
-
getLedgerId
public com.google.protobuf.ByteString getLedgerId()* A ledger identifier for the responding network. <p> This value SHALL identify the distributed ledger that responded to this query.
bytes ledger_id = 7;- Specified by:
getLedgerIdin interfaceFileGetInfoResponse.FileInfoOrBuilder- Returns:
- The ledgerId.
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FileGetInfoResponse.FileInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FileGetInfoResponse.FileInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static FileGetInfoResponse.FileInfo.Builder newBuilder(FileGetInfoResponse.FileInfo prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<FileGetInfoResponse.FileInfo,FileGetInfoResponse.FileInfo.Builder>
-
getDefaultInstance
-
parser
-