Skip to content

Commit 267aa2d

Browse files
chore(bazel): [documentai] update protobuf to v3.21.12 (#8990)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 503267695 Source-Link: https://togithub.com/googleapis/googleapis/commit/c79059008c6d2e66d4cc65a1a7d8bee7160e3f83 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/b98230b9e68a3828cf138296e9a20e03749ae0a0 Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiYjk4MjMwYjllNjhhMzgyOGNmMTM4Mjk2ZTlhMjBlMDM3NDlhZTBhMCJ9 BEGIN_NESTED_COMMIT feat: [documentai] exposed GetProcessorType to v1 PiperOrigin-RevId: 502624243 Source-Link: https://togithub.com/googleapis/googleapis/commit/bd5f9343ccec979c047c23f43509903a5563633a Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/7ae8a3a9755f661ce8989e9dcb145d2dff77d864 Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiN2FlOGEzYTk3NTVmNjYxY2U4OTg5ZTlkY2IxNDVkMmRmZjc3ZDg2NCJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [documentai] exposed GetProcessorType to v1beta3 PiperOrigin-RevId: 502616281 Source-Link: https://togithub.com/googleapis/googleapis/commit/04e6db97c2cbc65141e044029b2e35a70615dc92 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/f4bc77f905e68057db09b78397afbddb9b86c80e Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiZjRiYzc3ZjkwNWU2ODA1N2RiMDliNzgzOTdhZmJkZGI5Yjg2YzgwZSJ9 END_NESTED_COMMIT
1 parent ede0030 commit 267aa2d

File tree

193 files changed

+19680
-12079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+19680
-12079
lines changed

java-document-ai/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-document-ai</artifactId>
22-
<version>2.11.0</version>
22+
<version>2.12.0</version>
2323
</dependency>
2424
```
2525

2626
If you are using Gradle without BOM, add this to your dependencies:
2727

2828
```Groovy
29-
implementation 'com.google.cloud:google-cloud-document-ai:2.11.0'
29+
implementation 'com.google.cloud:google-cloud-document-ai:2.12.0'
3030
```
3131

3232
If you are using SBT, add this to your dependencies:
3333

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.11.0"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.12.0"
3636
```
3737

3838
## Authentication

java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,121 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(
823823
return stub.listProcessorTypesCallable();
824824
}
825825

826+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
827+
/**
828+
* Gets a processor type detail.
829+
*
830+
* <p>Sample code:
831+
*
832+
* <pre>{@code
833+
* // This snippet has been automatically generated and should be regarded as a code template only.
834+
* // It will require modifications to work:
835+
* // - It may require correct/in-range values for request initialization.
836+
* // - It may require specifying regional endpoints when creating the service client as shown in
837+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
838+
* try (DocumentProcessorServiceClient documentProcessorServiceClient =
839+
* DocumentProcessorServiceClient.create()) {
840+
* ProcessorTypeName name = ProcessorTypeName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR_TYPE]");
841+
* ProcessorType response = documentProcessorServiceClient.getProcessorType(name);
842+
* }
843+
* }</pre>
844+
*
845+
* @param name Required. The processor type resource name.
846+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
847+
*/
848+
public final ProcessorType getProcessorType(ProcessorTypeName name) {
849+
GetProcessorTypeRequest request =
850+
GetProcessorTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
851+
return getProcessorType(request);
852+
}
853+
854+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
855+
/**
856+
* Gets a processor type detail.
857+
*
858+
* <p>Sample code:
859+
*
860+
* <pre>{@code
861+
* // This snippet has been automatically generated and should be regarded as a code template only.
862+
* // It will require modifications to work:
863+
* // - It may require correct/in-range values for request initialization.
864+
* // - It may require specifying regional endpoints when creating the service client as shown in
865+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
866+
* try (DocumentProcessorServiceClient documentProcessorServiceClient =
867+
* DocumentProcessorServiceClient.create()) {
868+
* String name = ProcessorTypeName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR_TYPE]").toString();
869+
* ProcessorType response = documentProcessorServiceClient.getProcessorType(name);
870+
* }
871+
* }</pre>
872+
*
873+
* @param name Required. The processor type resource name.
874+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
875+
*/
876+
public final ProcessorType getProcessorType(String name) {
877+
GetProcessorTypeRequest request = GetProcessorTypeRequest.newBuilder().setName(name).build();
878+
return getProcessorType(request);
879+
}
880+
881+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
882+
/**
883+
* Gets a processor type detail.
884+
*
885+
* <p>Sample code:
886+
*
887+
* <pre>{@code
888+
* // This snippet has been automatically generated and should be regarded as a code template only.
889+
* // It will require modifications to work:
890+
* // - It may require correct/in-range values for request initialization.
891+
* // - It may require specifying regional endpoints when creating the service client as shown in
892+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
893+
* try (DocumentProcessorServiceClient documentProcessorServiceClient =
894+
* DocumentProcessorServiceClient.create()) {
895+
* GetProcessorTypeRequest request =
896+
* GetProcessorTypeRequest.newBuilder()
897+
* .setName(
898+
* ProcessorTypeName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR_TYPE]").toString())
899+
* .build();
900+
* ProcessorType response = documentProcessorServiceClient.getProcessorType(request);
901+
* }
902+
* }</pre>
903+
*
904+
* @param request The request object containing all of the parameters for the API call.
905+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
906+
*/
907+
public final ProcessorType getProcessorType(GetProcessorTypeRequest request) {
908+
return getProcessorTypeCallable().call(request);
909+
}
910+
911+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
912+
/**
913+
* Gets a processor type detail.
914+
*
915+
* <p>Sample code:
916+
*
917+
* <pre>{@code
918+
* // This snippet has been automatically generated and should be regarded as a code template only.
919+
* // It will require modifications to work:
920+
* // - It may require correct/in-range values for request initialization.
921+
* // - It may require specifying regional endpoints when creating the service client as shown in
922+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
923+
* try (DocumentProcessorServiceClient documentProcessorServiceClient =
924+
* DocumentProcessorServiceClient.create()) {
925+
* GetProcessorTypeRequest request =
926+
* GetProcessorTypeRequest.newBuilder()
927+
* .setName(
928+
* ProcessorTypeName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR_TYPE]").toString())
929+
* .build();
930+
* ApiFuture<ProcessorType> future =
931+
* documentProcessorServiceClient.getProcessorTypeCallable().futureCall(request);
932+
* // Do something.
933+
* ProcessorType response = future.get();
934+
* }
935+
* }</pre>
936+
*/
937+
public final UnaryCallable<GetProcessorTypeRequest, ProcessorType> getProcessorTypeCallable() {
938+
return stub.getProcessorTypeCallable();
939+
}
940+
826941
// AUTO-GENERATED DOCUMENTATION AND METHOD.
827942
/**
828943
* Lists all processors which belong to this project.

java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ public UnaryCallSettings<BatchProcessRequest, Operation> batchProcessDocumentsSe
118118
return ((DocumentProcessorServiceStubSettings) getStubSettings()).listProcessorTypesSettings();
119119
}
120120

121+
/** Returns the object with the settings used for calls to getProcessorType. */
122+
public UnaryCallSettings<GetProcessorTypeRequest, ProcessorType> getProcessorTypeSettings() {
123+
return ((DocumentProcessorServiceStubSettings) getStubSettings()).getProcessorTypeSettings();
124+
}
125+
121126
/** Returns the object with the settings used for calls to listProcessors. */
122127
public PagedCallSettings<
123128
ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse>
@@ -425,6 +430,12 @@ public UnaryCallSettings.Builder<ProcessRequest, ProcessResponse> processDocumen
425430
return getStubSettingsBuilder().listProcessorTypesSettings();
426431
}
427432

