Skip to content

Commit

Permalink
fix: make request optional in all cases (#237)
Browse files Browse the repository at this point in the history
... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0

Committer: @miraleung
PiperOrigin-RevId: 380641501

Source-Link: googleapis/googleapis@076f7e9

Source-Link: googleapis/googleapis-gen@27e4c88
  • Loading branch information
gcf-owl-bot[bot] authored Jun 22, 2021
1 parent 2999844 commit b88562a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export class DocumentProcessorServiceClient {
// -- Service calls --
// -------------------
processDocument(
request: protos.google.cloud.documentai.v1.IProcessRequest,
request?: protos.google.cloud.documentai.v1.IProcessRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -382,7 +382,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await client.processDocument(request);
*/
processDocument(
request: protos.google.cloud.documentai.v1.IProcessRequest,
request?: protos.google.cloud.documentai.v1.IProcessRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -422,7 +422,7 @@ export class DocumentProcessorServiceClient {
}

batchProcessDocuments(
request: protos.google.cloud.documentai.v1.IBatchProcessRequest,
request?: protos.google.cloud.documentai.v1.IBatchProcessRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -486,7 +486,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await operation.promise();
*/
batchProcessDocuments(
request: protos.google.cloud.documentai.v1.IBatchProcessRequest,
request?: protos.google.cloud.documentai.v1.IBatchProcessRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -571,7 +571,7 @@ export class DocumentProcessorServiceClient {
>;
}
reviewDocument(
request: protos.google.cloud.documentai.v1.IReviewDocumentRequest,
request?: protos.google.cloud.documentai.v1.IReviewDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -631,7 +631,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await operation.promise();
*/
reviewDocument(
request: protos.google.cloud.documentai.v1.IReviewDocumentRequest,
request?: protos.google.cloud.documentai.v1.IReviewDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export class DocumentUnderstandingServiceClient {
// -------------------

batchProcessDocuments(
request: protos.google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest,
request?: protos.google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -365,7 +365,7 @@ export class DocumentUnderstandingServiceClient {
* const [response] = await operation.promise();
*/
batchProcessDocuments(
request: protos.google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest,
request?: protos.google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class DocumentUnderstandingServiceClient {
// -- Service calls --
// -------------------
processDocument(
request: protos.google.cloud.documentai.v1beta2.IProcessDocumentRequest,
request?: protos.google.cloud.documentai.v1beta2.IProcessDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -385,7 +385,7 @@ export class DocumentUnderstandingServiceClient {
* const [response] = await client.processDocument(request);
*/
processDocument(
request: protos.google.cloud.documentai.v1beta2.IProcessDocumentRequest,
request?: protos.google.cloud.documentai.v1beta2.IProcessDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -432,7 +432,7 @@ export class DocumentUnderstandingServiceClient {
}

batchProcessDocuments(
request: protos.google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest,
request?: protos.google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -495,7 +495,7 @@ export class DocumentUnderstandingServiceClient {
* const [response] = await operation.promise();
*/
batchProcessDocuments(
request: protos.google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest,
request?: protos.google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class DocumentProcessorServiceClient {
// -- Service calls --
// -------------------
processDocument(
request: protos.google.cloud.documentai.v1beta3.IProcessRequest,
request?: protos.google.cloud.documentai.v1beta3.IProcessRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -450,7 +450,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await client.processDocument(request);
*/
processDocument(
request: protos.google.cloud.documentai.v1beta3.IProcessRequest,
request?: protos.google.cloud.documentai.v1beta3.IProcessRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -491,7 +491,7 @@ export class DocumentProcessorServiceClient {
return this.innerApiCalls.processDocument(request, options, callback);
}
fetchProcessorTypes(
request: protos.google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest,
request?: protos.google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -543,7 +543,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await client.fetchProcessorTypes(request);
*/
fetchProcessorTypes(
request: protos.google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest,
request?: protos.google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -589,7 +589,7 @@ export class DocumentProcessorServiceClient {
return this.innerApiCalls.fetchProcessorTypes(request, options, callback);
}
createProcessor(
request: protos.google.cloud.documentai.v1beta3.ICreateProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.ICreateProcessorRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -645,7 +645,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await client.createProcessor(request);
*/
createProcessor(
request: protos.google.cloud.documentai.v1beta3.ICreateProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.ICreateProcessorRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -692,7 +692,7 @@ export class DocumentProcessorServiceClient {
}

batchProcessDocuments(
request: protos.google.cloud.documentai.v1beta3.IBatchProcessRequest,
request?: protos.google.cloud.documentai.v1beta3.IBatchProcessRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -760,7 +760,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await operation.promise();
*/
batchProcessDocuments(
request: protos.google.cloud.documentai.v1beta3.IBatchProcessRequest,
request?: protos.google.cloud.documentai.v1beta3.IBatchProcessRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -845,7 +845,7 @@ export class DocumentProcessorServiceClient {
>;
}
deleteProcessor(
request: protos.google.cloud.documentai.v1beta3.IDeleteProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.IDeleteProcessorRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -902,7 +902,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await operation.promise();
*/
deleteProcessor(
request: protos.google.cloud.documentai.v1beta3.IDeleteProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.IDeleteProcessorRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -987,7 +987,7 @@ export class DocumentProcessorServiceClient {
>;
}
enableProcessor(
request: protos.google.cloud.documentai.v1beta3.IEnableProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.IEnableProcessorRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1043,7 +1043,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await operation.promise();
*/
enableProcessor(
request: protos.google.cloud.documentai.v1beta3.IEnableProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.IEnableProcessorRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1128,7 +1128,7 @@ export class DocumentProcessorServiceClient {
>;
}
disableProcessor(
request: protos.google.cloud.documentai.v1beta3.IDisableProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.IDisableProcessorRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1184,7 +1184,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await operation.promise();
*/
disableProcessor(
request: protos.google.cloud.documentai.v1beta3.IDisableProcessorRequest,
request?: protos.google.cloud.documentai.v1beta3.IDisableProcessorRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1269,7 +1269,7 @@ export class DocumentProcessorServiceClient {
>;
}
reviewDocument(
request: protos.google.cloud.documentai.v1beta3.IReviewDocumentRequest,
request?: protos.google.cloud.documentai.v1beta3.IReviewDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1335,7 +1335,7 @@ export class DocumentProcessorServiceClient {
* const [response] = await operation.promise();
*/
reviewDocument(
request: protos.google.cloud.documentai.v1beta3.IReviewDocumentRequest,
request?: protos.google.cloud.documentai.v1beta3.IReviewDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1420,7 +1420,7 @@ export class DocumentProcessorServiceClient {
>;
}
listProcessors(
request: protos.google.cloud.documentai.v1beta3.IListProcessorsRequest,
request?: protos.google.cloud.documentai.v1beta3.IListProcessorsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1479,7 +1479,7 @@ export class DocumentProcessorServiceClient {
* for more details and examples.
*/
listProcessors(
request: protos.google.cloud.documentai.v1beta3.IListProcessorsRequest,
request?: protos.google.cloud.documentai.v1beta3.IListProcessorsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down

0 comments on commit b88562a

Please sign in to comment.