google-area120-tables-v1alpha1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,417 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Area120
22
+ module Tables
23
+ module V1alpha1
24
+ # Request message for TablesService.GetTable.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Required. The name of the table to retrieve.
28
+ # Format: tables/\\{table}
29
+ class GetTableRequest
30
+ include ::Google::Protobuf::MessageExts
31
+ extend ::Google::Protobuf::MessageExts::ClassMethods
32
+ end
33
+
34
+ # Request message for TablesService.ListTables.
35
+ # @!attribute [rw] page_size
36
+ # @return [::Integer]
37
+ # The maximum number of tables to return. The service may return fewer than
38
+ # this value.
39
+ #
40
+ # If unspecified, at most 20 tables are returned. The maximum value is 100;
41
+ # values above 100 are coerced to 100.
42
+ # @!attribute [rw] page_token
43
+ # @return [::String]
44
+ # A page token, received from a previous `ListTables` call.
45
+ # Provide this to retrieve the subsequent page.
46
+ #
47
+ # When paginating, all other parameters provided to `ListTables` must match
48
+ # the call that provided the page token.
49
+ class ListTablesRequest
50
+ include ::Google::Protobuf::MessageExts
51
+ extend ::Google::Protobuf::MessageExts::ClassMethods
52
+ end
53
+
54
+ # Response message for TablesService.ListTables.
55
+ # @!attribute [rw] tables
56
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::Table>]
57
+ # The list of tables.
58
+ # @!attribute [rw] next_page_token
59
+ # @return [::String]
60
+ # A token, which can be sent as `page_token` to retrieve the next page.
61
+ # If this field is empty, there are no subsequent pages.
62
+ class ListTablesResponse
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # Request message for TablesService.GetWorkspace.
68
+ # @!attribute [rw] name
69
+ # @return [::String]
70
+ # Required. The name of the workspace to retrieve.
71
+ # Format: workspaces/\\{workspace}
72
+ class GetWorkspaceRequest
73
+ include ::Google::Protobuf::MessageExts
74
+ extend ::Google::Protobuf::MessageExts::ClassMethods
75
+ end
76
+
77
+ # Request message for TablesService.ListWorkspaces.
78
+ # @!attribute [rw] page_size
79
+ # @return [::Integer]
80
+ # The maximum number of workspaces to return. The service may return fewer
81
+ # than this value.
82
+ #
83
+ # If unspecified, at most 10 workspaces are returned. The maximum value is
84
+ # 25; values above 25 are coerced to 25.
85
+ # @!attribute [rw] page_token
86
+ # @return [::String]
87
+ # A page token, received from a previous `ListWorkspaces` call.
88
+ # Provide this to retrieve the subsequent page.
89
+ #
90
+ # When paginating, all other parameters provided to `ListWorkspaces` must
91
+ # match the call that provided the page token.
92
+ class ListWorkspacesRequest
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # Response message for TablesService.ListWorkspaces.
98
+ # @!attribute [rw] workspaces
99
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::Workspace>]
100
+ # The list of workspaces.
101
+ # @!attribute [rw] next_page_token
102
+ # @return [::String]
103
+ # A token, which can be sent as `page_token` to retrieve the next page.
104
+ # If this field is empty, there are no subsequent pages.
105
+ class ListWorkspacesResponse
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+
110
+ # Request message for TablesService.GetRow.
111
+ # @!attribute [rw] name
112
+ # @return [::String]
113
+ # Required. The name of the row to retrieve.
114
+ # Format: tables/\\{table}/rows/\\{row}
115
+ # @!attribute [rw] view
116
+ # @return [::Google::Area120::Tables::V1alpha1::View]
117
+ # Optional. Column key to use for values in the row.
118
+ # Defaults to user entered name.
119
+ class GetRowRequest
120
+ include ::Google::Protobuf::MessageExts
121
+ extend ::Google::Protobuf::MessageExts::ClassMethods
122
+ end
123
+
124
+ # Request message for TablesService.ListRows.
125
+ # @!attribute [rw] parent
126
+ # @return [::String]
127
+ # Required. The parent table.
128
+ # Format: tables/\\{table}
129
+ # @!attribute [rw] page_size
130
+ # @return [::Integer]
131
+ # The maximum number of rows to return. The service may return fewer than
132
+ # this value.
133
+ #
134
+ # If unspecified, at most 50 rows are returned. The maximum value is 1,000;
135
+ # values above 1,000 are coerced to 1,000.
136
+ # @!attribute [rw] page_token
137
+ # @return [::String]
138
+ # A page token, received from a previous `ListRows` call.
139
+ # Provide this to retrieve the subsequent page.
140
+ #
141
+ # When paginating, all other parameters provided to `ListRows` must match
142
+ # the call that provided the page token.
143
+ # @!attribute [rw] view
144
+ # @return [::Google::Area120::Tables::V1alpha1::View]
145
+ # Optional. Column key to use for values in the row.
146
+ # Defaults to user entered name.
147
+ # @!attribute [rw] filter
148
+ # @return [::String]
149
+ # Optional. Raw text query to search for in rows of the table.
150
+ # Special characters must be escaped. Logical operators and field specific
151
+ # filtering not supported.
152
+ class ListRowsRequest
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+ end
156
+
157
+ # Response message for TablesService.ListRows.
158
+ # @!attribute [rw] rows
159
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::Row>]
160
+ # The rows from the specified table.
161
+ # @!attribute [rw] next_page_token
162
+ # @return [::String]
163
+ # A token, which can be sent as `page_token` to retrieve the next page.
164
+ # If this field is empty, there are no subsequent pages.
165
+ class ListRowsResponse
166
+ include ::Google::Protobuf::MessageExts
167
+ extend ::Google::Protobuf::MessageExts::ClassMethods
168
+ end
169
+
170
+ # Request message for TablesService.CreateRow.
171
+ # @!attribute [rw] parent
172
+ # @return [::String]
173
+ # Required. The parent table where this row will be created.
174
+ # Format: tables/\\{table}
175
+ # @!attribute [rw] row
176
+ # @return [::Google::Area120::Tables::V1alpha1::Row]
177
+ # Required. The row to create.
178
+ # @!attribute [rw] view
179
+ # @return [::Google::Area120::Tables::V1alpha1::View]
180
+ # Optional. Column key to use for values in the row.
181
+ # Defaults to user entered name.
182
+ class CreateRowRequest
183
+ include ::Google::Protobuf::MessageExts
184
+ extend ::Google::Protobuf::MessageExts::ClassMethods
185
+ end
186
+
187
+ # Request message for TablesService.BatchCreateRows.
188
+ # @!attribute [rw] parent
189
+ # @return [::String]
190
+ # Required. The parent table where the rows will be created.
191
+ # Format: tables/\\{table}
192
+ # @!attribute [rw] requests
193
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::CreateRowRequest>]
194
+ # Required. The request message specifying the rows to create.
195
+ #
196
+ # A maximum of 500 rows can be created in a single batch.
197
+ class BatchCreateRowsRequest
198
+ include ::Google::Protobuf::MessageExts
199
+ extend ::Google::Protobuf::MessageExts::ClassMethods
200
+ end
201
+
202
+ # Response message for TablesService.BatchCreateRows.
203
+ # @!attribute [rw] rows
204
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::Row>]
205
+ # The created rows.
206
+ class BatchCreateRowsResponse
207
+ include ::Google::Protobuf::MessageExts
208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
209
+ end
210
+
211
+ # Request message for TablesService.UpdateRow.
212
+ # @!attribute [rw] row
213
+ # @return [::Google::Area120::Tables::V1alpha1::Row]
214
+ # Required. The row to update.
215
+ # @!attribute [rw] update_mask
216
+ # @return [::Google::Protobuf::FieldMask]
217
+ # The list of fields to update.
218
+ # @!attribute [rw] view
219
+ # @return [::Google::Area120::Tables::V1alpha1::View]
220
+ # Optional. Column key to use for values in the row.
221
+ # Defaults to user entered name.
222
+ class UpdateRowRequest
223
+ include ::Google::Protobuf::MessageExts
224
+ extend ::Google::Protobuf::MessageExts::ClassMethods
225
+ end
226
+
227
+ # Request message for TablesService.BatchUpdateRows.
228
+ # @!attribute [rw] parent
229
+ # @return [::String]
230
+ # Required. The parent table shared by all rows being updated.
231
+ # Format: tables/\\{table}
232
+ # @!attribute [rw] requests
233
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::UpdateRowRequest>]
234
+ # Required. The request messages specifying the rows to update.
235
+ #
236
+ # A maximum of 500 rows can be modified in a single batch.
237
+ class BatchUpdateRowsRequest
238
+ include ::Google::Protobuf::MessageExts
239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
240
+ end
241
+
242
+ # Response message for TablesService.BatchUpdateRows.
243
+ # @!attribute [rw] rows
244
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::Row>]
245
+ # The updated rows.
246
+ class BatchUpdateRowsResponse
247
+ include ::Google::Protobuf::MessageExts
248
+ extend ::Google::Protobuf::MessageExts::ClassMethods
249
+ end
250
+
251
+ # Request message for TablesService.DeleteRow
252
+ # @!attribute [rw] name
253
+ # @return [::String]
254
+ # Required. The name of the row to delete.
255
+ # Format: tables/\\{table}/rows/\\{row}
256
+ class DeleteRowRequest
257
+ include ::Google::Protobuf::MessageExts
258
+ extend ::Google::Protobuf::MessageExts::ClassMethods
259
+ end
260
+
261
+ # Request message for TablesService.BatchDeleteRows
262
+ # @!attribute [rw] parent
263
+ # @return [::String]
264
+ # Required. The parent table shared by all rows being deleted.
265
+ # Format: tables/\\{table}
266
+ # @!attribute [rw] names
267
+ # @return [::Array<::String>]
268
+ # Required. The names of the rows to delete. All rows must belong to the parent table
269
+ # or else the entire batch will fail. A maximum of 500 rows can be deleted
270
+ # in a batch.
271
+ # Format: tables/\\{table}/rows/\\{row}
272
+ class BatchDeleteRowsRequest
273
+ include ::Google::Protobuf::MessageExts
274
+ extend ::Google::Protobuf::MessageExts::ClassMethods
275
+ end
276
+
277
+ # A single table.
278
+ # @!attribute [rw] name
279
+ # @return [::String]
280
+ # The resource name of the table.
281
+ # Table names have the form `tables/{table}`.
282
+ # @!attribute [rw] display_name
283
+ # @return [::String]
284
+ # The human readable title of the table.
285
+ # @!attribute [rw] columns
286
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::ColumnDescription>]
287
+ # List of columns in this table.
288
+ # Order of columns matches the display order.
289
+ class Table
290
+ include ::Google::Protobuf::MessageExts
291
+ extend ::Google::Protobuf::MessageExts::ClassMethods
292
+ end
293
+
294
+ # Details on a column in the table.
295
+ # @!attribute [rw] name
296
+ # @return [::String]
297
+ # column name
298
+ # @!attribute [rw] data_type
299
+ # @return [::String]
300
+ # Data type of the column
301
+ # Supported types are auto_id, boolean, boolean_list, creator,
302
+ # create_timestamp, date, dropdown, location, integer,
303
+ # integer_list, number, number_list, person, person_list, tags, check_list,
304
+ # text, text_list, update_timestamp, updater, relationship,
305
+ # file_attachment_list.
306
+ # These types directly map to the column types supported on Tables website.
307
+ # @!attribute [rw] id
308
+ # @return [::String]
309
+ # Internal id for a column.
310
+ # @!attribute [rw] labels
311
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::LabeledItem>]
312
+ # Optional. Range of labeled values for the column.
313
+ # Some columns like tags and drop-downs limit the values to a set of
314
+ # possible values. We return the range of values in such cases to help
315
+ # clients implement better user data validation.
316
+ # @!attribute [rw] relationship_details
317
+ # @return [::Google::Area120::Tables::V1alpha1::RelationshipDetails]
318
+ # Optional. Additional details about a relationship column. Specified when data_type
319
+ # is relationship.
320
+ # @!attribute [rw] lookup_details
321
+ # @return [::Google::Area120::Tables::V1alpha1::LookupDetails]
322
+ # Optional. Indicates that this is a lookup column whose value is derived from the
323
+ # relationship column specified in the details. Lookup columns can not be
324
+ # updated directly. To change the value you must update the associated
325
+ # relationship column.
326
+ class ColumnDescription
327
+ include ::Google::Protobuf::MessageExts
328
+ extend ::Google::Protobuf::MessageExts::ClassMethods
329
+ end
330
+
331
+ # A single item in a labeled column.
332
+ # @!attribute [rw] name
333
+ # @return [::String]
334
+ # Display string as entered by user.
335
+ # @!attribute [rw] id
336
+ # @return [::String]
337
+ # Internal id associated with the item.
338
+ class LabeledItem
339
+ include ::Google::Protobuf::MessageExts
340
+ extend ::Google::Protobuf::MessageExts::ClassMethods
341
+ end
342
+
343
+ # Details about a relationship column.
344
+ # @!attribute [rw] linked_table
345
+ # @return [::String]
346
+ # The name of the table this relationship is linked to.
347
+ class RelationshipDetails
348
+ include ::Google::Protobuf::MessageExts
349
+ extend ::Google::Protobuf::MessageExts::ClassMethods
350
+ end
351
+
352
+ # Details about a lookup column whose value comes from the associated
353
+ # relationship.
354
+ # @!attribute [rw] relationship_column
355
+ # @return [::String]
356
+ # The name of the relationship column associated with the lookup.
357
+ # @!attribute [rw] relationship_column_id
358
+ # @return [::String]
359
+ # The id of the relationship column.
360
+ class LookupDetails
361
+ include ::Google::Protobuf::MessageExts
362
+ extend ::Google::Protobuf::MessageExts::ClassMethods
363
+ end
364
+
365
+ # A single row in a table.
366
+ # @!attribute [rw] name
367
+ # @return [::String]
368
+ # The resource name of the row.
369
+ # Row names have the form `tables/{table}/rows/{row}`.
370
+ # The name is ignored when creating a row.
371
+ # @!attribute [rw] values
372
+ # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
373
+ # The values of the row. This is a map of column key to value.
374
+ # Key is user entered name(default) or the internal column id based on
375
+ # the view in the request.
376
+ class Row
377
+ include ::Google::Protobuf::MessageExts
378
+ extend ::Google::Protobuf::MessageExts::ClassMethods
379
+
380
+ # @!attribute [rw] key
381
+ # @return [::String]
382
+ # @!attribute [rw] value
383
+ # @return [::Google::Protobuf::Value]
384
+ class ValuesEntry
385
+ include ::Google::Protobuf::MessageExts
386
+ extend ::Google::Protobuf::MessageExts::ClassMethods
387
+ end
388
+ end
389
+
390
+ # A single workspace.
391
+ # @!attribute [rw] name
392
+ # @return [::String]
393
+ # The resource name of the workspace.
394
+ # Workspace names have the form `workspaces/{workspace}`.
395
+ # @!attribute [rw] display_name
396
+ # @return [::String]
397
+ # The human readable title of the workspace.
398
+ # @!attribute [rw] tables
399
+ # @return [::Array<::Google::Area120::Tables::V1alpha1::Table>]
400
+ # The list of tables in the workspace.
401
+ class Workspace
402
+ include ::Google::Protobuf::MessageExts
403
+ extend ::Google::Protobuf::MessageExts::ClassMethods
404
+ end
405
+
406
+ # Column identifier used for the values in the row.
407
+ module View
408
+ # Defaults to user entered text.
409
+ VIEW_UNSPECIFIED = 0
410
+
411
+ # Uses internally generated column id to identify values.
412
+ COLUMN_ID_VIEW = 1
413
+ end
414
+ end
415
+ end
416
+ end
417
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # A generic empty message that you can re-use to avoid defining duplicated
23
+ # empty messages in your APIs. A typical example is to use it as the request
24
+ # or the response type of an API method. For instance:
25
+ #
26
+ # service Foo {
27
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
+ # }
29
+ #
30
+ # The JSON representation for `Empty` is empty JSON object `{}`.
31
+ class Empty
32
+ include ::Google::Protobuf::MessageExts
33
+ extend ::Google::Protobuf::MessageExts::ClassMethods
34
+ end
35
+ end
36
+ end