Class AttachmentItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AttachmentItem.Builder>
com.google.protobuf.GeneratedMessage.Builder<AttachmentItem.Builder>
io.github.xezzon.zeroweb.attachment.AttachmentItem.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AttachmentItemOrBuilder, Cloneable
- Enclosing class:
AttachmentItem
public static final class AttachmentItem.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AttachmentItem.Builder>
implements AttachmentItemOrBuilder
Protobuf type
io.github.xezzon.zeroweb.attachment.AttachmentItem-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()文件摘要上传时间clearId()附件ID文件名上传者文件大小。附件状态MIME 类型文件摘要com.google.protobuf.ByteString文件摘要com.google.protobuf.Timestamp上传时间com.google.protobuf.Timestamp.Builder上传时间com.google.protobuf.TimestampOrBuilder上传时间static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()附件IDcom.google.protobuf.ByteString附件IDgetName()文件名com.google.protobuf.ByteString文件名上传者com.google.protobuf.ByteString上传者longgetSize()文件大小。附件状态int附件状态getType()MIME 类型com.google.protobuf.ByteStringMIME 类型boolean上传时间boolean上传者final booleanmergeCreateTime(com.google.protobuf.Timestamp value) 上传时间mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AttachmentItem other) setChecksum(String value) 文件摘要setChecksumBytes(com.google.protobuf.ByteString value) 文件摘要setCreateTime(com.google.protobuf.Timestamp value) 上传时间setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) 上传时间附件IDsetIdBytes(com.google.protobuf.ByteString value) 附件ID文件名setNameBytes(com.google.protobuf.ByteString value) 文件名setOwnerId(String value) 上传者setOwnerIdBytes(com.google.protobuf.ByteString value) 上传者setSize(long value) 文件大小。setStatus(AttachmentStatus value) 附件状态setStatusValue(int value) 附件状态MIME 类型setTypeBytes(com.google.protobuf.ByteString value) MIME 类型Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, mergeUnknownFields, newBuilderForField, setField, setRepeatedField, setUnknownFieldsMethods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFromMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AttachmentItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AttachmentItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttachmentItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AttachmentItem.Builder>
-
mergeFrom
public AttachmentItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttachmentItem.Builder>- Throws:
IOException
-
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.
-
setId
附件ID
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
-
setIdBytes
附件ID
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
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.
-
setName
文件名
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
-
setNameBytes
文件名
string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setChecksum
文件摘要
string checksum = 3;- Parameters:
value- The checksum to set.- Returns:
- This builder for chaining.
-
clearChecksum
文件摘要
string checksum = 3;- Returns:
- This builder for chaining.
-
setChecksumBytes
文件摘要
string checksum = 3;- Parameters:
value- The bytes for checksum to set.- Returns:
- This builder for chaining.
-
getSize
public long getSize()文件大小。单位:字节。
uint64 size = 4;- Specified by:
getSizein interfaceAttachmentItemOrBuilder- Returns:
- The size.
-
setSize
文件大小。单位:字节。
uint64 size = 4;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
文件大小。单位:字节。
uint64 size = 4;- Returns:
- This builder for chaining.
-
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.
-
setType
MIME 类型
string type = 5;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
MIME 类型
string type = 5;- Returns:
- This builder for chaining.
-
setTypeBytes
MIME 类型
string type = 5;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
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.
-
setStatusValue
附件状态
.io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
附件状态
.io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;- Specified by:
getStatusin interfaceAttachmentItemOrBuilder- Returns:
- The status.
-
setStatus
附件状态
.io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
附件状态
.io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;- Returns:
- This builder for chaining.
-
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.
-
setOwnerId
上传者
optional string owner_id = 10;- Parameters:
value- The ownerId to set.- Returns:
- This builder for chaining.
-
clearOwnerId
上传者
optional string owner_id = 10;- Returns:
- This builder for chaining.
-
setOwnerIdBytes
上传者
optional string owner_id = 10;- Parameters:
value- The bytes for ownerId to set.- Returns:
- This builder for chaining.
-
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.
-
setCreateTime
上传时间
.google.protobuf.Timestamp create_time = 11; -
setCreateTime
上传时间
.google.protobuf.Timestamp create_time = 11; -
mergeCreateTime
上传时间
.google.protobuf.Timestamp create_time = 11; -
clearCreateTime
上传时间
.google.protobuf.Timestamp create_time = 11; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()上传时间
.google.protobuf.Timestamp create_time = 11; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()上传时间
.google.protobuf.Timestamp create_time = 11;- Specified by:
getCreateTimeOrBuilderin interfaceAttachmentItemOrBuilder
-