diff --git a/protos/google/cloud/documentai/v1/document_processor_service.proto b/protos/google/cloud/documentai/v1/document_processor_service.proto index 65f0e6d96..314a51d9a 100644 --- a/protos/google/cloud/documentai/v1/document_processor_service.proto +++ b/protos/google/cloud/documentai/v1/document_processor_service.proto @@ -298,4 +298,7 @@ message ReviewDocumentResponse { message ReviewDocumentOperationMetadata { // The basic metadata of the long running operation. CommonOperationMetadata common_metadata = 5; + + // The question ID. + string question_id = 6; } diff --git a/protos/protos.d.ts b/protos/protos.d.ts index bce47fd32..df591e898 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -5608,6 +5608,9 @@ export namespace google { /** ReviewDocumentOperationMetadata commonMetadata */ commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null); + + /** ReviewDocumentOperationMetadata questionId */ + questionId?: (string|null); } /** Represents a ReviewDocumentOperationMetadata. */ @@ -5622,6 +5625,9 @@ export namespace google { /** ReviewDocumentOperationMetadata commonMetadata. */ public commonMetadata?: (google.cloud.documentai.v1.ICommonOperationMetadata|null); + /** ReviewDocumentOperationMetadata questionId. */ + public questionId: string; + /** * Creates a new ReviewDocumentOperationMetadata instance using the specified properties. * @param [properties] Properties to set diff --git a/protos/protos.js b/protos/protos.js index 6b96278a9..f9dff874b 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -14296,6 +14296,7 @@ * @memberof google.cloud.documentai.v1 * @interface IReviewDocumentOperationMetadata * @property {google.cloud.documentai.v1.ICommonOperationMetadata|null} [commonMetadata] ReviewDocumentOperationMetadata commonMetadata + * @property {string|null} [questionId] ReviewDocumentOperationMetadata questionId */ /** @@ -14321,6 +14322,14 @@ */ ReviewDocumentOperationMetadata.prototype.commonMetadata = null; + /** + * ReviewDocumentOperationMetadata questionId. + * @member {string} questionId + * @memberof google.cloud.documentai.v1.ReviewDocumentOperationMetadata + * @instance + */ + ReviewDocumentOperationMetadata.prototype.questionId = ""; + /** * Creates a new ReviewDocumentOperationMetadata instance using the specified properties. * @function create @@ -14347,6 +14356,8 @@ writer = $Writer.create(); if (message.commonMetadata != null && Object.hasOwnProperty.call(message, "commonMetadata")) $root.google.cloud.documentai.v1.CommonOperationMetadata.encode(message.commonMetadata, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.questionId != null && Object.hasOwnProperty.call(message, "questionId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.questionId); return writer; }; @@ -14384,6 +14395,9 @@ case 5: message.commonMetadata = $root.google.cloud.documentai.v1.CommonOperationMetadata.decode(reader, reader.uint32()); break; + case 6: + message.questionId = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -14424,6 +14438,9 @@ if (error) return "commonMetadata." + error; } + if (message.questionId != null && message.hasOwnProperty("questionId")) + if (!$util.isString(message.questionId)) + return "questionId: string expected"; return null; }; @@ -14444,6 +14461,8 @@ throw TypeError(".google.cloud.documentai.v1.ReviewDocumentOperationMetadata.commonMetadata: object expected"); message.commonMetadata = $root.google.cloud.documentai.v1.CommonOperationMetadata.fromObject(object.commonMetadata); } + if (object.questionId != null) + message.questionId = String(object.questionId); return message; }; @@ -14460,10 +14479,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.commonMetadata = null; + object.questionId = ""; + } if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata")) object.commonMetadata = $root.google.cloud.documentai.v1.CommonOperationMetadata.toObject(message.commonMetadata, options); + if (message.questionId != null && message.hasOwnProperty("questionId")) + object.questionId = message.questionId; return object; }; diff --git a/protos/protos.json b/protos/protos.json index 935b4e3a1..79bf712a0 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -1299,6 +1299,10 @@ "commonMetadata": { "type": "CommonOperationMetadata", "id": 5 + }, + "questionId": { + "type": "string", + "id": 6 } } },