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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type proto.FileGetInfoResponse.FileInfo

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    boolean
    * A flag indicating this file is deleted.
    * An expiration timestamp.
    * A file identifier.
    * A KeyList listing all keys that "own" the file.
    com.google.protobuf.ByteString
    * A ledger identifier for the responding network.
    * A short description for this file.
    com.google.protobuf.ByteString
    * A short description for this file.
    long
    * A size, in bytes, for the file.
    boolean
    * An expiration timestamp.
    boolean
    * A file identifier.
    boolean
    * A KeyList listing all keys that "own" the file.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<FileGetInfoResponse.FileInfo>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • 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:
      hasFileID in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      Whether the fileID field is set.
    • getFileID

      public FileID 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:
      getFileID in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The fileID.
    • getSize

      public long getSize()
       *
       A size, in bytes, for the file.
       
      int64 size = 2;
      Specified by:
      getSize in interface FileGetInfoResponse.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:
      hasExpirationTime in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public Timestamp 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:
      getExpirationTime in interface FileGetInfoResponse.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:
      getDeleted in interface FileGetInfoResponse.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:
      hasKeys in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      Whether the keys field is set.
    • getKeys

      public KeyList 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:
      getKeys in interface FileGetInfoResponse.FileInfoOrBuilder
      Returns:
      The keys.
    • getMemo

      public String 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:
      getMemo in interface FileGetInfoResponse.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:
      getMemoBytes in interface FileGetInfoResponse.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:
      getLedgerId in interface FileGetInfoResponse.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

      public static FileGetInfoResponse.FileInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FileGetInfoResponse.FileInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FileGetInfoResponse.FileInfo parseDelimitedFrom(InputStream input) throws IOException
      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

      public static FileGetInfoResponse.FileInfo.Builder newBuilder()
    • newBuilder

    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<FileGetInfoResponse.FileInfo,FileGetInfoResponse.FileInfo.Builder>
    • getDefaultInstance

      public static FileGetInfoResponse.FileInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FileGetInfoResponse.FileInfo> parser()