2626import com .google .api .gax .rpc .ApiClientHeaderProvider ;
2727import com .google .api .gax .rpc .ClientContext ;
2828import com .google .api .gax .rpc .ClientSettings ;
29+ import com .google .api .gax .rpc .OperationCallSettings ;
2930import com .google .api .gax .rpc .PagedCallSettings ;
3031import com .google .api .gax .rpc .TransportChannelProvider ;
3132import com .google .api .gax .rpc .UnaryCallSettings ;
3233import com .google .cloud .firestore .v1 .stub .FirestoreAdminStubSettings ;
3334import com .google .firestore .admin .v1 .CreateIndexRequest ;
3435import com .google .firestore .admin .v1 .DeleteIndexRequest ;
36+ import com .google .firestore .admin .v1 .ExportDocumentsMetadata ;
3537import com .google .firestore .admin .v1 .ExportDocumentsRequest ;
38+ import com .google .firestore .admin .v1 .ExportDocumentsResponse ;
3639import com .google .firestore .admin .v1 .Field ;
40+ import com .google .firestore .admin .v1 .FieldOperationMetadata ;
3741import com .google .firestore .admin .v1 .GetFieldRequest ;
3842import com .google .firestore .admin .v1 .GetIndexRequest ;
43+ import com .google .firestore .admin .v1 .ImportDocumentsMetadata ;
3944import com .google .firestore .admin .v1 .ImportDocumentsRequest ;
4045import com .google .firestore .admin .v1 .Index ;
46+ import com .google .firestore .admin .v1 .IndexOperationMetadata ;
4147import com .google .firestore .admin .v1 .ListFieldsRequest ;
4248import com .google .firestore .admin .v1 .ListFieldsResponse ;
4349import com .google .firestore .admin .v1 .ListIndexesRequest ;
6470 * <p>The builder of this class is recursive, so contained classes are themselves builders. When
6571 * build() is called, the tree of builders is called to create the complete settings object.
6672 *
67- * <p>For example, to set the total timeout of createIndex to 30 seconds:
73+ * <p>For example, to set the total timeout of deleteIndex to 30 seconds:
6874 *
6975 * <pre>
7076 * <code>
7177 * FirestoreAdminSettings.Builder firestoreAdminSettingsBuilder =
7278 * FirestoreAdminSettings.newBuilder();
7379 * firestoreAdminSettingsBuilder
74- * .createIndexSettings ()
80+ * .deleteIndexSettings ()
7581 * .setRetrySettings(
76- * firestoreAdminSettingsBuilder.createIndexSettings ().getRetrySettings().toBuilder()
82+ * firestoreAdminSettingsBuilder.deleteIndexSettings ().getRetrySettings().toBuilder()
7783 * .setTotalTimeout(Duration.ofSeconds(30))
7884 * .build());
7985 * FirestoreAdminSettings firestoreAdminSettings = firestoreAdminSettingsBuilder.build();
8389@ Generated ("by gapic-generator" )
8490@ BetaApi
8591public class FirestoreAdminSettings extends ClientSettings <FirestoreAdminSettings > {
92+ /** Returns the object with the settings used for calls to deleteIndex. */
93+ public UnaryCallSettings <DeleteIndexRequest , Empty > deleteIndexSettings () {
94+ return ((FirestoreAdminStubSettings ) getStubSettings ()).deleteIndexSettings ();
95+ }
96+
97+ /** Returns the object with the settings used for calls to updateField. */
98+ public UnaryCallSettings <UpdateFieldRequest , Operation > updateFieldSettings () {
99+ return ((FirestoreAdminStubSettings ) getStubSettings ()).updateFieldSettings ();
100+ }
101+
102+ /** Returns the object with the settings used for calls to updateField. */
103+ @ BetaApi (
104+ "The surface for long-running operations is not stable yet and may change in the future." )
105+ public OperationCallSettings <UpdateFieldRequest , Field , FieldOperationMetadata >
106+ updateFieldOperationSettings () {
107+ return ((FirestoreAdminStubSettings ) getStubSettings ()).updateFieldOperationSettings ();
108+ }
109+
86110 /** Returns the object with the settings used for calls to createIndex. */
87111 public UnaryCallSettings <CreateIndexRequest , Operation > createIndexSettings () {
88112 return ((FirestoreAdminStubSettings ) getStubSettings ()).createIndexSettings ();
89113 }
90114
115+ /** Returns the object with the settings used for calls to createIndex. */
116+ @ BetaApi (
117+ "The surface for long-running operations is not stable yet and may change in the future." )
118+ public OperationCallSettings <CreateIndexRequest , Index , IndexOperationMetadata >
119+ createIndexOperationSettings () {
120+ return ((FirestoreAdminStubSettings ) getStubSettings ()).createIndexOperationSettings ();
121+ }
122+
91123 /** Returns the object with the settings used for calls to listIndexes. */
92124 public PagedCallSettings <ListIndexesRequest , ListIndexesResponse , ListIndexesPagedResponse >
93125 listIndexesSettings () {
@@ -99,35 +131,42 @@ public UnaryCallSettings<GetIndexRequest, Index> getIndexSettings() {
99131 return ((FirestoreAdminStubSettings ) getStubSettings ()).getIndexSettings ();
100132 }
101133
102- /** Returns the object with the settings used for calls to deleteIndex . */
103- public UnaryCallSettings <DeleteIndexRequest , Empty > deleteIndexSettings () {
104- return ((FirestoreAdminStubSettings ) getStubSettings ()).deleteIndexSettings ();
134+ /** Returns the object with the settings used for calls to getField . */
135+ public UnaryCallSettings <GetFieldRequest , Field > getFieldSettings () {
136+ return ((FirestoreAdminStubSettings ) getStubSettings ()).getFieldSettings ();
105137 }
106138
107- /** Returns the object with the settings used for calls to importDocuments. */
108- public UnaryCallSettings <ImportDocumentsRequest , Operation > importDocumentsSettings () {
109- return ((FirestoreAdminStubSettings ) getStubSettings ()).importDocumentsSettings ();
139+ /** Returns the object with the settings used for calls to listFields. */
140+ public PagedCallSettings <ListFieldsRequest , ListFieldsResponse , ListFieldsPagedResponse >
141+ listFieldsSettings () {
142+ return ((FirestoreAdminStubSettings ) getStubSettings ()).listFieldsSettings ();
110143 }
111144
112145 /** Returns the object with the settings used for calls to exportDocuments. */
113146 public UnaryCallSettings <ExportDocumentsRequest , Operation > exportDocumentsSettings () {
114147 return ((FirestoreAdminStubSettings ) getStubSettings ()).exportDocumentsSettings ();
115148 }
116149
117- /** Returns the object with the settings used for calls to getField. */
118- public UnaryCallSettings <GetFieldRequest , Field > getFieldSettings () {
119- return ((FirestoreAdminStubSettings ) getStubSettings ()).getFieldSettings ();
150+ /** Returns the object with the settings used for calls to exportDocuments. */
151+ @ BetaApi (
152+ "The surface for long-running operations is not stable yet and may change in the future." )
153+ public OperationCallSettings <
154+ ExportDocumentsRequest , ExportDocumentsResponse , ExportDocumentsMetadata >
155+ exportDocumentsOperationSettings () {
156+ return ((FirestoreAdminStubSettings ) getStubSettings ()).exportDocumentsOperationSettings ();
120157 }
121158
122- /** Returns the object with the settings used for calls to listFields. */
123- public PagedCallSettings <ListFieldsRequest , ListFieldsResponse , ListFieldsPagedResponse >
124- listFieldsSettings () {
125- return ((FirestoreAdminStubSettings ) getStubSettings ()).listFieldsSettings ();
159+ /** Returns the object with the settings used for calls to importDocuments. */
160+ public UnaryCallSettings <ImportDocumentsRequest , Operation > importDocumentsSettings () {
161+ return ((FirestoreAdminStubSettings ) getStubSettings ()).importDocumentsSettings ();
126162 }
127163
128- /** Returns the object with the settings used for calls to updateField. */
129- public UnaryCallSettings <UpdateFieldRequest , Operation > updateFieldSettings () {
130- return ((FirestoreAdminStubSettings ) getStubSettings ()).updateFieldSettings ();
164+ /** Returns the object with the settings used for calls to importDocuments. */
165+ @ BetaApi (
166+ "The surface for long-running operations is not stable yet and may change in the future." )
167+ public OperationCallSettings <ImportDocumentsRequest , Empty , ImportDocumentsMetadata >
168+ importDocumentsOperationSettings () {
169+ return ((FirestoreAdminStubSettings ) getStubSettings ()).importDocumentsOperationSettings ();
131170 }
132171
133172 public static final FirestoreAdminSettings create (FirestoreAdminStubSettings stub )
@@ -227,11 +266,37 @@ public Builder applyToAllUnaryMethods(
227266 return this ;
228267 }
229268
269+ /** Returns the builder for the settings used for calls to deleteIndex. */
270+ public UnaryCallSettings .Builder <DeleteIndexRequest , Empty > deleteIndexSettings () {
271+ return getStubSettingsBuilder ().deleteIndexSettings ();
272+ }
273+
274+ /** Returns the builder for the settings used for calls to updateField. */
275+ public UnaryCallSettings .Builder <UpdateFieldRequest , Operation > updateFieldSettings () {
276+ return getStubSettingsBuilder ().updateFieldSettings ();
277+ }
278+
279+ /** Returns the builder for the settings used for calls to updateField. */
280+ @ BetaApi (
281+ "The surface for long-running operations is not stable yet and may change in the future." )
282+ public OperationCallSettings .Builder <UpdateFieldRequest , Field , FieldOperationMetadata >
283+ updateFieldOperationSettings () {
284+ return getStubSettingsBuilder ().updateFieldOperationSettings ();
285+ }
286+
230287 /** Returns the builder for the settings used for calls to createIndex. */
231288 public UnaryCallSettings .Builder <CreateIndexRequest , Operation > createIndexSettings () {
232289 return getStubSettingsBuilder ().createIndexSettings ();
233290 }
234291
292+ /** Returns the builder for the settings used for calls to createIndex. */
293+ @ BetaApi (
294+ "The surface for long-running operations is not stable yet and may change in the future." )
295+ public OperationCallSettings .Builder <CreateIndexRequest , Index , IndexOperationMetadata >
296+ createIndexOperationSettings () {
297+ return getStubSettingsBuilder ().createIndexOperationSettings ();
298+ }
299+
235300 /** Returns the builder for the settings used for calls to listIndexes. */
236301 public PagedCallSettings .Builder <
237302 ListIndexesRequest , ListIndexesResponse , ListIndexesPagedResponse >
@@ -244,35 +309,42 @@ public UnaryCallSettings.Builder<GetIndexRequest, Index> getIndexSettings() {
244309 return getStubSettingsBuilder ().getIndexSettings ();
245310 }
246311
247- /** Returns the builder for the settings used for calls to deleteIndex . */
248- public UnaryCallSettings .Builder <DeleteIndexRequest , Empty > deleteIndexSettings () {
249- return getStubSettingsBuilder ().deleteIndexSettings ();
312+ /** Returns the builder for the settings used for calls to getField . */
313+ public UnaryCallSettings .Builder <GetFieldRequest , Field > getFieldSettings () {
314+ return getStubSettingsBuilder ().getFieldSettings ();
250315 }
251316
252- /** Returns the builder for the settings used for calls to importDocuments. */
253- public UnaryCallSettings .Builder <ImportDocumentsRequest , Operation > importDocumentsSettings () {
254- return getStubSettingsBuilder ().importDocumentsSettings ();
317+ /** Returns the builder for the settings used for calls to listFields. */
318+ public PagedCallSettings .Builder <ListFieldsRequest , ListFieldsResponse , ListFieldsPagedResponse >
319+ listFieldsSettings () {
320+ return getStubSettingsBuilder ().listFieldsSettings ();
255321 }
256322
257323 /** Returns the builder for the settings used for calls to exportDocuments. */
258324 public UnaryCallSettings .Builder <ExportDocumentsRequest , Operation > exportDocumentsSettings () {
259325 return getStubSettingsBuilder ().exportDocumentsSettings ();
260326 }
261327
262- /** Returns the builder for the settings used for calls to getField. */
263- public UnaryCallSettings .Builder <GetFieldRequest , Field > getFieldSettings () {
264- return getStubSettingsBuilder ().getFieldSettings ();
328+ /** Returns the builder for the settings used for calls to exportDocuments. */
329+ @ BetaApi (
330+ "The surface for long-running operations is not stable yet and may change in the future." )
331+ public OperationCallSettings .Builder <
332+ ExportDocumentsRequest , ExportDocumentsResponse , ExportDocumentsMetadata >
333+ exportDocumentsOperationSettings () {
334+ return getStubSettingsBuilder ().exportDocumentsOperationSettings ();
265335 }
266336
267- /** Returns the builder for the settings used for calls to listFields. */
268- public PagedCallSettings .Builder <ListFieldsRequest , ListFieldsResponse , ListFieldsPagedResponse >
269- listFieldsSettings () {
270- return getStubSettingsBuilder ().listFieldsSettings ();
337+ /** Returns the builder for the settings used for calls to importDocuments. */
338+ public UnaryCallSettings .Builder <ImportDocumentsRequest , Operation > importDocumentsSettings () {
339+ return getStubSettingsBuilder ().importDocumentsSettings ();
271340 }
272341
273- /** Returns the builder for the settings used for calls to updateField. */
274- public UnaryCallSettings .Builder <UpdateFieldRequest , Operation > updateFieldSettings () {
275- return getStubSettingsBuilder ().updateFieldSettings ();
342+ /** Returns the builder for the settings used for calls to importDocuments. */
343+ @ BetaApi (
344+ "The surface for long-running operations is not stable yet and may change in the future." )
345+ public OperationCallSettings .Builder <ImportDocumentsRequest , Empty , ImportDocumentsMetadata >
346+ importDocumentsOperationSettings () {
347+ return getStubSettingsBuilder ().importDocumentsOperationSettings ();
276348 }
277349
278350 @ Override
0 commit comments