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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Optional.Output only.The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.Output only.Optional.Optional.Output only.booleancontainsMetadata(String key) Optional.booleancontainsViews(String key) Output only.longOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Optional.intOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Deprecated.intOptional.Optional.getMetadataOrDefault(String key, String defaultValue) Optional.getMetadataOrThrow(String key) Optional.The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.com.google.protobuf.ByteStringThe content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.Deprecated.Deprecated.getName()Output only.com.google.protobuf.ByteStringOutput only.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getViews()Deprecated.intOutput only.Output only.getViewsOrDefault(String key, FileView defaultValue) Output only.getViewsOrThrow(String key) Output only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(FileMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastAddTime(com.google.protobuf.Timestamp value) Output only.mergeUploadTime(com.google.protobuf.Timestamp value) Output only.putAllMetadata(Map<String, String> values) Optional.putAllViews(Map<String, FileView> values) Output only.putMetadata(String key, String value) Optional.Output only.Output only.removeMetadata(String key) Optional.removeViews(String key) Output only.setByteSize(long value) Output only.setDownloadUri(String value) Output only.setDownloadUriBytes(com.google.protobuf.ByteString value) Output only.Output only.setFileIdBytes(com.google.protobuf.ByteString value) Output only.setFileOriginType(FileOriginType value) Optional.setFileOriginTypeValue(int value) Optional.setLastAddTime(com.google.protobuf.Timestamp value) Output only.setLastAddTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setMimeType(String value) The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.setMimeTypeBytes(com.google.protobuf.ByteString value) The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setOriginalSourceType(FileSource value) Optional.setOriginalSourceTypeValue(int value) Optional.setOriginalUri(String value) Optional.setOriginalUriBytes(com.google.protobuf.ByteString value) Optional.setUploadTime(com.google.protobuf.Timestamp value) Output only.setUploadTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FileMetadata.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FileMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FileMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FileMetadata.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<FileMetadata.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<FileMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FileMetadata.Builder>- Throws:
IOException
-
getFileId
Output only. The ID of the file.
string file_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFileIdin interfaceFileMetadataOrBuilder- 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:
getFileIdBytesin interfaceFileMetadataOrBuilder- Returns:
- The bytes for fileId.
-
setFileId
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
Output only. The ID of the file.
string file_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setFileIdBytes
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
Output only. The name of the file uploaded.
string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceFileMetadataOrBuilder- 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:
getNameBytesin interfaceFileMetadataOrBuilder- Returns:
- The bytes for name.
-
setName
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
Output only. The name of the file uploaded.
string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
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
The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 3;- Specified by:
getMimeTypein interfaceFileMetadataOrBuilder- 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:
getMimeTypeBytesin interfaceFileMetadataOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
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
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
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:
getByteSizein interfaceFileMetadataOrBuilder- Returns:
- The byteSize.
-
setByteSize
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
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
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:
getOriginalUriin interfaceFileMetadataOrBuilder- 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:
getOriginalUriBytesin interfaceFileMetadataOrBuilder- Returns:
- The bytes for originalUri.
-
setOriginalUri
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
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
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:
getOriginalSourceTypeValuein interfaceFileMetadataOrBuilder- Returns:
- The enum numeric value on the wire for originalSourceType.
-
setOriginalSourceTypeValue
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
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:
getOriginalSourceTypein interfaceFileMetadataOrBuilder- Returns:
- The originalSourceType.
-
setOriginalSourceType
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
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:
hasUploadTimein interfaceFileMetadataOrBuilder- 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:
getUploadTimein interfaceFileMetadataOrBuilder- Returns:
- The uploadTime.
-
setUploadTime
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
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
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
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:
getUploadTimeOrBuilderin interfaceFileMetadataOrBuilder
-
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:
hasLastAddTimein interfaceFileMetadataOrBuilder- 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:
getLastAddTimein interfaceFileMetadataOrBuilder- Returns:
- The lastAddTime.
-
setLastAddTime
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
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
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
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:
getLastAddTimeOrBuilderin interfaceFileMetadataOrBuilder
-
getMetadataCount
public int getMetadataCount()Description copied from interface:FileMetadataOrBuilderOptional. 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:
getMetadataCountin interfaceFileMetadataOrBuilder
-
containsMetadata
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:
containsMetadatain interfaceFileMetadataOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceFileMetadataOrBuilder
-
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:
getMetadataMapin interfaceFileMetadataOrBuilder
-
getMetadataOrDefault
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:
getMetadataOrDefaultin interfaceFileMetadataOrBuilder
-
getMetadataOrThrow
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:
getMetadataOrThrowin interfaceFileMetadataOrBuilder
-
clearMetadata
-
removeMetadata
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.Use alternate mutation accessors instead. -
putMetadata
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
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
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:
getDownloadUriin interfaceFileMetadataOrBuilder- 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:
getDownloadUriBytesin interfaceFileMetadataOrBuilder- Returns:
- The bytes for downloadUri.
-
setDownloadUri
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
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
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:
getFileOriginTypeValuein interfaceFileMetadataOrBuilder- Returns:
- The enum numeric value on the wire for fileOriginType.
-
setFileOriginTypeValue
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
Optional. The origin of the file.
.google.cloud.discoveryengine.v1alpha.FileOriginType file_origin_type = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFileOriginTypein interfaceFileMetadataOrBuilder- Returns:
- The fileOriginType.
-
setFileOriginType
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
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:FileMetadataOrBuilderOutput 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:
getViewsCountin interfaceFileMetadataOrBuilder
-
containsViews
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:
containsViewsin interfaceFileMetadataOrBuilder
-
getViews
Deprecated.UsegetViewsMap()instead.- Specified by:
getViewsin interfaceFileMetadataOrBuilder
-
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:
getViewsMapin interfaceFileMetadataOrBuilder
-
getViewsOrDefault
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:
getViewsOrDefaultin interfaceFileMetadataOrBuilder
-
getViewsOrThrow
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:
getViewsOrThrowin interfaceFileMetadataOrBuilder
-
clearViews
-
removeViews
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.Use alternate mutation accessors instead. -
putViews
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
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
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];
-