Debian Codegraph @

docs/dyn/discoveryengine_v1alpha.projects.locations.collections.engines.sessions.files.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="discoveryengine_v1alpha.html">Discovery Engine API</a> . <a href="discoveryengine_v1alpha.projects.html">projects</a> . <a href="discoveryengine_v1alpha.projects.locations.html">locations</a> . <a href="discoveryengine_v1alpha.projects.locations.collections.html">collections</a> . <a href="discoveryengine_v1alpha.projects.locations.collections.engines.html">engines</a> . <a href="discoveryengine_v1alpha.projects.locations.collections.engines.sessions.html">sessions</a> . <a href="discoveryengine_v1alpha.projects.locations.collections.engines.sessions.files.html">files</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Lists metadata for all files in the current session.</p>
83 <p class="toc_element">
84 <code><a href="#list_next">list_next()</a></code></p>
85 <p class="firstline">Retrieves the next page of results.</p>
86 <h3>Method Details</h3>
87 <div class="method">
88 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90 </div>
91
92 <div class="method">
93 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
94 <pre>Lists metadata for all files in the current session.
95
96 Args:
97 parent: string, Required. The resource name of the Session. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` Name of the session resource to which the file belong. (required)
98 filter: string, Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the files being filtered. Filter expression is case-sensitive. Currently supported field names are: * upload_time * last_add_time * last_use_time * file_name * mime_type Some examples of filters would be: * &quot;file_name = &#x27;file_1&#x27;&quot; * &quot;file_name = &#x27;file_1&#x27; AND mime_type = &#x27;text/plain&#x27;&quot; * &quot;last_use_time &gt; &#x27;2025-06-14T12:00:00Z&#x27;&quot; For a full description of the filter format, please see https://google.aip.dev/160.
99 orderBy: string, Optional. Specifies the order in which files are returned. The value is a comma-separated string of fields to sort by. For ascending order - just the field name is used. For descending order - the field name is suffixed with ` desc`. Sorting is stable and applied sequentially according to the order of fields provided in the string. Supported fields for ordering: * `upload_time`: The time the file was uploaded. * `file_name`: The name of the file. * `mime_type`: The MIME type of the file. * `session_name`: The name of the session the file belongs to. Default Behavior: If the `order_by` field is not specified, files will be returned sorted by creation time in descending order. Examples: 1. Sort by file name in ascending order: `file_name` 2. Sort by upload time in descending order: `upload_time desc` 3. Sort by file name (ascending), then by content type (MIME type) (descending), and finally by upload time (ascending): `file_name, mime_type desc, upload_time`
100 pageSize: integer, Optional. The maximum number of files to return. The service may return fewer than this value. If unspecified, at most 100 files will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. If user specifies a value less than or equal to 0 - the request will be rejected with an INVALID_ARGUMENT error.
101 pageToken: string, Optional. A page token received from a previous `ListFiles` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFiles` must match the call that provided the page token (except `page_size`, which may differ).
102 x__xgafv: string, V1 error format.
103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
106
107 Returns:
108 An object of the form:
109
110 { # Response message for SessionService.ListFiles method.
111 &quot;files&quot;: [ # The FileMetadatas.
112 { # Represents a file attached to a session (context file)
113 &quot;byteSize&quot;: &quot;A String&quot;, # Output only. The size of the context file in bytes.
114 &quot;downloadUri&quot;: &quot;A String&quot;, # 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.
115 &quot;fileId&quot;: &quot;A String&quot;, # Output only. The ID of the file.
116 &quot;fileOriginType&quot;: &quot;A String&quot;, # Optional. The origin of the file.
117 &quot;lastAddTime&quot;: &quot;A String&quot;, # 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.
118 &quot;metadata&quot;: { # Optional. Represents metadata related to the file that can suit particular use cases. The prefix &quot;google.&quot; is reserved for the key for use by Google, but other prefixes can be freely used.
119 &quot;a_key&quot;: &quot;A String&quot;,
120 },
121 &quot;mimeType&quot;: &quot;A String&quot;, # The content type of the file, see https://www.iana.org/assignments/media-types/media-types.xhtml.
122 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the file uploaded.
123 &quot;originalSourceType&quot;: &quot;A String&quot;, # Optional. The type of the original source of the file.
124 &quot;originalUri&quot;: &quot;A String&quot;, # 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&#x27;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.
125 &quot;uploadTime&quot;: &quot;A String&quot;, # 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).
126 &quot;views&quot;: { # Output only. Alternate views of this file object. Each file view is attached to a specific role. Possible example keys: - &quot;thumbnail&quot; - &quot;mobile_thumbnail&quot; - &quot;clip&quot; - &quot;summary&quot; - &quot;translation&quot;
127 &quot;a_key&quot;: { # Represents a specific alternate version or &quot;view&quot; of a file object, such as a summary, a thumbnail, a translated version, etc.
128 &quot;byteSize&quot;: &quot;A String&quot;, # Output only. The size of the view in bytes.
129 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the view was created.
130 &quot;fileCharacteristics&quot;: { # Caracteristics of other file types. # Output only. Characteristics of other file types.
131 &quot;characteristics&quot;: { # Output only. Generic map of characteristics.
132 &quot;a_key&quot;: &quot;A String&quot;,
133 },
134 },
135 &quot;imageCharacteristics&quot;: { # Standard characteristics of an image media view. # Output only. Characteristics of an image media view.
136 &quot;bitDepth&quot;: 42, # Output only. Bit depth of the image (e.g., 8-bit, 16-bit).
137 &quot;colorSpace&quot;: &quot;A String&quot;, # Output only. Color space of the image (e.g., &quot;RGB&quot;, &quot;CMYK&quot;, &quot;Grayscale&quot;).
138 &quot;height&quot;: 42, # Output only. Image height in pixels.
139 &quot;width&quot;: 42, # Output only. Image width in pixels.
140 },
141 &quot;mimeType&quot;: &quot;A String&quot;, # Output only. MIME type (e.g., &quot;image/jpeg&quot;, &quot;image/png&quot;, &quot;text/plain&quot;, &quot;video/mp4&quot;)
142 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI to access this media view.
143 &quot;videoCharacteristics&quot;: { # Standard characteristics of a video media view. # Output only. Characteristics of a video media view.
144 &quot;audioBitrateKbps&quot;: 42, # Output only. Bitrate of the audio in kbps.
145 &quot;audioCodecs&quot;: [ # Output only. Audio codecs used in the video.
146 &quot;A String&quot;,
147 ],
148 &quot;duration&quot;: &quot;A String&quot;, # Output only. Video duration.
149 &quot;frameRate&quot;: 3.14, # Output only. Frame rate (frames per second).
150 &quot;height&quot;: 42, # Output only. Video height in pixels.
151 &quot;videoBitrateKbps&quot;: 42, # Output only. Bitrate of the video in kbps.
152 &quot;videoCodecs&quot;: [ # Output only. Video codecs used in the video.
153 &quot;A String&quot;,
154 ],
155 &quot;width&quot;: 42, # Output only. Video width in pixels.
156 },
157 &quot;viewId&quot;: &quot;A String&quot;, # Output only. Globally Unique id for this specific view.
158 },
159 },
160 },
161 ],
162 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results. Pass this value in the ListFilesRequest.page_token field in the subsequent call to `ListFiles` method to retrieve the next page of results.
163 }</pre>
164 </div>
165
166 <div class="method">
167 <code class="details" id="list_next">list_next()</code>
168 <pre>Retrieves the next page of results.
169
170 Args:
171 previous_request: The request for the previous page. (required)
172 previous_response: The response from the request for the previous page. (required)
173
174 Returns:
175 A request object that you can call &#x27;execute()&#x27; on to request the next
176 page. Returns None if there are no more items in the collection.
177 </pre>
178 </div>
179
180 </body></html>