FileMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Represents a file attached to a session (context file)
Attributes |
|
---|---|
Name | Description |
file_id |
str
Output only. The ID of the file. |
name |
str
Output only. The name of the file uploaded. |
mime_type |
str
The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml. |
byte_size |
int
Output only. The size of the context file in bytes. |
original_uri |
str
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. |
original_source_type |
google.cloud.discoveryengine_v1alpha.types.FileSource
Optional. The type of the original source of the file. |
upload_time |
google.protobuf.timestamp_pb2.Timestamp
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). |
last_add_time |
google.protobuf.timestamp_pb2.Timestamp
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. |
metadata |
MutableMapping[str, str]
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. |
download_uri |
str
Output only. The AssistantService.DownloadSessionFile URL to download the file. This URL will need the same credentials as AssistantService.ListSessionFileMetadata method and will provide the resource. |
file_origin_type |
google.cloud.discoveryengine_v1alpha.types.FileOriginType
Optional. The origin of the file. |
views |
MutableMapping[str, google.cloud.discoveryengine_v1alpha.types.FileView]
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". |
Classes
MetadataEntry
MetadataEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
ViewsEntry
ViewsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |