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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeio.github.xezzon.zeroweb.attachment.AttachmentItemNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionboolean文件摘要com.google.protobuf.ByteString文件摘要com.google.protobuf.Timestamp上传时间com.google.protobuf.TimestampOrBuilder上传时间static AttachmentItemstatic final com.google.protobuf.Descriptors.DescriptorgetId()附件IDcom.google.protobuf.ByteString附件IDgetName()文件名com.google.protobuf.ByteString文件名上传者com.google.protobuf.ByteString上传者com.google.protobuf.Parser<AttachmentItem> intlonggetSize()文件大小。附件状态int附件状态getType()MIME 类型com.google.protobuf.ByteStringMIME 类型boolean上传时间inthashCode()boolean上传者final booleanstatic AttachmentItem.Builderstatic AttachmentItem.BuildernewBuilder(AttachmentItem prototype) static AttachmentItemparseDelimitedFrom(InputStream input) static AttachmentItemparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttachmentItemparseFrom(byte[] data) static AttachmentItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttachmentItemparseFrom(com.google.protobuf.ByteString data) static AttachmentItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttachmentItemparseFrom(com.google.protobuf.CodedInputStream input) static AttachmentItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttachmentItemparseFrom(InputStream input) static AttachmentItemparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttachmentItemparseFrom(ByteBuffer data) static AttachmentItemparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttachmentItem> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtensionMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
CHECKSUM_FIELD_NUMBER
public static final int CHECKSUM_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
OWNER_ID_FIELD_NUMBER
public static final int OWNER_ID_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getId
附件ID
string id = 1;- Specified by:
getIdin interfaceAttachmentItemOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()附件ID
string id = 1;- Specified by:
getIdBytesin interfaceAttachmentItemOrBuilder- Returns:
- The bytes for id.
-
getName
文件名
string name = 2;- Specified by:
getNamein interfaceAttachmentItemOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()文件名
string name = 2;- Specified by:
getNameBytesin interfaceAttachmentItemOrBuilder- Returns:
- The bytes for name.
-
getChecksum
文件摘要
string checksum = 3;- Specified by:
getChecksumin interfaceAttachmentItemOrBuilder- Returns:
- The checksum.
-
getChecksumBytes
public com.google.protobuf.ByteString getChecksumBytes()文件摘要
string checksum = 3;- Specified by:
getChecksumBytesin interfaceAttachmentItemOrBuilder- Returns:
- The bytes for checksum.
-
getSize
public long getSize()文件大小。单位:字节。
uint64 size = 4;- Specified by:
getSizein interfaceAttachmentItemOrBuilder- Returns:
- The size.
-
getType
MIME 类型
string type = 5;- Specified by:
getTypein interfaceAttachmentItemOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()MIME 类型
string type = 5;- Specified by:
getTypeBytesin interfaceAttachmentItemOrBuilder- Returns:
- The bytes for type.
-
getStatusValue
public int getStatusValue()附件状态
.io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;- Specified by:
getStatusValuein interfaceAttachmentItemOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
附件状态
.io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;- Specified by:
getStatusin interfaceAttachmentItemOrBuilder- Returns:
- The status.
-
hasOwnerId
public boolean hasOwnerId()上传者
optional string owner_id = 10;- Specified by:
hasOwnerIdin interfaceAttachmentItemOrBuilder- Returns:
- Whether the ownerId field is set.
-
getOwnerId
上传者
optional string owner_id = 10;- Specified by:
getOwnerIdin interfaceAttachmentItemOrBuilder- Returns:
- The ownerId.
-
getOwnerIdBytes
public com.google.protobuf.ByteString getOwnerIdBytes()上传者
optional string owner_id = 10;- Specified by:
getOwnerIdBytesin interfaceAttachmentItemOrBuilder- Returns:
- The bytes for ownerId.
-
hasCreateTime
public boolean hasCreateTime()上传时间
.google.protobuf.Timestamp create_time = 11;- Specified by:
hasCreateTimein interfaceAttachmentItemOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()上传时间
.google.protobuf.Timestamp create_time = 11;- Specified by:
getCreateTimein interfaceAttachmentItemOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()上传时间
.google.protobuf.Timestamp create_time = 11;- Specified by:
getCreateTimeOrBuilderin interfaceAttachmentItemOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static AttachmentItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-