Debian Codegraph @

docs/dyn/contentwarehouse_v1.projects.locations.synonymSets.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="contentwarehouse_v1.html">Document AI Warehouse API</a> . <a href="contentwarehouse_v1.projects.html">projects</a> . <a href="contentwarehouse_v1.projects.locations.html">locations</a> . <a href="contentwarehouse_v1.projects.locations.synonymSets.html">synonymSets</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="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a SynonymSet for a single context. Throws an ALREADY_EXISTS exception if a synonymset already exists for the context.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a SynonymSet for a given context. Throws a NOT_FOUND exception if the SynonymSet is not found.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a SynonymSet for a particular context. Throws a NOT_FOUND exception if the Synonymset does not exist</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Returns all SynonymSets (for all contexts) for the specified location.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Remove the existing SynonymSet for the context and replaces it with a new one. Throws a NOT_FOUND exception if the SynonymSet is not found.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Creates a SynonymSet for a single context. Throws an ALREADY_EXISTS exception if a synonymset already exists for the context.
107
108 Args:
109 parent: string, Required. The parent name. Format: projects/{project_number}/locations/{location}. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Represents a list of synonyms for a given context. For example a context &quot;sales&quot; could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint
114 &quot;context&quot;: &quot;A String&quot;, # This is a freeform field. Example contexts can be &quot;sales,&quot; &quot;engineering,&quot; &quot;real estate,&quot; &quot;accounting,&quot; etc. The context can be supplied during search requests.
115 &quot;name&quot;: &quot;A String&quot;, # The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
116 &quot;synonyms&quot;: [ # List of Synonyms for the context.
117 { # Represents a list of words given by the customer All these words are synonyms of each other.
118 &quot;words&quot;: [ # For example: sale, invoice, bill, order
119 &quot;A String&quot;,
120 ],
121 },
122 ],
123 }
124
125 x__xgafv: string, V1 error format.
126 Allowed values
127 1 - v1 error format
128 2 - v2 error format
129
130 Returns:
131 An object of the form:
132
133 { # Represents a list of synonyms for a given context. For example a context &quot;sales&quot; could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint
134 &quot;context&quot;: &quot;A String&quot;, # This is a freeform field. Example contexts can be &quot;sales,&quot; &quot;engineering,&quot; &quot;real estate,&quot; &quot;accounting,&quot; etc. The context can be supplied during search requests.
135 &quot;name&quot;: &quot;A String&quot;, # The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
136 &quot;synonyms&quot;: [ # List of Synonyms for the context.
137 { # Represents a list of words given by the customer All these words are synonyms of each other.
138 &quot;words&quot;: [ # For example: sale, invoice, bill, order
139 &quot;A String&quot;,
140 ],
141 },
142 ],
143 }</pre>
144 </div>
145
146 <div class="method">
147 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
148 <pre>Deletes a SynonymSet for a given context. Throws a NOT_FOUND exception if the SynonymSet is not found.
149
150 Args:
151 name: string, Required. The name of the synonymSet to delete Format: projects/{project_number}/locations/{location}/synonymSets/{context}. (required)
152 x__xgafv: string, V1 error format.
153 Allowed values
154 1 - v1 error format
155 2 - v2 error format
156
157 Returns:
158 An object of the form:
159
160 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
161 }</pre>
162 </div>
163
164 <div class="method">
165 <code class="details" id="get">get(name, x__xgafv=None)</code>
166 <pre>Gets a SynonymSet for a particular context. Throws a NOT_FOUND exception if the Synonymset does not exist
167
168 Args:
169 name: string, Required. The name of the synonymSet to retrieve Format: projects/{project_number}/locations/{location}/synonymSets/{context}. (required)
170 x__xgafv: string, V1 error format.
171 Allowed values
172 1 - v1 error format
173 2 - v2 error format
174
175 Returns:
176 An object of the form:
177
178 { # Represents a list of synonyms for a given context. For example a context &quot;sales&quot; could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint
179 &quot;context&quot;: &quot;A String&quot;, # This is a freeform field. Example contexts can be &quot;sales,&quot; &quot;engineering,&quot; &quot;real estate,&quot; &quot;accounting,&quot; etc. The context can be supplied during search requests.
180 &quot;name&quot;: &quot;A String&quot;, # The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
181 &quot;synonyms&quot;: [ # List of Synonyms for the context.
182 { # Represents a list of words given by the customer All these words are synonyms of each other.
183 &quot;words&quot;: [ # For example: sale, invoice, bill, order
184 &quot;A String&quot;,
185 ],
186 },
187 ],
188 }</pre>
189 </div>
190
191 <div class="method">
192 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
193 <pre>Returns all SynonymSets (for all contexts) for the specified location.
194
195 Args:
196 parent: string, Required. The parent name. Format: projects/{project_number}/locations/{location}. (required)
197 pageSize: integer, The maximum number of synonymSets to return. The service may return fewer than this value. If unspecified, at most 50 rule sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
198 pageToken: string, A page token, received from a previous `ListSynonymSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSynonymSets` must match the call that provided the page token.
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204 Returns:
205 An object of the form:
206
207 { # Response message for SynonymSetService.ListSynonymSets.
208 &quot;nextPageToken&quot;: &quot;A String&quot;, # A page token, received from a previous `ListSynonymSets` call. Provide this to retrieve the subsequent page.
209 &quot;synonymSets&quot;: [ # The synonymSets from the specified parent.
210 { # Represents a list of synonyms for a given context. For example a context &quot;sales&quot; could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint
211 &quot;context&quot;: &quot;A String&quot;, # This is a freeform field. Example contexts can be &quot;sales,&quot; &quot;engineering,&quot; &quot;real estate,&quot; &quot;accounting,&quot; etc. The context can be supplied during search requests.
212 &quot;name&quot;: &quot;A String&quot;, # The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
213 &quot;synonyms&quot;: [ # List of Synonyms for the context.
214 { # Represents a list of words given by the customer All these words are synonyms of each other.
215 &quot;words&quot;: [ # For example: sale, invoice, bill, order
216 &quot;A String&quot;,
217 ],
218 },
219 ],
220 },
221 ],
222 }</pre>
223 </div>
224
225 <div class="method">
226 <code class="details" id="list_next">list_next()</code>
227 <pre>Retrieves the next page of results.
228
229 Args:
230 previous_request: The request for the previous page. (required)
231 previous_response: The response from the request for the previous page. (required)
232
233 Returns:
234 A request object that you can call &#x27;execute()&#x27; on to request the next
235 page. Returns None if there are no more items in the collection.
236 </pre>
237 </div>
238
239 <div class="method">
240 <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
241 <pre>Remove the existing SynonymSet for the context and replaces it with a new one. Throws a NOT_FOUND exception if the SynonymSet is not found.
242
243 Args:
244 name: string, Required. The name of the synonymSet to update Format: projects/{project_number}/locations/{location}/synonymSets/{context}. (required)
245 body: object, The request body.
246 The object takes the form of:
247
248 { # Represents a list of synonyms for a given context. For example a context &quot;sales&quot; could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint
249 &quot;context&quot;: &quot;A String&quot;, # This is a freeform field. Example contexts can be &quot;sales,&quot; &quot;engineering,&quot; &quot;real estate,&quot; &quot;accounting,&quot; etc. The context can be supplied during search requests.
250 &quot;name&quot;: &quot;A String&quot;, # The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
251 &quot;synonyms&quot;: [ # List of Synonyms for the context.
252 { # Represents a list of words given by the customer All these words are synonyms of each other.
253 &quot;words&quot;: [ # For example: sale, invoice, bill, order
254 &quot;A String&quot;,
255 ],
256 },
257 ],
258 }
259
260 x__xgafv: string, V1 error format.
261 Allowed values
262 1 - v1 error format
263 2 - v2 error format
264
265 Returns:
266 An object of the form:
267
268 { # Represents a list of synonyms for a given context. For example a context &quot;sales&quot; could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint
269 &quot;context&quot;: &quot;A String&quot;, # This is a freeform field. Example contexts can be &quot;sales,&quot; &quot;engineering,&quot; &quot;real estate,&quot; &quot;accounting,&quot; etc. The context can be supplied during search requests.
270 &quot;name&quot;: &quot;A String&quot;, # The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
271 &quot;synonyms&quot;: [ # List of Synonyms for the context.
272 { # Represents a list of words given by the customer All these words are synonyms of each other.
273 &quot;words&quot;: [ # For example: sale, invoice, bill, order
274 &quot;A String&quot;,
275 ],
276 },
277 ],
278 }</pre>
279 </div>
280
281 </body></html>