Class FileView.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FileView.Builder>
com.google.cloud.discoveryengine.v1alpha.FileView.Builder
All Implemented Interfaces:
FileViewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FileView

public static final class FileView.Builder extends com.google.protobuf.GeneratedMessage.Builder<FileView.Builder> implements FileViewOrBuilder
 Represents a specific alternate version or "view" of a file object,
 such as a summary, a thumbnail, a translated version, etc.
 
Protobuf type google.cloud.discoveryengine.v1alpha.FileView
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FileView.Builder>
    • clear

      public FileView.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<FileView.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<FileView.Builder>
    • getDefaultInstanceForType

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

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

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

      public FileView.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<FileView.Builder>
    • mergeFrom

      public FileView.Builder mergeFrom(FileView other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FileView.Builder>
    • mergeFrom

      public FileView.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<FileView.Builder>
      Throws:
      IOException
    • getCharacteristicsCase

      public FileView.CharacteristicsCase getCharacteristicsCase()
      Specified by:
      getCharacteristicsCase in interface FileViewOrBuilder
    • clearCharacteristics

      public FileView.Builder clearCharacteristics()
    • hasImageCharacteristics

      public boolean hasImageCharacteristics()
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasImageCharacteristics in interface FileViewOrBuilder
      Returns:
      Whether the imageCharacteristics field is set.
    • getImageCharacteristics

      public ImageCharacteristics getImageCharacteristics()
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getImageCharacteristics in interface FileViewOrBuilder
      Returns:
      The imageCharacteristics.
    • setImageCharacteristics

      public FileView.Builder setImageCharacteristics(ImageCharacteristics value)
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setImageCharacteristics

      public FileView.Builder setImageCharacteristics(ImageCharacteristics.Builder builderForValue)
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeImageCharacteristics

      public FileView.Builder mergeImageCharacteristics(ImageCharacteristics value)
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearImageCharacteristics

      public FileView.Builder clearImageCharacteristics()
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getImageCharacteristicsBuilder

      public ImageCharacteristics.Builder getImageCharacteristicsBuilder()
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getImageCharacteristicsOrBuilder

      public ImageCharacteristicsOrBuilder getImageCharacteristicsOrBuilder()
       Output only. Characteristics of an image media view.
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics image_characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getImageCharacteristicsOrBuilder in interface FileViewOrBuilder
    • hasVideoCharacteristics

      public boolean hasVideoCharacteristics()
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasVideoCharacteristics in interface FileViewOrBuilder
      Returns:
      Whether the videoCharacteristics field is set.
    • getVideoCharacteristics

      public VideoCharacteristics getVideoCharacteristics()
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoCharacteristics in interface FileViewOrBuilder
      Returns:
      The videoCharacteristics.
    • setVideoCharacteristics

      public FileView.Builder setVideoCharacteristics(VideoCharacteristics value)
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setVideoCharacteristics

      public FileView.Builder setVideoCharacteristics(VideoCharacteristics.Builder builderForValue)
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeVideoCharacteristics

      public FileView.Builder mergeVideoCharacteristics(VideoCharacteristics value)
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearVideoCharacteristics

      public FileView.Builder clearVideoCharacteristics()
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getVideoCharacteristicsBuilder

      public VideoCharacteristics.Builder getVideoCharacteristicsBuilder()
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getVideoCharacteristicsOrBuilder

      public VideoCharacteristicsOrBuilder getVideoCharacteristicsOrBuilder()
       Output only. Characteristics of a video media view.
       
      .google.cloud.discoveryengine.v1alpha.VideoCharacteristics video_characteristics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getVideoCharacteristicsOrBuilder in interface FileViewOrBuilder
    • hasFileCharacteristics

      public boolean hasFileCharacteristics()
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFileCharacteristics in interface FileViewOrBuilder
      Returns:
      Whether the fileCharacteristics field is set.
    • getFileCharacteristics

      public FileCharacteristics getFileCharacteristics()
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileCharacteristics in interface FileViewOrBuilder
      Returns:
      The fileCharacteristics.
    • setFileCharacteristics

      public FileView.Builder setFileCharacteristics(FileCharacteristics value)
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setFileCharacteristics

      public FileView.Builder setFileCharacteristics(FileCharacteristics.Builder builderForValue)
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeFileCharacteristics

      public FileView.Builder mergeFileCharacteristics(FileCharacteristics value)
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearFileCharacteristics

      public FileView.Builder clearFileCharacteristics()
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFileCharacteristicsBuilder

      public FileCharacteristics.Builder getFileCharacteristicsBuilder()
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFileCharacteristicsOrBuilder

      public FileCharacteristicsOrBuilder getFileCharacteristicsOrBuilder()
       Output only. Characteristics of other file types.
       
      .google.cloud.discoveryengine.v1alpha.FileCharacteristics file_characteristics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileCharacteristicsOrBuilder in interface FileViewOrBuilder
    • getViewId

      public String getViewId()
       Output only. Globally Unique id for this specific view.
       
      string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getViewId in interface FileViewOrBuilder
      Returns:
      The viewId.
    • getViewIdBytes

      public com.google.protobuf.ByteString getViewIdBytes()
       Output only. Globally Unique id for this specific view.
       
      string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getViewIdBytes in interface FileViewOrBuilder
      Returns:
      The bytes for viewId.
    • setViewId

      public FileView.Builder setViewId(String value)
       Output only. Globally Unique id for this specific view.
       
      string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The viewId to set.
      Returns:
      This builder for chaining.
    • clearViewId

      public FileView.Builder clearViewId()
       Output only. Globally Unique id for this specific view.
       
      string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setViewIdBytes

      public FileView.Builder setViewIdBytes(com.google.protobuf.ByteString value)
       Output only. Globally Unique id for this specific view.
       
      string view_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for viewId to set.
      Returns:
      This builder for chaining.
    • getUri

      public String getUri()
       Output only. The URI to access this media view.
       
      string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUri in interface FileViewOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Output only. The URI to access this media view.
       
      string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUriBytes in interface FileViewOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public FileView.Builder setUri(String value)
       Output only. The URI to access this media view.
       
      string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public FileView.Builder clearUri()
       Output only. The URI to access this media view.
       
      string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUriBytes

      public FileView.Builder setUriBytes(com.google.protobuf.ByteString value)
       Output only. The URI to access this media view.
       
      string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getMimeType

      public String getMimeType()
       Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain",
       "video/mp4")
       
      string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMimeType in interface FileViewOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain",
       "video/mp4")
       
      string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMimeTypeBytes in interface FileViewOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public FileView.Builder setMimeType(String value)
       Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain",
       "video/mp4")
       
      string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public FileView.Builder clearMimeType()
       Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain",
       "video/mp4")
       
      string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public FileView.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       Output only. MIME type (e.g., "image/jpeg", "image/png", "text/plain",
       "video/mp4")
       
      string mime_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • getByteSize

      public long getByteSize()
       Output only. The size of the view in bytes.
       
      int64 byte_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getByteSize in interface FileViewOrBuilder
      Returns:
      The byteSize.
    • setByteSize

      public FileView.Builder setByteSize(long value)
       Output only. The size of the view in bytes.
       
      int64 byte_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The byteSize to set.
      Returns:
      This builder for chaining.
    • clearByteSize

      public FileView.Builder clearByteSize()
       Output only. The size of the view in bytes.
       
      int64 byte_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface FileViewOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface FileViewOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public FileView.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public FileView.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public FileView.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public FileView.Builder clearCreateTime()
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time the view was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface FileViewOrBuilder