程序包 com.knight.proto

类 File

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.knight.proto.File
所有已实现的接口:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FileOrBuilder, Serializable

public final class File extends com.google.protobuf.GeneratedMessageV3 implements FileOrBuilder
/ <summary> 文件上传服务 </summary>
 
Protobuf type KnightSubProto.File
另请参阅:
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static final class 
    / <summary> 文件上传服务 </summary>

    从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final com.google.protobuf.Parser<File>
    已过时。
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    从类继承的字段 com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    从类继承的字段 com.google.protobuf.AbstractMessage

    memoizedSize

    从类继承的字段 com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
     
    / <summary> 内容类型 </summary>
    com.google.protobuf.ByteString
    / <summary> 内容类型 </summary>
    com.google.protobuf.ByteString
    / <summary> 资源数据 </summary>
    static File
     
     
    / <summary> 描述 </summary>
    com.google.protobuf.ByteString
    / <summary> 描述 </summary>
    static final com.google.protobuf.Descriptors.Descriptor
     
    long
    / <summary> 修改时间 </summary>
    / <summary> 本地文件路径 </summary>
    com.google.protobuf.ByteString
    / <summary> 本地文件路径 </summary>
    / <summary> 资源名称 </summary>
    com.google.protobuf.ByteString
    / <summary> 资源名称 </summary>
    / <summary> 扩展字段 </summary>
    com.google.protobuf.ByteString
    / <summary> 扩展字段 </summary>
    com.google.protobuf.Parser<File>
     
    com.google.protobuf.ByteString
    / <summary> 资源预览图数据 </summary>
    / <summary> 资源预览图 </summary>
    com.google.protobuf.ByteString
    / <summary> 资源预览图 </summary>
    int
     
    / <summary> 资源大小 </summary>
    com.google.protobuf.ByteString
    / <summary> 资源大小 </summary>
    / <summary> 资源类型 </summary>
    com.google.protobuf.ByteString
    / <summary> 资源类型 </summary>
    / <summary> 资源ID </summary>
    com.google.protobuf.ByteString
    / <summary> 资源ID </summary>
    final com.google.protobuf.UnknownFieldSet
     
    / <summary> 资源地址 </summary>
    com.google.protobuf.ByteString
    / <summary> 资源地址 </summary>
    boolean
    / <summary> 内容类型 </summary>
    boolean
    / <summary> 资源数据 </summary>
    boolean
    / <summary> 描述 </summary>
    int
     
    boolean
    / <summary> 修改时间 </summary>
    boolean
    / <summary> 本地文件路径 </summary>
    boolean
    / <summary> 资源名称 </summary>
    boolean
    / <summary> 扩展字段 </summary>
    boolean
    / <summary> 资源预览图数据 </summary>
    boolean
    / <summary> 资源预览图 </summary>
    boolean
    / <summary> 资源大小 </summary>
    boolean
    / <summary> 资源类型 </summary>
    boolean
    / <summary> 资源ID </summary>
    boolean
    / <summary> 资源地址 </summary>
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(File prototype)
     
     
    protected File.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    static File
     
    static File
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static File
    parseFrom(byte[] data)
     
    static File
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static File
    parseFrom(com.google.protobuf.ByteString data)
     
    static File
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static File
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static File
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static File
     
    static File
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static File
     
    static File
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<File>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    从类继承的方法 com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    从类继承的方法 com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    从类继承的方法 com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    从接口继承的方法 com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
  • 字段详细资料

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      另请参阅:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      另请参阅:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      另请参阅:
    • CONTENTTYPE_FIELD_NUMBER

      public static final int CONTENTTYPE_FIELD_NUMBER
      另请参阅:
    • SIZE_FIELD_NUMBER

      public static final int SIZE_FIELD_NUMBER
      另请参阅:
    • URL_FIELD_NUMBER

      public static final int URL_FIELD_NUMBER
      另请参阅:
    • DATA_FIELD_NUMBER

      public static final int DATA_FIELD_NUMBER
      另请参阅:
    • PREVIEWURL_FIELD_NUMBER

      public static final int PREVIEWURL_FIELD_NUMBER
      另请参阅:
    • PREVIEWDATA_FIELD_NUMBER

      public static final int PREVIEWDATA_FIELD_NUMBER
      另请参阅:
    • LASTMODIFIED_FIELD_NUMBER

      public static final int LASTMODIFIED_FIELD_NUMBER
      另请参阅:
    • LOCALFILEPATH_FIELD_NUMBER

      public static final int LOCALFILEPATH_FIELD_NUMBER
      另请参阅:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      另请参阅:
    • OTHER_FIELD_NUMBER

      public static final int OTHER_FIELD_NUMBER
      另请参阅:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<File> PARSER
      已过时。
  • 方法详细资料

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      指定者:
      getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
    • hasName

      public boolean hasName()
      / <summary> 资源名称 </summary>
       
      optional string name = 1;
      指定者:
      hasName 在接口中 FileOrBuilder
    • getName

      public String getName()
      / <summary> 资源名称 </summary>
       
      optional string name = 1;
      指定者:
      getName 在接口中 FileOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      / <summary> 资源名称 </summary>
       
      optional string name = 1;
      指定者:
      getNameBytes 在接口中 FileOrBuilder
    • hasUid

      public boolean hasUid()
      / <summary> 资源ID </summary>
       
      optional string uid = 2;
      指定者:
      hasUid 在接口中 FileOrBuilder
    • getUid

      public String getUid()
      / <summary> 资源ID </summary>
       
      optional string uid = 2;
      指定者:
      getUid 在接口中 FileOrBuilder
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
      / <summary> 资源ID </summary>
       
      optional string uid = 2;
      指定者:
      getUidBytes 在接口中 FileOrBuilder
    • hasType

      public boolean hasType()
      / <summary> 资源类型 </summary>
       
      optional string type = 3;
      指定者:
      hasType 在接口中 FileOrBuilder
    • getType

      public String getType()
      / <summary> 资源类型 </summary>
       
      optional string type = 3;
      指定者:
      getType 在接口中 FileOrBuilder
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      / <summary> 资源类型 </summary>
       
      optional string type = 3;
      指定者:
      getTypeBytes 在接口中 FileOrBuilder
    • hasContentType

      public boolean hasContentType()
      / <summary> 内容类型 </summary>
       
      optional string contentType = 4;
      指定者:
      hasContentType 在接口中 FileOrBuilder
    • getContentType

      public String getContentType()
      / <summary> 内容类型 </summary>
       
      optional string contentType = 4;
      指定者:
      getContentType 在接口中 FileOrBuilder
    • getContentTypeBytes

      public com.google.protobuf.ByteString getContentTypeBytes()
      / <summary> 内容类型 </summary>
       
      optional string contentType = 4;
      指定者:
      getContentTypeBytes 在接口中 FileOrBuilder
    • hasSize

      public boolean hasSize()
      / <summary> 资源大小 </summary>
       
      optional string size = 5;
      指定者:
      hasSize 在接口中 FileOrBuilder
    • getSize

      public String getSize()
      / <summary> 资源大小 </summary>
       
      optional string size = 5;
      指定者:
      getSize 在接口中 FileOrBuilder
    • getSizeBytes

      public com.google.protobuf.ByteString getSizeBytes()
      / <summary> 资源大小 </summary>
       
      optional string size = 5;
      指定者:
      getSizeBytes 在接口中 FileOrBuilder
    • hasUrl

      public boolean hasUrl()
      / <summary> 资源地址 </summary>
       
      optional string url = 6;
      指定者:
      hasUrl 在接口中 FileOrBuilder
    • getUrl

      public String getUrl()
      / <summary> 资源地址 </summary>
       
      optional string url = 6;
      指定者:
      getUrl 在接口中 FileOrBuilder
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
      / <summary> 资源地址 </summary>
       
      optional string url = 6;
      指定者:
      getUrlBytes 在接口中 FileOrBuilder
    • hasData

      public boolean hasData()
      / <summary> 资源数据 </summary>
       
      optional bytes data = 7;
      指定者:
      hasData 在接口中 FileOrBuilder
    • getData

      public com.google.protobuf.ByteString getData()
      / <summary> 资源数据 </summary>
       
      optional bytes data = 7;
      指定者:
      getData 在接口中 FileOrBuilder
    • hasPreviewUrl

      public boolean hasPreviewUrl()
      / <summary> 资源预览图 </summary>
       
      optional string previewUrl = 8;
      指定者:
      hasPreviewUrl 在接口中 FileOrBuilder
    • getPreviewUrl

      public String getPreviewUrl()
      / <summary> 资源预览图 </summary>
       
      optional string previewUrl = 8;
      指定者:
      getPreviewUrl 在接口中 FileOrBuilder
    • getPreviewUrlBytes

      public com.google.protobuf.ByteString getPreviewUrlBytes()
      / <summary> 资源预览图 </summary>
       
      optional string previewUrl = 8;
      指定者:
      getPreviewUrlBytes 在接口中 FileOrBuilder
    • hasPreviewData

      public boolean hasPreviewData()
      / <summary> 资源预览图数据 </summary>
       
      optional bytes previewData = 9;
      指定者:
      hasPreviewData 在接口中 FileOrBuilder
    • getPreviewData

      public com.google.protobuf.ByteString getPreviewData()
      / <summary> 资源预览图数据 </summary>
       
      optional bytes previewData = 9;
      指定者:
      getPreviewData 在接口中 FileOrBuilder
    • hasLastModified

      public boolean hasLastModified()
      / <summary> 修改时间 </summary>
       
      optional int64 lastModified = 10;
      指定者:
      hasLastModified 在接口中 FileOrBuilder
    • getLastModified

      public long getLastModified()
      / <summary> 修改时间 </summary>
       
      optional int64 lastModified = 10;
      指定者:
      getLastModified 在接口中 FileOrBuilder
    • hasLocalFilePath

      public boolean hasLocalFilePath()
      / <summary> 本地文件路径 </summary>
       
      optional string localFilePath = 12;
      指定者:
      hasLocalFilePath 在接口中 FileOrBuilder
    • getLocalFilePath

      public String getLocalFilePath()
      / <summary> 本地文件路径 </summary>
       
      optional string localFilePath = 12;
      指定者:
      getLocalFilePath 在接口中 FileOrBuilder
    • getLocalFilePathBytes

      public com.google.protobuf.ByteString getLocalFilePathBytes()
      / <summary> 本地文件路径 </summary>
       
      optional string localFilePath = 12;
      指定者:
      getLocalFilePathBytes 在接口中 FileOrBuilder
    • hasDescription

      public boolean hasDescription()
      / <summary> 描述 </summary>
       
      optional string description = 13;
      指定者:
      hasDescription 在接口中 FileOrBuilder
    • getDescription

      public String getDescription()
      / <summary> 描述 </summary>
       
      optional string description = 13;
      指定者:
      getDescription 在接口中 FileOrBuilder
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      / <summary> 描述 </summary>
       
      optional string description = 13;
      指定者:
      getDescriptionBytes 在接口中 FileOrBuilder
    • hasOther

      public boolean hasOther()
      / <summary> 扩展字段 </summary>
       
      optional string other = 11;
      指定者:
      hasOther 在接口中 FileOrBuilder
    • getOther

      public String getOther()
      / <summary> 扩展字段 </summary>
       
      optional string other = 11;
      指定者:
      getOther 在接口中 FileOrBuilder
    • getOtherBytes

      public com.google.protobuf.ByteString getOtherBytes()
      / <summary> 扩展字段 </summary>
       
      optional string other = 11;
      指定者:
      getOtherBytes 在接口中 FileOrBuilder
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      指定者:
      writeTo 在接口中 com.google.protobuf.MessageLite
      覆盖:
      writeTo 在类中 com.google.protobuf.GeneratedMessageV3
      抛出:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      指定者:
      getSerializedSize 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      指定者:
      equals 在接口中 com.google.protobuf.Message
      覆盖:
      equals 在类中 com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在接口中 com.google.protobuf.Message
      覆盖:
      hashCode 在类中 com.google.protobuf.AbstractMessage
    • parseFrom

      public static File parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static File parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static File parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static File parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static File parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static File parseFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static File parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static File parseDelimitedFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static File parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseFrom

      public static File parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static File parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • newBuilderForType

      public File.Builder newBuilderForType()
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.Message
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.MessageLite
    • newBuilder

      public static File.Builder newBuilder()
    • newBuilder

      public static File.Builder newBuilder(File prototype)
    • toBuilder

      public File.Builder toBuilder()
      指定者:
      toBuilder 在接口中 com.google.protobuf.Message
      指定者:
      toBuilder 在接口中 com.google.protobuf.MessageLite
    • newBuilderForType

      protected File.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      指定者:
      newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static File getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<File> parser()
    • getParserForType

      public com.google.protobuf.Parser<File> getParserForType()
      指定者:
      getParserForType 在接口中 com.google.protobuf.Message
      指定者:
      getParserForType 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public File getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder