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 Details

    • getDescriptor

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

      public AttachmentItem.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AttachmentItem.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AttachmentItem.Builder>
    • getDefaultInstanceForType

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

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

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

      public AttachmentItem.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachmentItem.Builder>
    • mergeFrom

      public AttachmentItem.Builder mergeFrom(AttachmentItem other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachmentItem.Builder>
      Throws:
      IOException
    • 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.
    • setId

      public AttachmentItem.Builder setId(String value)
      附件ID
      
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public AttachmentItem.Builder clearId()
      附件ID
      
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public AttachmentItem.Builder setIdBytes(com.google.protobuf.ByteString value)
      附件ID
      
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • 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.
    • setName

      public AttachmentItem.Builder setName(String value)
      文件名
      
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AttachmentItem.Builder clearName()
      文件名
      
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public AttachmentItem.Builder setNameBytes(com.google.protobuf.ByteString value)
      文件名
      
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setChecksum

      public AttachmentItem.Builder setChecksum(String value)
      文件摘要
      
      string checksum = 3;
      Parameters:
      value - The checksum to set.
      Returns:
      This builder for chaining.
    • clearChecksum

      public AttachmentItem.Builder clearChecksum()
      文件摘要
      
      string checksum = 3;
      Returns:
      This builder for chaining.
    • setChecksumBytes

      public AttachmentItem.Builder setChecksumBytes(com.google.protobuf.ByteString value)
      文件摘要
      
      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:
      getSize in interface AttachmentItemOrBuilder
      Returns:
      The size.
    • setSize

      public AttachmentItem.Builder setSize(long value)
      文件大小。单位:字节。
      
      uint64 size = 4;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public AttachmentItem.Builder clearSize()
      文件大小。单位:字节。
      
      uint64 size = 4;
      Returns:
      This builder for chaining.
    • 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.
    • setType

      public AttachmentItem.Builder setType(String value)
      MIME 类型
      
      string type = 5;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public AttachmentItem.Builder clearType()
      MIME 类型
      
      string type = 5;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public AttachmentItem.Builder setTypeBytes(com.google.protobuf.ByteString value)
      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:
      getStatusValue in interface AttachmentItemOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public AttachmentItem.Builder setStatusValue(int value)
      附件状态
      
      .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

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

      public AttachmentItem.Builder setStatus(AttachmentStatus value)
      附件状态
      
      .io.github.xezzon.zeroweb.attachment.AttachmentStatus status = 9;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public AttachmentItem.Builder 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:
      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.
    • setOwnerId

      public AttachmentItem.Builder setOwnerId(String value)
      上传者
      
      optional string owner_id = 10;
      Parameters:
      value - The ownerId to set.
      Returns:
      This builder for chaining.
    • clearOwnerId

      public AttachmentItem.Builder clearOwnerId()
      上传者
      
      optional string owner_id = 10;
      Returns:
      This builder for chaining.
    • setOwnerIdBytes

      public AttachmentItem.Builder setOwnerIdBytes(com.google.protobuf.ByteString value)
      上传者
      
      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:
      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.
    • setCreateTime

      public AttachmentItem.Builder setCreateTime(com.google.protobuf.Timestamp value)
      上传时间
      
      .google.protobuf.Timestamp create_time = 11;
    • setCreateTime

      public AttachmentItem.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
      上传时间
      
      .google.protobuf.Timestamp create_time = 11;
    • mergeCreateTime

      public AttachmentItem.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
      上传时间
      
      .google.protobuf.Timestamp create_time = 11;
    • clearCreateTime

      public AttachmentItem.Builder 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:
      getCreateTimeOrBuilder in interface AttachmentItemOrBuilder