Debian Codegraph @

docs/dyn/discoveryengine_v1alpha.projects.locations.dataStores.branches.documents.chunks.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.dataStores.html">dataStores</a> . <a href="discoveryengine_v1alpha.projects.locations.dataStores.branches.html">branches</a> . <a href="discoveryengine_v1alpha.projects.locations.dataStores.branches.documents.html">documents</a> . <a href="discoveryengine_v1alpha.projects.locations.dataStores.branches.documents.chunks.html">chunks</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="#get">get(name, x__xgafv=None)</a></code></p>
82 <p class="firstline">Gets a Document.</p>
83 <p class="toc_element">
84 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets a list of Chunks.</p>
86 <p class="toc_element">
87 <code><a href="#list_next">list_next()</a></code></p>
88 <p class="firstline">Retrieves the next page of results.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93 </div>
94
95 <div class="method">
96 <code class="details" id="get">get(name, x__xgafv=None)</code>
97 <pre>Gets a Document.
98
99 Args:
100 name: string, Required. Full resource name of Chunk, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. If the caller does not have permission to access the Chunk, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Chunk does not exist, a `NOT_FOUND` error is returned. (required)
101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106 Returns:
107 An object of the form:
108
109 { # Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
110 &quot;annotationContents&quot;: [ # Output only. Annotation contents if the current chunk contains annotations.
111 &quot;A String&quot;,
112 ],
113 &quot;annotationMetadata&quot;: [ # Output only. The annotation metadata includes structured content in the current chunk.
114 { # The annotation metadata includes structured content in the current chunk.
115 &quot;imageId&quot;: &quot;A String&quot;, # Output only. Image id is provided if the structured content is based on an image.
116 &quot;structuredContent&quot;: { # The structured content information. # Output only. The structured content information.
117 &quot;content&quot;: &quot;A String&quot;, # Output only. The content of the structured content.
118 &quot;structureType&quot;: &quot;A String&quot;, # Output only. The structure type of the structured content.
119 },
120 },
121 ],
122 &quot;chunkMetadata&quot;: { # Metadata of the current chunk. This field is only populated on SearchService.Search API. # Output only. Metadata of the current chunk.
123 &quot;nextChunks&quot;: [ # The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API.
124 # Object with schema name: GoogleCloudDiscoveryengineV1alphaChunk
125 ],
126 &quot;previousChunks&quot;: [ # The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API.
127 # Object with schema name: GoogleCloudDiscoveryengineV1alphaChunk
128 ],
129 },
130 &quot;content&quot;: &quot;A String&quot;, # Content is a string from a document (parsed content).
131 &quot;dataUrls&quot;: [ # Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:,
132 &quot;A String&quot;,
133 ],
134 &quot;derivedStructData&quot;: { # Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
135 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
136 },
137 &quot;documentMetadata&quot;: { # Document metadata contains the information of the document of the current chunk. # Metadata of the document from the current chunk.
138 &quot;mimeType&quot;: &quot;A String&quot;, # The mime type of the document. https://www.iana.org/assignments/media-types/media-types.xhtml.
139 &quot;structData&quot;: { # Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
140 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
141 },
142 &quot;title&quot;: &quot;A String&quot;, # Title of the document.
143 &quot;uri&quot;: &quot;A String&quot;, # Uri of the document.
144 },
145 &quot;id&quot;: &quot;A String&quot;, # Unique chunk ID of the current chunk.
146 &quot;name&quot;: &quot;A String&quot;, # The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
147 &quot;pageSpan&quot;: { # Page span of the chunk. # Page span of the chunk.
148 &quot;pageEnd&quot;: 42, # The end page of the chunk.
149 &quot;pageStart&quot;: 42, # The start page of the chunk.
150 },
151 &quot;relevanceScore&quot;: 3.14, # Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on SearchResponse.
152 }</pre>
153 </div>
154
155 <div class="method">
156 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
157 <pre>Gets a list of Chunks.
158
159 Args:
160 parent: string, Required. The parent document resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to list Chunks under this document, regardless of whether or not this document exists, a `PERMISSION_DENIED` error is returned. (required)
161 pageSize: integer, Maximum number of Chunks to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned.
162 pageToken: string, A page token ListChunksResponse.next_page_token, received from a previous ChunkService.ListChunks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ChunkService.ListChunks must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
163 x__xgafv: string, V1 error format.
164 Allowed values
165 1 - v1 error format
166 2 - v2 error format
167
168 Returns:
169 An object of the form:
170
171 { # Response message for ChunkService.ListChunks method.
172 &quot;chunks&quot;: [ # The Chunks.
173 { # Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
174 &quot;annotationContents&quot;: [ # Output only. Annotation contents if the current chunk contains annotations.
175 &quot;A String&quot;,
176 ],
177 &quot;annotationMetadata&quot;: [ # Output only. The annotation metadata includes structured content in the current chunk.
178 { # The annotation metadata includes structured content in the current chunk.
179 &quot;imageId&quot;: &quot;A String&quot;, # Output only. Image id is provided if the structured content is based on an image.
180 &quot;structuredContent&quot;: { # The structured content information. # Output only. The structured content information.
181 &quot;content&quot;: &quot;A String&quot;, # Output only. The content of the structured content.
182 &quot;structureType&quot;: &quot;A String&quot;, # Output only. The structure type of the structured content.
183 },
184 },
185 ],
186 &quot;chunkMetadata&quot;: { # Metadata of the current chunk. This field is only populated on SearchService.Search API. # Output only. Metadata of the current chunk.
187 &quot;nextChunks&quot;: [ # The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API.
188 # Object with schema name: GoogleCloudDiscoveryengineV1alphaChunk
189 ],
190 &quot;previousChunks&quot;: [ # The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API.
191 # Object with schema name: GoogleCloudDiscoveryengineV1alphaChunk
192 ],
193 },
194 &quot;content&quot;: &quot;A String&quot;, # Content is a string from a document (parsed content).
195 &quot;dataUrls&quot;: [ # Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:,
196 &quot;A String&quot;,
197 ],
198 &quot;derivedStructData&quot;: { # Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
200 },
201 &quot;documentMetadata&quot;: { # Document metadata contains the information of the document of the current chunk. # Metadata of the document from the current chunk.
202 &quot;mimeType&quot;: &quot;A String&quot;, # The mime type of the document. https://www.iana.org/assignments/media-types/media-types.xhtml.
203 &quot;structData&quot;: { # Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
205 },
206 &quot;title&quot;: &quot;A String&quot;, # Title of the document.
207 &quot;uri&quot;: &quot;A String&quot;, # Uri of the document.
208 },
209 &quot;id&quot;: &quot;A String&quot;, # Unique chunk ID of the current chunk.
210 &quot;name&quot;: &quot;A String&quot;, # The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
211 &quot;pageSpan&quot;: { # Page span of the chunk. # Page span of the chunk.
212 &quot;pageEnd&quot;: 42, # The end page of the chunk.
213 &quot;pageStart&quot;: 42, # The start page of the chunk.
214 },
215 &quot;relevanceScore&quot;: 3.14, # Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on SearchResponse.
216 },
217 ],
218 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
219 }</pre>
220 </div>
221
222 <div class="method">
223 <code class="details" id="list_next">list_next()</code>
224 <pre>Retrieves the next page of results.
225
226 Args:
227 previous_request: The request for the previous page. (required)
228 previous_response: The response from the request for the previous page. (required)
229
230 Returns:
231 A request object that you can call &#x27;execute()&#x27; on to request the next
232 page. Returns None if there are no more items in the collection.
233 </pre>
234 </div>
235
236 </body></html>