433+
/** Returns the builder for the settings used for calls to getProcessorType. */
434+
public UnaryCallSettings.Builder<GetProcessorTypeRequest, ProcessorType>
435+
getProcessorTypeSettings() {
436+
return getStubSettingsBuilder().getProcessorTypeSettings();
437+
}
438+
428439
/** Returns the builder for the settings used for calls to listProcessors. */
429440
public PagedCallSettings.Builder<
430441
ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse>

java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
"GetProcessor": {
4141
"methods": ["getProcessor", "getProcessor", "getProcessor", "getProcessorCallable"]
4242
},
43+
"GetProcessorType": {
44+
"methods": ["getProcessorType", "getProcessorType", "getProcessorType", "getProcessorTypeCallable"]
45+
},
4346
"GetProcessorVersion": {
4447
"methods": ["getProcessorVersion", "getProcessorVersion", "getProcessorVersion", "getProcessorVersionCallable"]
4548
},

java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import com.google.cloud.documentai.v1.FetchProcessorTypesRequest;
4545
import com.google.cloud.documentai.v1.FetchProcessorTypesResponse;
4646
import com.google.cloud.documentai.v1.GetProcessorRequest;
47+
import com.google.cloud.documentai.v1.GetProcessorTypeRequest;
4748
import com.google.cloud.documentai.v1.GetProcessorVersionRequest;
4849
import com.google.cloud.documentai.v1.ListProcessorTypesRequest;
4950
import com.google.cloud.documentai.v1.ListProcessorTypesResponse;
@@ -54,6 +55,7 @@
5455
import com.google.cloud.documentai.v1.ProcessRequest;
5556
import com.google.cloud.documentai.v1.ProcessResponse;
5657
import com.google.cloud.documentai.v1.Processor;
58+
import com.google.cloud.documentai.v1.ProcessorType;
5759
import com.google.cloud.documentai.v1.ProcessorVersion;
5860
import com.google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
5961
import com.google.cloud.documentai.v1.ReviewDocumentRequest;
@@ -119,6 +121,10 @@ public UnaryCallable<BatchProcessRequest, Operation> batchProcessDocumentsCallab
119121
throw new UnsupportedOperationException("Not implemented: listProcessorTypesCallable()");
120122
}
121123

