Class AttachmentItem

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.github.xezzon.zeroweb.attachment.AttachmentItem
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AttachmentItemOrBuilder, Serializable

public final class AttachmentItem extends com.google.protobuf.GeneratedMessage implements AttachmentItemOrBuilder
Protobuf type io.github.xezzon.zeroweb.attachment.AttachmentItem
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

      public String getId()
      附件ID
      
      string id = 1;
      Specified by:
      getId in interface AttachmentItemOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      附件ID
      
      string id = 1;
      Specified by:
      getIdBytes in interface AttachmentItemOrBuilder
      Returns:
      The bytes for id.
    • getName

      public String getName()
      文件名
      
      string name = 2;
      Specified by:
      getName in interface AttachmentItemOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      文件名
      
      string name = 2;
      Specified by:
      getNameBytes in interface AttachmentItemOrBuilder
      Returns:
      The bytes for name.
    • getChecksum

      public String getChecksum()
      文件摘要
      
      string checksum = 3;
      Specified by:
      getChecksum in interface AttachmentItemOrBuilder
      Returns:
      The checksum.
    • getChecksumBytes

      public com.google.protobuf.ByteString getChecksumBytes()
      文件摘要
      
      string checksum = 3;
      Specified by:
      getChecksumBytes in interface AttachmentItemOrBuilder
      Returns:
      The bytes for checksum.
    • getSize

      public long getSize()
      文件大小。单位:字节。
      
      uint64 size = 4;
      Specified by:
      getSize in interface AttachmentItemOrBuilder
      Returns:
      The size.
    • getType

      public String getType()
      MIME 类型
      
      string type = 5;
      Specified by:
      getType in interface AttachmentItemOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      MIME 类型
      
      string type = 5;
      Specified by:
      getTypeBytes in interface AttachmentItemOrBuilder
      Returns:
      The bytes for type.
    • getStatusValue

      public int getStatusValue()
      附件状态
      
      .io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;
      Specified by:
      getStatusValue in interface AttachmentItemOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public AttachmentStatus getStatus()
      附件状态
      
      .io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;
      Specified by:
      getStatus in interface AttachmentItemOrBuilder
      Returns:
      The status.
    • hasOwnerId

      public boolean hasOwnerId()
      上传者
      
      optional string owner_id = 10;
      Specified by:
      hasOwnerId in interface AttachmentItemOrBuilder
      Returns:
      Whether the ownerId field is set.
    • getOwnerId

      public String getOwnerId()
      上传者
      
      optional string owner_id = 10;
      Specified by:
      getOwnerId in interface AttachmentItemOrBuilder
      Returns:
      The ownerId.
    • getOwnerIdBytes

      public com.google.protobuf.ByteString getOwnerIdBytes()
      上传者
      
      optional string owner_id = 10;
      Specified by:
      getOwnerIdBytes in interface AttachmentItemOrBuilder
      Returns:
      The bytes for ownerId.
    • hasCreateTime

      public boolean hasCreateTime()
      上传时间
      
      .google.protobuf.Timestamp create_time = 11;
      Specified by:
      hasCreateTime in interface AttachmentItemOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
      上传时间
      
      .google.protobuf.Timestamp create_time = 11;
      Specified by:
      getCreateTime in interface AttachmentItemOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
      上传时间
      
      .google.protobuf.Timestamp create_time = 11;
      Specified by:
      getCreateTimeOrBuilder in interface AttachmentItemOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AttachmentItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttachmentItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttachmentItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttachmentItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttachmentItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static AttachmentItem parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AttachmentItem parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static AttachmentItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AttachmentItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AttachmentItem.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AttachmentItem.Builder newBuilder()
    • newBuilder

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

      public AttachmentItem.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • getDefaultInstance

      public static AttachmentItem getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AttachmentItem> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AttachmentItem getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder