|
16 | 16 |
|
17 | 17 | package com.google.cloud.documentai.v1beta3; |
18 | 18 |
|
| 19 | +import static com.google.cloud.documentai.v1beta3.DocumentProcessorServiceClient.ListProcessorsPagedResponse; |
| 20 | + |
19 | 21 | import com.google.api.core.ApiFunction; |
20 | 22 | import com.google.api.core.BetaApi; |
21 | 23 | import com.google.api.gax.core.GoogleCredentialsProvider; |
|
25 | 27 | import com.google.api.gax.rpc.ClientContext; |
26 | 28 | import com.google.api.gax.rpc.ClientSettings; |
27 | 29 | import com.google.api.gax.rpc.OperationCallSettings; |
| 30 | +import com.google.api.gax.rpc.PagedCallSettings; |
28 | 31 | import com.google.api.gax.rpc.TransportChannelProvider; |
29 | 32 | import com.google.api.gax.rpc.UnaryCallSettings; |
30 | 33 | import com.google.cloud.documentai.v1beta3.stub.DocumentProcessorServiceStubSettings; |
31 | 34 | import com.google.longrunning.Operation; |
| 35 | +import com.google.protobuf.Empty; |
32 | 36 | import java.io.IOException; |
33 | 37 | import java.util.List; |
34 | 38 | import javax.annotation.Generated; |
@@ -89,6 +93,62 @@ public UnaryCallSettings<BatchProcessRequest, Operation> batchProcessDocumentsSe |
89 | 93 | .batchProcessDocumentsOperationSettings(); |
90 | 94 | } |
91 | 95 |
|
| 96 | + /** Returns the object with the settings used for calls to fetchProcessorTypes. */ |
| 97 | + public UnaryCallSettings<FetchProcessorTypesRequest, FetchProcessorTypesResponse> |
| 98 | + fetchProcessorTypesSettings() { |
| 99 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()).fetchProcessorTypesSettings(); |
| 100 | + } |
| 101 | + |
| 102 | + /** Returns the object with the settings used for calls to listProcessors. */ |
| 103 | + public PagedCallSettings< |
| 104 | + ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse> |
| 105 | + listProcessorsSettings() { |
| 106 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()).listProcessorsSettings(); |
| 107 | + } |
| 108 | + |
| 109 | + /** Returns the object with the settings used for calls to createProcessor. */ |
| 110 | + public UnaryCallSettings<CreateProcessorRequest, Processor> createProcessorSettings() { |
| 111 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()).createProcessorSettings(); |
| 112 | + } |
| 113 | + |
| 114 | + /** Returns the object with the settings used for calls to deleteProcessor. */ |
| 115 | + public UnaryCallSettings<DeleteProcessorRequest, Operation> deleteProcessorSettings() { |
| 116 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()).deleteProcessorSettings(); |
| 117 | + } |
| 118 | + |
| 119 | + /** Returns the object with the settings used for calls to deleteProcessor. */ |
| 120 | + public OperationCallSettings<DeleteProcessorRequest, Empty, DeleteProcessorMetadata> |
| 121 | + deleteProcessorOperationSettings() { |
| 122 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()) |
| 123 | + .deleteProcessorOperationSettings(); |
| 124 | + } |
| 125 | + |
| 126 | + /** Returns the object with the settings used for calls to enableProcessor. */ |
| 127 | + public UnaryCallSettings<EnableProcessorRequest, Operation> enableProcessorSettings() { |
| 128 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()).enableProcessorSettings(); |
| 129 | + } |
| 130 | + |
| 131 | + /** Returns the object with the settings used for calls to enableProcessor. */ |
| 132 | + public OperationCallSettings< |
| 133 | + EnableProcessorRequest, EnableProcessorResponse, EnableProcessorMetadata> |
| 134 | + enableProcessorOperationSettings() { |
| 135 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()) |
| 136 | + .enableProcessorOperationSettings(); |
| 137 | + } |
| 138 | + |
| 139 | + /** Returns the object with the settings used for calls to disableProcessor. */ |
| 140 | + public UnaryCallSettings<DisableProcessorRequest, Operation> disableProcessorSettings() { |
| 141 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()).disableProcessorSettings(); |
| 142 | + } |
| 143 | + |
| 144 | + /** Returns the object with the settings used for calls to disableProcessor. */ |
| 145 | + public OperationCallSettings< |
| 146 | + DisableProcessorRequest, DisableProcessorResponse, DisableProcessorMetadata> |
| 147 | + disableProcessorOperationSettings() { |
| 148 | + return ((DocumentProcessorServiceStubSettings) getStubSettings()) |
| 149 | + .disableProcessorOperationSettings(); |
| 150 | + } |
| 151 | + |
92 | 152 | /** Returns the object with the settings used for calls to reviewDocument. */ |
93 | 153 | public UnaryCallSettings<ReviewDocumentRequest, Operation> reviewDocumentSettings() { |
94 | 154 | return ((DocumentProcessorServiceStubSettings) getStubSettings()).reviewDocumentSettings(); |
@@ -219,6 +279,60 @@ public UnaryCallSettings.Builder<ProcessRequest, ProcessResponse> processDocumen |
219 | 279 | return getStubSettingsBuilder().batchProcessDocumentsOperationSettings(); |
220 | 280 | } |
221 | 281 |
|
| 282 | + /** Returns the builder for the settings used for calls to fetchProcessorTypes. */ |
| 283 | + public UnaryCallSettings.Builder<FetchProcessorTypesRequest, FetchProcessorTypesResponse> |
| 284 | + fetchProcessorTypesSettings() { |
| 285 | + return getStubSettingsBuilder().fetchProcessorTypesSettings(); |
| 286 | + } |
| 287 | + |
| 288 | + /** Returns the builder for the settings used for calls to listProcessors. */ |
| 289 | + public PagedCallSettings.Builder< |
| 290 | + ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse> |
| 291 | + listProcessorsSettings() { |
| 292 | + return getStubSettingsBuilder().listProcessorsSettings(); |
| 293 | + } |
| 294 | + |
| 295 | + /** Returns the builder for the settings used for calls to createProcessor. */ |
| 296 | + public UnaryCallSettings.Builder<CreateProcessorRequest, Processor> createProcessorSettings() { |
| 297 | + return getStubSettingsBuilder().createProcessorSettings(); |
| 298 | + } |
| 299 | + |
| 300 | + /** Returns the builder for the settings used for calls to deleteProcessor. */ |
| 301 | + public UnaryCallSettings.Builder<DeleteProcessorRequest, Operation> deleteProcessorSettings() { |
| 302 | + return getStubSettingsBuilder().deleteProcessorSettings(); |
| 303 | + } |
| 304 | + |
| 305 | + /** Returns the builder for the settings used for calls to deleteProcessor. */ |
| 306 | + public OperationCallSettings.Builder<DeleteProcessorRequest, Empty, DeleteProcessorMetadata> |
| 307 | + deleteProcessorOperationSettings() { |
| 308 | + return getStubSettingsBuilder().deleteProcessorOperationSettings(); |
| 309 | + } |
| 310 | + |
| 311 | + /** Returns the builder for the settings used for calls to enableProcessor. */ |
| 312 | + public UnaryCallSettings.Builder<EnableProcessorRequest, Operation> enableProcessorSettings() { |
| 313 | + return getStubSettingsBuilder().enableProcessorSettings(); |
| 314 | + } |
| 315 | + |
| 316 | + /** Returns the builder for the settings used for calls to enableProcessor. */ |
| 317 | + public OperationCallSettings.Builder< |
| 318 | + EnableProcessorRequest, EnableProcessorResponse, EnableProcessorMetadata> |
| 319 | + enableProcessorOperationSettings() { |
| 320 | + return getStubSettingsBuilder().enableProcessorOperationSettings(); |
| 321 | + } |
| 322 | + |
| 323 | + /** Returns the builder for the settings used for calls to disableProcessor. */ |
| 324 | + public UnaryCallSettings.Builder<DisableProcessorRequest, Operation> |
| 325 | + disableProcessorSettings() { |
| 326 | + return getStubSettingsBuilder().disableProcessorSettings(); |
| 327 | + } |
| 328 | + |
| 329 | + /** Returns the builder for the settings used for calls to disableProcessor. */ |
| 330 | + public OperationCallSettings.Builder< |
| 331 | + DisableProcessorRequest, DisableProcessorResponse, DisableProcessorMetadata> |
| 332 | + disableProcessorOperationSettings() { |
| 333 | + return getStubSettingsBuilder().disableProcessorOperationSettings(); |
| 334 | + } |
| 335 | + |
222 | 336 | /** Returns the builder for the settings used for calls to reviewDocument. */ |
223 | 337 | public UnaryCallSettings.Builder<ReviewDocumentRequest, Operation> reviewDocumentSettings() { |
224 | 338 | return getStubSettingsBuilder().reviewDocumentSettings(); |
|
0 commit comments