Class FileMetadata.Builder

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

public static final class FileMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<FileMetadata.Builder> implements FileMetadataOrBuilder
 Represents a file attached to a session (context file)
 
Protobuf type google.cloud.discoveryengine.v1alpha.FileMetadata
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<FileMetadata.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<FileMetadata.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public FileMetadata.Builder mergeFrom(FileMetadata other)
    • isInitialized

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

      public FileMetadata.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<FileMetadata.Builder>
      Throws:
      IOException
    • getFileId

      public String getFileId()
       Output only. The ID of the file.
       
      string file_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileId in interface FileMetadataOrBuilder
      Returns:
      The fileId.
    • getFileIdBytes

      public com.google.protobuf.ByteString getFileIdBytes()
       Output only. The ID of the file.
       
      string file_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileIdBytes in interface FileMetadataOrBuilder
      Returns:
      The bytes for fileId.
    • setFileId

      public FileMetadata.Builder setFileId(String value)
       Output only. The ID of the file.
       
      string file_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The fileId to set.
      Returns:
      This builder for chaining.
    • clearFileId

      public FileMetadata.Builder clearFileId()
       Output only. The ID of the file.
       
      string file_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setFileIdBytes

      public FileMetadata.Builder setFileIdBytes(com.google.protobuf.ByteString value)
       Output only. The ID of the file.
       
      string file_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for fileId to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Output only. The name of the file uploaded.
       
      string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface FileMetadataOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the file uploaded.
       
      string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface FileMetadataOrBuilder
      Returns:
      The bytes for name.
    • setName

      public FileMetadata.Builder setName(String value)
       Output only. The name of the file uploaded.
       
      string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public FileMetadata.Builder clearName()
       Output only. The name of the file uploaded.
       
      string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public FileMetadata.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the file uploaded.
       
      string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getMimeType

      public String getMimeType()
       The content type of the file, see
       https://www.iana.org/assignments/media-types/media-types.xhtml.
       
      string mime_type = 3;
      Specified by:
      getMimeType in interface FileMetadataOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
       The content type of the file, see
       https://www.iana.org/assignments/media-types/media-types.xhtml.
       
      string mime_type = 3;
      Specified by:
      getMimeTypeBytes in interface FileMetadataOrBuilder
      Returns:
      The bytes for mimeType.
    • setMimeType

      public FileMetadata.Builder setMimeType(String value)
       The content type of the file, see
       https://www.iana.org/assignments/media-types/media-types.xhtml.
       
      string mime_type = 3;
      Parameters:
      value - The mimeType to set.
      Returns:
      This builder for chaining.
    • clearMimeType

      public FileMetadata.Builder clearMimeType()
       The content type of the file, see
       https://www.iana.org/assignments/media-types/media-types.xhtml.
       
      string mime_type = 3;
      Returns:
      This builder for chaining.
    • setMimeTypeBytes

      public FileMetadata.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
       The content type of the file, see
       https://www.iana.org/assignments/media-types/media-types.xhtml.
       
      string mime_type = 3;
      Parameters:
      value - The bytes for mimeType to set.
      Returns:
      This builder for chaining.
    • getByteSize

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

      public FileMetadata.Builder setByteSize(long value)
       Output only. The size of the context file 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 FileMetadata.Builder clearByteSize()
       Output only. The size of the context file in bytes.
       
      int64 byte_size = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getOriginalUri

      public String getOriginalUri()
       Optional. The original location of the file. It may be a local file path,
       or any other URI that allows accessing the file in an external system.
       There are two scenarios in which this url may be empty:
       1. If the file was sent as inline data (e.g. pasted from the clipboard).
       2. If the original location is not available.
      
       Note that there's no guarantee that the URI will be pointing to a valid
       or actually existing file. For example, a file might have been uploaded
       to the session, and then deleted from the original source.
       
      string original_uri = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalUri in interface FileMetadataOrBuilder
      Returns:
      The originalUri.
    • getOriginalUriBytes

      public com.google.protobuf.ByteString getOriginalUriBytes()
       Optional. The original location of the file. It may be a local file path,
       or any other URI that allows accessing the file in an external system.
       There are two scenarios in which this url may be empty:
       1. If the file was sent as inline data (e.g. pasted from the clipboard).
       2. If the original location is not available.
      
       Note that there's no guarantee that the URI will be pointing to a valid
       or actually existing file. For example, a file might have been uploaded
       to the session, and then deleted from the original source.
       
      string original_uri = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalUriBytes in interface FileMetadataOrBuilder
      Returns:
      The bytes for originalUri.
    • setOriginalUri

      public FileMetadata.Builder setOriginalUri(String value)
       Optional. The original location of the file. It may be a local file path,
       or any other URI that allows accessing the file in an external system.
       There are two scenarios in which this url may be empty:
       1. If the file was sent as inline data (e.g. pasted from the clipboard).
       2. If the original location is not available.
      
       Note that there's no guarantee that the URI will be pointing to a valid
       or actually existing file. For example, a file might have been uploaded
       to the session, and then deleted from the original source.
       
      string original_uri = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The originalUri to set.
      Returns:
      This builder for chaining.
    • clearOriginalUri

      public FileMetadata.Builder clearOriginalUri()
       Optional. The original location of the file. It may be a local file path,
       or any other URI that allows accessing the file in an external system.
       There are two scenarios in which this url may be empty:
       1. If the file was sent as inline data (e.g. pasted from the clipboard).
       2. If the original location is not available.
      
       Note that there's no guarantee that the URI will be pointing to a valid
       or actually existing file. For example, a file might have been uploaded
       to the session, and then deleted from the original source.
       
      string original_uri = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOriginalUriBytes

      public FileMetadata.Builder setOriginalUriBytes(com.google.protobuf.ByteString value)
       Optional. The original location of the file. It may be a local file path,
       or any other URI that allows accessing the file in an external system.
       There are two scenarios in which this url may be empty:
       1. If the file was sent as inline data (e.g. pasted from the clipboard).
       2. If the original location is not available.
      
       Note that there's no guarantee that the URI will be pointing to a valid
       or actually existing file. For example, a file might have been uploaded
       to the session, and then deleted from the original source.
       
      string original_uri = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for originalUri to set.
      Returns:
      This builder for chaining.
    • getOriginalSourceTypeValue

      public int getOriginalSourceTypeValue()
       Optional. The type of the original source of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileSource original_source_type = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalSourceTypeValue in interface FileMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for originalSourceType.
    • setOriginalSourceTypeValue

      public FileMetadata.Builder setOriginalSourceTypeValue(int value)
       Optional. The type of the original source of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileSource original_source_type = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for originalSourceType to set.
      Returns:
      This builder for chaining.
    • getOriginalSourceType

      public FileSource getOriginalSourceType()
       Optional. The type of the original source of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileSource original_source_type = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalSourceType in interface FileMetadataOrBuilder
      Returns:
      The originalSourceType.
    • setOriginalSourceType

      public FileMetadata.Builder setOriginalSourceType(FileSource value)
       Optional. The type of the original source of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileSource original_source_type = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The originalSourceType to set.
      Returns:
      This builder for chaining.
    • clearOriginalSourceType

      public FileMetadata.Builder clearOriginalSourceType()
       Optional. The type of the original source of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileSource original_source_type = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasUploadTime

      public boolean hasUploadTime()
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUploadTime in interface FileMetadataOrBuilder
      Returns:
      Whether the uploadTime field is set.
    • getUploadTime

      public com.google.protobuf.Timestamp getUploadTime()
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUploadTime in interface FileMetadataOrBuilder
      Returns:
      The uploadTime.
    • setUploadTime

      public FileMetadata.Builder setUploadTime(com.google.protobuf.Timestamp value)
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUploadTime

      public FileMetadata.Builder setUploadTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUploadTime

      public FileMetadata.Builder mergeUploadTime(com.google.protobuf.Timestamp value)
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUploadTime

      public FileMetadata.Builder clearUploadTime()
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUploadTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUploadTimeBuilder()
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUploadTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUploadTimeOrBuilder()
       Output only. The time the file was uploaded (If this is a file
       generated by an internal process and then made available to the session,
       this indicates the moment it happened).
       
      .google.protobuf.Timestamp upload_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUploadTimeOrBuilder in interface FileMetadataOrBuilder
    • hasLastAddTime

      public boolean hasLastAddTime()
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastAddTime in interface FileMetadataOrBuilder
      Returns:
      Whether the lastAddTime field is set.
    • getLastAddTime

      public com.google.protobuf.Timestamp getLastAddTime()
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastAddTime in interface FileMetadataOrBuilder
      Returns:
      The lastAddTime.
    • setLastAddTime

      public FileMetadata.Builder setLastAddTime(com.google.protobuf.Timestamp value)
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastAddTime

      public FileMetadata.Builder setLastAddTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastAddTime

      public FileMetadata.Builder mergeLastAddTime(com.google.protobuf.Timestamp value)
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastAddTime

      public FileMetadata.Builder clearLastAddTime()
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastAddTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastAddTimeBuilder()
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastAddTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastAddTimeOrBuilder()
       Output only. The time the file was added to the session. Note that if a
       file was added, then modified externally, then added again, the add time
       will be updated.
       
      .google.protobuf.Timestamp last_add_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastAddTimeOrBuilder in interface FileMetadataOrBuilder
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: FileMetadataOrBuilder
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataCount in interface FileMetadataOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsMetadata in interface FileMetadataOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface FileMetadataOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataMap in interface FileMetadataOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataOrDefault in interface FileMetadataOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataOrThrow in interface FileMetadataOrBuilder
    • clearMetadata

      public FileMetadata.Builder clearMetadata()
    • removeMetadata

      public FileMetadata.Builder removeMetadata(String key)
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public FileMetadata.Builder putMetadata(String key, String value)
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
    • putAllMetadata

      public FileMetadata.Builder putAllMetadata(Map<String,String> values)
       Optional. Represents metadata related to the file that can suit particular
       use cases. The prefix "google." is reserved for the key for use by
       Google, but other prefixes can be freely used.
       
      map<string, string> metadata = 18 [(.google.api.field_behavior) = OPTIONAL];
    • getDownloadUri

      public String getDownloadUri()
       Output only. The
       [AssistantService.DownloadSessionFile][google.cloud.discoveryengine.v1alpha.AssistantService.DownloadSessionFile]
       URL to download the file. This URL will need the same credentials as
       [AssistantService.ListSessionFileMetadata][google.cloud.discoveryengine.v1alpha.AssistantService.ListSessionFileMetadata]
       method and will provide the resource.
       
      string download_uri = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDownloadUri in interface FileMetadataOrBuilder
      Returns:
      The downloadUri.
    • getDownloadUriBytes

      public com.google.protobuf.ByteString getDownloadUriBytes()
       Output only. The
       [AssistantService.DownloadSessionFile][google.cloud.discoveryengine.v1alpha.AssistantService.DownloadSessionFile]
       URL to download the file. This URL will need the same credentials as
       [AssistantService.ListSessionFileMetadata][google.cloud.discoveryengine.v1alpha.AssistantService.ListSessionFileMetadata]
       method and will provide the resource.
       
      string download_uri = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDownloadUriBytes in interface FileMetadataOrBuilder
      Returns:
      The bytes for downloadUri.
    • setDownloadUri

      public FileMetadata.Builder setDownloadUri(String value)
       Output only. The
       [AssistantService.DownloadSessionFile][google.cloud.discoveryengine.v1alpha.AssistantService.DownloadSessionFile]
       URL to download the file. This URL will need the same credentials as
       [AssistantService.ListSessionFileMetadata][google.cloud.discoveryengine.v1alpha.AssistantService.ListSessionFileMetadata]
       method and will provide the resource.
       
      string download_uri = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The downloadUri to set.
      Returns:
      This builder for chaining.
    • clearDownloadUri

      public FileMetadata.Builder clearDownloadUri()
       Output only. The
       [AssistantService.DownloadSessionFile][google.cloud.discoveryengine.v1alpha.AssistantService.DownloadSessionFile]
       URL to download the file. This URL will need the same credentials as
       [AssistantService.ListSessionFileMetadata][google.cloud.discoveryengine.v1alpha.AssistantService.ListSessionFileMetadata]
       method and will provide the resource.
       
      string download_uri = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDownloadUriBytes

      public FileMetadata.Builder setDownloadUriBytes(com.google.protobuf.ByteString value)
       Output only. The
       [AssistantService.DownloadSessionFile][google.cloud.discoveryengine.v1alpha.AssistantService.DownloadSessionFile]
       URL to download the file. This URL will need the same credentials as
       [AssistantService.ListSessionFileMetadata][google.cloud.discoveryengine.v1alpha.AssistantService.ListSessionFileMetadata]
       method and will provide the resource.
       
      string download_uri = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for downloadUri to set.
      Returns:
      This builder for chaining.
    • getFileOriginTypeValue

      public int getFileOriginTypeValue()
       Optional. The origin of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileOriginType file_origin_type = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileOriginTypeValue in interface FileMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for fileOriginType.
    • setFileOriginTypeValue

      public FileMetadata.Builder setFileOriginTypeValue(int value)
       Optional. The origin of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileOriginType file_origin_type = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for fileOriginType to set.
      Returns:
      This builder for chaining.
    • getFileOriginType

      public FileOriginType getFileOriginType()
       Optional. The origin of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileOriginType file_origin_type = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileOriginType in interface FileMetadataOrBuilder
      Returns:
      The fileOriginType.
    • setFileOriginType

      public FileMetadata.Builder setFileOriginType(FileOriginType value)
       Optional. The origin of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileOriginType file_origin_type = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fileOriginType to set.
      Returns:
      This builder for chaining.
    • clearFileOriginType

      public FileMetadata.Builder clearFileOriginType()
       Optional. The origin of the file.
       
      .google.cloud.discoveryengine.v1alpha.FileOriginType file_origin_type = 21 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getViewsCount

      public int getViewsCount()
      Description copied from interface: FileMetadataOrBuilder
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getViewsCount in interface FileMetadataOrBuilder
    • containsViews

      public boolean containsViews(String key)
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsViews in interface FileMetadataOrBuilder
    • getViews

      @Deprecated public Map<String,FileView> getViews()
      Deprecated.
      Use getViewsMap() instead.
      Specified by:
      getViews in interface FileMetadataOrBuilder
    • getViewsMap

      public Map<String,FileView> getViewsMap()
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getViewsMap in interface FileMetadataOrBuilder
    • getViewsOrDefault

      public FileView getViewsOrDefault(String key, FileView defaultValue)
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getViewsOrDefault in interface FileMetadataOrBuilder
    • getViewsOrThrow

      public FileView getViewsOrThrow(String key)
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getViewsOrThrow in interface FileMetadataOrBuilder
    • clearViews

      public FileMetadata.Builder clearViews()
    • removeViews

      public FileMetadata.Builder removeViews(String key)
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableViews

      @Deprecated public Map<String,FileView> getMutableViews()
      Deprecated.
      Use alternate mutation accessors instead.
    • putViews

      public FileMetadata.Builder putViews(String key, FileView value)
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllViews

      public FileMetadata.Builder putAllViews(Map<String,FileView> values)
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putViewsBuilderIfAbsent

      public FileView.Builder putViewsBuilderIfAbsent(String key)
       Output only. Alternate views of this file object. Each file view is
       attached to a specific role. Possible example keys:
       - "thumbnail"
       - "mobile_thumbnail"
       - "clip"
       - "summary"
       - "translation"
       
      map<string, .google.cloud.discoveryengine.v1alpha.FileView> views = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];