Skip to content

Commit 6f8350c

Browse files
Google APIscopybara-github
authored andcommitted
chore: enable gapicv2 for firestore/v1beta1 API
Committer: @miraleung PiperOrigin-RevId: 305537104
1 parent d398d68 commit 6f8350c

File tree

2 files changed

+229
-167
lines changed

2 files changed

+229
-167
lines changed
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
type: com.google.api.codegen.ConfigProto
2+
config_schema_version: 1.0.0
3+
language_settings:
4+
java:
5+
package_name: com.google.cloud.firestore.v1beta1
6+
python:
7+
package_name: google.cloud.firestore_v1beta1.gapic
8+
release_level: ALPHA
9+
go:
10+
package_name: cloud.google.com/go/firestore/apiv1beta1
11+
domain_layer_location: cloud.google.com/go/firestore
12+
release_level: BETA
13+
csharp:
14+
package_name: Google.Cloud.Firestore.V1Beta1
15+
ruby:
16+
package_name: Google::Cloud::Firestore::V1beta1
17+
release_level: GA
18+
php:
19+
package_name: Google\Cloud\Firestore\V1beta1
20+
nodejs:
21+
package_name: firestore.v1beta1
22+
domain_layer_location: google-cloud
23+
interfaces:
24+
- name: google.firestore.v1beta1.Firestore
25+
collections:
26+
- name_pattern: projects/{project}/databases/{database}
27+
entity_name: database_root
28+
- name_pattern: projects/{project}/databases/{database}/documents
29+
entity_name: document_root
30+
- name_pattern: projects/{project}/databases/{database}/documents/{document_path=**}
31+
entity_name: document_path
32+
- name_pattern: projects/{project}/databases/{database}/documents/{document}/{any_path=**}
33+
entity_name: any_path
34+
retry_codes_def:
35+
- name: idempotent
36+
retry_codes:
37+
- UNAVAILABLE
38+
- DEADLINE_EXCEEDED
39+
- name: non_idempotent
40+
retry_codes: []
41+
retry_params_def:
42+
- name: default
43+
initial_retry_delay_millis: 100
44+
retry_delay_multiplier: 1.3
45+
max_retry_delay_millis: 60000
46+
initial_rpc_timeout_millis: 20000
47+
rpc_timeout_multiplier: 1
48+
max_rpc_timeout_millis: 20000
49+
total_timeout_millis: 600000
50+
- name: streaming
51+
initial_retry_delay_millis: 100
52+
retry_delay_multiplier: 1.3
53+
max_retry_delay_millis: 60000
54+
# Five minutes
55+
initial_rpc_timeout_millis: 300000
56+
rpc_timeout_multiplier: 1
57+
max_rpc_timeout_millis: 300000
58+
total_timeout_millis: 600000
59+
methods:
60+
- name: GetDocument
61+
required_fields:
62+
- name
63+
retry_codes_name: idempotent
64+
retry_params_name: default
65+
field_name_patterns:
66+
name: any_path
67+
timeout_millis: 60000
68+
resource_name_treatment: STATIC_TYPES
69+
- name: ListDocuments
70+
required_fields:
71+
- parent
72+
- collection_id
73+
page_streaming:
74+
request:
75+
page_size_field: page_size
76+
token_field: page_token
77+
response:
78+
token_field: next_page_token
79+
resources_field: documents
80+
retry_codes_name: idempotent
81+
retry_params_name: default
82+
field_name_patterns:
83+
parent: document_root
84+
parent: any_path
85+
timeout_millis: 60000
86+
- name: CreateDocument
87+
required_fields:
88+
- parent
89+
- collection_id
90+
- document_id
91+
- document
92+
retry_codes_name: non_idempotent
93+
retry_params_name: default
94+
field_name_patterns:
95+
parent: document_root
96+
parent: any_path
97+
timeout_millis: 60000
98+
- name: UpdateDocument
99+
flattening:
100+
groups:
101+
- parameters:
102+
- document
103+
- update_mask
104+
required_fields:
105+
- document
106+
- update_mask
107+
retry_codes_name: non_idempotent
108+
retry_params_name: default
109+
field_name_patterns:
110+
document.name: any_path
111+
timeout_millis: 60000
112+
- name: DeleteDocument
113+
flattening:
114+
groups:
115+
- parameters:
116+
- name
117+
required_fields:
118+
- name
119+
retry_codes_name: idempotent
120+
retry_params_name: default
121+
field_name_patterns:
122+
name: any_path
123+
timeout_millis: 60000
124+
resource_name_treatment: STATIC_TYPES
125+
- name: BatchGetDocuments
126+
required_fields:
127+
- database
128+
- documents
129+
retry_codes_name: idempotent
130+
retry_params_name: streaming
131+
field_name_patterns:
132+
database: database_root
133+
# Five minutes
134+
timeout_millis: 300000
135+
- name: BeginTransaction
136+
flattening:
137+
groups:
138+
- parameters:
139+
- database
140+
required_fields:
141+
- database
142+
retry_codes_name: idempotent
143+
retry_params_name: default
144+
field_name_patterns:
145+
database: database_root
146+
timeout_millis: 60000
147+
- name: Commit
148+
flattening:
149+
groups:
150+
- parameters:
151+
- database
152+
- writes
153+
required_fields:
154+
- database
155+
- writes
156+
retry_codes_name: non_idempotent
157+
retry_params_name: default
158+
field_name_patterns:
159+
database: database_root
160+
timeout_millis: 60000
161+
- name: Rollback
162+
flattening:
163+
groups:
164+
- parameters:
165+
- database
166+
- transaction
167+
required_fields:
168+
- database
169+
- transaction
170+
retry_codes_name: idempotent
171+
retry_params_name: default
172+
field_name_patterns:
173+
database: database_root
174+
timeout_millis: 60000
175+
- name: RunQuery
176+
required_fields:
177+
- parent
178+
retry_codes_name: idempotent
179+
retry_params_name: streaming
180+
field_name_patterns:
181+
parent: document_root
182+
parent: any_path
183+
timeout_millis: 60000
184+
- name: Write
185+
required_fields:
186+
- database
187+
retry_codes_name: non_idempotent
188+
retry_params_name: streaming
189+
field_name_patterns:
190+
database: database_root
191+
# One day
192+
timeout_millis: 86400000
193+
- name: Listen
194+
required_fields:
195+
- database
196+
retry_codes_name: idempotent
197+
retry_params_name: streaming
198+
field_name_patterns:
199+
database: database_root
200+
# One day
201+
timeout_millis: 86400000
202+
- name: ListCollectionIds
203+
flattening:
204+
groups:
205+
- parameters:
206+
- parent
207+
required_fields:
208+
- parent
209+
page_streaming:
210+
request:
211+
page_size_field: page_size
212+
token_field: page_token
213+
response:
214+
token_field: next_page_token
215+
resources_field: collection_ids
216+
retry_codes_name: idempotent
217+
retry_params_name: default
218+
field_name_patterns:
219+
parent: document_root
220+
parent: any_path
221+
timeout_millis: 60000
222+
resource_name_generation:
223+
- message_name: GetDocumentRequest
224+
field_entity_map:
225+
name: any_path
226+
- message_name: DeleteDocumentRequest
227+
field_entity_map:
228+
name: any_path

0 commit comments

Comments
 (0)