124+
public UnaryCallable<GetProcessorTypeRequest, ProcessorType> getProcessorTypeCallable() {
125+
throw new UnsupportedOperationException("Not implemented: getProcessorTypeCallable()");
126+
}
127+
122128
public UnaryCallable<ListProcessorsRequest, ListProcessorsPagedResponse>
123129
listProcessorsPagedCallable() {
124130
throw new UnsupportedOperationException("Not implemented: listProcessorsPagedCallable()");

java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
import com.google.cloud.documentai.v1.FetchProcessorTypesRequest;
7171
import com.google.cloud.documentai.v1.FetchProcessorTypesResponse;
7272
import com.google.cloud.documentai.v1.GetProcessorRequest;
73+
import com.google.cloud.documentai.v1.GetProcessorTypeRequest;
7374
import com.google.cloud.documentai.v1.GetProcessorVersionRequest;
7475
import com.google.cloud.documentai.v1.ListProcessorTypesRequest;
7576
import com.google.cloud.documentai.v1.ListProcessorTypesResponse;
@@ -161,6 +162,7 @@ public class DocumentProcessorServiceStubSettings
161162
private final PagedCallSettings<
162163
ListProcessorTypesRequest, ListProcessorTypesResponse, ListProcessorTypesPagedResponse>
163164
listProcessorTypesSettings;
165+
private final UnaryCallSettings<GetProcessorTypeRequest, ProcessorType> getProcessorTypeSettings;
164166
private final PagedCallSettings<
165167
ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse>
166168
listProcessorsSettings;
@@ -481,6 +483,11 @@ public UnaryCallSettings<BatchProcessRequest, Operation> batchProcessDocumentsSe
481483
return listProcessorTypesSettings;
482484
}
483485

486+
/** Returns the object with the settings used for calls to getProcessorType. */
487+
public UnaryCallSettings<GetProcessorTypeRequest, ProcessorType> getProcessorTypeSettings() {
488+
return getProcessorTypeSettings;
489+
}
490+
484491
/** Returns the object with the settings used for calls to listProcessors. */
485492
public PagedCallSettings<
486493
ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse>
@@ -740,6 +747,7 @@ protected DocumentProcessorServiceStubSettings(Builder settingsBuilder) throws I
740747
settingsBuilder.batchProcessDocumentsOperationSettings().build();
741748
fetchProcessorTypesSettings = settingsBuilder.fetchProcessorTypesSettings().build();
742749
listProcessorTypesSettings = settingsBuilder.listProcessorTypesSettings().build();
750+
getProcessorTypeSettings = settingsBuilder.getProcessorTypeSettings().build();
743751
listProcessorsSettings = settingsBuilder.listProcessorsSettings().build();
744752
getProcessorSettings = settingsBuilder.getProcessorSettings().build();
745753
getProcessorVersionSettings = settingsBuilder.getProcessorVersionSettings().build();
@@ -786,6 +794,8 @@ public static class Builder
786794
private final PagedCallSettings.Builder<
787795
ListProcessorTypesRequest, ListProcessorTypesResponse, ListProcessorTypesPagedResponse>
788796
listProcessorTypesSettings;
797+
private final UnaryCallSettings.Builder<GetProcessorTypeRequest, ProcessorType>
798+
getProcessorTypeSettings;
789799
private final PagedCallSettings.Builder<
790800
ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse>
791801
listProcessorsSettings;
@@ -897,6 +907,7 @@ protected Builder(ClientContext clientContext) {
897907
batchProcessDocumentsOperationSettings = OperationCallSettings.newBuilder();
898908
fetchProcessorTypesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
899909
listProcessorTypesSettings = PagedCallSettings.newBuilder(LIST_PROCESSOR_TYPES_PAGE_STR_FACT);
910+
getProcessorTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
900911
listProcessorsSettings = PagedCallSettings.newBuilder(LIST_PROCESSORS_PAGE_STR_FACT);
901912
getProcessorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
902913
getProcessorVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -928,6 +939,7 @@ protected Builder(ClientContext clientContext) {
928939
batchProcessDocumentsSettings,
929940
fetchProcessorTypesSettings,
930941
listProcessorTypesSettings,
942+
getProcessorTypeSettings,
931943
listProcessorsSettings,
932944
getProcessorSettings,
933945
getProcessorVersionSettings,
@@ -955,6 +967,7 @@ protected Builder(DocumentProcessorServiceStubSettings settings) {
955967
settings.batchProcessDocumentsOperationSettings.toBuilder();
956968
fetchProcessorTypesSettings = settings.fetchProcessorTypesSettings.toBuilder();
957969
listProcessorTypesSettings = settings.listProcessorTypesSettings.toBuilder();
970+
getProcessorTypeSettings = settings.getProcessorTypeSettings.toBuilder();
958971
listProcessorsSettings = settings.listProcessorsSettings.toBuilder();
959972
getProcessorSettings = settings.getProcessorSettings.toBuilder();
960973
getProcessorVersionSettings = settings.getProcessorVersionSettings.toBuilder();
@@ -989,6 +1002,7 @@ protected Builder(DocumentProcessorServiceStubSettings settings) {
9891002
batchProcessDocumentsSettings,
9901003
fetchProcessorTypesSettings,
9911004
listProcessorTypesSettings,
1005+
getProcessorTypeSettings,
9921006
listProcessorsSettings,
9931007
getProcessorSettings,
9941008
getProcessorVersionSettings,
@@ -1053,6 +1067,11 @@ private static Builder initDefaults(Builder builder) {
10531067
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
10541068
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
10551069

1070+
builder
1071+
.getProcessorTypeSettings()
1072+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
1073+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
1074+
10561075
builder
10571076
.listProcessorsSettings()
10581077
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -1404,6 +1423,12 @@ public UnaryCallSettings.Builder<ProcessRequest, ProcessResponse> processDocumen
14041423
return listProcessorTypesSettings;
14051424
}
14061425

1426+
/** Returns the builder for the settings used for calls to getProcessorType. */
1427+
public UnaryCallSettings.Builder<GetProcessorTypeRequest, ProcessorType>
1428+
getProcessorTypeSettings() {
1429+
return getProcessorTypeSettings;
1430+
}
1431+
14071432
/** Returns the builder for the settings used for calls to listProcessors. */
14081433
public PagedCallSettings.Builder<
14091434
ListProcessorsRequest, ListProcessorsResponse, ListProcessorsPagedResponse>

java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import com.google.cloud.documentai.v1.FetchProcessorTypesRequest;
4949
import com.google.cloud.documentai.v1.FetchProcessorTypesResponse;
5050
import com.google.cloud.documentai.v1.GetProcessorRequest;
51+
import com.google.cloud.documentai.v1.GetProcessorTypeRequest;
5152
import com.google.cloud.documentai.v1.GetProcessorVersionRequest;
5253
import com.google.cloud.documentai.v1.ListProcessorTypesRequest;
5354
import com.google.cloud.documentai.v1.ListProcessorTypesResponse;
@@ -58,6 +59,7 @@
5859
import com.google.cloud.documentai.v1.ProcessRequest;
5960
import com.google.cloud.documentai.v1.ProcessResponse;
6061
import com.google.cloud.documentai.v1.Processor;
62+
import com.google.cloud.documentai.v1.ProcessorType;
6163
import com.google.cloud.documentai.v1.ProcessorVersion;
6264
import com.google.cloud.documentai.v1.ReviewDocumentOperationMetadata;
6365
import com.google.cloud.documentai.v1.ReviewDocumentRequest;
@@ -134,6 +136,17 @@ public class GrpcDocumentProcessorServiceStub extends DocumentProcessorServiceSt
134136
ProtoUtils.marshaller(ListProcessorTypesResponse.getDefaultInstance()))
135137
.build();
136138

139+
private static final MethodDescriptor<GetProcessorTypeRequest, ProcessorType>
140+
getProcessorTypeMethodDescriptor =
141+
MethodDescriptor.<GetProcessorTypeRequest, ProcessorType>newBuilder()
142+
.setType(MethodDescriptor.MethodType.UNARY)
143+
.setFullMethodName(
144+
"google.cloud.documentai.v1.DocumentProcessorService/GetProcessorType")
145+
.setRequestMarshaller(
146+
ProtoUtils.marshaller(GetProcessorTypeRequest.getDefaultInstance()))
147+
.setResponseMarshaller(ProtoUtils.marshaller(ProcessorType.getDefaultInstance()))
148+
.build();
149+
137150
private static final MethodDescriptor<ListProcessorsRequest, ListProcessorsResponse>
138151
listProcessorsMethodDescriptor =
139152
MethodDescriptor.<ListProcessorsRequest, ListProcessorsResponse>newBuilder()
@@ -306,6 +319,7 @@ public class GrpcDocumentProcessorServiceStub extends DocumentProcessorServiceSt
306319
listProcessorTypesCallable;
307320
private final UnaryCallable<ListProcessorTypesRequest, ListProcessorTypesPagedResponse>
308321
listProcessorTypesPagedCallable;
322+
private final UnaryCallable<GetProcessorTypeRequest, ProcessorType> getProcessorTypeCallable;
309323
private final UnaryCallable<ListProcessorsRequest, ListProcessorsResponse> listProcessorsCallable;
310324
private final UnaryCallable<ListProcessorsRequest, ListProcessorsPagedResponse>
311325
listProcessorsPagedCallable;
@@ -450,6 +464,16 @@ protected GrpcDocumentProcessorServiceStub(
450464
return params.build();
451465
})
452466
.build();
467+
GrpcCallSettings<GetProcessorTypeRequest, ProcessorType> getProcessorTypeTransportSettings =
468+
GrpcCallSettings.<GetProcessorTypeRequest, ProcessorType>newBuilder()
469+
.setMethodDescriptor(getProcessorTypeMethodDescriptor)
470+
.setParamsExtractor(
471+
request -> {
472+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
473+
params.put("name", String.valueOf(request.getName()));
474+
return params.build();
475+
})
476+
.build();
453477
GrpcCallSettings<ListProcessorsRequest, ListProcessorsResponse>
454478
listProcessorsTransportSettings =
455479
GrpcCallSettings.<ListProcessorsRequest, ListProcessorsResponse>newBuilder()
@@ -638,6 +662,9 @@ protected GrpcDocumentProcessorServiceStub(
638662
listProcessorTypesTransportSettings,
639663
settings.listProcessorTypesSettings(),
640664
clientContext);
665+
this.getProcessorTypeCallable =
666+
callableFactory.createUnaryCallable(
667+
getProcessorTypeTransportSettings, settings.getProcessorTypeSettings(), clientContext);
641668
this.listProcessorsCallable =
642669
callableFactory.createUnaryCallable(
643670
listProcessorsTransportSettings, settings.listProcessorsSettings(), clientContext);
@@ -797,6 +824,11 @@ public UnaryCallable<BatchProcessRequest, Operation> batchProcessDocumentsCallab
797824
return listProcessorTypesPagedCallable;
798825
}
799826

827+
@Override
828+
public UnaryCallable<GetProcessorTypeRequest, ProcessorType> getProcessorTypeCallable() {
829+
return getProcessorTypeCallable;
830+
}
831+
800832
@Override
801833
public UnaryCallable<ListProcessorsRequest, ListProcessorsResponse> listProcessorsCallable() {
802834
return listProcessorsCallable;

0 commit comments

Comments
 (0)