diff --git a/api_names_out.yaml b/api_names_out.yaml index d2af56388..b610f55d4 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -2403,6 +2403,7 @@ "/adexchangebuyer:v1.4/TargetingValue/demogAgeCriteriaValue": demog_age_criteria_value "/adexchangebuyer:v1.4/TargetingValue/demogGenderCriteriaValue": demog_gender_criteria_value "/adexchangebuyer:v1.4/TargetingValue/longValue": long_value +"/adexchangebuyer:v1.4/TargetingValue/requestPlatformTargetingValue": request_platform_targeting_value "/adexchangebuyer:v1.4/TargetingValue/stringValue": string_value "/adexchangebuyer:v1.4/TargetingValueCreativeSize": targeting_value_creative_size "/adexchangebuyer:v1.4/TargetingValueCreativeSize/allowedFormats": allowed_formats @@ -2429,6 +2430,9 @@ "/adexchangebuyer:v1.4/TargetingValueDemogGenderCriteria": targeting_value_demog_gender_criteria "/adexchangebuyer:v1.4/TargetingValueDemogGenderCriteria/demogGenderCriteriaIds": demog_gender_criteria_ids "/adexchangebuyer:v1.4/TargetingValueDemogGenderCriteria/demogGenderCriteriaIds/demog_gender_criteria_id": demog_gender_criteria_id +"/adexchangebuyer:v1.4/TargetingValueRequestPlatformTargeting": targeting_value_request_platform_targeting +"/adexchangebuyer:v1.4/TargetingValueRequestPlatformTargeting/requestPlatforms": request_platforms +"/adexchangebuyer:v1.4/TargetingValueRequestPlatformTargeting/requestPlatforms/request_platform": request_platform "/adexchangebuyer:v1.4/TargetingValueSize": targeting_value_size "/adexchangebuyer:v1.4/TargetingValueSize/height": height "/adexchangebuyer:v1.4/TargetingValueSize/width": width @@ -4568,6 +4572,7 @@ "/adsense:v1.4/adsense.accounts.adclients.getAdCode": get_account_adclient_ad_code "/adsense:v1.4/adsense.accounts.adclients.getAdCode/accountId": account_id "/adsense:v1.4/adsense.accounts.adclients.getAdCode/adClientId": ad_client_id +"/adsense:v1.4/adsense.accounts.adclients.getAdCode/tagPartner": tag_partner "/adsense:v1.4/adsense.accounts.adclients.list": list_account_ad_clients "/adsense:v1.4/adsense.accounts.adclients.list/accountId": account_id "/adsense:v1.4/adsense.accounts.adclients.list/maxResults": max_results @@ -10435,6 +10440,17 @@ "/apigee:v1/GoogleCloudApigeeV1AliasRevisionConfig/location": location "/apigee:v1/GoogleCloudApigeeV1AliasRevisionConfig/name": name "/apigee:v1/GoogleCloudApigeeV1AliasRevisionConfig/type": type +"/apigee:v1/GoogleCloudApigeeV1ApiCategory": google_cloud_apigee_v1_api_category +"/apigee:v1/GoogleCloudApigeeV1ApiCategory/data": data +"/apigee:v1/GoogleCloudApigeeV1ApiCategory/errorCode": error_code +"/apigee:v1/GoogleCloudApigeeV1ApiCategory/message": message +"/apigee:v1/GoogleCloudApigeeV1ApiCategory/requestId": request_id +"/apigee:v1/GoogleCloudApigeeV1ApiCategory/status": status +"/apigee:v1/GoogleCloudApigeeV1ApiCategoryData": google_cloud_apigee_v1_api_category_data +"/apigee:v1/GoogleCloudApigeeV1ApiCategoryData/id": id +"/apigee:v1/GoogleCloudApigeeV1ApiCategoryData/name": name +"/apigee:v1/GoogleCloudApigeeV1ApiCategoryData/siteId": site_id +"/apigee:v1/GoogleCloudApigeeV1ApiCategoryData/updateTime": update_time "/apigee:v1/GoogleCloudApigeeV1ApiProduct": google_cloud_apigee_v1_api_product "/apigee:v1/GoogleCloudApigeeV1ApiProduct/apiResources": api_resources "/apigee:v1/GoogleCloudApigeeV1ApiProduct/apiResources/api_resource": api_resource @@ -10499,6 +10515,11 @@ "/apigee:v1/GoogleCloudApigeeV1ApiProxyRevision/teams": teams "/apigee:v1/GoogleCloudApigeeV1ApiProxyRevision/teams/team": team "/apigee:v1/GoogleCloudApigeeV1ApiProxyRevision/type": type +"/apigee:v1/GoogleCloudApigeeV1ApiResponseWrapper": google_cloud_apigee_v1_api_response_wrapper +"/apigee:v1/GoogleCloudApigeeV1ApiResponseWrapper/errorCode": error_code +"/apigee:v1/GoogleCloudApigeeV1ApiResponseWrapper/message": message +"/apigee:v1/GoogleCloudApigeeV1ApiResponseWrapper/requestId": request_id +"/apigee:v1/GoogleCloudApigeeV1ApiResponseWrapper/status": status "/apigee:v1/GoogleCloudApigeeV1App": google_cloud_apigee_v1_app "/apigee:v1/GoogleCloudApigeeV1App/apiProducts": api_products "/apigee:v1/GoogleCloudApigeeV1App/apiProducts/api_product": api_product @@ -10854,6 +10875,7 @@ "/apigee:v1/GoogleCloudApigeeV1Instance/name": name "/apigee:v1/GoogleCloudApigeeV1Instance/port": port "/apigee:v1/GoogleCloudApigeeV1Instance/region": region +"/apigee:v1/GoogleCloudApigeeV1Instance/state": state "/apigee:v1/GoogleCloudApigeeV1InstanceAttachment": google_cloud_apigee_v1_instance_attachment "/apigee:v1/GoogleCloudApigeeV1InstanceAttachment/createdAt": created_at "/apigee:v1/GoogleCloudApigeeV1InstanceAttachment/environment": environment @@ -10886,6 +10908,13 @@ "/apigee:v1/GoogleCloudApigeeV1KeystoreConfig/aliases": aliases "/apigee:v1/GoogleCloudApigeeV1KeystoreConfig/aliases/alias": alias "/apigee:v1/GoogleCloudApigeeV1KeystoreConfig/name": name +"/apigee:v1/GoogleCloudApigeeV1ListApiCategoriesResponse": google_cloud_apigee_v1_list_api_categories_response +"/apigee:v1/GoogleCloudApigeeV1ListApiCategoriesResponse/data": data +"/apigee:v1/GoogleCloudApigeeV1ListApiCategoriesResponse/data/datum": datum +"/apigee:v1/GoogleCloudApigeeV1ListApiCategoriesResponse/errorCode": error_code +"/apigee:v1/GoogleCloudApigeeV1ListApiCategoriesResponse/message": message +"/apigee:v1/GoogleCloudApigeeV1ListApiCategoriesResponse/requestId": request_id +"/apigee:v1/GoogleCloudApigeeV1ListApiCategoriesResponse/status": status "/apigee:v1/GoogleCloudApigeeV1ListApiProductsResponse": google_cloud_apigee_v1_list_api_products_response "/apigee:v1/GoogleCloudApigeeV1ListApiProductsResponse/apiProduct": api_product "/apigee:v1/GoogleCloudApigeeV1ListApiProductsResponse/apiProduct/api_product": api_product @@ -11034,6 +11063,10 @@ "/apigee:v1/GoogleCloudApigeeV1Property": google_cloud_apigee_v1_property "/apigee:v1/GoogleCloudApigeeV1Property/name": name "/apigee:v1/GoogleCloudApigeeV1Property/value": value +"/apigee:v1/GoogleCloudApigeeV1ProvisionOrganizationRequest": google_cloud_apigee_v1_provision_organization_request +"/apigee:v1/GoogleCloudApigeeV1ProvisionOrganizationRequest/analyticsRegion": analytics_region +"/apigee:v1/GoogleCloudApigeeV1ProvisionOrganizationRequest/authorizedNetwork": authorized_network +"/apigee:v1/GoogleCloudApigeeV1ProvisionOrganizationRequest/runtimeLocation": runtime_location "/apigee:v1/GoogleCloudApigeeV1Query": google_cloud_apigee_v1_query "/apigee:v1/GoogleCloudApigeeV1Query/csvDelimiter": csv_delimiter "/apigee:v1/GoogleCloudApigeeV1Query/dimensions": dimensions @@ -11120,7 +11153,10 @@ "/apigee:v1/GoogleCloudApigeeV1RevisionStatus/revisionId": revision_id "/apigee:v1/GoogleCloudApigeeV1RoutingRule": google_cloud_apigee_v1_routing_rule "/apigee:v1/GoogleCloudApigeeV1RoutingRule/basepath": basepath +"/apigee:v1/GoogleCloudApigeeV1RoutingRule/envGroupRevision": env_group_revision "/apigee:v1/GoogleCloudApigeeV1RoutingRule/environment": environment +"/apigee:v1/GoogleCloudApigeeV1RoutingRule/receiver": receiver +"/apigee:v1/GoogleCloudApigeeV1RoutingRule/updateTime": update_time "/apigee:v1/GoogleCloudApigeeV1RuntimeTraceConfig": google_cloud_apigee_v1_runtime_trace_config "/apigee:v1/GoogleCloudApigeeV1RuntimeTraceConfig/endpoint": endpoint "/apigee:v1/GoogleCloudApigeeV1RuntimeTraceConfig/exporter": exporter @@ -11721,6 +11757,7 @@ "/apigee:v1/apigee.organizations.get/name": name "/apigee:v1/apigee.organizations.getDeployedIngressConfig": get_organization_deployed_ingress_config "/apigee:v1/apigee.organizations.getDeployedIngressConfig/name": name +"/apigee:v1/apigee.organizations.getDeployedIngressConfig/view": view "/apigee:v1/apigee.organizations.getSyncAuthorization": get_organization_sync_authorization "/apigee:v1/apigee.organizations.getSyncAuthorization/name": name "/apigee:v1/apigee.organizations.instances.attachments.create": create_organization_instance_attachment @@ -11795,8 +11832,20 @@ "/apigee:v1/apigee.organizations.sharedflows.revisions.updateSharedFlowRevision": update_organization_sharedflow_revision_shared_flow_revision "/apigee:v1/apigee.organizations.sharedflows.revisions.updateSharedFlowRevision/name": name "/apigee:v1/apigee.organizations.sharedflows.revisions.updateSharedFlowRevision/validate": validate +"/apigee:v1/apigee.organizations.sites.apicategories.create": create_organization_site_apicategory +"/apigee:v1/apigee.organizations.sites.apicategories.create/parent": parent +"/apigee:v1/apigee.organizations.sites.apicategories.delete": delete_organization_site_apicategory +"/apigee:v1/apigee.organizations.sites.apicategories.delete/name": name +"/apigee:v1/apigee.organizations.sites.apicategories.get": get_organization_site_apicategory +"/apigee:v1/apigee.organizations.sites.apicategories.get/name": name +"/apigee:v1/apigee.organizations.sites.apicategories.list": list_organization_site_apicategories +"/apigee:v1/apigee.organizations.sites.apicategories.list/parent": parent +"/apigee:v1/apigee.organizations.sites.apicategories.patch": patch_organization_site_apicategory +"/apigee:v1/apigee.organizations.sites.apicategories.patch/name": name "/apigee:v1/apigee.organizations.update": update_organization "/apigee:v1/apigee.organizations.update/name": name +"/apigee:v1/apigee.projects.provisionOrganization": provision_project_organization +"/apigee:v1/apigee.projects.provisionOrganization/project": project "/apigee:v1/fields": fields "/apigee:v1/key": key "/apigee:v1/quotaUser": quota_user @@ -16664,6 +16713,64 @@ "/bigtableadmin:v2/fields": fields "/bigtableadmin:v2/key": key "/bigtableadmin:v2/quotaUser": quota_user +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget": google_cloud_billing_budgets_v1_budget +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/amount": amount +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/budgetFilter": budget_filter +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/displayName": display_name +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/etag": etag +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/name": name +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/notificationsRule": notifications_rule +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/thresholdRules": threshold_rules +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Budget/thresholdRules/threshold_rule": threshold_rule +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1BudgetAmount": google_cloud_billing_budgets_v1_budget_amount +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1BudgetAmount/lastPeriodAmount": last_period_amount +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1BudgetAmount/specifiedAmount": specified_amount +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter": google_cloud_billing_budgets_v1_filter +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/creditTypesTreatment": credit_types_treatment +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/labels": labels +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/labels/label": label +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/labels/label/label": label +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/projects": projects +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/projects/project": project +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/services": services +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/services/service": service +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/subaccounts": subaccounts +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1Filter/subaccounts/subaccount": subaccount +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1LastPeriodAmount": google_cloud_billing_budgets_v1_last_period_amount +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1ListBudgetsResponse": google_cloud_billing_budgets_v1_list_budgets_response +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1ListBudgetsResponse/budgets": budgets +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1ListBudgetsResponse/budgets/budget": budget +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1ListBudgetsResponse/nextPageToken": next_page_token +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1NotificationsRule": google_cloud_billing_budgets_v1_notifications_rule +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1NotificationsRule/disableDefaultIamRecipients": disable_default_iam_recipients +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1NotificationsRule/monitoringNotificationChannels": monitoring_notification_channels +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1NotificationsRule/monitoringNotificationChannels/monitoring_notification_channel": monitoring_notification_channel +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1NotificationsRule/pubsubTopic": pubsub_topic +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1NotificationsRule/schemaVersion": schema_version +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1ThresholdRule": google_cloud_billing_budgets_v1_threshold_rule +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1ThresholdRule/spendBasis": spend_basis +"/billingbudgets:v1/GoogleCloudBillingBudgetsV1ThresholdRule/thresholdPercent": threshold_percent +"/billingbudgets:v1/GoogleProtobufEmpty": google_protobuf_empty +"/billingbudgets:v1/GoogleTypeMoney": google_type_money +"/billingbudgets:v1/GoogleTypeMoney/currencyCode": currency_code +"/billingbudgets:v1/GoogleTypeMoney/nanos": nanos +"/billingbudgets:v1/GoogleTypeMoney/units": units +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.create": create_billing_account_budget +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.create/parent": parent +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.delete": delete_billing_account_budget +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.delete/name": name +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.get": get_billing_account_budget +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.get/name": name +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.list": list_billing_account_budgets +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.list/pageSize": page_size +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.list/pageToken": page_token +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.list/parent": parent +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.patch": patch_billing_account_budget +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.patch/name": name +"/billingbudgets:v1/billingbudgets.billingAccounts.budgets.patch/updateMask": update_mask +"/billingbudgets:v1/fields": fields +"/billingbudgets:v1/key": key +"/billingbudgets:v1/quotaUser": quota_user "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": google_cloud_billing_budgets_v1beta1_all_updates_rule "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/disableDefaultIamRecipients": disable_default_iam_recipients "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/monitoringNotificationChannels": monitoring_notification_channels @@ -94933,6 +95040,855 @@ "/documentai:v1beta2/fields": fields "/documentai:v1beta2/key": key "/documentai:v1beta2/quotaUser": quota_user +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata": google_cloud_documentai_uiv1beta3_create_labeler_pool_operation_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata": google_cloud_documentai_uiv1beta3_create_processor_version_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata": google_cloud_documentai_uiv1beta3_delete_labeler_pool_operation_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata": google_cloud_documentai_uiv1beta3_delete_processor_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata": google_cloud_documentai_uiv1beta3_disable_processor_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse": google_cloud_documentai_uiv1beta3_disable_processor_response +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata": google_cloud_documentai_uiv1beta3_enable_processor_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse": google_cloud_documentai_uiv1beta3_enable_processor_response +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata": google_cloud_documentai_uiv1beta3_update_labeler_pool_operation_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse": google_cloud_documentai_v1beta1_batch_process_documents_response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses": responses +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses/response": response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BoundingPoly": google_cloud_documentai_v1beta1_bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BoundingPoly/normalizedVertices": normalized_vertices +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BoundingPoly/vertices": vertices +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1BoundingPoly/vertices/vertex": vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document": google_cloud_documentai_v1beta1_document +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/entities": entities +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/entities/entity": entity +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/entityRelations": entity_relations +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/entityRelations/entity_relation": entity_relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/error": error +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/pages": pages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/pages/page": page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/revisions": revisions +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/revisions/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/shardInfo": shard_info +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/text": text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/textChanges": text_changes +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/textChanges/text_change": text_change +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/textStyles": text_styles +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/textStyles/text_style": text_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/translations": translations +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/translations/translation": translation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Document/uri": uri +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity": google_cloud_documentai_v1beta1_document_entity +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/mentionId": mention_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/mentionText": mention_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/normalizedValue": normalized_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/pageAnchor": page_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/properties": properties +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/properties/property": property +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/redacted": redacted +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntity/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue": google_cloud_documentai_v1beta1_document_entity_normalized_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/addressValue": address_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/dateValue": date_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/datetimeValue": datetime_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/moneyValue": money_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/text": text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityRelation": google_cloud_documentai_v1beta1_document_entity_relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityRelation/objectId": object_id_prop +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityRelation/relation": relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentEntityRelation/subjectId": subject_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage": google_cloud_documentai_v1beta1_document_page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/blocks": blocks +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/blocks/block": block +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/dimension": dimension +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/formFields": form_fields +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/formFields/form_field": form_field +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/image": image +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/lines": lines +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/lines/line": line +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/pageNumber": page_number +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/paragraphs": paragraphs +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/paragraphs/paragraph": paragraph +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/tables": tables +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/tables/table": table +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/tokens": tokens +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/tokens/token": token +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/transforms": transforms +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/transforms/transform": transform +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/visualElements": visual_elements +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPage/visualElements/visual_element": visual_element +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchor": google_cloud_documentai_v1beta1_document_page_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchor/pageRefs": page_refs +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchor/pageRefs/page_ref": page_ref +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef": google_cloud_documentai_v1beta1_document_page_anchor_page_ref +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef/boundingPoly": bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef/layoutId": layout_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef/layoutType": layout_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef/page": page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageBlock": google_cloud_documentai_v1beta1_document_page_block +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageBlock/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageBlock/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageBlock/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageBlock/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage": google_cloud_documentai_v1beta1_document_page_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage/languageCode": language_code +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageDimension": google_cloud_documentai_v1beta1_document_page_dimension +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageDimension/height": height +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageDimension/unit": unit +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageDimension/width": width +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField": google_cloud_documentai_v1beta1_document_page_form_field +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField/fieldName": field_name +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField/fieldValue": field_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField/nameDetectedLanguages": name_detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField/nameDetectedLanguages/name_detected_language": name_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField/valueDetectedLanguages": value_detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField/valueDetectedLanguages/value_detected_language": value_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageFormField/valueType": value_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageImage": google_cloud_documentai_v1beta1_document_page_image +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageImage/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageImage/height": height +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageImage/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageImage/width": width +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLayout": google_cloud_documentai_v1beta1_document_page_layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLayout/boundingPoly": bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLayout/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLayout/orientation": orientation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLayout/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLine": google_cloud_documentai_v1beta1_document_page_line +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLine/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLine/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLine/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageLine/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageMatrix": google_cloud_documentai_v1beta1_document_page_matrix +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageMatrix/cols": cols +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageMatrix/data": data +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageMatrix/rows": rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageMatrix/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageParagraph": google_cloud_documentai_v1beta1_document_page_paragraph +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageParagraph/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageParagraph/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageParagraph/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageParagraph/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable": google_cloud_documentai_v1beta1_document_page_table +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable/bodyRows": body_rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable/bodyRows/body_row": body_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable/headerRows": header_rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable/headerRows/header_row": header_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTable/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell": google_cloud_documentai_v1beta1_document_page_table_table_cell +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell/colSpan": col_span +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell/rowSpan": row_span +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow": google_cloud_documentai_v1beta1_document_page_table_table_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow/cells": cells +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow/cells/cell": cell +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageToken": google_cloud_documentai_v1beta1_document_page_token +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageToken/detectedBreak": detected_break +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageToken/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageToken/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageToken/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageToken/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak": google_cloud_documentai_v1beta1_document_page_token_detected_break +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageVisualElement": google_cloud_documentai_v1beta1_document_page_visual_element +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageVisualElement/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageVisualElement/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageVisualElement/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentPageVisualElement/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenance": google_cloud_documentai_v1beta1_document_provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenance/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenance/parents": parents +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenance/parents/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenance/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenance/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenanceParent": google_cloud_documentai_v1beta1_document_provenance_parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenanceParent/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentProvenanceParent/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision": google_cloud_documentai_v1beta1_document_revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision/agent": agent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision/humanReview": human_review +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision/parent/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevision/processor": processor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview": google_cloud_documentai_v1beta1_document_revision_human_review +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentShardInfo": google_cloud_documentai_v1beta1_document_shard_info +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentShardInfo/shardCount": shard_count +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentShardInfo/shardIndex": shard_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentShardInfo/textOffset": text_offset +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle": google_cloud_documentai_v1beta1_document_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle/backgroundColor": background_color +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle/color": color +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle/fontSize": font_size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle/fontWeight": font_weight +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle/textDecoration": text_decoration +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyle/textStyle": text_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyleFontSize": google_cloud_documentai_v1beta1_document_style_font_size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyleFontSize/size": size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentStyleFontSize/unit": unit +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextAnchor": google_cloud_documentai_v1beta1_document_text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextAnchor/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextAnchor/textSegments": text_segments +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextAnchor/textSegments/text_segment": text_segment +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment": google_cloud_documentai_v1beta1_document_text_anchor_text_segment +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment/endIndex": end_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment/startIndex": start_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextChange": google_cloud_documentai_v1beta1_document_text_change +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextChange/changedText": changed_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextChange/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextChange/provenance/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTextChange/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTranslation": google_cloud_documentai_v1beta1_document_translation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTranslation/languageCode": language_code +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTranslation/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTranslation/provenance/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTranslation/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1DocumentTranslation/translatedText": translated_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1GcsDestination": google_cloud_documentai_v1beta1_gcs_destination +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1GcsDestination/uri": uri +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1GcsSource": google_cloud_documentai_v1beta1_gcs_source +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1GcsSource/uri": uri +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1InputConfig": google_cloud_documentai_v1beta1_input_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1InputConfig/gcsSource": gcs_source +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1InputConfig/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1NormalizedVertex": google_cloud_documentai_v1beta1_normalized_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1NormalizedVertex/x": x +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1NormalizedVertex/y": y +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OperationMetadata": google_cloud_documentai_v1beta1_operation_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OperationMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OperationMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OperationMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OperationMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OutputConfig": google_cloud_documentai_v1beta1_output_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OutputConfig/gcsDestination": gcs_destination +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1OutputConfig/pagesPerShard": pages_per_shard +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1ProcessDocumentResponse": google_cloud_documentai_v1beta1_process_document_response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1ProcessDocumentResponse/inputConfig": input_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1ProcessDocumentResponse/outputConfig": output_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Vertex": google_cloud_documentai_v1beta1_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Vertex/x": x +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta1Vertex/y": y +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse": google_cloud_documentai_v1beta2_batch_process_documents_response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse/responses": responses +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse/responses/response": response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BoundingPoly": google_cloud_documentai_v1beta2_bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BoundingPoly/normalizedVertices": normalized_vertices +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BoundingPoly/vertices": vertices +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2BoundingPoly/vertices/vertex": vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document": google_cloud_documentai_v1beta2_document +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/entities": entities +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/entities/entity": entity +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/entityRelations": entity_relations +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/entityRelations/entity_relation": entity_relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/error": error +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/labels": labels +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/labels/label": label +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/pages": pages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/pages/page": page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/revisions": revisions +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/revisions/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/shardInfo": shard_info +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/text": text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/textChanges": text_changes +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/textChanges/text_change": text_change +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/textStyles": text_styles +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/textStyles/text_style": text_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/translations": translations +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/translations/translation": translation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Document/uri": uri +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity": google_cloud_documentai_v1beta2_document_entity +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/mentionId": mention_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/mentionText": mention_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/normalizedValue": normalized_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/pageAnchor": page_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/properties": properties +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/properties/property": property +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/redacted": redacted +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntity/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue": google_cloud_documentai_v1beta2_document_entity_normalized_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/addressValue": address_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/dateValue": date_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/datetimeValue": datetime_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/moneyValue": money_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/text": text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityRelation": google_cloud_documentai_v1beta2_document_entity_relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityRelation/objectId": object_id_prop +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityRelation/relation": relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentEntityRelation/subjectId": subject_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentLabel": google_cloud_documentai_v1beta2_document_label +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentLabel/automlModel": automl_model +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentLabel/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentLabel/name": name +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage": google_cloud_documentai_v1beta2_document_page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/blocks": blocks +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/blocks/block": block +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/dimension": dimension +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/formFields": form_fields +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/formFields/form_field": form_field +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/image": image +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/lines": lines +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/lines/line": line +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/pageNumber": page_number +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/paragraphs": paragraphs +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/paragraphs/paragraph": paragraph +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/tables": tables +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/tables/table": table +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/tokens": tokens +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/tokens/token": token +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/transforms": transforms +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/transforms/transform": transform +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/visualElements": visual_elements +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPage/visualElements/visual_element": visual_element +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchor": google_cloud_documentai_v1beta2_document_page_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchor/pageRefs": page_refs +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchor/pageRefs/page_ref": page_ref +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef": google_cloud_documentai_v1beta2_document_page_anchor_page_ref +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef/boundingPoly": bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef/layoutId": layout_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef/layoutType": layout_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef/page": page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageBlock": google_cloud_documentai_v1beta2_document_page_block +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageBlock/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageBlock/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageBlock/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageBlock/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage": google_cloud_documentai_v1beta2_document_page_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage/languageCode": language_code +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageDimension": google_cloud_documentai_v1beta2_document_page_dimension +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageDimension/height": height +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageDimension/unit": unit +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageDimension/width": width +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField": google_cloud_documentai_v1beta2_document_page_form_field +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField/fieldName": field_name +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField/fieldValue": field_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField/nameDetectedLanguages": name_detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField/nameDetectedLanguages/name_detected_language": name_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField/valueDetectedLanguages": value_detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField/valueDetectedLanguages/value_detected_language": value_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageFormField/valueType": value_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageImage": google_cloud_documentai_v1beta2_document_page_image +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageImage/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageImage/height": height +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageImage/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageImage/width": width +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLayout": google_cloud_documentai_v1beta2_document_page_layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLayout/boundingPoly": bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLayout/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLayout/orientation": orientation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLayout/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLine": google_cloud_documentai_v1beta2_document_page_line +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLine/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLine/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLine/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageLine/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageMatrix": google_cloud_documentai_v1beta2_document_page_matrix +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageMatrix/cols": cols +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageMatrix/data": data +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageMatrix/rows": rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageMatrix/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageParagraph": google_cloud_documentai_v1beta2_document_page_paragraph +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageParagraph/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageParagraph/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageParagraph/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageParagraph/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable": google_cloud_documentai_v1beta2_document_page_table +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable/bodyRows": body_rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable/bodyRows/body_row": body_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable/headerRows": header_rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable/headerRows/header_row": header_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTable/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell": google_cloud_documentai_v1beta2_document_page_table_table_cell +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell/colSpan": col_span +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell/rowSpan": row_span +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow": google_cloud_documentai_v1beta2_document_page_table_table_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow/cells": cells +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow/cells/cell": cell +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageToken": google_cloud_documentai_v1beta2_document_page_token +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageToken/detectedBreak": detected_break +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageToken/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageToken/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageToken/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageToken/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak": google_cloud_documentai_v1beta2_document_page_token_detected_break +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageVisualElement": google_cloud_documentai_v1beta2_document_page_visual_element +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageVisualElement/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageVisualElement/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageVisualElement/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentPageVisualElement/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenance": google_cloud_documentai_v1beta2_document_provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenance/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenance/parents": parents +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenance/parents/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenance/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenance/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenanceParent": google_cloud_documentai_v1beta2_document_provenance_parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenanceParent/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentProvenanceParent/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision": google_cloud_documentai_v1beta2_document_revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision/agent": agent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision/humanReview": human_review +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision/parent/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevision/processor": processor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview": google_cloud_documentai_v1beta2_document_revision_human_review +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentShardInfo": google_cloud_documentai_v1beta2_document_shard_info +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentShardInfo/shardCount": shard_count +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentShardInfo/shardIndex": shard_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentShardInfo/textOffset": text_offset +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle": google_cloud_documentai_v1beta2_document_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle/backgroundColor": background_color +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle/color": color +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle/fontSize": font_size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle/fontWeight": font_weight +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle/textDecoration": text_decoration +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyle/textStyle": text_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyleFontSize": google_cloud_documentai_v1beta2_document_style_font_size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyleFontSize/size": size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentStyleFontSize/unit": unit +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextAnchor": google_cloud_documentai_v1beta2_document_text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextAnchor/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextAnchor/textSegments": text_segments +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextAnchor/textSegments/text_segment": text_segment +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment": google_cloud_documentai_v1beta2_document_text_anchor_text_segment +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment/endIndex": end_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment/startIndex": start_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextChange": google_cloud_documentai_v1beta2_document_text_change +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextChange/changedText": changed_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextChange/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextChange/provenance/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTextChange/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTranslation": google_cloud_documentai_v1beta2_document_translation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTranslation/languageCode": language_code +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTranslation/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTranslation/provenance/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTranslation/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2DocumentTranslation/translatedText": translated_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2GcsDestination": google_cloud_documentai_v1beta2_gcs_destination +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2GcsDestination/uri": uri +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2GcsSource": google_cloud_documentai_v1beta2_gcs_source +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2GcsSource/uri": uri +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2InputConfig": google_cloud_documentai_v1beta2_input_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2InputConfig/contents": contents +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2InputConfig/gcsSource": gcs_source +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2InputConfig/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2NormalizedVertex": google_cloud_documentai_v1beta2_normalized_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2NormalizedVertex/x": x +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2NormalizedVertex/y": y +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OperationMetadata": google_cloud_documentai_v1beta2_operation_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OperationMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OperationMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OperationMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OperationMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OutputConfig": google_cloud_documentai_v1beta2_output_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OutputConfig/gcsDestination": gcs_destination +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2OutputConfig/pagesPerShard": pages_per_shard +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2ProcessDocumentResponse": google_cloud_documentai_v1beta2_process_document_response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2ProcessDocumentResponse/inputConfig": input_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2ProcessDocumentResponse/outputConfig": output_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Vertex": google_cloud_documentai_v1beta2_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Vertex/x": x +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta2Vertex/y": y +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadata": google_cloud_documentai_v1beta3_batch_process_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/individualProcessStatuses": individual_process_statuses +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/individualProcessStatuses/individual_process_status": individual_process_status +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus": google_cloud_documentai_v1beta3_batch_process_metadata_individual_process_status +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/humanReviewOperation": human_review_operation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/inputGcsSource": input_gcs_source +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/outputGcsDestination": output_gcs_destination +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/status": status +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequest": google_cloud_documentai_v1beta3_batch_process_request +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequest/inputConfigs": input_configs +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequest/inputConfigs/input_config": input_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequest/outputConfig": output_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig": google_cloud_documentai_v1beta3_batch_process_request_batch_input_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig/gcsSource": gcs_source +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig": google_cloud_documentai_v1beta3_batch_process_request_batch_output_config +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig/gcsDestination": gcs_destination +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BatchProcessResponse": google_cloud_documentai_v1beta3_batch_process_response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BoundingPoly": google_cloud_documentai_v1beta3_bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BoundingPoly/normalizedVertices": normalized_vertices +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BoundingPoly/vertices": vertices +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3BoundingPoly/vertices/vertex": vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document": google_cloud_documentai_v1beta3_document +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/entities": entities +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/entities/entity": entity +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/entityRelations": entity_relations +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/entityRelations/entity_relation": entity_relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/error": error +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/pages": pages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/pages/page": page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/revisions": revisions +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/revisions/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/shardInfo": shard_info +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/text": text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/textChanges": text_changes +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/textChanges/text_change": text_change +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/textStyles": text_styles +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/textStyles/text_style": text_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/translations": translations +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/translations/translation": translation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Document/uri": uri +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity": google_cloud_documentai_v1beta3_document_entity +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/mentionId": mention_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/mentionText": mention_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/normalizedValue": normalized_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/pageAnchor": page_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/properties": properties +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/properties/property": property +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/redacted": redacted +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntity/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue": google_cloud_documentai_v1beta3_document_entity_normalized_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue/addressValue": address_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue/dateValue": date_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue/datetimeValue": datetime_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue/moneyValue": money_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue/text": text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityRelation": google_cloud_documentai_v1beta3_document_entity_relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityRelation/objectId": object_id_prop +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityRelation/relation": relation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentEntityRelation/subjectId": subject_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage": google_cloud_documentai_v1beta3_document_page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/blocks": blocks +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/blocks/block": block +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/dimension": dimension +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/formFields": form_fields +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/formFields/form_field": form_field +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/image": image +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/lines": lines +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/lines/line": line +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/pageNumber": page_number +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/paragraphs": paragraphs +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/paragraphs/paragraph": paragraph +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/tables": tables +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/tables/table": table +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/tokens": tokens +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/tokens/token": token +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/transforms": transforms +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/transforms/transform": transform +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/visualElements": visual_elements +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPage/visualElements/visual_element": visual_element +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchor": google_cloud_documentai_v1beta3_document_page_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchor/pageRefs": page_refs +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchor/pageRefs/page_ref": page_ref +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef": google_cloud_documentai_v1beta3_document_page_anchor_page_ref +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef/boundingPoly": bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef/layoutId": layout_id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef/layoutType": layout_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef/page": page +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageBlock": google_cloud_documentai_v1beta3_document_page_block +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageBlock/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageBlock/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageBlock/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageBlock/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage": google_cloud_documentai_v1beta3_document_page_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage/languageCode": language_code +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageDimension": google_cloud_documentai_v1beta3_document_page_dimension +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageDimension/height": height +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageDimension/unit": unit +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageDimension/width": width +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField": google_cloud_documentai_v1beta3_document_page_form_field +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField/fieldName": field_name +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField/fieldValue": field_value +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField/nameDetectedLanguages": name_detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField/nameDetectedLanguages/name_detected_language": name_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField/valueDetectedLanguages": value_detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField/valueDetectedLanguages/value_detected_language": value_detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageFormField/valueType": value_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageImage": google_cloud_documentai_v1beta3_document_page_image +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageImage/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageImage/height": height +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageImage/mimeType": mime_type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageImage/width": width +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLayout": google_cloud_documentai_v1beta3_document_page_layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLayout/boundingPoly": bounding_poly +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLayout/confidence": confidence +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLayout/orientation": orientation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLayout/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLine": google_cloud_documentai_v1beta3_document_page_line +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLine/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLine/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLine/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageLine/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageMatrix": google_cloud_documentai_v1beta3_document_page_matrix +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageMatrix/cols": cols +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageMatrix/data": data +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageMatrix/rows": rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageMatrix/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageParagraph": google_cloud_documentai_v1beta3_document_page_paragraph +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageParagraph/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageParagraph/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageParagraph/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageParagraph/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable": google_cloud_documentai_v1beta3_document_page_table +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable/bodyRows": body_rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable/bodyRows/body_row": body_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable/headerRows": header_rows +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable/headerRows/header_row": header_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTable/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell": google_cloud_documentai_v1beta3_document_page_table_table_cell +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell/colSpan": col_span +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell/rowSpan": row_span +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow": google_cloud_documentai_v1beta3_document_page_table_table_row +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow/cells": cells +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow/cells/cell": cell +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageToken": google_cloud_documentai_v1beta3_document_page_token +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageToken/detectedBreak": detected_break +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageToken/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageToken/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageToken/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageToken/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak": google_cloud_documentai_v1beta3_document_page_token_detected_break +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageVisualElement": google_cloud_documentai_v1beta3_document_page_visual_element +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageVisualElement/detectedLanguages": detected_languages +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageVisualElement/detectedLanguages/detected_language": detected_language +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageVisualElement/layout": layout +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentPageVisualElement/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenance": google_cloud_documentai_v1beta3_document_provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenance/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenance/parents": parents +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenance/parents/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenance/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenance/type": type +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenanceParent": google_cloud_documentai_v1beta3_document_provenance_parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenanceParent/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentProvenanceParent/revision": revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision": google_cloud_documentai_v1beta3_document_revision +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision/agent": agent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision/humanReview": human_review +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision/id": id +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision/parent/parent": parent +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevision/processor": processor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview": google_cloud_documentai_v1beta3_document_revision_human_review +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentShardInfo": google_cloud_documentai_v1beta3_document_shard_info +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentShardInfo/shardCount": shard_count +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentShardInfo/shardIndex": shard_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentShardInfo/textOffset": text_offset +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle": google_cloud_documentai_v1beta3_document_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle/backgroundColor": background_color +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle/color": color +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle/fontSize": font_size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle/fontWeight": font_weight +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle/textDecoration": text_decoration +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyle/textStyle": text_style +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyleFontSize": google_cloud_documentai_v1beta3_document_style_font_size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyleFontSize/size": size +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentStyleFontSize/unit": unit +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextAnchor": google_cloud_documentai_v1beta3_document_text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextAnchor/content": content +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextAnchor/textSegments": text_segments +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextAnchor/textSegments/text_segment": text_segment +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment": google_cloud_documentai_v1beta3_document_text_anchor_text_segment +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment/endIndex": end_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment/startIndex": start_index +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextChange": google_cloud_documentai_v1beta3_document_text_change +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextChange/changedText": changed_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextChange/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextChange/provenance/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTextChange/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTranslation": google_cloud_documentai_v1beta3_document_translation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTranslation/languageCode": language_code +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTranslation/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTranslation/provenance/provenance": provenance +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTranslation/textAnchor": text_anchor +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3DocumentTranslation/translatedText": translated_text +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3NormalizedVertex": google_cloud_documentai_v1beta3_normalized_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3NormalizedVertex/x": x +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3NormalizedVertex/y": y +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessRequest": google_cloud_documentai_v1beta3_process_request +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessRequest/document": document +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessRequest/skipHumanReview": skip_human_review +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessResponse": google_cloud_documentai_v1beta3_process_response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessResponse/document": document +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessResponse/humanReviewOperation": human_review_operation +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata": google_cloud_documentai_v1beta3_review_document_operation_metadata +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/createTime": create_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/state": state +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/stateMessage": state_message +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/updateTime": update_time +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentRequest": google_cloud_documentai_v1beta3_review_document_request +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentRequest/document": document +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentResponse": google_cloud_documentai_v1beta3_review_document_response +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ReviewDocumentResponse/gcsDestination": gcs_destination +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Vertex": google_cloud_documentai_v1beta3_vertex +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Vertex/x": x +"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3Vertex/y": y +"/documentai:v1beta3/GoogleCloudLocationListLocationsResponse": google_cloud_location_list_locations_response +"/documentai:v1beta3/GoogleCloudLocationListLocationsResponse/locations": locations +"/documentai:v1beta3/GoogleCloudLocationListLocationsResponse/locations/location": location +"/documentai:v1beta3/GoogleCloudLocationListLocationsResponse/nextPageToken": next_page_token +"/documentai:v1beta3/GoogleCloudLocationLocation": google_cloud_location_location +"/documentai:v1beta3/GoogleCloudLocationLocation/displayName": display_name +"/documentai:v1beta3/GoogleCloudLocationLocation/labels": labels +"/documentai:v1beta3/GoogleCloudLocationLocation/labels/label": label +"/documentai:v1beta3/GoogleCloudLocationLocation/locationId": location_id +"/documentai:v1beta3/GoogleCloudLocationLocation/metadata": metadata +"/documentai:v1beta3/GoogleCloudLocationLocation/metadata/metadatum": metadatum +"/documentai:v1beta3/GoogleCloudLocationLocation/name": name +"/documentai:v1beta3/GoogleLongrunningOperation": google_longrunning_operation +"/documentai:v1beta3/GoogleLongrunningOperation/done": done +"/documentai:v1beta3/GoogleLongrunningOperation/error": error +"/documentai:v1beta3/GoogleLongrunningOperation/metadata": metadata +"/documentai:v1beta3/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/documentai:v1beta3/GoogleLongrunningOperation/name": name +"/documentai:v1beta3/GoogleLongrunningOperation/response": response +"/documentai:v1beta3/GoogleLongrunningOperation/response/response": response +"/documentai:v1beta3/GoogleProtobufEmpty": google_protobuf_empty +"/documentai:v1beta3/GoogleRpcStatus": google_rpc_status +"/documentai:v1beta3/GoogleRpcStatus/code": code +"/documentai:v1beta3/GoogleRpcStatus/details": details +"/documentai:v1beta3/GoogleRpcStatus/details/detail": detail +"/documentai:v1beta3/GoogleRpcStatus/details/detail/detail": detail +"/documentai:v1beta3/GoogleRpcStatus/message": message +"/documentai:v1beta3/GoogleTypeColor": google_type_color +"/documentai:v1beta3/GoogleTypeColor/alpha": alpha +"/documentai:v1beta3/GoogleTypeColor/blue": blue +"/documentai:v1beta3/GoogleTypeColor/green": green +"/documentai:v1beta3/GoogleTypeColor/red": red +"/documentai:v1beta3/GoogleTypeDate": google_type_date +"/documentai:v1beta3/GoogleTypeDate/day": day +"/documentai:v1beta3/GoogleTypeDate/month": month +"/documentai:v1beta3/GoogleTypeDate/year": year +"/documentai:v1beta3/GoogleTypeDateTime": google_type_date_time +"/documentai:v1beta3/GoogleTypeDateTime/day": day +"/documentai:v1beta3/GoogleTypeDateTime/hours": hours +"/documentai:v1beta3/GoogleTypeDateTime/minutes": minutes +"/documentai:v1beta3/GoogleTypeDateTime/month": month +"/documentai:v1beta3/GoogleTypeDateTime/nanos": nanos +"/documentai:v1beta3/GoogleTypeDateTime/seconds": seconds +"/documentai:v1beta3/GoogleTypeDateTime/timeZone": time_zone +"/documentai:v1beta3/GoogleTypeDateTime/utcOffset": utc_offset +"/documentai:v1beta3/GoogleTypeDateTime/year": year +"/documentai:v1beta3/GoogleTypeMoney": google_type_money +"/documentai:v1beta3/GoogleTypeMoney/currencyCode": currency_code +"/documentai:v1beta3/GoogleTypeMoney/nanos": nanos +"/documentai:v1beta3/GoogleTypeMoney/units": units +"/documentai:v1beta3/GoogleTypePostalAddress": google_type_postal_address +"/documentai:v1beta3/GoogleTypePostalAddress/addressLines": address_lines +"/documentai:v1beta3/GoogleTypePostalAddress/addressLines/address_line": address_line +"/documentai:v1beta3/GoogleTypePostalAddress/administrativeArea": administrative_area +"/documentai:v1beta3/GoogleTypePostalAddress/languageCode": language_code +"/documentai:v1beta3/GoogleTypePostalAddress/locality": locality +"/documentai:v1beta3/GoogleTypePostalAddress/organization": organization +"/documentai:v1beta3/GoogleTypePostalAddress/postalCode": postal_code +"/documentai:v1beta3/GoogleTypePostalAddress/recipients": recipients +"/documentai:v1beta3/GoogleTypePostalAddress/recipients/recipient": recipient +"/documentai:v1beta3/GoogleTypePostalAddress/regionCode": region_code +"/documentai:v1beta3/GoogleTypePostalAddress/revision": revision +"/documentai:v1beta3/GoogleTypePostalAddress/sortingCode": sorting_code +"/documentai:v1beta3/GoogleTypePostalAddress/sublocality": sublocality +"/documentai:v1beta3/GoogleTypeTimeZone": google_type_time_zone +"/documentai:v1beta3/GoogleTypeTimeZone/id": id +"/documentai:v1beta3/GoogleTypeTimeZone/version": version +"/documentai:v1beta3/documentai.projects.locations.get": get_project_location +"/documentai:v1beta3/documentai.projects.locations.get/name": name +"/documentai:v1beta3/documentai.projects.locations.list": list_project_locations +"/documentai:v1beta3/documentai.projects.locations.list/filter": filter +"/documentai:v1beta3/documentai.projects.locations.list/name": name +"/documentai:v1beta3/documentai.projects.locations.list/pageSize": page_size +"/documentai:v1beta3/documentai.projects.locations.list/pageToken": page_token +"/documentai:v1beta3/documentai.projects.locations.operations.get": get_project_location_operation +"/documentai:v1beta3/documentai.projects.locations.operations.get/name": name +"/documentai:v1beta3/documentai.projects.locations.processors.batchProcess": batch_project_location_processor_process +"/documentai:v1beta3/documentai.projects.locations.processors.batchProcess/name": name +"/documentai:v1beta3/documentai.projects.locations.processors.humanReviewConfig.reviewDocument": review_project_location_processor_human_review_config_document +"/documentai:v1beta3/documentai.projects.locations.processors.humanReviewConfig.reviewDocument/humanReviewConfig": human_review_config +"/documentai:v1beta3/documentai.projects.locations.processors.process": process_project_location_processor +"/documentai:v1beta3/documentai.projects.locations.processors.process/name": name +"/documentai:v1beta3/fields": fields +"/documentai:v1beta3/key": key +"/documentai:v1beta3/quotaUser": quota_user "/domainsrdap:v1/HttpBody": http_body "/domainsrdap:v1/HttpBody/contentType": content_type "/domainsrdap:v1/HttpBody/data": data @@ -105939,6 +106895,7 @@ "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination/force": force "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination/schemaType": schema_type "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination/tableUri": table_uri +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination/writeDisposition": write_disposition "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationGcsDestination": google_cloud_healthcare_v1beta1_annotation_gcs_destination "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationGcsDestination/uriPrefix": uri_prefix "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1AnnotationGcsSource": google_cloud_healthcare_v1beta1_annotation_gcs_source @@ -105957,6 +106914,7 @@ "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DicomBigQueryDestination": google_cloud_healthcare_v1beta1_dicom_big_query_destination "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DicomBigQueryDestination/force": force "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DicomBigQueryDestination/tableUri": table_uri +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DicomBigQueryDestination/writeDisposition": write_disposition "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DicomGcsDestination": google_cloud_healthcare_v1beta1_dicom_gcs_destination "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DicomGcsDestination/mimeType": mime_type "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1DicomGcsDestination/uriPrefix": uri_prefix @@ -105968,6 +106926,13 @@ "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirBigQueryDestination/datasetUri": dataset_uri "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirBigQueryDestination/force": force "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirBigQueryDestination/schemaConfig": schema_config +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirBigQueryDestination/writeDisposition": write_disposition +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirExportResourcesResponse": google_cloud_healthcare_v1beta1_fhir_export_resources_response +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirGcsDestination": google_cloud_healthcare_v1beta1_fhir_gcs_destination +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirGcsDestination/uriPrefix": uri_prefix +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirGcsSource": google_cloud_healthcare_v1beta1_fhir_gcs_source +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirGcsSource/uri": uri +"/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirImportResourcesResponse": google_cloud_healthcare_v1beta1_fhir_import_resources_response "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails": google_cloud_healthcare_v1beta1_fhir_rest_export_resources_error_details "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails/errorCount": error_count "/healthcare:v1beta1/GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails/fhirStore": fhir_store @@ -106319,8 +107284,10 @@ "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.delete/name": name "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.evaluate": evaluate_annotation_store "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.evaluate/evalStore": eval_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.evaluate/name": name "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.export": export_annotation_store_annotations "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.export/annotationStore": annotation_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.export/name": name "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.get": get_project_location_dataset_annotation_store "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.get/name": name "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.getIamPolicy": get_project_location_dataset_annotation_store_iam_policy @@ -106328,6 +107295,7 @@ "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.getIamPolicy/resource": resource "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.import": import_annotation_store_annotations "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.import/annotationStore": annotation_store +"/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.import/name": name "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.list": list_project_location_dataset_annotation_stores "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.list/filter": filter "/healthcare:v1beta1/healthcare.projects.locations.datasets.annotationStores.list/pageSize": page_size diff --git a/generated/google/apis/adexchangebuyer_v1_4.rb b/generated/google/apis/adexchangebuyer_v1_4.rb index c97be2969..d27a8cf4f 100644 --- a/generated/google/apis/adexchangebuyer_v1_4.rb +++ b/generated/google/apis/adexchangebuyer_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_4 VERSION = 'V1_4' - REVISION = '20200826' + REVISION = '20201004' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer_v1_4/classes.rb b/generated/google/apis/adexchangebuyer_v1_4/classes.rb index 64beef97f..4e5200eb8 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/classes.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/classes.rb @@ -3544,6 +3544,11 @@ module Google # @return [Fixnum] attr_accessor :long_value + # + # Corresponds to the JSON property `requestPlatformTargetingValue` + # @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueRequestPlatformTargeting] + attr_accessor :request_platform_targeting_value + # The string value to exclude/include. # Corresponds to the JSON property `stringValue` # @return [String] @@ -3560,6 +3565,7 @@ module Google @demog_age_criteria_value = args[:demog_age_criteria_value] if args.key?(:demog_age_criteria_value) @demog_gender_criteria_value = args[:demog_gender_criteria_value] if args.key?(:demog_gender_criteria_value) @long_value = args[:long_value] if args.key?(:long_value) + @request_platform_targeting_value = args[:request_platform_targeting_value] if args.key?(:request_platform_targeting_value) @string_value = args[:string_value] if args.key?(:string_value) end end @@ -3719,6 +3725,25 @@ module Google end end + # + class TargetingValueRequestPlatformTargeting + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `requestPlatforms` + # @return [Array] + attr_accessor :request_platforms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_platforms = args[:request_platforms] if args.key?(:request_platforms) + end + end + # class TargetingValueSize include Google::Apis::Core::Hashable diff --git a/generated/google/apis/adexchangebuyer_v1_4/representations.rb b/generated/google/apis/adexchangebuyer_v1_4/representations.rb index f31561146..033a5eafa 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/representations.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/representations.rb @@ -496,6 +496,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetingValueRequestPlatformTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetingValueSize class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1423,6 +1429,8 @@ module Google property :demog_gender_criteria_value, as: 'demogGenderCriteriaValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria::Representation property :long_value, :numeric_string => true, as: 'longValue' + property :request_platform_targeting_value, as: 'requestPlatformTargetingValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueRequestPlatformTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueRequestPlatformTargeting::Representation + property :string_value, as: 'stringValue' end end @@ -1475,6 +1483,13 @@ module Google end end + class TargetingValueRequestPlatformTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :request_platforms, as: 'requestPlatforms' + end + end + class TargetingValueSize # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/admob_v1.rb b/generated/google/apis/admob_v1.rb index 9f3e8ef4d..54f28c2a3 100644 --- a/generated/google/apis/admob_v1.rb +++ b/generated/google/apis/admob_v1.rb @@ -20,12 +20,13 @@ module Google module Apis # AdMob API # - # The Google AdMob API lets you programmatically get reports on earnings. + # The AdMob API allows publishers to programmatically get information about + # their AdMob account. # # @see https://developers.google.com/admob/api/ module AdmobV1 VERSION = 'V1' - REVISION = '20200916' + REVISION = '20201002' # See your AdMob data AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report' diff --git a/generated/google/apis/admob_v1/service.rb b/generated/google/apis/admob_v1/service.rb index 166360fd1..a611c618a 100644 --- a/generated/google/apis/admob_v1/service.rb +++ b/generated/google/apis/admob_v1/service.rb @@ -22,7 +22,8 @@ module Google module AdmobV1 # AdMob API # - # The Google AdMob API lets you programmatically get reports on earnings. + # The AdMob API allows publishers to programmatically get information about + # their AdMob account. # # @example # require 'google/apis/admob_v1' diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 0aa906d51..7faeddceb 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20200311' + REVISION = '20201002' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsense_v1_4/service.rb b/generated/google/apis/adsense_v1_4/service.rb index 93dbab354..b34c5ac95 100644 --- a/generated/google/apis/adsense_v1_4/service.rb +++ b/generated/google/apis/adsense_v1_4/service.rb @@ -129,6 +129,8 @@ module Google # Account which contains the ad client. # @param [String] ad_client_id # Ad client to get the code for. + # @param [String] tag_partner + # Tag partner to include in the ad code snippet. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -148,12 +150,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_adclient_ad_code(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_account_adclient_ad_code(account_id, ad_client_id, tag_partner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adcode', options) command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation command.response_class = Google::Apis::AdsenseV1_4::AdCode command.params['accountId'] = account_id unless account_id.nil? command.params['adClientId'] = ad_client_id unless ad_client_id.nil? + command.query['tagPartner'] = tag_partner unless tag_partner.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index 700e0bcaf..674ddad8b 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/apigee-api-management/ module ApigeeV1 VERSION = 'V1' - REVISION = '20200924' + REVISION = '20201002' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/apigee_v1/classes.rb b/generated/google/apis/apigee_v1/classes.rb index c60751c8a..1a1e3302a 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -255,6 +255,86 @@ module Google end end + # the Api category resource wrapped with response status, error_code etc. + class GoogleCloudApigeeV1ApiCategory + include Google::Apis::Core::Hashable + + # the Api category resource. + # Corresponds to the JSON property `data` + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData] + attr_accessor :data + + # ID that can be used to find errors in the log files. + # Corresponds to the JSON property `errorCode` + # @return [String] + attr_accessor :error_code + + # Description of the operation. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # ID that can be used to find request details in the log files. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Status of the operation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @error_code = args[:error_code] if args.key?(:error_code) + @message = args[:message] if args.key?(:message) + @request_id = args[:request_id] if args.key?(:request_id) + @status = args[:status] if args.key?(:status) + end + end + + # the Api category resource. + class GoogleCloudApigeeV1ApiCategoryData + include Google::Apis::Core::Hashable + + # ID of the category (a UUID). + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Name of the category. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Name of the portal. + # Corresponds to the JSON property `siteId` + # @return [String] + attr_accessor :site_id + + # Time the category was last modified in milliseconds since epoch. + # Corresponds to the JSON property `updateTime` + # @return [Fixnum] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @site_id = args[:site_id] if args.key?(:site_id) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + # class GoogleCloudApigeeV1ApiProduct include Google::Apis::Core::Hashable @@ -631,6 +711,43 @@ module Google end end + # + class GoogleCloudApigeeV1ApiResponseWrapper + include Google::Apis::Core::Hashable + + # ID that can be used to find errors in the log files. + # Corresponds to the JSON property `errorCode` + # @return [String] + attr_accessor :error_code + + # Description of the operation. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # ID that can be used to find request details in the log files. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Status of the operation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_code = args[:error_code] if args.key?(:error_code) + @message = args[:message] if args.key?(:message) + @request_id = args[:request_id] if args.key?(:request_id) + @status = args[:status] if args.key?(:status) + end + end + # class GoogleCloudApigeeV1App include Google::Apis::Core::Hashable @@ -2818,6 +2935,12 @@ module Google # @return [String] attr_accessor :port + # Output only. State of the instance. Values other than ACTIVE means the + # resource is not ready to use. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + def initialize(**args) update!(**args) end @@ -2833,6 +2956,7 @@ module Google @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @port = args[:port] if args.key?(:port) + @state = args[:state] if args.key?(:state) end end @@ -3067,6 +3191,49 @@ module Google end end + # the response for ListApiCategoriesRequest. + class GoogleCloudApigeeV1ListApiCategoriesResponse + include Google::Apis::Core::Hashable + + # Details of categories. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # ID that can be used to find errors in the log files. + # Corresponds to the JSON property `errorCode` + # @return [String] + attr_accessor :error_code + + # Description of the operation. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # ID that can be used to find request details in the log files. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Status of the operation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @error_code = args[:error_code] if args.key?(:error_code) + @message = args[:message] if args.key?(:message) + @request_id = args[:request_id] if args.key?(:request_id) + @status = args[:status] if args.key?(:status) + end + end + # class GoogleCloudApigeeV1ListApiProductsResponse include Google::Apis::Core::Hashable @@ -4042,6 +4209,41 @@ module Google end end + # Request for ProvisionOrganization. + class GoogleCloudApigeeV1ProvisionOrganizationRequest + include Google::Apis::Core::Hashable + + # Primary Cloud Platform region for analytics data storage. For valid values, + # see [Create an organization](https://docs.apigee.com/hybrid/latest/precog- + # provision). Defaults to us-west1. + # Corresponds to the JSON property `analyticsRegion` + # @return [String] + attr_accessor :analytics_region + + # Name of the customer project's VPC network. If provided, the network needs to + # be peered through Service Networking. If none is provided, the organization + # will have access only to the public internet. + # Corresponds to the JSON property `authorizedNetwork` + # @return [String] + attr_accessor :authorized_network + + # Cloud Platform location for the runtime instance. Defaults to us-west1-a. + # Corresponds to the JSON property `runtimeLocation` + # @return [String] + attr_accessor :runtime_location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @analytics_region = args[:analytics_region] if args.key?(:analytics_region) + @authorized_network = args[:authorized_network] if args.key?(:authorized_network) + @runtime_location = args[:runtime_location] if args.key?(:runtime_location) + end + end + # class GoogleCloudApigeeV1Query include Google::Apis::Core::Hashable @@ -4661,12 +4863,36 @@ module Google # @return [String] attr_accessor :basepath + # The env group config revision_id when this rule was added or last updated. + # This value is set when the rule is created and will only update if the the + # environment_id changes. It is used to determine if the runtime is up to date + # with respect to this rule. This field is omitted from the IngressConfig unless + # the GetDeployedIngressConfig API is called with debug=true. + # Corresponds to the JSON property `envGroupRevision` + # @return [Fixnum] + attr_accessor :env_group_revision + # Name of an environment bound to the environment group in the following format: # `organizations/`org`/environments/`env``. # Corresponds to the JSON property `environment` # @return [String] attr_accessor :environment + # The resource name of the proxy revision that is receiving this basepath in the + # following format: `organizations/`org`/apis/`api`/revisions/`rev``. This field + # is omitted from the IngressConfig unless the GetDeployedIngressConfig API is + # called with debug=true. + # Corresponds to the JSON property `receiver` + # @return [String] + attr_accessor :receiver + + # The unix timestamp when this rule was updated. This is updated whenever + # env_group_revision is updated. This field is omitted from the IngressConfig + # unless the GetDeployedIngressConfig API is called with debug=true. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + def initialize(**args) update!(**args) end @@ -4674,7 +4900,10 @@ module Google # Update properties of this object def update!(**args) @basepath = args[:basepath] if args.key?(:basepath) + @env_group_revision = args[:env_group_revision] if args.key?(:env_group_revision) @environment = args[:environment] if args.key?(:environment) + @receiver = args[:receiver] if args.key?(:receiver) + @update_time = args[:update_time] if args.key?(:update_time) end end @@ -5422,7 +5651,8 @@ module Google # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoCommonName] attr_accessor :common_name - # Required. Enables one-way TLS. + # Required. Enables TLS. If false, neither one-way nor two-way TLS will be + # enabled. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index 7e52ae741..5950399f1 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -64,6 +64,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1ApiCategory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudApigeeV1ApiCategoryData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1ApiProduct class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,6 +100,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1ApiResponseWrapper + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1App class Representation < Google::Apis::Core::JsonRepresentation; end @@ -394,6 +412,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1ListApiCategoriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1ListApiProductsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -598,6 +622,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1ProvisionOrganizationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1Query class Representation < Google::Apis::Core::JsonRepresentation; end @@ -975,6 +1005,28 @@ module Google end end + class GoogleCloudApigeeV1ApiCategory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, as: 'data', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation + + property :error_code, as: 'errorCode' + property :message, as: 'message' + property :request_id, as: 'requestId' + property :status, as: 'status' + end + end + + class GoogleCloudApigeeV1ApiCategoryData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + property :site_id, as: 'siteId' + property :update_time, :numeric_string => true, as: 'updateTime' + end + end + class GoogleCloudApigeeV1ApiProduct # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1047,6 +1099,16 @@ module Google end end + class GoogleCloudApigeeV1ApiResponseWrapper + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_code, as: 'errorCode' + property :message, as: 'message' + property :request_id, as: 'requestId' + property :status, as: 'status' + end + end + class GoogleCloudApigeeV1App # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1596,6 +1658,7 @@ module Google property :location, as: 'location' property :name, as: 'name' property :port, as: 'port' + property :state, as: 'state' end end @@ -1670,6 +1733,18 @@ module Google end end + class GoogleCloudApigeeV1ListApiCategoriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :data, as: 'data', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation + + property :error_code, as: 'errorCode' + property :message, as: 'message' + property :request_id, as: 'requestId' + property :status, as: 'status' + end + end + class GoogleCloudApigeeV1ListApiProductsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1980,6 +2055,15 @@ module Google end end + class GoogleCloudApigeeV1ProvisionOrganizationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :analytics_region, as: 'analyticsRegion' + property :authorized_network, as: 'authorizedNetwork' + property :runtime_location, as: 'runtimeLocation' + end + end + class GoogleCloudApigeeV1Query # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2141,7 +2225,10 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :basepath, as: 'basepath' + property :env_group_revision, :numeric_string => true, as: 'envGroupRevision' property :environment, as: 'environment' + property :receiver, as: 'receiver' + property :update_time, as: 'updateTime' end end diff --git a/generated/google/apis/apigee_v1/service.rb b/generated/google/apis/apigee_v1/service.rb index 6bab474cc..fe3269abe 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -156,6 +156,9 @@ module Google # @param [String] name # Required. Name of the deployed configuration for the organization in the # following format: 'organizations/`org`/deployedIngressConfig'. + # @param [String] view + # When set to FULL, additional details about the specific deployments receiving + # traffic will be included in the IngressConfig response's RoutingRules. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -173,11 +176,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization_deployed_ingress_config(name, fields: nil, quota_user: nil, options: nil, &block) + def get_organization_deployed_ingress_config(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig::Representation command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig command.params['name'] = name unless name.nil? + command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -6488,6 +6492,202 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Creates a new category on the portal. + # @param [String] parent + # Required. Name of the portal. Use the following structure in your request: ` + # organizations/`org`/sites/`site`` + # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData] google_cloud_apigee_v1_api_category_data_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_organization_site_apicategory(parent, google_cloud_apigee_v1_api_category_data_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/apicategories', options) + command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation + command.request_object = google_cloud_apigee_v1_api_category_data_object + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a category from the portal. + # @param [String] name + # Required. Name of the category. Use the following structure in your request: ` + # organizations/`org`/sites/`site`/apicategories/`apicategory`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_organization_site_apicategory(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a category on the portal. + # @param [String] name + # Required. Name of the category. Use the following structure in your request: ` + # organizations/`org`/sites/`site`/apicategories/`apicategory`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_site_apicategory(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the categories on the portal. + # @param [String] parent + # Required. Name of the portal. Use the following structure in your request: ` + # organizations/`org`/sites/`site`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organization_site_apicategories(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/apicategories', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a category on the portal. + # @param [String] name + # Required. Name of the category. Use the following structure in your request: ` + # organizations/`org`/sites/`site`/apicategories/`apicategory`` + # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData] google_cloud_apigee_v1_api_category_data_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_organization_site_apicategory(name, google_cloud_apigee_v1_api_category_data_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation + command.request_object = google_cloud_apigee_v1_api_category_data_object + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Provisions a new Apigee organization with a functioning runtime. This is the + # standard way to create trial organizations for a free Apigee trial. + # @param [String] project + # Required. Name of the GCP project with which to associate the Apigee + # organization. + # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ProvisionOrganizationRequest] google_cloud_apigee_v1_provision_organization_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def provision_project_organization(project, google_cloud_apigee_v1_provision_organization_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+project}:provisionOrganization', options) + command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ProvisionOrganizationRequest::Representation + command.request_object = google_cloud_apigee_v1_provision_organization_request_object + command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/billingbudgets_v1.rb b/generated/google/apis/billingbudgets_v1.rb new file mode 100644 index 000000000..e38269eda --- /dev/null +++ b/generated/google/apis/billingbudgets_v1.rb @@ -0,0 +1,38 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/billingbudgets_v1/service.rb' +require 'google/apis/billingbudgets_v1/classes.rb' +require 'google/apis/billingbudgets_v1/representations.rb' + +module Google + module Apis + # Cloud Billing Budget API + # + # The Cloud Billing Budget API stores Cloud Billing budgets, which define a + # budget plan and the rules to execute as spend is tracked against that plan. + # + # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview + module BillingbudgetsV1 + VERSION = 'V1' + REVISION = '20200919' + + # View and manage your Google Cloud Platform billing accounts + AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/billingbudgets_v1/classes.rb b/generated/google/apis/billingbudgets_v1/classes.rb new file mode 100644 index 000000000..78da8194e --- /dev/null +++ b/generated/google/apis/billingbudgets_v1/classes.rb @@ -0,0 +1,362 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module BillingbudgetsV1 + + # A budget is a plan that describes what you expect to spend on Cloud projects, + # plus the rules to execute as spend is tracked against that plan, (for example, + # send an alert when 90% of the target spend is met). Currently all plans are + # monthly budgets so the usage period(s) tracked are implied (calendar months of + # usage back-to-back). + class GoogleCloudBillingBudgetsV1Budget + include Google::Apis::Core::Hashable + + # The budgeted amount for each usage period. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount] + attr_accessor :amount + + # A filter for a budget, limiting the scope of the cost to calculate. + # Corresponds to the JSON property `budgetFilter` + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter] + attr_accessor :budget_filter + + # User data for display name in UI. The name must be less than or equal to 60 + # characters. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. Etag to validate that the object is unchanged for a read-modify- + # write operation. An empty etag will cause an update to overwrite other changes. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Output only. Resource name of the budget. The resource name implies the scope + # of a budget. Values are of the form `billingAccounts/`billingAccountId`/ + # budgets/`budgetId``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # NotificationsRule defines notifications that are sent based on budget spend + # and thresholds. + # Corresponds to the JSON property `notificationsRule` + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule] + attr_accessor :notifications_rule + + # Optional. Rules that trigger alerts (notifications of thresholds being crossed) + # when spend exceeds the specified percentages of the budget. + # Corresponds to the JSON property `thresholdRules` + # @return [Array] + attr_accessor :threshold_rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @budget_filter = args[:budget_filter] if args.key?(:budget_filter) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @name = args[:name] if args.key?(:name) + @notifications_rule = args[:notifications_rule] if args.key?(:notifications_rule) + @threshold_rules = args[:threshold_rules] if args.key?(:threshold_rules) + end + end + + # The budgeted amount for each usage period. + class GoogleCloudBillingBudgetsV1BudgetAmount + include Google::Apis::Core::Hashable + + # Describes a budget amount targeted to last period's spend. At this time, the + # amount is automatically 100% of last period's spend; that is, there are no + # other options yet. Future configuration will be described here (for example, + # configuring a percentage of last period's spend). + # Corresponds to the JSON property `lastPeriodAmount` + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount] + attr_accessor :last_period_amount + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `specifiedAmount` + # @return [Google::Apis::BillingbudgetsV1::GoogleTypeMoney] + attr_accessor :specified_amount + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_period_amount = args[:last_period_amount] if args.key?(:last_period_amount) + @specified_amount = args[:specified_amount] if args.key?(:specified_amount) + end + end + + # A filter for a budget, limiting the scope of the cost to calculate. + class GoogleCloudBillingBudgetsV1Filter + include Google::Apis::Core::Hashable + + # Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`. + # Corresponds to the JSON property `creditTypesTreatment` + # @return [String] + attr_accessor :credit_types_treatment + + # Optional. A single label and value pair specifying that usage from only this + # set of labeled resources should be included in the budget. Currently, multiple + # entries or multiple values per entry are not allowed. If omitted, the report + # will include all labeled and unlabeled usage. + # Corresponds to the JSON property `labels` + # @return [Hash>] + attr_accessor :labels + + # Optional. A set of projects of the form `projects/`project``, specifying that + # usage from only this set of projects should be included in the budget. If + # omitted, the report will include all usage for the billing account, regardless + # of which project the usage occurred on. Only zero or one project can be + # specified currently. + # Corresponds to the JSON property `projects` + # @return [Array] + attr_accessor :projects + + # Optional. A set of services of the form `services/`service_id``, specifying + # that usage from only this set of services should be included in the budget. If + # omitted, the report will include usage for all the services. The service names + # are available through the Catalog API: https://cloud.google.com/billing/v1/how- + # tos/catalog-api. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + # Optional. A set of subaccounts of the form `billingAccounts/`account_id``, + # specifying that usage from only this set of subaccounts should be included in + # the budget. If a subaccount is set to the name of the parent account, usage + # from the parent account will be included. If the field is omitted, the report + # will include usage from the parent account and all subaccounts, if they exist. + # Corresponds to the JSON property `subaccounts` + # @return [Array] + attr_accessor :subaccounts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment) + @labels = args[:labels] if args.key?(:labels) + @projects = args[:projects] if args.key?(:projects) + @services = args[:services] if args.key?(:services) + @subaccounts = args[:subaccounts] if args.key?(:subaccounts) + end + end + + # Describes a budget amount targeted to last period's spend. At this time, the + # amount is automatically 100% of last period's spend; that is, there are no + # other options yet. Future configuration will be described here (for example, + # configuring a percentage of last period's spend). + class GoogleCloudBillingBudgetsV1LastPeriodAmount + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response for ListBudgets + class GoogleCloudBillingBudgetsV1ListBudgetsResponse + include Google::Apis::Core::Hashable + + # List of the budgets owned by the requested billing account. + # Corresponds to the JSON property `budgets` + # @return [Array] + attr_accessor :budgets + + # If not empty, indicates that there may be more budgets that match the request; + # this value should be passed in a new `ListBudgetsRequest`. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @budgets = args[:budgets] if args.key?(:budgets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # NotificationsRule defines notifications that are sent based on budget spend + # and thresholds. + class GoogleCloudBillingBudgetsV1NotificationsRule + include Google::Apis::Core::Hashable + + # Optional. When set to true, disables default notifications sent when a + # threshold is exceeded. Default notifications are sent to those with Billing + # Account Administrator and Billing Account User IAM roles for the target + # account. + # Corresponds to the JSON property `disableDefaultIamRecipients` + # @return [Boolean] + attr_accessor :disable_default_iam_recipients + alias_method :disable_default_iam_recipients?, :disable_default_iam_recipients + + # Optional. Targets to send notifications to when a threshold is exceeded. This + # is in addition to default recipients who have billing account IAM roles. The + # value is the full REST resource name of a monitoring notification channel with + # the form `projects/`project_id`/notificationChannels/`channel_id``. A maximum + # of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/ + # budgets-notification-recipients for more details. + # Corresponds to the JSON property `monitoringNotificationChannels` + # @return [Array] + attr_accessor :monitoring_notification_channels + + # Optional. The name of the Pub/Sub topic where budget related messages will be + # published, in the form `projects/`project_id`/topics/`topic_id``. Updates are + # sent at regular intervals to the topic. The topic needs to be created before + # the budget is created; see https://cloud.google.com/billing/docs/how-to/ + # budgets#manage-notifications for more details. Caller is expected to have ` + # pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget, + # otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud. + # google.com/billing/docs/how-to/budgets-programmatic-notifications for more + # details on Pub/Sub roles and permissions. + # Corresponds to the JSON property `pubsubTopic` + # @return [String] + attr_accessor :pubsub_topic + + # Optional. The schema version of the notification sent to `pubsub_topic`. Only " + # 1.0" is accepted. It represents the JSON schema as defined in https://cloud. + # google.com/billing/docs/how-to/budgets-programmatic-notifications# + # notification_format + # Corresponds to the JSON property `schemaVersion` + # @return [String] + attr_accessor :schema_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disable_default_iam_recipients = args[:disable_default_iam_recipients] if args.key?(:disable_default_iam_recipients) + @monitoring_notification_channels = args[:monitoring_notification_channels] if args.key?(:monitoring_notification_channels) + @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) + @schema_version = args[:schema_version] if args.key?(:schema_version) + end + end + + # ThresholdRule contains a definition of a threshold which triggers an alert (a + # notification of a threshold being crossed) to be sent when spend goes above + # the specified amount. Alerts are automatically e-mailed to users with the + # Billing Account Administrator role or the Billing Account User role. The + # thresholds here have no effect on notifications sent to anything configured + # under `Budget.all_updates_rule`. + class GoogleCloudBillingBudgetsV1ThresholdRule + include Google::Apis::Core::Hashable + + # Optional. The type of basis used to determine if spend has passed the + # threshold. Behavior defaults to CURRENT_SPEND if not set. + # Corresponds to the JSON property `spendBasis` + # @return [String] + attr_accessor :spend_basis + + # Required. Send an alert when this threshold is exceeded. This is a 1.0-based + # percentage, so 0.5 = 50%. Validation: non-negative number. + # Corresponds to the JSON property `thresholdPercent` + # @return [Float] + attr_accessor :threshold_percent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @spend_basis = args[:spend_basis] if args.key?(:spend_basis) + @threshold_percent = args[:threshold_percent] if args.key?(:threshold_percent) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents an amount of money with its currency type. + class GoogleTypeMoney + include Google::Apis::Core::Hashable + + # The 3-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) + end + end + end + end +end diff --git a/generated/google/apis/billingbudgets_v1/representations.rb b/generated/google/apis/billingbudgets_v1/representations.rb new file mode 100644 index 000000000..14bacc8e6 --- /dev/null +++ b/generated/google/apis/billingbudgets_v1/representations.rb @@ -0,0 +1,170 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module BillingbudgetsV1 + + class GoogleCloudBillingBudgetsV1Budget + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudBillingBudgetsV1BudgetAmount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudBillingBudgetsV1Filter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudBillingBudgetsV1LastPeriodAmount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudBillingBudgetsV1ListBudgetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudBillingBudgetsV1NotificationsRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudBillingBudgetsV1ThresholdRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeMoney + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudBillingBudgetsV1Budget + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount::Representation + + property :budget_filter, as: 'budgetFilter', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter::Representation + + property :display_name, as: 'displayName' + property :etag, as: 'etag' + property :name, as: 'name' + property :notifications_rule, as: 'notificationsRule', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule::Representation + + collection :threshold_rules, as: 'thresholdRules', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ThresholdRule, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ThresholdRule::Representation + + end + end + + class GoogleCloudBillingBudgetsV1BudgetAmount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_period_amount, as: 'lastPeriodAmount', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount::Representation + + property :specified_amount, as: 'specifiedAmount', class: Google::Apis::BillingbudgetsV1::GoogleTypeMoney, decorator: Google::Apis::BillingbudgetsV1::GoogleTypeMoney::Representation + + end + end + + class GoogleCloudBillingBudgetsV1Filter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :credit_types_treatment, as: 'creditTypesTreatment' + hash :labels, as: 'labels', :class => Array do + include Representable::JSON::Collection + items + end + + collection :projects, as: 'projects' + collection :services, as: 'services' + collection :subaccounts, as: 'subaccounts' + end + end + + class GoogleCloudBillingBudgetsV1LastPeriodAmount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudBillingBudgetsV1ListBudgetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :budgets, as: 'budgets', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudBillingBudgetsV1NotificationsRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disable_default_iam_recipients, as: 'disableDefaultIamRecipients' + collection :monitoring_notification_channels, as: 'monitoringNotificationChannels' + property :pubsub_topic, as: 'pubsubTopic' + property :schema_version, as: 'schemaVersion' + end + end + + class GoogleCloudBillingBudgetsV1ThresholdRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :spend_basis, as: 'spendBasis' + property :threshold_percent, as: 'thresholdPercent' + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleTypeMoney + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' + property :nanos, as: 'nanos' + property :units, :numeric_string => true, as: 'units' + end + end + end + end +end diff --git a/generated/google/apis/billingbudgets_v1/service.rb b/generated/google/apis/billingbudgets_v1/service.rb new file mode 100644 index 000000000..c1c8aa652 --- /dev/null +++ b/generated/google/apis/billingbudgets_v1/service.rb @@ -0,0 +1,249 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module BillingbudgetsV1 + # Cloud Billing Budget API + # + # The Cloud Billing Budget API stores Cloud Billing budgets, which define a + # budget plan and the rules to execute as spend is tracked against that plan. + # + # @example + # require 'google/apis/billingbudgets_v1' + # + # Billingbudgets = Google::Apis::BillingbudgetsV1 # Alias the module + # service = Billingbudgets::CloudBillingBudgetService.new + # + # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview + class CloudBillingBudgetService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://billingbudgets.googleapis.com/', '') + @batch_path = 'batch' + end + + # Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/ + # quotas) for more information on the limits of the number of budgets you can + # create. + # @param [String] parent + # Required. The name of the billing account to create the budget in. Values are + # of the form `billingAccounts/`billingAccountId``. + # @param [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] google_cloud_billing_budgets_v1_budget_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_billing_account_budget(parent, google_cloud_billing_budgets_v1_budget_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/budgets', options) + command.request_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation + command.request_object = google_cloud_billing_budgets_v1_budget_object + command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation + command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a budget. Returns successfully if already deleted. + # @param [String] name + # Required. Name of the budget to delete. Values are of the form ` + # billingAccounts/`billingAccountId`/budgets/`budgetId``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a budget. WARNING: There are some fields exposed on the Google Cloud + # Console that aren't available on this API. When reading from the API, you will + # not see these fields in the return value, though they may have been set in the + # Cloud Console. + # @param [String] name + # Required. Name of budget to get. Values are of the form `billingAccounts/` + # billingAccountId`/budgets/`budgetId``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation + command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of budgets for a billing account. WARNING: There are some + # fields exposed on the Google Cloud Console that aren't available on this API. + # When reading from the API, you will not see these fields in the return value, + # though they may have been set in the Cloud Console. + # @param [String] parent + # Required. Name of billing account to list budgets under. Values are of the + # form `billingAccounts/`billingAccountId``. + # @param [Fixnum] page_size + # Optional. The maximum number of budgets to return per page. The default and + # maximum value are 100. + # @param [String] page_token + # Optional. The value returned by the last `ListBudgetsResponse` which indicates + # that this is a continuation of a prior `ListBudgets` call, and that the system + # should return the next page of data. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_billing_account_budgets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/budgets', options) + command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse::Representation + command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a budget and returns the updated budget. WARNING: There are some + # fields exposed on the Google Cloud Console that aren't available on this API. + # Budget fields that are not exposed in this API will not be changed by this + # method. + # @param [String] name + # Output only. Resource name of the budget. The resource name implies the scope + # of a budget. Values are of the form `billingAccounts/`billingAccountId`/ + # budgets/`budgetId``. + # @param [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] google_cloud_billing_budgets_v1_budget_object + # @param [String] update_mask + # Optional. Indicates which fields in the provided budget to update. Read-only + # fields (such as `name`) cannot be changed. If this is not provided, then only + # fields with non-default values from the request are updated. See https:// + # developers.google.com/protocol-buffers/docs/proto3#default for more details + # about default values. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_billing_account_budget(name, google_cloud_billing_budgets_v1_budget_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation + command.request_object = google_cloud_billing_budgets_v1_budget_object + command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation + command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/documentai_v1beta3.rb b/generated/google/apis/documentai_v1beta3.rb new file mode 100644 index 000000000..232495cd0 --- /dev/null +++ b/generated/google/apis/documentai_v1beta3.rb @@ -0,0 +1,36 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/documentai_v1beta3/service.rb' +require 'google/apis/documentai_v1beta3/classes.rb' +require 'google/apis/documentai_v1beta3/representations.rb' + +module Google + module Apis + # Cloud Document AI API + # + # Service to parse structured information from unstructured or semi-structured + # documents using state-of-the-art Google AI such as natural language, computer + # vision, translation, and AutoML. + # + # @see https://cloud.google.com/document-ai/docs/ + module DocumentaiV1beta3 + VERSION = 'V1beta3' + REVISION = '20200828' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/documentai_v1beta3/classes.rb b/generated/google/apis/documentai_v1beta3/classes.rb new file mode 100644 index 000000000..139d12f1a --- /dev/null +++ b/generated/google/apis/documentai_v1beta3/classes.rb @@ -0,0 +1,6149 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DocumentaiV1beta3 + + # The long running operation metadata for CreateLabelerPool. + class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Used only when Operation.done is false. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The metadata that represents a processor version being created. + class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current disable processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The long running operation metadata for DeleteLabelerPool. + class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Used only when Operation.done is false. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The long running operation metadata for delete processor method. + class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current delete processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The long running operation metadata for disable processor method. + class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current disable processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response message for the disable processor method. Intentionally empty proto + # for adding fields in future. + class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The long running operation metadata for enable processor method. + class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current enable processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response message for the enable processor method. Intentionally empty proto + # for adding fields in future. + class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The long running operation metadata for UpdateLabelerPool. + class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Used only when Operation.done is false. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response to an batch document processing request. This is returned in the LRO + # Operation after the operation is complete. + class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse + include Google::Apis::Core::Hashable + + # Responses for each individual document. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # A bounding polygon for the detected image annotation. + class GoogleCloudDocumentaiV1beta1BoundingPoly + include Google::Apis::Core::Hashable + + # The bounding polygon normalized vertices. + # Corresponds to the JSON property `normalizedVertices` + # @return [Array] + attr_accessor :normalized_vertices + + # The bounding polygon vertices. + # Corresponds to the JSON property `vertices` + # @return [Array] + attr_accessor :vertices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) + @vertices = args[:vertices] if args.key?(:vertices) + end + end + + # Document represents the canonical document resource in Document Understanding + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. + class GoogleCloudDocumentaiV1beta1Document + include Google::Apis::Core::Hashable + + # Inline document content, represented as a stream of bytes. Note: As with all ` + # bytes` fields, protobuffers use a pure binary representation, whereas JSON + # representations use base64. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # A list of entities detected on Document.text. For document shards, entities in + # this list may cross shard boundaries. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Relationship among Document.entities. + # Corresponds to the JSON property `entityRelations` + # @return [Array] + attr_accessor :entity_relations + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus] + attr_accessor :error + + # An IANA published MIME type (also referred to as media type). For more + # information, see https://www.iana.org/assignments/media-types/media-types. + # xhtml. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Visual page layout for the Document. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # Revision history of this document. + # Corresponds to the JSON property `revisions` + # @return [Array] + attr_accessor :revisions + + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. + # Corresponds to the JSON property `shardInfo` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentShardInfo] + attr_accessor :shard_info + + # UTF-8 encoded text in reading order from the document. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # A list of text corrections made to [Document.text]. This is usually used for + # annotating corrections to OCR mistakes. Text changes for a given revision may + # not overlap with each other. + # Corresponds to the JSON property `textChanges` + # @return [Array] + attr_accessor :text_changes + + # Styles for the Document.text. + # Corresponds to the JSON property `textStyles` + # @return [Array] + attr_accessor :text_styles + + # A list of translations on Document.text. For document shards, translations in + # this list may cross shard boundaries. + # Corresponds to the JSON property `translations` + # @return [Array] + attr_accessor :translations + + # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/ + # object_name`. Object versioning is not supported. See [Google Cloud Storage + # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more + # info. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @entities = args[:entities] if args.key?(:entities) + @entity_relations = args[:entity_relations] if args.key?(:entity_relations) + @error = args[:error] if args.key?(:error) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @pages = args[:pages] if args.key?(:pages) + @revisions = args[:revisions] if args.key?(:revisions) + @shard_info = args[:shard_info] if args.key?(:shard_info) + @text = args[:text] if args.key?(:text) + @text_changes = args[:text_changes] if args.key?(:text_changes) + @text_styles = args[:text_styles] if args.key?(:text_styles) + @translations = args[:translations] if args.key?(:translations) + @uri = args[:uri] if args.key?(:uri) + end + end + + # A phrase in the text that is a known entity type, such as a person, an + # organization, or location. + class GoogleCloudDocumentaiV1beta1DocumentEntity + include Google::Apis::Core::Hashable + + # Optional. Confidence of detected Schema entity. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Optional. Canonical id. This will be a unique value in the entity list for + # this document. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Deprecated. Use `id` field instead. + # Corresponds to the JSON property `mentionId` + # @return [String] + attr_accessor :mention_id + + # Text value in the document e.g. `1600 Amphitheatre Pkwy`. + # Corresponds to the JSON property `mentionText` + # @return [String] + attr_accessor :mention_text + + # Parsed and normalized entity value. + # Corresponds to the JSON property `normalizedValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue] + attr_accessor :normalized_value + + # Referencing the visual context of the entity in the Document.pages. Page + # anchors can be cross-page, consist of multiple bounding polygons and + # optionally reference specific layout element types. + # Corresponds to the JSON property `pageAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageAnchor] + attr_accessor :page_anchor + + # Optional. Entities can be nested to form a hierarchical data structure + # representing the content in the document. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance] + attr_accessor :provenance + + # Optional. Whether the entity will be redacted for de-identification purposes. + # Corresponds to the JSON property `redacted` + # @return [Boolean] + attr_accessor :redacted + alias_method :redacted?, :redacted + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor] + attr_accessor :text_anchor + + # Entity type from a schema e.g. `Address`. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @id = args[:id] if args.key?(:id) + @mention_id = args[:mention_id] if args.key?(:mention_id) + @mention_text = args[:mention_text] if args.key?(:mention_text) + @normalized_value = args[:normalized_value] if args.key?(:normalized_value) + @page_anchor = args[:page_anchor] if args.key?(:page_anchor) + @properties = args[:properties] if args.key?(:properties) + @provenance = args[:provenance] if args.key?(:provenance) + @redacted = args[:redacted] if args.key?(:redacted) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @type = args[:type] if args.key?(:type) + end + end + + # Parsed and normalized entity value. + class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue + include Google::Apis::Core::Hashable + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + # Corresponds to the JSON property `addressValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress] + attr_accessor :address_value + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + # Corresponds to the JSON property `dateValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDate] + attr_accessor :date_value + + # Represents civil time in one of a few possible ways: * When utc_offset is set + # and time_zone is unset: a civil time on a calendar day with a particular + # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time + # on a calendar day in a particular time zone. * When neither time_zone nor + # utc_offset is set: a civil time on a calendar day in local time. The date is + # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is + # considered not to have a specific year. month and day must have valid, non- + # zero values. This type is more flexible than some applications may want. Make + # sure to document and validate your application's limitations. + # Corresponds to the JSON property `datetimeValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime] + attr_accessor :datetime_value + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `moneyValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeMoney] + attr_accessor :money_value + + # Required. Normalized entity value stored as a string. This field is populated + # for supported document type (e.g. Invoice). For some entity types, one of + # respective 'structured_value' fields may also be populated. - Money/Currency + # type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) + # is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the + # ISO 8601 text format. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_value = args[:address_value] if args.key?(:address_value) + @date_value = args[:date_value] if args.key?(:date_value) + @datetime_value = args[:datetime_value] if args.key?(:datetime_value) + @money_value = args[:money_value] if args.key?(:money_value) + @text = args[:text] if args.key?(:text) + end + end + + # Relationship between Entities. + class GoogleCloudDocumentaiV1beta1DocumentEntityRelation + include Google::Apis::Core::Hashable + + # Object entity id. + # Corresponds to the JSON property `objectId` + # @return [String] + attr_accessor :object_id_prop + + # Relationship description. + # Corresponds to the JSON property `relation` + # @return [String] + attr_accessor :relation + + # Subject entity id. + # Corresponds to the JSON property `subjectId` + # @return [String] + attr_accessor :subject_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @relation = args[:relation] if args.key?(:relation) + @subject_id = args[:subject_id] if args.key?(:subject_id) + end + end + + # A page in a Document. + class GoogleCloudDocumentaiV1beta1DocumentPage + include Google::Apis::Core::Hashable + + # A list of visually detected text blocks on the page. A block has a set of + # lines (collected into paragraphs) that have a common line-spacing and + # orientation. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Dimension for the page. + # Corresponds to the JSON property `dimension` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDimension] + attr_accessor :dimension + + # A list of visually detected form fields on the page. + # Corresponds to the JSON property `formFields` + # @return [Array] + attr_accessor :form_fields + + # Rendered image contents for this page. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageImage] + attr_accessor :image + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + # A list of visually detected text lines on the page. A collection of tokens + # that a human would perceive as a line. + # Corresponds to the JSON property `lines` + # @return [Array] + attr_accessor :lines + + # 1-based index for current Page in a parent Document. Useful when a page is + # taken out of a Document for individual processing. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # A list of visually detected text paragraphs on the page. A collection of lines + # that a human would perceive as a paragraph. + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # A list of visually detected tables on the page. + # Corresponds to the JSON property `tables` + # @return [Array] + attr_accessor :tables + + # A list of visually detected tokens on the page. + # Corresponds to the JSON property `tokens` + # @return [Array] + attr_accessor :tokens + + # Transformation matrices that were applied to the original document image to + # produce Page.image. + # Corresponds to the JSON property `transforms` + # @return [Array] + attr_accessor :transforms + + # A list of detected non-text visual elements e.g. checkbox, signature etc. on + # the page. + # Corresponds to the JSON property `visualElements` + # @return [Array] + attr_accessor :visual_elements + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @dimension = args[:dimension] if args.key?(:dimension) + @form_fields = args[:form_fields] if args.key?(:form_fields) + @image = args[:image] if args.key?(:image) + @layout = args[:layout] if args.key?(:layout) + @lines = args[:lines] if args.key?(:lines) + @page_number = args[:page_number] if args.key?(:page_number) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @tables = args[:tables] if args.key?(:tables) + @tokens = args[:tokens] if args.key?(:tokens) + @transforms = args[:transforms] if args.key?(:transforms) + @visual_elements = args[:visual_elements] if args.key?(:visual_elements) + end + end + + # Referencing the visual context of the entity in the Document.pages. Page + # anchors can be cross-page, consist of multiple bounding polygons and + # optionally reference specific layout element types. + class GoogleCloudDocumentaiV1beta1DocumentPageAnchor + include Google::Apis::Core::Hashable + + # One or more references to visual page elements + # Corresponds to the JSON property `pageRefs` + # @return [Array] + attr_accessor :page_refs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_refs = args[:page_refs] if args.key?(:page_refs) + end + end + + # Represents a weak reference to a page element within a document. + class GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly] + attr_accessor :bounding_poly + + # Optional. Deprecated. Use PageRef.bounding_poly instead. + # Corresponds to the JSON property `layoutId` + # @return [String] + attr_accessor :layout_id + + # Optional. The type of the layout element that is being referenced if any. + # Corresponds to the JSON property `layoutType` + # @return [String] + attr_accessor :layout_type + + # Required. Index into the Document.pages element + # Corresponds to the JSON property `page` + # @return [Fixnum] + attr_accessor :page + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @layout_id = args[:layout_id] if args.key?(:layout_id) + @layout_type = args[:layout_type] if args.key?(:layout_type) + @page = args[:page] if args.key?(:page) + end + end + + # A block has a set of lines (collected into paragraphs) that have a common line- + # spacing and orientation. + class GoogleCloudDocumentaiV1beta1DocumentPageBlock + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Detected language for a structural component. + class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Dimension for the page. + class GoogleCloudDocumentaiV1beta1DocumentPageDimension + include Google::Apis::Core::Hashable + + # Page height. + # Corresponds to the JSON property `height` + # @return [Float] + attr_accessor :height + + # Dimension unit. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # Page width. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @unit = args[:unit] if args.key?(:unit) + @width = args[:width] if args.key?(:width) + end + end + + # A form field detected on the page. + class GoogleCloudDocumentaiV1beta1DocumentPageFormField + include Google::Apis::Core::Hashable + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `fieldName` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :field_name + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `fieldValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :field_value + + # A list of detected languages for name together with confidence. + # Corresponds to the JSON property `nameDetectedLanguages` + # @return [Array] + attr_accessor :name_detected_languages + + # A list of detected languages for value together with confidence. + # Corresponds to the JSON property `valueDetectedLanguages` + # @return [Array] + attr_accessor :value_detected_languages + + # If the value is non-textual, this field represents the type. Current valid + # values are: - blank (this indicates the field_value is normal text) - " + # unfilled_checkbox" - "filled_checkbox" + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field_name = args[:field_name] if args.key?(:field_name) + @field_value = args[:field_value] if args.key?(:field_value) + @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages) + @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages) + @value_type = args[:value_type] if args.key?(:value_type) + end + end + + # Rendered image contents for this page. + class GoogleCloudDocumentaiV1beta1DocumentPageImage + include Google::Apis::Core::Hashable + + # Raw byte content of the image. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # Height of the image in pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Encoding mime type for the image. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Width of the image in pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @height = args[:height] if args.key?(:height) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @width = args[:width] if args.key?(:width) + end + end + + # Visual element describing a layout unit on a page. + class GoogleCloudDocumentaiV1beta1DocumentPageLayout + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of the current Layout within context of the object this layout is + # for. e.g. confidence can be for a single token, a table, a visual element, etc. + # depending on context. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Detected orientation for the Layout. + # Corresponds to the JSON property `orientation` + # @return [String] + attr_accessor :orientation + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor] + attr_accessor :text_anchor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @orientation = args[:orientation] if args.key?(:orientation) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + end + end + + # A collection of tokens that a human would perceive as a line. Does not cross + # column boundaries, can be horizontal, vertical, etc. + class GoogleCloudDocumentaiV1beta1DocumentPageLine + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Representation for transformation matrix, intended to be compatible and used + # with OpenCV format for image manipulation. + class GoogleCloudDocumentaiV1beta1DocumentPageMatrix + include Google::Apis::Core::Hashable + + # Number of columns in the matrix. + # Corresponds to the JSON property `cols` + # @return [Fixnum] + attr_accessor :cols + + # The matrix data. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Number of rows in the matrix. + # Corresponds to the JSON property `rows` + # @return [Fixnum] + attr_accessor :rows + + # This encodes information about what data type the matrix uses. For example, 0 ( + # CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data + # types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/ + # group__core__hal__interface.html + # Corresponds to the JSON property `type` + # @return [Fixnum] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cols = args[:cols] if args.key?(:cols) + @data = args[:data] if args.key?(:data) + @rows = args[:rows] if args.key?(:rows) + @type = args[:type] if args.key?(:type) + end + end + + # A collection of lines that a human would perceive as a paragraph. + class GoogleCloudDocumentaiV1beta1DocumentPageParagraph + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # A table representation similar to HTML table structure. + class GoogleCloudDocumentaiV1beta1DocumentPageTable + include Google::Apis::Core::Hashable + + # Body rows of the table. + # Corresponds to the JSON property `bodyRows` + # @return [Array] + attr_accessor :body_rows + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Header rows of the table. + # Corresponds to the JSON property `headerRows` + # @return [Array] + attr_accessor :header_rows + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @body_rows = args[:body_rows] if args.key?(:body_rows) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @header_rows = args[:header_rows] if args.key?(:header_rows) + @layout = args[:layout] if args.key?(:layout) + end + end + + # A cell representation inside the table. + class GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell + include Google::Apis::Core::Hashable + + # How many columns this cell spans. + # Corresponds to the JSON property `colSpan` + # @return [Fixnum] + attr_accessor :col_span + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + # How many rows this cell spans. + # Corresponds to the JSON property `rowSpan` + # @return [Fixnum] + attr_accessor :row_span + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @col_span = args[:col_span] if args.key?(:col_span) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @row_span = args[:row_span] if args.key?(:row_span) + end + end + + # A row of table cells. + class GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow + include Google::Apis::Core::Hashable + + # Cells that make up this row. + # Corresponds to the JSON property `cells` + # @return [Array] + attr_accessor :cells + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cells = args[:cells] if args.key?(:cells) + end + end + + # A detected token. + class GoogleCloudDocumentaiV1beta1DocumentPageToken + include Google::Apis::Core::Hashable + + # Detected break at the end of a Token. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Detected break at the end of a Token. + class GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak + include Google::Apis::Core::Hashable + + # Detected break type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + end + end + + # Detected non-text visual elements e.g. checkbox, signature etc. on the page. + class GoogleCloudDocumentaiV1beta1DocumentPageVisualElement + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout] + attr_accessor :layout + + # Type of the VisualElement. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @type = args[:type] if args.key?(:type) + end + end + + # Structure to identify provenance relationships between annotations in + # different revisions. + class GoogleCloudDocumentaiV1beta1DocumentProvenance + include Google::Apis::Core::Hashable + + # The Id of this operation. Needs to be unique within the scope of the revision. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # References to the original elements that are replaced. + # Corresponds to the JSON property `parents` + # @return [Array] + attr_accessor :parents + + # The index of the revision that produced this element. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + # The type of provenance operation. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @parents = args[:parents] if args.key?(:parents) + @revision = args[:revision] if args.key?(:revision) + @type = args[:type] if args.key?(:type) + end + end + + # Structure for referencing parent provenances. When an element replaces one of + # more other elements parent references identify the elements that are replaced. + class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent + include Google::Apis::Core::Hashable + + # The id of the parent provenance. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The index of the [Document.revisions] identifying the parent revision. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @revision = args[:revision] if args.key?(:revision) + end + end + + # Contains past or forward revisions of this document. + class GoogleCloudDocumentaiV1beta1DocumentRevision + include Google::Apis::Core::Hashable + + # If the change was made by a person specify the name or id of that person. + # Corresponds to the JSON property `agent` + # @return [String] + attr_accessor :agent + + # The time that the revision was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Human Review information of the document. + # Corresponds to the JSON property `humanReview` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview] + attr_accessor :human_review + + # Id of the revision. Unique within the context of the document. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The revisions that this revision is based on. This can include one or more + # parent (when documents are merged.) This field represents the index into the ` + # revisions` field. + # Corresponds to the JSON property `parent` + # @return [Array] + attr_accessor :parent + + # If the annotation was made by processor identify the processor by its resource + # name. + # Corresponds to the JSON property `processor` + # @return [String] + attr_accessor :processor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent = args[:agent] if args.key?(:agent) + @create_time = args[:create_time] if args.key?(:create_time) + @human_review = args[:human_review] if args.key?(:human_review) + @id = args[:id] if args.key?(:id) + @parent = args[:parent] if args.key?(:parent) + @processor = args[:processor] if args.key?(:processor) + end + end + + # Human Review information of the document. + class GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview + include Google::Apis::Core::Hashable + + # Human review state. e.g. `requested`, `succeeded`, `rejected`. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the rejection reason when the state is `rejected`. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + end + end + + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. + class GoogleCloudDocumentaiV1beta1DocumentShardInfo + include Google::Apis::Core::Hashable + + # Total number of shards. + # Corresponds to the JSON property `shardCount` + # @return [Fixnum] + attr_accessor :shard_count + + # The 0-based index of this shard. + # Corresponds to the JSON property `shardIndex` + # @return [Fixnum] + attr_accessor :shard_index + + # The index of the first character in Document.text in the overall document + # global text. + # Corresponds to the JSON property `textOffset` + # @return [Fixnum] + attr_accessor :text_offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @shard_count = args[:shard_count] if args.key?(:shard_count) + @shard_index = args[:shard_index] if args.key?(:shard_index) + @text_offset = args[:text_offset] if args.key?(:text_offset) + end + end + + # Annotation for common text style attributes. This adheres to CSS conventions + # as much as possible. + class GoogleCloudDocumentaiV1beta1DocumentStyle + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... + # Corresponds to the JSON property `backgroundColor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor] + attr_accessor :background_color + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor] + attr_accessor :color + + # Font size with unit. + # Corresponds to the JSON property `fontSize` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentStyleFontSize] + attr_accessor :font_size + + # Font weight. Possible values are normal, bold, bolder, and lighter. https:// + # www.w3schools.com/cssref/pr_font_weight.asp + # Corresponds to the JSON property `fontWeight` + # @return [String] + attr_accessor :font_weight + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor] + attr_accessor :text_anchor + + # Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/ + # pr_text_text-decoration.asp + # Corresponds to the JSON property `textDecoration` + # @return [String] + attr_accessor :text_decoration + + # Text style. Possible values are normal, italic, and oblique. https://www. + # w3schools.com/cssref/pr_font_font-style.asp + # Corresponds to the JSON property `textStyle` + # @return [String] + attr_accessor :text_style + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @background_color = args[:background_color] if args.key?(:background_color) + @color = args[:color] if args.key?(:color) + @font_size = args[:font_size] if args.key?(:font_size) + @font_weight = args[:font_weight] if args.key?(:font_weight) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @text_decoration = args[:text_decoration] if args.key?(:text_decoration) + @text_style = args[:text_style] if args.key?(:text_style) + end + end + + # Font size with unit. + class GoogleCloudDocumentaiV1beta1DocumentStyleFontSize + include Google::Apis::Core::Hashable + + # Font size for the text. + # Corresponds to the JSON property `size` + # @return [Float] + attr_accessor :size + + # Unit for the font size. Follows CSS naming (in, px, pt, etc.). + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @size = args[:size] if args.key?(:size) + @unit = args[:unit] if args.key?(:unit) + end + end + + # Text reference indexing into the Document.text. + class GoogleCloudDocumentaiV1beta1DocumentTextAnchor + include Google::Apis::Core::Hashable + + # Contains the content of the text span so that users do not have to look it up + # in the text_segments. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The text segments from the Document.text. + # Corresponds to the JSON property `textSegments` + # @return [Array] + attr_accessor :text_segments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @text_segments = args[:text_segments] if args.key?(:text_segments) + end + end + + # A text segment in the Document.text. The indices may be out of bounds which + # indicate that the text extends into another document shard for large sharded + # documents. See ShardInfo.text_offset + class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment + include Google::Apis::Core::Hashable + + # TextSegment half open end UTF-8 char index in the Document.text. + # Corresponds to the JSON property `endIndex` + # @return [Fixnum] + attr_accessor :end_index + + # TextSegment start UTF-8 char index in the Document.text. + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_index = args[:end_index] if args.key?(:end_index) + @start_index = args[:start_index] if args.key?(:start_index) + end + end + + # This message is used for text changes aka. OCR corrections. + class GoogleCloudDocumentaiV1beta1DocumentTextChange + include Google::Apis::Core::Hashable + + # The text that replaces the text identified in the `text_anchor`. + # Corresponds to the JSON property `changedText` + # @return [String] + attr_accessor :changed_text + + # The history of this annotation. + # Corresponds to the JSON property `provenance` + # @return [Array] + attr_accessor :provenance + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor] + attr_accessor :text_anchor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @changed_text = args[:changed_text] if args.key?(:changed_text) + @provenance = args[:provenance] if args.key?(:provenance) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + end + end + + # A translation of the text segment. + class GoogleCloudDocumentaiV1beta1DocumentTranslation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # The history of this annotation. + # Corresponds to the JSON property `provenance` + # @return [Array] + attr_accessor :provenance + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor] + attr_accessor :text_anchor + + # Text translated into the target language. + # Corresponds to the JSON property `translatedText` + # @return [String] + attr_accessor :translated_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @provenance = args[:provenance] if args.key?(:provenance) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @translated_text = args[:translated_text] if args.key?(:translated_text) + end + end + + # The Google Cloud Storage location where the output file will be written to. + class GoogleCloudDocumentaiV1beta1GcsDestination + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input file will be read from. + class GoogleCloudDocumentaiV1beta1GcsSource + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The desired input location and metadata. + class GoogleCloudDocumentaiV1beta1InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input file will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1GcsSource] + attr_accessor :gcs_source + + # Required. Mimetype of the input. Current supported mimetypes are application/ + # pdf, image/tiff, and image/gif. In addition, application/json type is + # supported for requests with ProcessDocumentRequest.automl_params field set. + # The JSON file needs to be in Document format. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # A vertex represents a 2D point in the image. NOTE: the normalized vertex + # coordinates are relative to the original image and range from 0 to 1. + class GoogleCloudDocumentaiV1beta1NormalizedVertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # Contains metadata for the BatchProcessDocuments operation. + class GoogleCloudDocumentaiV1beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current batch processing. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudDocumentaiV1beta1OutputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the output file will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1GcsDestination] + attr_accessor :gcs_destination + + # The max number of pages to include into each output Document shard JSON on + # Google Cloud Storage. The valid range is [1, 100]. If not specified, the + # default value is 20. For example, for one pdf file with 100 pages, 100 parsed + # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON + # files each containing 20 parsed pages will be written under the prefix + # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y + # are 1-indexed page numbers. Example GCS outputs with 157 pages and + # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to- + # 150.json pages-151-to-157.json + # Corresponds to the JSON property `pagesPerShard` + # @return [Fixnum] + attr_accessor :pages_per_shard + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + @pages_per_shard = args[:pages_per_shard] if args.key?(:pages_per_shard) + end + end + + # Response to a single document processing request. + class GoogleCloudDocumentaiV1beta1ProcessDocumentResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1InputConfig] + attr_accessor :input_config + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are + # in the same scale as the original image. + class GoogleCloudDocumentaiV1beta1Vertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Fixnum] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Fixnum] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # Response to an batch document processing request. This is returned in the LRO + # Operation after the operation is complete. + class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse + include Google::Apis::Core::Hashable + + # Responses for each individual document. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # A bounding polygon for the detected image annotation. + class GoogleCloudDocumentaiV1beta2BoundingPoly + include Google::Apis::Core::Hashable + + # The bounding polygon normalized vertices. + # Corresponds to the JSON property `normalizedVertices` + # @return [Array] + attr_accessor :normalized_vertices + + # The bounding polygon vertices. + # Corresponds to the JSON property `vertices` + # @return [Array] + attr_accessor :vertices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) + @vertices = args[:vertices] if args.key?(:vertices) + end + end + + # Document represents the canonical document resource in Document Understanding + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. + class GoogleCloudDocumentaiV1beta2Document + include Google::Apis::Core::Hashable + + # Inline document content, represented as a stream of bytes. Note: As with all ` + # bytes` fields, protobuffers use a pure binary representation, whereas JSON + # representations use base64. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # A list of entities detected on Document.text. For document shards, entities in + # this list may cross shard boundaries. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Relationship among Document.entities. + # Corresponds to the JSON property `entityRelations` + # @return [Array] + attr_accessor :entity_relations + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus] + attr_accessor :error + + # Labels for this document. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # An IANA published MIME type (also referred to as media type). For more + # information, see https://www.iana.org/assignments/media-types/media-types. + # xhtml. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Visual page layout for the Document. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # Revision history of this document. + # Corresponds to the JSON property `revisions` + # @return [Array] + attr_accessor :revisions + + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. + # Corresponds to the JSON property `shardInfo` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentShardInfo] + attr_accessor :shard_info + + # UTF-8 encoded text in reading order from the document. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # A list of text corrections made to [Document.text]. This is usually used for + # annotating corrections to OCR mistakes. Text changes for a given revision may + # not overlap with each other. + # Corresponds to the JSON property `textChanges` + # @return [Array] + attr_accessor :text_changes + + # Styles for the Document.text. + # Corresponds to the JSON property `textStyles` + # @return [Array] + attr_accessor :text_styles + + # A list of translations on Document.text. For document shards, translations in + # this list may cross shard boundaries. + # Corresponds to the JSON property `translations` + # @return [Array] + attr_accessor :translations + + # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/ + # object_name`. Object versioning is not supported. See [Google Cloud Storage + # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more + # info. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @entities = args[:entities] if args.key?(:entities) + @entity_relations = args[:entity_relations] if args.key?(:entity_relations) + @error = args[:error] if args.key?(:error) + @labels = args[:labels] if args.key?(:labels) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @pages = args[:pages] if args.key?(:pages) + @revisions = args[:revisions] if args.key?(:revisions) + @shard_info = args[:shard_info] if args.key?(:shard_info) + @text = args[:text] if args.key?(:text) + @text_changes = args[:text_changes] if args.key?(:text_changes) + @text_styles = args[:text_styles] if args.key?(:text_styles) + @translations = args[:translations] if args.key?(:translations) + @uri = args[:uri] if args.key?(:uri) + end + end + + # A phrase in the text that is a known entity type, such as a person, an + # organization, or location. + class GoogleCloudDocumentaiV1beta2DocumentEntity + include Google::Apis::Core::Hashable + + # Optional. Confidence of detected Schema entity. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Optional. Canonical id. This will be a unique value in the entity list for + # this document. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Deprecated. Use `id` field instead. + # Corresponds to the JSON property `mentionId` + # @return [String] + attr_accessor :mention_id + + # Text value in the document e.g. `1600 Amphitheatre Pkwy`. + # Corresponds to the JSON property `mentionText` + # @return [String] + attr_accessor :mention_text + + # Parsed and normalized entity value. + # Corresponds to the JSON property `normalizedValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue] + attr_accessor :normalized_value + + # Referencing the visual context of the entity in the Document.pages. Page + # anchors can be cross-page, consist of multiple bounding polygons and + # optionally reference specific layout element types. + # Corresponds to the JSON property `pageAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageAnchor] + attr_accessor :page_anchor + + # Optional. Entities can be nested to form a hierarchical data structure + # representing the content in the document. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance] + attr_accessor :provenance + + # Optional. Whether the entity will be redacted for de-identification purposes. + # Corresponds to the JSON property `redacted` + # @return [Boolean] + attr_accessor :redacted + alias_method :redacted?, :redacted + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor] + attr_accessor :text_anchor + + # Entity type from a schema e.g. `Address`. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @id = args[:id] if args.key?(:id) + @mention_id = args[:mention_id] if args.key?(:mention_id) + @mention_text = args[:mention_text] if args.key?(:mention_text) + @normalized_value = args[:normalized_value] if args.key?(:normalized_value) + @page_anchor = args[:page_anchor] if args.key?(:page_anchor) + @properties = args[:properties] if args.key?(:properties) + @provenance = args[:provenance] if args.key?(:provenance) + @redacted = args[:redacted] if args.key?(:redacted) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @type = args[:type] if args.key?(:type) + end + end + + # Parsed and normalized entity value. + class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue + include Google::Apis::Core::Hashable + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + # Corresponds to the JSON property `addressValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress] + attr_accessor :address_value + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + # Corresponds to the JSON property `dateValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDate] + attr_accessor :date_value + + # Represents civil time in one of a few possible ways: * When utc_offset is set + # and time_zone is unset: a civil time on a calendar day with a particular + # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time + # on a calendar day in a particular time zone. * When neither time_zone nor + # utc_offset is set: a civil time on a calendar day in local time. The date is + # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is + # considered not to have a specific year. month and day must have valid, non- + # zero values. This type is more flexible than some applications may want. Make + # sure to document and validate your application's limitations. + # Corresponds to the JSON property `datetimeValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime] + attr_accessor :datetime_value + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `moneyValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeMoney] + attr_accessor :money_value + + # Required. Normalized entity value stored as a string. This field is populated + # for supported document type (e.g. Invoice). For some entity types, one of + # respective 'structured_value' fields may also be populated. - Money/Currency + # type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) + # is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the + # ISO 8601 text format. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_value = args[:address_value] if args.key?(:address_value) + @date_value = args[:date_value] if args.key?(:date_value) + @datetime_value = args[:datetime_value] if args.key?(:datetime_value) + @money_value = args[:money_value] if args.key?(:money_value) + @text = args[:text] if args.key?(:text) + end + end + + # Relationship between Entities. + class GoogleCloudDocumentaiV1beta2DocumentEntityRelation + include Google::Apis::Core::Hashable + + # Object entity id. + # Corresponds to the JSON property `objectId` + # @return [String] + attr_accessor :object_id_prop + + # Relationship description. + # Corresponds to the JSON property `relation` + # @return [String] + attr_accessor :relation + + # Subject entity id. + # Corresponds to the JSON property `subjectId` + # @return [String] + attr_accessor :subject_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @relation = args[:relation] if args.key?(:relation) + @subject_id = args[:subject_id] if args.key?(:subject_id) + end + end + + # Label attaches schema information and/or other metadata to segments within a + # Document. Multiple Labels on a single field can denote either different labels, + # different instances of the same label created at different times, or some + # combination of both. + class GoogleCloudDocumentaiV1beta2DocumentLabel + include Google::Apis::Core::Hashable + + # Label is generated AutoML model. This field stores the full resource name of + # the AutoML model. Format: `projects/`project-id`/locations/`location-id`/ + # models/`model-id`` + # Corresponds to the JSON property `automlModel` + # @return [String] + attr_accessor :automl_model + + # Confidence score between 0 and 1 for label assignment. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Name of the label. When the label is generated from AutoML Text Classification + # model, this field represents the name of the category. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @automl_model = args[:automl_model] if args.key?(:automl_model) + @confidence = args[:confidence] if args.key?(:confidence) + @name = args[:name] if args.key?(:name) + end + end + + # A page in a Document. + class GoogleCloudDocumentaiV1beta2DocumentPage + include Google::Apis::Core::Hashable + + # A list of visually detected text blocks on the page. A block has a set of + # lines (collected into paragraphs) that have a common line-spacing and + # orientation. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Dimension for the page. + # Corresponds to the JSON property `dimension` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDimension] + attr_accessor :dimension + + # A list of visually detected form fields on the page. + # Corresponds to the JSON property `formFields` + # @return [Array] + attr_accessor :form_fields + + # Rendered image contents for this page. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageImage] + attr_accessor :image + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + # A list of visually detected text lines on the page. A collection of tokens + # that a human would perceive as a line. + # Corresponds to the JSON property `lines` + # @return [Array] + attr_accessor :lines + + # 1-based index for current Page in a parent Document. Useful when a page is + # taken out of a Document for individual processing. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # A list of visually detected text paragraphs on the page. A collection of lines + # that a human would perceive as a paragraph. + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # A list of visually detected tables on the page. + # Corresponds to the JSON property `tables` + # @return [Array] + attr_accessor :tables + + # A list of visually detected tokens on the page. + # Corresponds to the JSON property `tokens` + # @return [Array] + attr_accessor :tokens + + # Transformation matrices that were applied to the original document image to + # produce Page.image. + # Corresponds to the JSON property `transforms` + # @return [Array] + attr_accessor :transforms + + # A list of detected non-text visual elements e.g. checkbox, signature etc. on + # the page. + # Corresponds to the JSON property `visualElements` + # @return [Array] + attr_accessor :visual_elements + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @dimension = args[:dimension] if args.key?(:dimension) + @form_fields = args[:form_fields] if args.key?(:form_fields) + @image = args[:image] if args.key?(:image) + @layout = args[:layout] if args.key?(:layout) + @lines = args[:lines] if args.key?(:lines) + @page_number = args[:page_number] if args.key?(:page_number) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @tables = args[:tables] if args.key?(:tables) + @tokens = args[:tokens] if args.key?(:tokens) + @transforms = args[:transforms] if args.key?(:transforms) + @visual_elements = args[:visual_elements] if args.key?(:visual_elements) + end + end + + # Referencing the visual context of the entity in the Document.pages. Page + # anchors can be cross-page, consist of multiple bounding polygons and + # optionally reference specific layout element types. + class GoogleCloudDocumentaiV1beta2DocumentPageAnchor + include Google::Apis::Core::Hashable + + # One or more references to visual page elements + # Corresponds to the JSON property `pageRefs` + # @return [Array] + attr_accessor :page_refs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_refs = args[:page_refs] if args.key?(:page_refs) + end + end + + # Represents a weak reference to a page element within a document. + class GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly] + attr_accessor :bounding_poly + + # Optional. Deprecated. Use PageRef.bounding_poly instead. + # Corresponds to the JSON property `layoutId` + # @return [String] + attr_accessor :layout_id + + # Optional. The type of the layout element that is being referenced if any. + # Corresponds to the JSON property `layoutType` + # @return [String] + attr_accessor :layout_type + + # Required. Index into the Document.pages element + # Corresponds to the JSON property `page` + # @return [Fixnum] + attr_accessor :page + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @layout_id = args[:layout_id] if args.key?(:layout_id) + @layout_type = args[:layout_type] if args.key?(:layout_type) + @page = args[:page] if args.key?(:page) + end + end + + # A block has a set of lines (collected into paragraphs) that have a common line- + # spacing and orientation. + class GoogleCloudDocumentaiV1beta2DocumentPageBlock + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Detected language for a structural component. + class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Dimension for the page. + class GoogleCloudDocumentaiV1beta2DocumentPageDimension + include Google::Apis::Core::Hashable + + # Page height. + # Corresponds to the JSON property `height` + # @return [Float] + attr_accessor :height + + # Dimension unit. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # Page width. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @unit = args[:unit] if args.key?(:unit) + @width = args[:width] if args.key?(:width) + end + end + + # A form field detected on the page. + class GoogleCloudDocumentaiV1beta2DocumentPageFormField + include Google::Apis::Core::Hashable + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `fieldName` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :field_name + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `fieldValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :field_value + + # A list of detected languages for name together with confidence. + # Corresponds to the JSON property `nameDetectedLanguages` + # @return [Array] + attr_accessor :name_detected_languages + + # A list of detected languages for value together with confidence. + # Corresponds to the JSON property `valueDetectedLanguages` + # @return [Array] + attr_accessor :value_detected_languages + + # If the value is non-textual, this field represents the type. Current valid + # values are: - blank (this indicates the field_value is normal text) - " + # unfilled_checkbox" - "filled_checkbox" + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field_name = args[:field_name] if args.key?(:field_name) + @field_value = args[:field_value] if args.key?(:field_value) + @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages) + @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages) + @value_type = args[:value_type] if args.key?(:value_type) + end + end + + # Rendered image contents for this page. + class GoogleCloudDocumentaiV1beta2DocumentPageImage + include Google::Apis::Core::Hashable + + # Raw byte content of the image. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # Height of the image in pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Encoding mime type for the image. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Width of the image in pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @height = args[:height] if args.key?(:height) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @width = args[:width] if args.key?(:width) + end + end + + # Visual element describing a layout unit on a page. + class GoogleCloudDocumentaiV1beta2DocumentPageLayout + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of the current Layout within context of the object this layout is + # for. e.g. confidence can be for a single token, a table, a visual element, etc. + # depending on context. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Detected orientation for the Layout. + # Corresponds to the JSON property `orientation` + # @return [String] + attr_accessor :orientation + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor] + attr_accessor :text_anchor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @orientation = args[:orientation] if args.key?(:orientation) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + end + end + + # A collection of tokens that a human would perceive as a line. Does not cross + # column boundaries, can be horizontal, vertical, etc. + class GoogleCloudDocumentaiV1beta2DocumentPageLine + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Representation for transformation matrix, intended to be compatible and used + # with OpenCV format for image manipulation. + class GoogleCloudDocumentaiV1beta2DocumentPageMatrix + include Google::Apis::Core::Hashable + + # Number of columns in the matrix. + # Corresponds to the JSON property `cols` + # @return [Fixnum] + attr_accessor :cols + + # The matrix data. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Number of rows in the matrix. + # Corresponds to the JSON property `rows` + # @return [Fixnum] + attr_accessor :rows + + # This encodes information about what data type the matrix uses. For example, 0 ( + # CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data + # types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/ + # group__core__hal__interface.html + # Corresponds to the JSON property `type` + # @return [Fixnum] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cols = args[:cols] if args.key?(:cols) + @data = args[:data] if args.key?(:data) + @rows = args[:rows] if args.key?(:rows) + @type = args[:type] if args.key?(:type) + end + end + + # A collection of lines that a human would perceive as a paragraph. + class GoogleCloudDocumentaiV1beta2DocumentPageParagraph + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # A table representation similar to HTML table structure. + class GoogleCloudDocumentaiV1beta2DocumentPageTable + include Google::Apis::Core::Hashable + + # Body rows of the table. + # Corresponds to the JSON property `bodyRows` + # @return [Array] + attr_accessor :body_rows + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Header rows of the table. + # Corresponds to the JSON property `headerRows` + # @return [Array] + attr_accessor :header_rows + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @body_rows = args[:body_rows] if args.key?(:body_rows) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @header_rows = args[:header_rows] if args.key?(:header_rows) + @layout = args[:layout] if args.key?(:layout) + end + end + + # A cell representation inside the table. + class GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell + include Google::Apis::Core::Hashable + + # How many columns this cell spans. + # Corresponds to the JSON property `colSpan` + # @return [Fixnum] + attr_accessor :col_span + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + # How many rows this cell spans. + # Corresponds to the JSON property `rowSpan` + # @return [Fixnum] + attr_accessor :row_span + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @col_span = args[:col_span] if args.key?(:col_span) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @row_span = args[:row_span] if args.key?(:row_span) + end + end + + # A row of table cells. + class GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow + include Google::Apis::Core::Hashable + + # Cells that make up this row. + # Corresponds to the JSON property `cells` + # @return [Array] + attr_accessor :cells + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cells = args[:cells] if args.key?(:cells) + end + end + + # A detected token. + class GoogleCloudDocumentaiV1beta2DocumentPageToken + include Google::Apis::Core::Hashable + + # Detected break at the end of a Token. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Detected break at the end of a Token. + class GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak + include Google::Apis::Core::Hashable + + # Detected break type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + end + end + + # Detected non-text visual elements e.g. checkbox, signature etc. on the page. + class GoogleCloudDocumentaiV1beta2DocumentPageVisualElement + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout] + attr_accessor :layout + + # Type of the VisualElement. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @type = args[:type] if args.key?(:type) + end + end + + # Structure to identify provenance relationships between annotations in + # different revisions. + class GoogleCloudDocumentaiV1beta2DocumentProvenance + include Google::Apis::Core::Hashable + + # The Id of this operation. Needs to be unique within the scope of the revision. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # References to the original elements that are replaced. + # Corresponds to the JSON property `parents` + # @return [Array] + attr_accessor :parents + + # The index of the revision that produced this element. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + # The type of provenance operation. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @parents = args[:parents] if args.key?(:parents) + @revision = args[:revision] if args.key?(:revision) + @type = args[:type] if args.key?(:type) + end + end + + # Structure for referencing parent provenances. When an element replaces one of + # more other elements parent references identify the elements that are replaced. + class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent + include Google::Apis::Core::Hashable + + # The id of the parent provenance. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The index of the [Document.revisions] identifying the parent revision. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @revision = args[:revision] if args.key?(:revision) + end + end + + # Contains past or forward revisions of this document. + class GoogleCloudDocumentaiV1beta2DocumentRevision + include Google::Apis::Core::Hashable + + # If the change was made by a person specify the name or id of that person. + # Corresponds to the JSON property `agent` + # @return [String] + attr_accessor :agent + + # The time that the revision was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Human Review information of the document. + # Corresponds to the JSON property `humanReview` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview] + attr_accessor :human_review + + # Id of the revision. Unique within the context of the document. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The revisions that this revision is based on. This can include one or more + # parent (when documents are merged.) This field represents the index into the ` + # revisions` field. + # Corresponds to the JSON property `parent` + # @return [Array] + attr_accessor :parent + + # If the annotation was made by processor identify the processor by its resource + # name. + # Corresponds to the JSON property `processor` + # @return [String] + attr_accessor :processor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent = args[:agent] if args.key?(:agent) + @create_time = args[:create_time] if args.key?(:create_time) + @human_review = args[:human_review] if args.key?(:human_review) + @id = args[:id] if args.key?(:id) + @parent = args[:parent] if args.key?(:parent) + @processor = args[:processor] if args.key?(:processor) + end + end + + # Human Review information of the document. + class GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview + include Google::Apis::Core::Hashable + + # Human review state. e.g. `requested`, `succeeded`, `rejected`. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the rejection reason when the state is `rejected`. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + end + end + + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. + class GoogleCloudDocumentaiV1beta2DocumentShardInfo + include Google::Apis::Core::Hashable + + # Total number of shards. + # Corresponds to the JSON property `shardCount` + # @return [Fixnum] + attr_accessor :shard_count + + # The 0-based index of this shard. + # Corresponds to the JSON property `shardIndex` + # @return [Fixnum] + attr_accessor :shard_index + + # The index of the first character in Document.text in the overall document + # global text. + # Corresponds to the JSON property `textOffset` + # @return [Fixnum] + attr_accessor :text_offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @shard_count = args[:shard_count] if args.key?(:shard_count) + @shard_index = args[:shard_index] if args.key?(:shard_index) + @text_offset = args[:text_offset] if args.key?(:text_offset) + end + end + + # Annotation for common text style attributes. This adheres to CSS conventions + # as much as possible. + class GoogleCloudDocumentaiV1beta2DocumentStyle + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... + # Corresponds to the JSON property `backgroundColor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor] + attr_accessor :background_color + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor] + attr_accessor :color + + # Font size with unit. + # Corresponds to the JSON property `fontSize` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentStyleFontSize] + attr_accessor :font_size + + # Font weight. Possible values are normal, bold, bolder, and lighter. https:// + # www.w3schools.com/cssref/pr_font_weight.asp + # Corresponds to the JSON property `fontWeight` + # @return [String] + attr_accessor :font_weight + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor] + attr_accessor :text_anchor + + # Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/ + # pr_text_text-decoration.asp + # Corresponds to the JSON property `textDecoration` + # @return [String] + attr_accessor :text_decoration + + # Text style. Possible values are normal, italic, and oblique. https://www. + # w3schools.com/cssref/pr_font_font-style.asp + # Corresponds to the JSON property `textStyle` + # @return [String] + attr_accessor :text_style + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @background_color = args[:background_color] if args.key?(:background_color) + @color = args[:color] if args.key?(:color) + @font_size = args[:font_size] if args.key?(:font_size) + @font_weight = args[:font_weight] if args.key?(:font_weight) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @text_decoration = args[:text_decoration] if args.key?(:text_decoration) + @text_style = args[:text_style] if args.key?(:text_style) + end + end + + # Font size with unit. + class GoogleCloudDocumentaiV1beta2DocumentStyleFontSize + include Google::Apis::Core::Hashable + + # Font size for the text. + # Corresponds to the JSON property `size` + # @return [Float] + attr_accessor :size + + # Unit for the font size. Follows CSS naming (in, px, pt, etc.). + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @size = args[:size] if args.key?(:size) + @unit = args[:unit] if args.key?(:unit) + end + end + + # Text reference indexing into the Document.text. + class GoogleCloudDocumentaiV1beta2DocumentTextAnchor + include Google::Apis::Core::Hashable + + # Contains the content of the text span so that users do not have to look it up + # in the text_segments. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The text segments from the Document.text. + # Corresponds to the JSON property `textSegments` + # @return [Array] + attr_accessor :text_segments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @text_segments = args[:text_segments] if args.key?(:text_segments) + end + end + + # A text segment in the Document.text. The indices may be out of bounds which + # indicate that the text extends into another document shard for large sharded + # documents. See ShardInfo.text_offset + class GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment + include Google::Apis::Core::Hashable + + # TextSegment half open end UTF-8 char index in the Document.text. + # Corresponds to the JSON property `endIndex` + # @return [Fixnum] + attr_accessor :end_index + + # TextSegment start UTF-8 char index in the Document.text. + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_index = args[:end_index] if args.key?(:end_index) + @start_index = args[:start_index] if args.key?(:start_index) + end + end + + # This message is used for text changes aka. OCR corrections. + class GoogleCloudDocumentaiV1beta2DocumentTextChange + include Google::Apis::Core::Hashable + + # The text that replaces the text identified in the `text_anchor`. + # Corresponds to the JSON property `changedText` + # @return [String] + attr_accessor :changed_text + + # The history of this annotation. + # Corresponds to the JSON property `provenance` + # @return [Array] + attr_accessor :provenance + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor] + attr_accessor :text_anchor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @changed_text = args[:changed_text] if args.key?(:changed_text) + @provenance = args[:provenance] if args.key?(:provenance) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + end + end + + # A translation of the text segment. + class GoogleCloudDocumentaiV1beta2DocumentTranslation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # The history of this annotation. + # Corresponds to the JSON property `provenance` + # @return [Array] + attr_accessor :provenance + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor] + attr_accessor :text_anchor + + # Text translated into the target language. + # Corresponds to the JSON property `translatedText` + # @return [String] + attr_accessor :translated_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @provenance = args[:provenance] if args.key?(:provenance) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @translated_text = args[:translated_text] if args.key?(:translated_text) + end + end + + # The Google Cloud Storage location where the output file will be written to. + class GoogleCloudDocumentaiV1beta2GcsDestination + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input file will be read from. + class GoogleCloudDocumentaiV1beta2GcsSource + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The desired input location and metadata. + class GoogleCloudDocumentaiV1beta2InputConfig + include Google::Apis::Core::Hashable + + # Content in bytes, represented as a stream of bytes. Note: As with all `bytes` + # fields, proto buffer messages use a pure binary representation, whereas JSON + # representations use base64. This field only works for synchronous + # ProcessDocument method. + # Corresponds to the JSON property `contents` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :contents + + # The Google Cloud Storage location where the input file will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsSource] + attr_accessor :gcs_source + + # Required. Mimetype of the input. Current supported mimetypes are application/ + # pdf, image/tiff, and image/gif. In addition, application/json type is + # supported for requests with ProcessDocumentRequest.automl_params field set. + # The JSON file needs to be in Document format. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contents = args[:contents] if args.key?(:contents) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # A vertex represents a 2D point in the image. NOTE: the normalized vertex + # coordinates are relative to the original image and range from 0 to 1. + class GoogleCloudDocumentaiV1beta2NormalizedVertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # Contains metadata for the BatchProcessDocuments operation. + class GoogleCloudDocumentaiV1beta2OperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current batch processing. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudDocumentaiV1beta2OutputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the output file will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsDestination] + attr_accessor :gcs_destination + + # The max number of pages to include into each output Document shard JSON on + # Google Cloud Storage. The valid range is [1, 100]. If not specified, the + # default value is 20. For example, for one pdf file with 100 pages, 100 parsed + # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON + # files each containing 20 parsed pages will be written under the prefix + # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y + # are 1-indexed page numbers. Example GCS outputs with 157 pages and + # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to- + # 150.json pages-151-to-157.json + # Corresponds to the JSON property `pagesPerShard` + # @return [Fixnum] + attr_accessor :pages_per_shard + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + @pages_per_shard = args[:pages_per_shard] if args.key?(:pages_per_shard) + end + end + + # Response to a single document processing request. + class GoogleCloudDocumentaiV1beta2ProcessDocumentResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2InputConfig] + attr_accessor :input_config + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_config = args[:input_config] if args.key?(:input_config) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are + # in the same scale as the original image. + class GoogleCloudDocumentaiV1beta2Vertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Fixnum] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Fixnum] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # The long running operation metadata for batch process method. + class GoogleCloudDocumentaiV1beta3BatchProcessMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The list of response details of each document. + # Corresponds to the JSON property `individualProcessStatuses` + # @return [Array] + attr_accessor :individual_process_statuses + + # The state of the current batch processing. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @individual_process_statuses = args[:individual_process_statuses] if args.key?(:individual_process_statuses) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The status of a each individual document in the batch process. + class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus + include Google::Apis::Core::Hashable + + # The name of the operation triggered by the processed document. If the human + # review process is not triggered, this field will be empty. It has the same + # response type and metadata as the long running operation returned by + # ReviewDocument method. + # Corresponds to the JSON property `humanReviewOperation` + # @return [String] + attr_accessor :human_review_operation + + # The source of the document, same as the [input_gcs_source] field in the + # request when the batch process started. The batch process is started by take + # snapshot of that document, since a user can move or change that document + # during the process. + # Corresponds to the JSON property `inputGcsSource` + # @return [String] + attr_accessor :input_gcs_source + + # The output_gcs_destination (in the request as 'output_gcs_destination') of the + # processed document if it was successful, otherwise empty. + # Corresponds to the JSON property `outputGcsDestination` + # @return [String] + attr_accessor :output_gcs_destination + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `status` + # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation) + @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source) + @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination) + @status = args[:status] if args.key?(:status) + end + end + + # Request message for batch process document method. + class GoogleCloudDocumentaiV1beta3BatchProcessRequest + include Google::Apis::Core::Hashable + + # The input config for each single document in the batch process. + # Corresponds to the JSON property `inputConfigs` + # @return [Array] + attr_accessor :input_configs + + # The message for output config in batch process. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_configs = args[:input_configs] if args.key?(:input_configs) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # The message for input config in batch process. + class GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig + include Google::Apis::Core::Hashable + + # The Cloud Storage location as the source of the document. + # Corresponds to the JSON property `gcsSource` + # @return [String] + attr_accessor :gcs_source + + # Mimetype of the input. If the input is a raw document, the supported mimetypes + # are application/pdf, image/tiff, and image/gif. If the input is a [Document] + # proto, the type should be application/json. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + + # The message for output config in batch process. + class GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig + include Google::Apis::Core::Hashable + + # The output Cloud Storage directory to put the processed documents. + # Corresponds to the JSON property `gcsDestination` + # @return [String] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Response message for batch process document method. + class GoogleCloudDocumentaiV1beta3BatchProcessResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A bounding polygon for the detected image annotation. + class GoogleCloudDocumentaiV1beta3BoundingPoly + include Google::Apis::Core::Hashable + + # The bounding polygon normalized vertices. + # Corresponds to the JSON property `normalizedVertices` + # @return [Array] + attr_accessor :normalized_vertices + + # The bounding polygon vertices. + # Corresponds to the JSON property `vertices` + # @return [Array] + attr_accessor :vertices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) + @vertices = args[:vertices] if args.key?(:vertices) + end + end + + # Document represents the canonical document resource in Document Understanding + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. + class GoogleCloudDocumentaiV1beta3Document + include Google::Apis::Core::Hashable + + # Inline document content, represented as a stream of bytes. Note: As with all ` + # bytes` fields, protobuffers use a pure binary representation, whereas JSON + # representations use base64. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # A list of entities detected on Document.text. For document shards, entities in + # this list may cross shard boundaries. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Relationship among Document.entities. + # Corresponds to the JSON property `entityRelations` + # @return [Array] + attr_accessor :entity_relations + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus] + attr_accessor :error + + # An IANA published MIME type (also referred to as media type). For more + # information, see https://www.iana.org/assignments/media-types/media-types. + # xhtml. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Visual page layout for the Document. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # Revision history of this document. + # Corresponds to the JSON property `revisions` + # @return [Array] + attr_accessor :revisions + + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. + # Corresponds to the JSON property `shardInfo` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentShardInfo] + attr_accessor :shard_info + + # UTF-8 encoded text in reading order from the document. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # A list of text corrections made to [Document.text]. This is usually used for + # annotating corrections to OCR mistakes. Text changes for a given revision may + # not overlap with each other. + # Corresponds to the JSON property `textChanges` + # @return [Array] + attr_accessor :text_changes + + # Styles for the Document.text. + # Corresponds to the JSON property `textStyles` + # @return [Array] + attr_accessor :text_styles + + # A list of translations on Document.text. For document shards, translations in + # this list may cross shard boundaries. + # Corresponds to the JSON property `translations` + # @return [Array] + attr_accessor :translations + + # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/ + # object_name`. Object versioning is not supported. See [Google Cloud Storage + # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more + # info. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @entities = args[:entities] if args.key?(:entities) + @entity_relations = args[:entity_relations] if args.key?(:entity_relations) + @error = args[:error] if args.key?(:error) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @pages = args[:pages] if args.key?(:pages) + @revisions = args[:revisions] if args.key?(:revisions) + @shard_info = args[:shard_info] if args.key?(:shard_info) + @text = args[:text] if args.key?(:text) + @text_changes = args[:text_changes] if args.key?(:text_changes) + @text_styles = args[:text_styles] if args.key?(:text_styles) + @translations = args[:translations] if args.key?(:translations) + @uri = args[:uri] if args.key?(:uri) + end + end + + # A phrase in the text that is a known entity type, such as a person, an + # organization, or location. + class GoogleCloudDocumentaiV1beta3DocumentEntity + include Google::Apis::Core::Hashable + + # Optional. Confidence of detected Schema entity. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Optional. Canonical id. This will be a unique value in the entity list for + # this document. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Deprecated. Use `id` field instead. + # Corresponds to the JSON property `mentionId` + # @return [String] + attr_accessor :mention_id + + # Text value in the document e.g. `1600 Amphitheatre Pkwy`. + # Corresponds to the JSON property `mentionText` + # @return [String] + attr_accessor :mention_text + + # Parsed and normalized entity value. + # Corresponds to the JSON property `normalizedValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue] + attr_accessor :normalized_value + + # Referencing the visual context of the entity in the Document.pages. Page + # anchors can be cross-page, consist of multiple bounding polygons and + # optionally reference specific layout element types. + # Corresponds to the JSON property `pageAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageAnchor] + attr_accessor :page_anchor + + # Optional. Entities can be nested to form a hierarchical data structure + # representing the content in the document. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance] + attr_accessor :provenance + + # Optional. Whether the entity will be redacted for de-identification purposes. + # Corresponds to the JSON property `redacted` + # @return [Boolean] + attr_accessor :redacted + alias_method :redacted?, :redacted + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor] + attr_accessor :text_anchor + + # Entity type from a schema e.g. `Address`. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @id = args[:id] if args.key?(:id) + @mention_id = args[:mention_id] if args.key?(:mention_id) + @mention_text = args[:mention_text] if args.key?(:mention_text) + @normalized_value = args[:normalized_value] if args.key?(:normalized_value) + @page_anchor = args[:page_anchor] if args.key?(:page_anchor) + @properties = args[:properties] if args.key?(:properties) + @provenance = args[:provenance] if args.key?(:provenance) + @redacted = args[:redacted] if args.key?(:redacted) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @type = args[:type] if args.key?(:type) + end + end + + # Parsed and normalized entity value. + class GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue + include Google::Apis::Core::Hashable + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + # Corresponds to the JSON property `addressValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress] + attr_accessor :address_value + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + # Corresponds to the JSON property `dateValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDate] + attr_accessor :date_value + + # Represents civil time in one of a few possible ways: * When utc_offset is set + # and time_zone is unset: a civil time on a calendar day with a particular + # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time + # on a calendar day in a particular time zone. * When neither time_zone nor + # utc_offset is set: a civil time on a calendar day in local time. The date is + # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is + # considered not to have a specific year. month and day must have valid, non- + # zero values. This type is more flexible than some applications may want. Make + # sure to document and validate your application's limitations. + # Corresponds to the JSON property `datetimeValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime] + attr_accessor :datetime_value + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `moneyValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeMoney] + attr_accessor :money_value + + # Required. Normalized entity value stored as a string. This field is populated + # for supported document type (e.g. Invoice). For some entity types, one of + # respective 'structured_value' fields may also be populated. - Money/Currency + # type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) + # is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the + # ISO 8601 text format. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_value = args[:address_value] if args.key?(:address_value) + @date_value = args[:date_value] if args.key?(:date_value) + @datetime_value = args[:datetime_value] if args.key?(:datetime_value) + @money_value = args[:money_value] if args.key?(:money_value) + @text = args[:text] if args.key?(:text) + end + end + + # Relationship between Entities. + class GoogleCloudDocumentaiV1beta3DocumentEntityRelation + include Google::Apis::Core::Hashable + + # Object entity id. + # Corresponds to the JSON property `objectId` + # @return [String] + attr_accessor :object_id_prop + + # Relationship description. + # Corresponds to the JSON property `relation` + # @return [String] + attr_accessor :relation + + # Subject entity id. + # Corresponds to the JSON property `subjectId` + # @return [String] + attr_accessor :subject_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @relation = args[:relation] if args.key?(:relation) + @subject_id = args[:subject_id] if args.key?(:subject_id) + end + end + + # A page in a Document. + class GoogleCloudDocumentaiV1beta3DocumentPage + include Google::Apis::Core::Hashable + + # A list of visually detected text blocks on the page. A block has a set of + # lines (collected into paragraphs) that have a common line-spacing and + # orientation. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Dimension for the page. + # Corresponds to the JSON property `dimension` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDimension] + attr_accessor :dimension + + # A list of visually detected form fields on the page. + # Corresponds to the JSON property `formFields` + # @return [Array] + attr_accessor :form_fields + + # Rendered image contents for this page. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImage] + attr_accessor :image + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + # A list of visually detected text lines on the page. A collection of tokens + # that a human would perceive as a line. + # Corresponds to the JSON property `lines` + # @return [Array] + attr_accessor :lines + + # 1-based index for current Page in a parent Document. Useful when a page is + # taken out of a Document for individual processing. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # A list of visually detected text paragraphs on the page. A collection of lines + # that a human would perceive as a paragraph. + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # A list of visually detected tables on the page. + # Corresponds to the JSON property `tables` + # @return [Array] + attr_accessor :tables + + # A list of visually detected tokens on the page. + # Corresponds to the JSON property `tokens` + # @return [Array] + attr_accessor :tokens + + # Transformation matrices that were applied to the original document image to + # produce Page.image. + # Corresponds to the JSON property `transforms` + # @return [Array] + attr_accessor :transforms + + # A list of detected non-text visual elements e.g. checkbox, signature etc. on + # the page. + # Corresponds to the JSON property `visualElements` + # @return [Array] + attr_accessor :visual_elements + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blocks = args[:blocks] if args.key?(:blocks) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @dimension = args[:dimension] if args.key?(:dimension) + @form_fields = args[:form_fields] if args.key?(:form_fields) + @image = args[:image] if args.key?(:image) + @layout = args[:layout] if args.key?(:layout) + @lines = args[:lines] if args.key?(:lines) + @page_number = args[:page_number] if args.key?(:page_number) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @tables = args[:tables] if args.key?(:tables) + @tokens = args[:tokens] if args.key?(:tokens) + @transforms = args[:transforms] if args.key?(:transforms) + @visual_elements = args[:visual_elements] if args.key?(:visual_elements) + end + end + + # Referencing the visual context of the entity in the Document.pages. Page + # anchors can be cross-page, consist of multiple bounding polygons and + # optionally reference specific layout element types. + class GoogleCloudDocumentaiV1beta3DocumentPageAnchor + include Google::Apis::Core::Hashable + + # One or more references to visual page elements + # Corresponds to the JSON property `pageRefs` + # @return [Array] + attr_accessor :page_refs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_refs = args[:page_refs] if args.key?(:page_refs) + end + end + + # Represents a weak reference to a page element within a document. + class GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly] + attr_accessor :bounding_poly + + # Optional. Deprecated. Use PageRef.bounding_poly instead. + # Corresponds to the JSON property `layoutId` + # @return [String] + attr_accessor :layout_id + + # Optional. The type of the layout element that is being referenced if any. + # Corresponds to the JSON property `layoutType` + # @return [String] + attr_accessor :layout_type + + # Required. Index into the Document.pages element + # Corresponds to the JSON property `page` + # @return [Fixnum] + attr_accessor :page + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @layout_id = args[:layout_id] if args.key?(:layout_id) + @layout_type = args[:layout_type] if args.key?(:layout_type) + @page = args[:page] if args.key?(:page) + end + end + + # A block has a set of lines (collected into paragraphs) that have a common line- + # spacing and orientation. + class GoogleCloudDocumentaiV1beta3DocumentPageBlock + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Detected language for a structural component. + class GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage + include Google::Apis::Core::Hashable + + # Confidence of detected language. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @confidence = args[:confidence] if args.key?(:confidence) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Dimension for the page. + class GoogleCloudDocumentaiV1beta3DocumentPageDimension + include Google::Apis::Core::Hashable + + # Page height. + # Corresponds to the JSON property `height` + # @return [Float] + attr_accessor :height + + # Dimension unit. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # Page width. + # Corresponds to the JSON property `width` + # @return [Float] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @unit = args[:unit] if args.key?(:unit) + @width = args[:width] if args.key?(:width) + end + end + + # A form field detected on the page. + class GoogleCloudDocumentaiV1beta3DocumentPageFormField + include Google::Apis::Core::Hashable + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `fieldName` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :field_name + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `fieldValue` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :field_value + + # A list of detected languages for name together with confidence. + # Corresponds to the JSON property `nameDetectedLanguages` + # @return [Array] + attr_accessor :name_detected_languages + + # A list of detected languages for value together with confidence. + # Corresponds to the JSON property `valueDetectedLanguages` + # @return [Array] + attr_accessor :value_detected_languages + + # If the value is non-textual, this field represents the type. Current valid + # values are: - blank (this indicates the field_value is normal text) - " + # unfilled_checkbox" - "filled_checkbox" + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field_name = args[:field_name] if args.key?(:field_name) + @field_value = args[:field_value] if args.key?(:field_value) + @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages) + @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages) + @value_type = args[:value_type] if args.key?(:value_type) + end + end + + # Rendered image contents for this page. + class GoogleCloudDocumentaiV1beta3DocumentPageImage + include Google::Apis::Core::Hashable + + # Raw byte content of the image. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # Height of the image in pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Encoding mime type for the image. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Width of the image in pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @height = args[:height] if args.key?(:height) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @width = args[:width] if args.key?(:width) + end + end + + # Visual element describing a layout unit on a page. + class GoogleCloudDocumentaiV1beta3DocumentPageLayout + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of the current Layout within context of the object this layout is + # for. e.g. confidence can be for a single token, a table, a visual element, etc. + # depending on context. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Detected orientation for the Layout. + # Corresponds to the JSON property `orientation` + # @return [String] + attr_accessor :orientation + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor] + attr_accessor :text_anchor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @confidence = args[:confidence] if args.key?(:confidence) + @orientation = args[:orientation] if args.key?(:orientation) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + end + end + + # A collection of tokens that a human would perceive as a line. Does not cross + # column boundaries, can be horizontal, vertical, etc. + class GoogleCloudDocumentaiV1beta3DocumentPageLine + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Representation for transformation matrix, intended to be compatible and used + # with OpenCV format for image manipulation. + class GoogleCloudDocumentaiV1beta3DocumentPageMatrix + include Google::Apis::Core::Hashable + + # Number of columns in the matrix. + # Corresponds to the JSON property `cols` + # @return [Fixnum] + attr_accessor :cols + + # The matrix data. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Number of rows in the matrix. + # Corresponds to the JSON property `rows` + # @return [Fixnum] + attr_accessor :rows + + # This encodes information about what data type the matrix uses. For example, 0 ( + # CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data + # types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/ + # group__core__hal__interface.html + # Corresponds to the JSON property `type` + # @return [Fixnum] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cols = args[:cols] if args.key?(:cols) + @data = args[:data] if args.key?(:data) + @rows = args[:rows] if args.key?(:rows) + @type = args[:type] if args.key?(:type) + end + end + + # A collection of lines that a human would perceive as a paragraph. + class GoogleCloudDocumentaiV1beta3DocumentPageParagraph + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # A table representation similar to HTML table structure. + class GoogleCloudDocumentaiV1beta3DocumentPageTable + include Google::Apis::Core::Hashable + + # Body rows of the table. + # Corresponds to the JSON property `bodyRows` + # @return [Array] + attr_accessor :body_rows + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Header rows of the table. + # Corresponds to the JSON property `headerRows` + # @return [Array] + attr_accessor :header_rows + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @body_rows = args[:body_rows] if args.key?(:body_rows) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @header_rows = args[:header_rows] if args.key?(:header_rows) + @layout = args[:layout] if args.key?(:layout) + end + end + + # A cell representation inside the table. + class GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell + include Google::Apis::Core::Hashable + + # How many columns this cell spans. + # Corresponds to the JSON property `colSpan` + # @return [Fixnum] + attr_accessor :col_span + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + # How many rows this cell spans. + # Corresponds to the JSON property `rowSpan` + # @return [Fixnum] + attr_accessor :row_span + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @col_span = args[:col_span] if args.key?(:col_span) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @row_span = args[:row_span] if args.key?(:row_span) + end + end + + # A row of table cells. + class GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow + include Google::Apis::Core::Hashable + + # Cells that make up this row. + # Corresponds to the JSON property `cells` + # @return [Array] + attr_accessor :cells + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cells = args[:cells] if args.key?(:cells) + end + end + + # A detected token. + class GoogleCloudDocumentaiV1beta3DocumentPageToken + include Google::Apis::Core::Hashable + + # Detected break at the end of a Token. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + # Structure to identify provenance relationships between annotations in + # different revisions. + # Corresponds to the JSON property `provenance` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance] + attr_accessor :provenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_break = args[:detected_break] if args.key?(:detected_break) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @provenance = args[:provenance] if args.key?(:provenance) + end + end + + # Detected break at the end of a Token. + class GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak + include Google::Apis::Core::Hashable + + # Detected break type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + end + end + + # Detected non-text visual elements e.g. checkbox, signature etc. on the page. + class GoogleCloudDocumentaiV1beta3DocumentPageVisualElement + include Google::Apis::Core::Hashable + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + # Visual element describing a layout unit on a page. + # Corresponds to the JSON property `layout` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout] + attr_accessor :layout + + # Type of the VisualElement. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detected_languages = args[:detected_languages] if args.key?(:detected_languages) + @layout = args[:layout] if args.key?(:layout) + @type = args[:type] if args.key?(:type) + end + end + + # Structure to identify provenance relationships between annotations in + # different revisions. + class GoogleCloudDocumentaiV1beta3DocumentProvenance + include Google::Apis::Core::Hashable + + # The Id of this operation. Needs to be unique within the scope of the revision. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # References to the original elements that are replaced. + # Corresponds to the JSON property `parents` + # @return [Array] + attr_accessor :parents + + # The index of the revision that produced this element. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + # The type of provenance operation. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @parents = args[:parents] if args.key?(:parents) + @revision = args[:revision] if args.key?(:revision) + @type = args[:type] if args.key?(:type) + end + end + + # Structure for referencing parent provenances. When an element replaces one of + # more other elements parent references identify the elements that are replaced. + class GoogleCloudDocumentaiV1beta3DocumentProvenanceParent + include Google::Apis::Core::Hashable + + # The id of the parent provenance. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The index of the [Document.revisions] identifying the parent revision. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @revision = args[:revision] if args.key?(:revision) + end + end + + # Contains past or forward revisions of this document. + class GoogleCloudDocumentaiV1beta3DocumentRevision + include Google::Apis::Core::Hashable + + # If the change was made by a person specify the name or id of that person. + # Corresponds to the JSON property `agent` + # @return [String] + attr_accessor :agent + + # The time that the revision was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Human Review information of the document. + # Corresponds to the JSON property `humanReview` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview] + attr_accessor :human_review + + # Id of the revision. Unique within the context of the document. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The revisions that this revision is based on. This can include one or more + # parent (when documents are merged.) This field represents the index into the ` + # revisions` field. + # Corresponds to the JSON property `parent` + # @return [Array] + attr_accessor :parent + + # If the annotation was made by processor identify the processor by its resource + # name. + # Corresponds to the JSON property `processor` + # @return [String] + attr_accessor :processor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent = args[:agent] if args.key?(:agent) + @create_time = args[:create_time] if args.key?(:create_time) + @human_review = args[:human_review] if args.key?(:human_review) + @id = args[:id] if args.key?(:id) + @parent = args[:parent] if args.key?(:parent) + @processor = args[:processor] if args.key?(:processor) + end + end + + # Human Review information of the document. + class GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview + include Google::Apis::Core::Hashable + + # Human review state. e.g. `requested`, `succeeded`, `rejected`. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the rejection reason when the state is `rejected`. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + end + end + + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. + class GoogleCloudDocumentaiV1beta3DocumentShardInfo + include Google::Apis::Core::Hashable + + # Total number of shards. + # Corresponds to the JSON property `shardCount` + # @return [Fixnum] + attr_accessor :shard_count + + # The 0-based index of this shard. + # Corresponds to the JSON property `shardIndex` + # @return [Fixnum] + attr_accessor :shard_index + + # The index of the first character in Document.text in the overall document + # global text. + # Corresponds to the JSON property `textOffset` + # @return [Fixnum] + attr_accessor :text_offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @shard_count = args[:shard_count] if args.key?(:shard_count) + @shard_index = args[:shard_index] if args.key?(:shard_index) + @text_offset = args[:text_offset] if args.key?(:text_offset) + end + end + + # Annotation for common text style attributes. This adheres to CSS conventions + # as much as possible. + class GoogleCloudDocumentaiV1beta3DocumentStyle + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... + # Corresponds to the JSON property `backgroundColor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor] + attr_accessor :background_color + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeColor] + attr_accessor :color + + # Font size with unit. + # Corresponds to the JSON property `fontSize` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentStyleFontSize] + attr_accessor :font_size + + # Font weight. Possible values are normal, bold, bolder, and lighter. https:// + # www.w3schools.com/cssref/pr_font_weight.asp + # Corresponds to the JSON property `fontWeight` + # @return [String] + attr_accessor :font_weight + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor] + attr_accessor :text_anchor + + # Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/ + # pr_text_text-decoration.asp + # Corresponds to the JSON property `textDecoration` + # @return [String] + attr_accessor :text_decoration + + # Text style. Possible values are normal, italic, and oblique. https://www. + # w3schools.com/cssref/pr_font_font-style.asp + # Corresponds to the JSON property `textStyle` + # @return [String] + attr_accessor :text_style + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @background_color = args[:background_color] if args.key?(:background_color) + @color = args[:color] if args.key?(:color) + @font_size = args[:font_size] if args.key?(:font_size) + @font_weight = args[:font_weight] if args.key?(:font_weight) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @text_decoration = args[:text_decoration] if args.key?(:text_decoration) + @text_style = args[:text_style] if args.key?(:text_style) + end + end + + # Font size with unit. + class GoogleCloudDocumentaiV1beta3DocumentStyleFontSize + include Google::Apis::Core::Hashable + + # Font size for the text. + # Corresponds to the JSON property `size` + # @return [Float] + attr_accessor :size + + # Unit for the font size. Follows CSS naming (in, px, pt, etc.). + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @size = args[:size] if args.key?(:size) + @unit = args[:unit] if args.key?(:unit) + end + end + + # Text reference indexing into the Document.text. + class GoogleCloudDocumentaiV1beta3DocumentTextAnchor + include Google::Apis::Core::Hashable + + # Contains the content of the text span so that users do not have to look it up + # in the text_segments. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The text segments from the Document.text. + # Corresponds to the JSON property `textSegments` + # @return [Array] + attr_accessor :text_segments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @text_segments = args[:text_segments] if args.key?(:text_segments) + end + end + + # A text segment in the Document.text. The indices may be out of bounds which + # indicate that the text extends into another document shard for large sharded + # documents. See ShardInfo.text_offset + class GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment + include Google::Apis::Core::Hashable + + # TextSegment half open end UTF-8 char index in the Document.text. + # Corresponds to the JSON property `endIndex` + # @return [Fixnum] + attr_accessor :end_index + + # TextSegment start UTF-8 char index in the Document.text. + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_index = args[:end_index] if args.key?(:end_index) + @start_index = args[:start_index] if args.key?(:start_index) + end + end + + # This message is used for text changes aka. OCR corrections. + class GoogleCloudDocumentaiV1beta3DocumentTextChange + include Google::Apis::Core::Hashable + + # The text that replaces the text identified in the `text_anchor`. + # Corresponds to the JSON property `changedText` + # @return [String] + attr_accessor :changed_text + + # The history of this annotation. + # Corresponds to the JSON property `provenance` + # @return [Array] + attr_accessor :provenance + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor] + attr_accessor :text_anchor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @changed_text = args[:changed_text] if args.key?(:changed_text) + @provenance = args[:provenance] if args.key?(:provenance) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + end + end + + # A translation of the text segment. + class GoogleCloudDocumentaiV1beta3DocumentTranslation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # The history of this annotation. + # Corresponds to the JSON property `provenance` + # @return [Array] + attr_accessor :provenance + + # Text reference indexing into the Document.text. + # Corresponds to the JSON property `textAnchor` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor] + attr_accessor :text_anchor + + # Text translated into the target language. + # Corresponds to the JSON property `translatedText` + # @return [String] + attr_accessor :translated_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @provenance = args[:provenance] if args.key?(:provenance) + @text_anchor = args[:text_anchor] if args.key?(:text_anchor) + @translated_text = args[:translated_text] if args.key?(:translated_text) + end + end + + # A vertex represents a 2D point in the image. NOTE: the normalized vertex + # coordinates are relative to the original image and range from 0 to 1. + class GoogleCloudDocumentaiV1beta3NormalizedVertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # Request message for the process document method. + class GoogleCloudDocumentaiV1beta3ProcessRequest + include Google::Apis::Core::Hashable + + # Document represents the canonical document resource in Document Understanding + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. + # Corresponds to the JSON property `document` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document] + attr_accessor :document + + # Whether Human Review feature should be skipped for this request. Default to + # false. + # Corresponds to the JSON property `skipHumanReview` + # @return [Boolean] + attr_accessor :skip_human_review + alias_method :skip_human_review?, :skip_human_review + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + @skip_human_review = args[:skip_human_review] if args.key?(:skip_human_review) + end + end + + # Response message for the process document method. + class GoogleCloudDocumentaiV1beta3ProcessResponse + include Google::Apis::Core::Hashable + + # Document represents the canonical document resource in Document Understanding + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. + # Corresponds to the JSON property `document` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document] + attr_accessor :document + + # The name of the operation triggered by the processed document. If the human + # review process is not triggered, this field will be empty. It has the same + # response type and metadata as the long running operation returned by + # ReviewDocument method. + # Corresponds to the JSON property `humanReviewOperation` + # @return [String] + attr_accessor :human_review_operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation) + end + end + + # The long running operation metadata for review document method. + class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Used only when Operation.done is false. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Request message for review document method. + class GoogleCloudDocumentaiV1beta3ReviewDocumentRequest + include Google::Apis::Core::Hashable + + # Document represents the canonical document resource in Document Understanding + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. + # Corresponds to the JSON property `document` + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document] + attr_accessor :document + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + end + end + + # Response message for review document method. + class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse + include Google::Apis::Core::Hashable + + # The Cloud Storage uri for the human reviewed document. + # Corresponds to the JSON property `gcsDestination` + # @return [String] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are + # in the same scale as the original image. + class GoogleCloudDocumentaiV1beta3Vertex + include Google::Apis::Core::Hashable + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Fixnum] + attr_accessor :x + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Fixnum] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # The response message for Locations.ListLocations. + class GoogleCloudLocationListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A resource that represents Google Cloud Platform location. + class GoogleCloudLocationLocation + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: `"us-east1"`. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + class GoogleRpcStatus + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... + class GoogleTypeColor + include Google::Apis::Core::Hashable + + # The fraction of this color that should be applied to the pixel. That is, the + # final pixel color is defined by the equation: pixel color = alpha * (this + # color) + (1.0 - alpha) * (background color) This means that a value of 1.0 + # corresponds to a solid color, whereas a value of 0.0 corresponds to a + # completely transparent color. This uses a wrapper message rather than a simple + # float scalar so that it is possible to distinguish between a default value and + # the value being unset. If omitted, this color object is to be rendered as a + # solid color (as if the alpha value had been explicitly given with a value of 1. + # 0). + # Corresponds to the JSON property `alpha` + # @return [Float] + attr_accessor :alpha + + # The amount of blue in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `blue` + # @return [Float] + attr_accessor :blue + + # The amount of green in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `green` + # @return [Float] + attr_accessor :green + + # The amount of red in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `red` + # @return [Float] + attr_accessor :red + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alpha = args[:alpha] if args.key?(:alpha) + @blue = args[:blue] if args.key?(:blue) + @green = args[:green] if args.key?(:green) + @red = args[:red] if args.key?(:red) + end + end + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + class GoogleTypeDate + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + # specifying a year by itself or a year and month where the day is not + # significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # and day. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + + # Represents civil time in one of a few possible ways: * When utc_offset is set + # and time_zone is unset: a civil time on a calendar day with a particular + # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time + # on a calendar day in a particular time zone. * When neither time_zone nor + # utc_offset is set: a civil time on a calendar day in local time. The date is + # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is + # considered not to have a specific year. month and day must have valid, non- + # zero values. This type is more flexible than some applications may want. Make + # sure to document and validate your application's limitations. + class GoogleTypeDateTime + include Google::Apis::Core::Hashable + + # Required. Day of month. Must be from 1 to 31 and valid for the year and month. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may + # choose to allow the value "24:00:00" for scenarios like business closing time. + # Corresponds to the JSON property `hours` + # @return [Fixnum] + attr_accessor :hours + + # Required. Minutes of hour of day. Must be from 0 to 59. + # Corresponds to the JSON property `minutes` + # @return [Fixnum] + attr_accessor :minutes + + # Required. Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + # API may allow the value 60 if it allows leap-seconds. + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/ + # time-zones). + # Corresponds to the JSON property `timeZone` + # @return [Google::Apis::DocumentaiV1beta3::GoogleTypeTimeZone] + attr_accessor :time_zone + + # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For + # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `. + # Corresponds to the JSON property `utcOffset` + # @return [String] + attr_accessor :utc_offset + + # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime + # without a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @hours = args[:hours] if args.key?(:hours) + @minutes = args[:minutes] if args.key?(:minutes) + @month = args[:month] if args.key?(:month) + @nanos = args[:nanos] if args.key?(:nanos) + @seconds = args[:seconds] if args.key?(:seconds) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @utc_offset = args[:utc_offset] if args.key?(:utc_offset) + @year = args[:year] if args.key?(:year) + end + end + + # Represents an amount of money with its currency type. + class GoogleTypeMoney + include Google::Apis::Core::Hashable + + # The 3-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) + end + end + + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + class GoogleTypePostalAddress + include Google::Apis::Core::Hashable + + # Unstructured address lines describing the lower levels of an address. Because + # values in address_lines do not have type information and may sometimes contain + # multiple values in a single field (e.g. "Austin, TX"), it is important that + # the line order is clear. The order of address lines should be "envelope order" + # for the country/region of the address. In places where this can vary (e.g. + # Japan), address_language is used to make it explicit (e.g. "ja" for large-to- + # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most + # specific line of an address can be selected based on the language. The minimum + # permitted structural representation of an address consists of a region_code + # with all remaining information placed in the address_lines. It would be + # possible to format such an address very approximately without geocoding, but + # no semantic reasoning could be made about any of the address components until + # it was at least partially resolved. Creating an address only containing a + # region_code and address_lines, and then geocoding is the recommended way to + # handle completely unstructured addresses (as opposed to guessing which parts + # of the address should be localities or administrative areas). + # Corresponds to the JSON property `addressLines` + # @return [Array] + attr_accessor :address_lines + + # Optional. Highest administrative subdivision which is used for postal + # addresses of a country or region. For example, this can be a state, a province, + # an oblast, or a prefecture. Specifically, for Spain this is the province and + # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many + # countries don't use an administrative area in postal addresses. E.g. in + # Switzerland this should be left unpopulated. + # Corresponds to the JSON property `administrativeArea` + # @return [String] + attr_accessor :administrative_area + + # Optional. BCP-47 language code of the contents of this address (if known). + # This is often the UI language of the input form or is expected to match one of + # the languages used in the address' country/region, or their transliterated + # equivalents. This can affect formatting in certain countries, but is not + # critical to the correctness of the data and will never affect any validation + # or other non-formatting related operations. If this value is not known, it + # should be omitted (rather than specifying a possibly incorrect default). + # Examples: "zh-Hant", "ja", "ja-Latn", "en". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Optional. Generally refers to the city/town portion of the address. Examples: + # US city, IT comune, UK post town. In regions of the world where localities are + # not well defined or do not fit into this structure well, leave locality empty + # and use address_lines. + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # Optional. The name of the organization at the address. + # Corresponds to the JSON property `organization` + # @return [String] + attr_accessor :organization + + # Optional. Postal code of the address. Not all countries use or require postal + # codes to be present, but where they are used, they may trigger additional + # validation with other parts of the address (e.g. state/zip validation in the U. + # S.A.). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Optional. The recipient at the address. This field may, under certain + # circumstances, contain multiline information. For example, it might contain " + # care of" information. + # Corresponds to the JSON property `recipients` + # @return [Array] + attr_accessor :recipients + + # Required. CLDR region code of the country/region of the address. This is never + # inferred and it is up to the user to ensure the value is correct. See http:// + # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/ + # territory_information.html for details. Example: "CH" for Switzerland. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + # The schema revision of the `PostalAddress`. This must be set to 0, which is + # the latest revision. All new revisions **must** be backward compatible with + # old revisions. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision + + # Optional. Additional, country-specific, sorting code. This is not used in most + # regions. Where it is used, the value is either a string like "CEDEX", + # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, + # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) + # or "post office indicator" (e.g. Côte d'Ivoire). + # Corresponds to the JSON property `sortingCode` + # @return [String] + attr_accessor :sorting_code + + # Optional. Sublocality of the address. For example, this can be neighborhoods, + # boroughs, districts. + # Corresponds to the JSON property `sublocality` + # @return [String] + attr_accessor :sublocality + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_lines = args[:address_lines] if args.key?(:address_lines) + @administrative_area = args[:administrative_area] if args.key?(:administrative_area) + @language_code = args[:language_code] if args.key?(:language_code) + @locality = args[:locality] if args.key?(:locality) + @organization = args[:organization] if args.key?(:organization) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @recipients = args[:recipients] if args.key?(:recipients) + @region_code = args[:region_code] if args.key?(:region_code) + @revision = args[:revision] if args.key?(:revision) + @sorting_code = args[:sorting_code] if args.key?(:sorting_code) + @sublocality = args[:sublocality] if args.key?(:sublocality) + end + end + + # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/ + # time-zones). + class GoogleTypeTimeZone + include Google::Apis::Core::Hashable + + # IANA Time Zone Database time zone, e.g. "America/New_York". + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Optional. IANA Time Zone Database version number, e.g. "2019a". + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @version = args[:version] if args.key?(:version) + end + end + end + end +end diff --git a/generated/google/apis/documentai_v1beta3/representations.rb b/generated/google/apis/documentai_v1beta3/representations.rb new file mode 100644 index 000000000..418aaeb66 --- /dev/null +++ b/generated/google/apis/documentai_v1beta3/representations.rb @@ -0,0 +1,2666 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DocumentaiV1beta3 + + class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1Document + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentEntityRelation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageAnchor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageBlock + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageDimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageFormField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageLayout + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageLine + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageParagraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageToken + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentPageVisualElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentProvenance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentRevision + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentShardInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentStyle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentStyleFontSize + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentTextAnchor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentTextChange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1DocumentTranslation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1ProcessDocumentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta1Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2Document + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentEntityRelation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageAnchor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageBlock + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageDimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageFormField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageLayout + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageLine + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageParagraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageToken + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentPageVisualElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentProvenance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentRevision + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentShardInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentStyle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentStyleFontSize + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentTextAnchor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentTextChange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2DocumentTranslation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2ProcessDocumentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta2Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3Document + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentEntityRelation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageAnchor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageBlock + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageDimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageFormField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageLayout + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageLine + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageParagraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageToken + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentPageVisualElement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentProvenance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentProvenanceParent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentRevision + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentShardInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentStyle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentStyleFontSize + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentTextAnchor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentTextChange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3DocumentTranslation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3ProcessRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3ProcessResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3ReviewDocumentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudLocationListLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudLocationLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleRpcStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeColor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeDate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeDateTime + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeMoney + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypePostalAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeTimeZone + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1ProcessDocumentResponse, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1ProcessDocumentResponse::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1NormalizedVertex, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1NormalizedVertex::Representation + + collection :vertices, as: 'vertices', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1Vertex, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1Vertex::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1Document + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + collection :entities, as: 'entities', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntity::Representation + + collection :entity_relations, as: 'entityRelations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntityRelation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntityRelation::Representation + + property :error, as: 'error', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation + + property :mime_type, as: 'mimeType' + collection :pages, as: 'pages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPage::Representation + + collection :revisions, as: 'revisions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentRevision, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentRevision::Representation + + property :shard_info, as: 'shardInfo', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentShardInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentShardInfo::Representation + + property :text, as: 'text' + collection :text_changes, as: 'textChanges', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextChange, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextChange::Representation + + collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentStyle, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentStyle::Representation + + collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTranslation::Representation + + property :uri, as: 'uri' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :id, as: 'id' + property :mention_id, as: 'mentionId' + property :mention_text, as: 'mentionText' + property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue::Representation + + property :page_anchor, as: 'pageAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageAnchor::Representation + + collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentEntity::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation + + property :redacted, as: 'redacted' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address_value, as: 'addressValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress::Representation + + property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeDate::Representation + + property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime::Representation + + property :money_value, as: 'moneyValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentEntityRelation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + property :relation, as: 'relation' + property :subject_id, as: 'subjectId' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageBlock, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageBlock::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDimension, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDimension::Representation + + collection :form_fields, as: 'formFields', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageFormField, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageFormField::Representation + + property :image, as: 'image', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageImage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageImage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLine, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLine::Representation + + property :page_number, as: 'pageNumber' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageParagraph::Representation + + collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation + + collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation + + collection :transforms, as: 'transforms', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageMatrix, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageMatrix::Representation + + collection :visual_elements, as: 'visualElements', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageVisualElement, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageVisualElement::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageAnchor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :page_refs, as: 'pageRefs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly::Representation + + property :layout_id, as: 'layoutId' + property :layout_type, as: 'layoutType' + property :page, :numeric_string => true, as: 'page' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageBlock + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageDimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :unit, as: 'unit' + property :width, as: 'width' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageFormField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field_name, as: 'fieldName', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + property :field_value, as: 'fieldValue', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :value_type, as: 'valueType' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :height, as: 'height' + property :mime_type, as: 'mimeType' + property :width, as: 'width' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageLayout + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :orientation, as: 'orientation' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageLine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cols, as: 'cols' + property :data, :base64 => true, as: 'data' + property :rows, as: 'rows' + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageParagraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :body_rows, as: 'bodyRows', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + collection :header_rows, as: 'headerRows', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :col_span, as: 'colSpan' + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + property :row_span, as: 'rowSpan' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cells, as: 'cells', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageToken + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentPageVisualElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentProvenance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :parents, as: 'parents', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenanceParent, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenanceParent::Representation + + property :revision, as: 'revision' + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :revision, as: 'revision' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentRevision + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent, as: 'agent' + property :create_time, as: 'createTime' + property :human_review, as: 'humanReview', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview::Representation + + property :id, as: 'id' + collection :parent, as: 'parent' + property :processor, as: 'processor' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :state_message, as: 'stateMessage' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentShardInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :shard_count, :numeric_string => true, as: 'shardCount' + property :shard_index, :numeric_string => true, as: 'shardIndex' + property :text_offset, :numeric_string => true, as: 'textOffset' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentStyle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :background_color, as: 'backgroundColor', class: Google::Apis::DocumentaiV1beta3::GoogleTypeColor, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeColor::Representation + + property :color, as: 'color', class: Google::Apis::DocumentaiV1beta3::GoogleTypeColor, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeColor::Representation + + property :font_size, as: 'fontSize', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentStyleFontSize, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentStyleFontSize::Representation + + property :font_weight, as: 'fontWeight' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation + + property :text_decoration, as: 'textDecoration' + property :text_style, as: 'textStyle' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentStyleFontSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :size, as: 'size' + property :unit, as: 'unit' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentTextAnchor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + collection :text_segments, as: 'textSegments', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_index, :numeric_string => true, as: 'endIndex' + property :start_index, :numeric_string => true, as: 'startIndex' + end + end + + class GoogleCloudDocumentaiV1beta1DocumentTextChange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :changed_text, as: 'changedText' + collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation + + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1DocumentTranslation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation + + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation + + property :translated_text, as: 'translatedText' + end + end + + class GoogleCloudDocumentaiV1beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDocumentaiV1beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDocumentaiV1beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1GcsSource, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudDocumentaiV1beta1NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudDocumentaiV1beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiV1beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1GcsDestination, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1GcsDestination::Representation + + property :pages_per_shard, as: 'pagesPerShard' + end + end + + class GoogleCloudDocumentaiV1beta1ProcessDocumentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1InputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1InputConfig::Representation + + property :output_config, as: 'outputConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1OutputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1OutputConfig::Representation + + end + end + + class GoogleCloudDocumentaiV1beta1Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2ProcessDocumentResponse, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2ProcessDocumentResponse::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2NormalizedVertex, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2NormalizedVertex::Representation + + collection :vertices, as: 'vertices', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2Vertex, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2Vertex::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2Document + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + collection :entities, as: 'entities', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntity::Representation + + collection :entity_relations, as: 'entityRelations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntityRelation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntityRelation::Representation + + property :error, as: 'error', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation + + collection :labels, as: 'labels', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentLabel, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentLabel::Representation + + property :mime_type, as: 'mimeType' + collection :pages, as: 'pages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPage::Representation + + collection :revisions, as: 'revisions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentRevision, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentRevision::Representation + + property :shard_info, as: 'shardInfo', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentShardInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentShardInfo::Representation + + property :text, as: 'text' + collection :text_changes, as: 'textChanges', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextChange, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextChange::Representation + + collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentStyle, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentStyle::Representation + + collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTranslation::Representation + + property :uri, as: 'uri' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :id, as: 'id' + property :mention_id, as: 'mentionId' + property :mention_text, as: 'mentionText' + property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue::Representation + + property :page_anchor, as: 'pageAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageAnchor::Representation + + collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentEntity::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation + + property :redacted, as: 'redacted' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address_value, as: 'addressValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress::Representation + + property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeDate::Representation + + property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime::Representation + + property :money_value, as: 'moneyValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentEntityRelation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + property :relation, as: 'relation' + property :subject_id, as: 'subjectId' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :automl_model, as: 'automlModel' + property :confidence, as: 'confidence' + property :name, as: 'name' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageBlock, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageBlock::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDimension, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDimension::Representation + + collection :form_fields, as: 'formFields', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageFormField, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageFormField::Representation + + property :image, as: 'image', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageImage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageImage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLine, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLine::Representation + + property :page_number, as: 'pageNumber' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageParagraph::Representation + + collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation + + collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation + + collection :transforms, as: 'transforms', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageMatrix, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageMatrix::Representation + + collection :visual_elements, as: 'visualElements', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageVisualElement, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageVisualElement::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageAnchor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :page_refs, as: 'pageRefs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly::Representation + + property :layout_id, as: 'layoutId' + property :layout_type, as: 'layoutType' + property :page, :numeric_string => true, as: 'page' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageBlock + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageDimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :unit, as: 'unit' + property :width, as: 'width' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageFormField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field_name, as: 'fieldName', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + property :field_value, as: 'fieldValue', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :value_type, as: 'valueType' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :height, as: 'height' + property :mime_type, as: 'mimeType' + property :width, as: 'width' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageLayout + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :orientation, as: 'orientation' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageLine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cols, as: 'cols' + property :data, :base64 => true, as: 'data' + property :rows, as: 'rows' + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageParagraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :body_rows, as: 'bodyRows', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + collection :header_rows, as: 'headerRows', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :col_span, as: 'colSpan' + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + property :row_span, as: 'rowSpan' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cells, as: 'cells', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageToken + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentPageVisualElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentProvenance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :parents, as: 'parents', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenanceParent, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenanceParent::Representation + + property :revision, as: 'revision' + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :revision, as: 'revision' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentRevision + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent, as: 'agent' + property :create_time, as: 'createTime' + property :human_review, as: 'humanReview', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview::Representation + + property :id, as: 'id' + collection :parent, as: 'parent' + property :processor, as: 'processor' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :state_message, as: 'stateMessage' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentShardInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :shard_count, :numeric_string => true, as: 'shardCount' + property :shard_index, :numeric_string => true, as: 'shardIndex' + property :text_offset, :numeric_string => true, as: 'textOffset' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentStyle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :background_color, as: 'backgroundColor', class: Google::Apis::DocumentaiV1beta3::GoogleTypeColor, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeColor::Representation + + property :color, as: 'color', class: Google::Apis::DocumentaiV1beta3::GoogleTypeColor, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeColor::Representation + + property :font_size, as: 'fontSize', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentStyleFontSize, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentStyleFontSize::Representation + + property :font_weight, as: 'fontWeight' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation + + property :text_decoration, as: 'textDecoration' + property :text_style, as: 'textStyle' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentStyleFontSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :size, as: 'size' + property :unit, as: 'unit' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentTextAnchor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + collection :text_segments, as: 'textSegments', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_index, :numeric_string => true, as: 'endIndex' + property :start_index, :numeric_string => true, as: 'startIndex' + end + end + + class GoogleCloudDocumentaiV1beta2DocumentTextChange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :changed_text, as: 'changedText' + collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation + + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2DocumentTranslation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation + + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation + + property :translated_text, as: 'translatedText' + end + end + + class GoogleCloudDocumentaiV1beta2GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDocumentaiV1beta2GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDocumentaiV1beta2InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contents, :base64 => true, as: 'contents' + property :gcs_source, as: 'gcsSource', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsSource, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudDocumentaiV1beta2NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudDocumentaiV1beta2OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiV1beta2OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsDestination, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsDestination::Representation + + property :pages_per_shard, as: 'pagesPerShard' + end + end + + class GoogleCloudDocumentaiV1beta2ProcessDocumentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2InputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2InputConfig::Representation + + property :output_config, as: 'outputConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2OutputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2OutputConfig::Representation + + end + end + + class GoogleCloudDocumentaiV1beta2Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + collection :individual_process_statuses, as: 'individualProcessStatuses', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus::Representation + + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :human_review_operation, as: 'humanReviewOperation' + property :input_gcs_source, as: 'inputGcsSource' + property :output_gcs_destination, as: 'outputGcsDestination' + property :status, as: 'status', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :input_configs, as: 'inputConfigs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig::Representation + + property :output_config, as: 'outputConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource' + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_destination, as: 'gcsDestination' + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDocumentaiV1beta3BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NormalizedVertex, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NormalizedVertex::Representation + + collection :vertices, as: 'vertices', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Vertex, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Vertex::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3Document + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + collection :entities, as: 'entities', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity::Representation + + collection :entity_relations, as: 'entityRelations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityRelation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityRelation::Representation + + property :error, as: 'error', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation + + property :mime_type, as: 'mimeType' + collection :pages, as: 'pages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPage::Representation + + collection :revisions, as: 'revisions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentRevision, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentRevision::Representation + + property :shard_info, as: 'shardInfo', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentShardInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentShardInfo::Representation + + property :text, as: 'text' + collection :text_changes, as: 'textChanges', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextChange, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextChange::Representation + + collection :text_styles, as: 'textStyles', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentStyle, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentStyle::Representation + + collection :translations, as: 'translations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTranslation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTranslation::Representation + + property :uri, as: 'uri' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :id, as: 'id' + property :mention_id, as: 'mentionId' + property :mention_text, as: 'mentionText' + property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue::Representation + + property :page_anchor, as: 'pageAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageAnchor::Representation + + collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentEntity::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation + + property :redacted, as: 'redacted' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentEntityNormalizedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address_value, as: 'addressValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypePostalAddress::Representation + + property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeDate::Representation + + property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeDateTime::Representation + + property :money_value, as: 'moneyValue', class: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeMoney::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentEntityRelation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + property :relation, as: 'relation' + property :subject_id, as: 'subjectId' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageBlock, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageBlock::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDimension, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDimension::Representation + + collection :form_fields, as: 'formFields', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageFormField, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageFormField::Representation + + property :image, as: 'image', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLine, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLine::Representation + + property :page_number, as: 'pageNumber' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageParagraph, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageParagraph::Representation + + collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTable, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTable::Representation + + collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageToken, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageToken::Representation + + collection :transforms, as: 'transforms', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageMatrix, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageMatrix::Representation + + collection :visual_elements, as: 'visualElements', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageVisualElement, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageVisualElement::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageAnchor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :page_refs, as: 'pageRefs', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageAnchorPageRef + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly::Representation + + property :layout_id, as: 'layoutId' + property :layout_type, as: 'layoutType' + property :page, :numeric_string => true, as: 'page' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageBlock + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageDimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :unit, as: 'unit' + property :width, as: 'width' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageFormField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :field_name, as: 'fieldName', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + property :field_value, as: 'fieldValue', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + collection :name_detected_languages, as: 'nameDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + collection :value_detected_languages, as: 'valueDetectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :value_type, as: 'valueType' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :height, as: 'height' + property :mime_type, as: 'mimeType' + property :width, as: 'width' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageLayout + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :orientation, as: 'orientation' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageLine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cols, as: 'cols' + property :data, :base64 => true, as: 'data' + property :rows, as: 'rows' + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageParagraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :body_rows, as: 'bodyRows', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + collection :header_rows, as: 'headerRows', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :col_span, as: 'colSpan' + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + property :row_span, as: 'rowSpan' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTableTableRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cells, as: 'cells', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTableTableCell::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageToken + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageTokenDetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentPageVisualElement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage::Representation + + property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageLayout::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentProvenance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :parents, as: 'parents', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenanceParent, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenanceParent::Representation + + property :revision, as: 'revision' + property :type, as: 'type' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentProvenanceParent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :revision, as: 'revision' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentRevision + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent, as: 'agent' + property :create_time, as: 'createTime' + property :human_review, as: 'humanReview', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview::Representation + + property :id, as: 'id' + collection :parent, as: 'parent' + property :processor, as: 'processor' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentRevisionHumanReview + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :state_message, as: 'stateMessage' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentShardInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :shard_count, :numeric_string => true, as: 'shardCount' + property :shard_index, :numeric_string => true, as: 'shardIndex' + property :text_offset, :numeric_string => true, as: 'textOffset' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentStyle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :background_color, as: 'backgroundColor', class: Google::Apis::DocumentaiV1beta3::GoogleTypeColor, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeColor::Representation + + property :color, as: 'color', class: Google::Apis::DocumentaiV1beta3::GoogleTypeColor, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeColor::Representation + + property :font_size, as: 'fontSize', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentStyleFontSize, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentStyleFontSize::Representation + + property :font_weight, as: 'fontWeight' + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor::Representation + + property :text_decoration, as: 'textDecoration' + property :text_style, as: 'textStyle' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentStyleFontSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :size, as: 'size' + property :unit, as: 'unit' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentTextAnchor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + collection :text_segments, as: 'textSegments', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentTextAnchorTextSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_index, :numeric_string => true, as: 'endIndex' + property :start_index, :numeric_string => true, as: 'startIndex' + end + end + + class GoogleCloudDocumentaiV1beta3DocumentTextChange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :changed_text, as: 'changedText' + collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation + + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3DocumentTranslation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + collection :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentProvenance::Representation + + property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentTextAnchor::Representation + + property :translated_text, as: 'translatedText' + end + end + + class GoogleCloudDocumentaiV1beta3NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudDocumentaiV1beta3ProcessRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation + + property :skip_human_review, as: 'skipHumanReview' + end + end + + class GoogleCloudDocumentaiV1beta3ProcessResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation + + property :human_review_operation, as: 'humanReviewOperation' + end + end + + class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiV1beta3ReviewDocumentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_destination, as: 'gcsDestination' + end + end + + class GoogleCloudDocumentaiV1beta3Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudLocationListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudLocationLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :labels, as: 'labels' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleRpcStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class GoogleTypeColor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alpha, as: 'alpha' + property :blue, as: 'blue' + property :green, as: 'green' + property :red, as: 'red' + end + end + + class GoogleTypeDate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + + class GoogleTypeDateTime + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :hours, as: 'hours' + property :minutes, as: 'minutes' + property :month, as: 'month' + property :nanos, as: 'nanos' + property :seconds, as: 'seconds' + property :time_zone, as: 'timeZone', class: Google::Apis::DocumentaiV1beta3::GoogleTypeTimeZone, decorator: Google::Apis::DocumentaiV1beta3::GoogleTypeTimeZone::Representation + + property :utc_offset, as: 'utcOffset' + property :year, as: 'year' + end + end + + class GoogleTypeMoney + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' + property :nanos, as: 'nanos' + property :units, :numeric_string => true, as: 'units' + end + end + + class GoogleTypePostalAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :address_lines, as: 'addressLines' + property :administrative_area, as: 'administrativeArea' + property :language_code, as: 'languageCode' + property :locality, as: 'locality' + property :organization, as: 'organization' + property :postal_code, as: 'postalCode' + collection :recipients, as: 'recipients' + property :region_code, as: 'regionCode' + property :revision, as: 'revision' + property :sorting_code, as: 'sortingCode' + property :sublocality, as: 'sublocality' + end + end + + class GoogleTypeTimeZone + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :version, as: 'version' + end + end + end + end +end diff --git a/generated/google/apis/documentai_v1beta3/service.rb b/generated/google/apis/documentai_v1beta3/service.rb new file mode 100644 index 000000000..f7d016f07 --- /dev/null +++ b/generated/google/apis/documentai_v1beta3/service.rb @@ -0,0 +1,263 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DocumentaiV1beta3 + # Cloud Document AI API + # + # Service to parse structured information from unstructured or semi-structured + # documents using state-of-the-art Google AI such as natural language, computer + # vision, translation, and AutoML. + # + # @example + # require 'google/apis/documentai_v1beta3' + # + # Documentai = Google::Apis::DocumentaiV1beta3 # Alias the module + # service = Documentai::DocumentService.new + # + # @see https://cloud.google.com/document-ai/docs/ + class DocumentService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://documentai.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets information about a location. + # @param [String] name + # Resource name for the location. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/{+name}', options) + command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation::Representation + command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/{+name}/locations', options) + command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse::Representation + command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta3/{+name}', options) + command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # LRO endpoint to batch process many documents. The output is written to Cloud + # Storage as JSON in the [Document] format. + # @param [String] name + # Required. The processor resource name. + # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest] google_cloud_documentai_v1beta3_batch_process_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_project_location_processor_process(name, google_cloud_documentai_v1beta3_batch_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta3/{+name}:batchProcess', options) + command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest::Representation + command.request_object = google_cloud_documentai_v1beta3_batch_process_request_object + command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Processes a single document. + # @param [String] name + # Required. The processor resource name. + # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest] google_cloud_documentai_v1beta3_process_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def process_project_location_processor(name, google_cloud_documentai_v1beta3_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta3/{+name}:process', options) + command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest::Representation + command.request_object = google_cloud_documentai_v1beta3_process_request_object + command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse::Representation + command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Send a document for Human Review. The input document should be processed by + # the specified processor. + # @param [String] human_review_config + # Required. The resource name of the HumanReviewConfig that the document will be + # reviewed with. + # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ReviewDocumentRequest] google_cloud_documentai_v1beta3_review_document_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def review_project_location_processor_human_review_config_document(human_review_config, google_cloud_documentai_v1beta3_review_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta3/{+humanReviewConfig}:reviewDocument', options) + command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ReviewDocumentRequest::Representation + command.request_object = google_cloud_documentai_v1beta3_review_document_request_object + command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation + command.params['humanReviewConfig'] = human_review_config unless human_review_config.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 37b335c78..d2d7f596c 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20200917' + REVISION = '20200924' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index e9a136933..513215d47 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -1033,43 +1033,6 @@ module Google end end - # Deprecated. Contains the status of the Deidentify operation. - class DeidentifyErrorDetails - include Google::Apis::Core::Hashable - - # Number of resources that failed to process. - # Corresponds to the JSON property `failureResourceCount` - # @return [Fixnum] - attr_accessor :failure_resource_count - - # Number of stores that failed to process. - # Corresponds to the JSON property `failureStoreCount` - # @return [Fixnum] - attr_accessor :failure_store_count - - # Number of resources successfully processed. - # Corresponds to the JSON property `successResourceCount` - # @return [Fixnum] - attr_accessor :success_resource_count - - # Number of stores successfully processed. - # Corresponds to the JSON property `successStoreCount` - # @return [Fixnum] - attr_accessor :success_store_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count) - @failure_store_count = args[:failure_store_count] if args.key?(:failure_store_count) - @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count) - @success_store_count = args[:success_store_count] if args.key?(:success_store_count) - end - end - # Creates a new FHIR store with sensitive information de-identified. class DeidentifyFhirStoreRequest include Google::Apis::Core::Hashable @@ -1113,31 +1076,12 @@ module Google class DeidentifySummary include Google::Apis::Core::Hashable - # Number of resources that failed to process. The failures might be caused by: * - # Invalid user input data * Transient errors that could be skipped - # Corresponds to the JSON property `failureResourceCount` - # @return [Fixnum] - attr_accessor :failure_resource_count - - # Number of resources successfully processed. - # Corresponds to the JSON property `successResourceCount` - # @return [Fixnum] - attr_accessor :success_resource_count - - # Number of stores successfully processed. - # Corresponds to the JSON property `successStoreCount` - # @return [Fixnum] - attr_accessor :success_store_count - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count) - @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count) - @success_store_count = args[:success_store_count] if args.key?(:success_store_count) end end @@ -1369,13 +1313,6 @@ module Google # @return [Google::Apis::HealthcareV1beta1::InfoTypeConfig] attr_accessor :info_type_config - # The Annotation store to compare against `golden_store`, in the format of ` - # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ - # annotationStores/`annotation_store_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - def initialize(**args) update!(**args) end @@ -1387,7 +1324,6 @@ module Google @golden_info_type_mapping = args[:golden_info_type_mapping] if args.key?(:golden_info_type_mapping) @golden_store = args[:golden_store] if args.key?(:golden_store) @info_type_config = args[:info_type_config] if args.key?(:info_type_config) - @name = args[:name] if args.key?(:name) end end @@ -1396,43 +1332,12 @@ module Google class EvaluateAnnotationStoreResponse include Google::Apis::Core::Hashable - # The evaluated Annotation store, in the format of `projects/`project_id`/ - # locations/`location_id`/datasets/`dataset_id`/annotationStores/` - # annotation_store_id``. - # Corresponds to the JSON property `evalStore` - # @return [String] - attr_accessor :eval_store - - # The number of Annotations in the ground truth Annotation store successfully - # processed. - # Corresponds to the JSON property `goldenCount` - # @return [Fixnum] - attr_accessor :golden_count - - # The ground truth Annotation store, in the format of `projects/`project_id`/ - # locations/`location_id`/datasets/`dataset_id`/annotationStores/` - # annotation_store_id``. - # Corresponds to the JSON property `goldenStore` - # @return [String] - attr_accessor :golden_store - - # The number of Annotations in the eval store that match with corresponding - # annotations in the ground truth Annotation store. Two matched annotations both - # annotate the same resource defined in AnnotationSource. - # Corresponds to the JSON property `matchedCount` - # @return [Fixnum] - attr_accessor :matched_count - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @eval_store = args[:eval_store] if args.key?(:eval_store) - @golden_count = args[:golden_count] if args.key?(:golden_count) - @golden_store = args[:golden_store] if args.key?(:golden_store) - @matched_count = args[:matched_count] if args.key?(:matched_count) end end @@ -1519,40 +1424,6 @@ module Google end end - # Deprecated. Response for failed annotation export operations. This structure - # is included in error details upon operation completion. - class ExportAnnotationsErrorDetails - include Google::Apis::Core::Hashable - - # The annotation_store used for the export operation, in the format of `projects/ - # `project_id`/locations/`location_id`/datasets/`dataset_id`/annotationStores/` - # annotation_store_id``. - # Corresponds to the JSON property `annotationStore` - # @return [String] - attr_accessor :annotation_store - - # The number of annotations that had error. - # Corresponds to the JSON property `errorCount` - # @return [Fixnum] - attr_accessor :error_count - - # The number of annotations successfully exported. - # Corresponds to the JSON property `successCount` - # @return [Fixnum] - attr_accessor :success_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @annotation_store = args[:annotation_store] if args.key?(:annotation_store) - @error_count = args[:error_count] if args.key?(:error_count) - @success_count = args[:success_count] if args.key?(:success_count) - end - end - # Request to export Annotations. The export operation is not atomic. If a # failure occurs, any annotations already exported are not removed. class ExportAnnotationsRequest @@ -1568,13 +1439,6 @@ module Google # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination] attr_accessor :gcs_destination - # The name of the Annotation store to export annotations to, in the format of ` - # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ - # annotationStores/`annotation_store_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - def initialize(**args) update!(**args) end @@ -1583,7 +1447,6 @@ module Google def update!(**args) @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination) @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) - @name = args[:name] if args.key?(:name) end end @@ -1592,26 +1455,12 @@ module Google class ExportAnnotationsResponse include Google::Apis::Core::Hashable - # The annotation_store used for the export operation, in the format of `projects/ - # `project_id`/locations/`location_id`/datasets/`dataset_id`/annotationStores/` - # annotation_store_id``. - # Corresponds to the JSON property `annotationStore` - # @return [String] - attr_accessor :annotation_store - - # The total number of annotations successfully exported. - # Corresponds to the JSON property `successCount` - # @return [Fixnum] - attr_accessor :success_count - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @annotation_store = args[:annotation_store] if args.key?(:annotation_store) - @success_count = args[:success_count] if args.key?(:success_count) end end @@ -1668,7 +1517,7 @@ module Google # The configuration for exporting to Cloud Storage. # Corresponds to the JSON property `gcsDestination` - # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsDestination] + # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsDestination] attr_accessor :gcs_destination def initialize(**args) @@ -2068,9 +1917,9 @@ module Google class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination include Google::Apis::Core::Hashable - # If the destination table already exists and this flag is `TRUE`, the table is - # overwritten by the contents of the input store. If the flag is not set and the - # destination table already exists, the export call returns an error. + # Use `write_disposition` instead. If `write_disposition` is specified, this + # parameter is ignored. force=false is equivalent to write_disposition= + # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE. # Corresponds to the JSON property `force` # @return [Boolean] attr_accessor :force @@ -2087,6 +1936,13 @@ module Google # @return [String] attr_accessor :table_uri + # Determines whether existing tables in the destination dataset are overwritten + # or appended to. If a write_disposition is specified, the `force` parameter is + # ignored. + # Corresponds to the JSON property `writeDisposition` + # @return [String] + attr_accessor :write_disposition + def initialize(**args) update!(**args) end @@ -2096,6 +1952,7 @@ module Google @force = args[:force] if args.key?(:force) @schema_type = args[:schema_type] if args.key?(:schema_type) @table_uri = args[:table_uri] if args.key?(:table_uri) + @write_disposition = args[:write_disposition] if args.key?(:write_disposition) end end @@ -2219,24 +2076,12 @@ module Google class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary include Google::Apis::Core::Hashable - # Number of objects that processing failed for. - # Corresponds to the JSON property `failureResourceCount` - # @return [Fixnum] - attr_accessor :failure_resource_count - - # Number of objects successfully processed. - # Corresponds to the JSON property `successResourceCount` - # @return [Fixnum] - attr_accessor :success_resource_count - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count) - @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count) end end @@ -2244,18 +2089,12 @@ module Google class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary include Google::Apis::Core::Hashable - # Number of resources successfully processed. - # Corresponds to the JSON property `successResourceCount` - # @return [Fixnum] - attr_accessor :success_resource_count - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count) end end @@ -2263,9 +2102,9 @@ module Google class GoogleCloudHealthcareV1beta1DicomBigQueryDestination include Google::Apis::Core::Hashable - # If the destination table already exists and this flag is `TRUE`, the table is - # overwritten by the contents of the DICOM store. If the flag is not set and the - # destination table already exists, the export call returns an error. + # Use `write_disposition` instead. If `write_disposition` is specified, this + # parameter is ignored. force=false is equivalent to write_disposition= + # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE. # Corresponds to the JSON property `force` # @return [Boolean] attr_accessor :force @@ -2277,6 +2116,13 @@ module Google # @return [String] attr_accessor :table_uri + # Determines whether the existing table in the destination is to be overwritten + # or appended to. If a write_disposition is specified, the `force` parameter is + # ignored. + # Corresponds to the JSON property `writeDisposition` + # @return [String] + attr_accessor :write_disposition + def initialize(**args) update!(**args) end @@ -2285,6 +2131,7 @@ module Google def update!(**args) @force = args[:force] if args.key?(:force) @table_uri = args[:table_uri] if args.key?(:table_uri) + @write_disposition = args[:write_disposition] if args.key?(:write_disposition) end end @@ -2393,10 +2240,9 @@ module Google # @return [String] attr_accessor :dataset_uri - # If this flag is `TRUE`, all tables will be deleted from the dataset before the - # new exported tables are written. If the flag is not set and the destination - # dataset contains tables, the export call returns an error. This option is not - # used for the streaming export. + # Use `write_disposition` instead. If `write_disposition` is specified, this + # parameter is ignored. force=false is equivalent to write_disposition= + # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE. # Corresponds to the JSON property `force` # @return [Boolean] attr_accessor :force @@ -2408,6 +2254,13 @@ module Google # @return [Google::Apis::HealthcareV1beta1::SchemaConfig] attr_accessor :schema_config + # Determines whether existing tables in the destination dataset are overwritten + # or appended to. If a write_disposition is specified, the `force` parameter is + # ignored. + # Corresponds to the JSON property `writeDisposition` + # @return [String] + attr_accessor :write_disposition + def initialize(**args) update!(**args) end @@ -2417,6 +2270,88 @@ module Google @dataset_uri = args[:dataset_uri] if args.key?(:dataset_uri) @force = args[:force] if args.key?(:force) @schema_config = args[:schema_config] if args.key?(:schema_config) + @write_disposition = args[:write_disposition] if args.key?(:write_disposition) + end + end + + # Response when all resources export successfully. This structure is included in + # the response to describe the detailed outcome after the operation finishes + # successfully. + class GoogleCloudHealthcareV1beta1FhirExportResourcesResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The configuration for exporting to Cloud Storage. + class GoogleCloudHealthcareV1beta1FhirGcsDestination + include Google::Apis::Core::Hashable + + # URI for a Cloud Storage directory where result files should be written (in the + # format `gs://`bucket-id`/`path/to/destination/dir``). If there is no trailing + # slash, the service appends one when composing the object path. The Cloud + # Storage bucket referenced in `uri_prefix` must exist or an error occurs. + # Corresponds to the JSON property `uriPrefix` + # @return [String] + attr_accessor :uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix) + end + end + + # Specifies the configuration for importing data from Cloud Storage. + class GoogleCloudHealthcareV1beta1FhirGcsSource + include Google::Apis::Core::Hashable + + # Points to a Cloud Storage URI containing file(s) to import. The URI must be in + # the following format: `gs://`bucket_id`/`object_id``. The URI can include + # wildcards in `object_id` and thus identify multiple files. Supported wildcards: + # * `*` to match 0 or more non-separator characters * `**` to match 0 or more + # characters (including separators). Must be used at the end of a path and with + # no other wildcards in the path. Can also be used with a file extension (such + # as .ndjson), which imports all files with the extension in the specified + # directory and its sub-directories. For example, `gs://my-bucket/my-directory/** + # .ndjson` imports all files with `.ndjson` extensions in `my-directory/` and + # its sub-directories. * `?` to match 1 character Files matching the wildcard + # are expected to contain content only, no metadata. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Final response of importing resources. This structure is included in the + # response to describe the detailed outcome after the operation finishes + # successfully. + class GoogleCloudHealthcareV1beta1FhirImportResourcesResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) end end @@ -2491,57 +2426,6 @@ module Google end end - # The configuration for exporting to Cloud Storage. - class GoogleCloudHealthcareV1beta1FhirRestGcsDestination - include Google::Apis::Core::Hashable - - # URI for a Cloud Storage directory where result files should be written (in the - # format `gs://`bucket-id`/`path/to/destination/dir``). If there is no trailing - # slash, the service appends one when composing the object path. The user is - # responsible for creating the Cloud Storage bucket referenced in `uri_prefix`. - # Corresponds to the JSON property `uriPrefix` - # @return [String] - attr_accessor :uri_prefix - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix) - end - end - - # Specifies the configuration for importing data from Cloud Storage. - class GoogleCloudHealthcareV1beta1FhirRestGcsSource - include Google::Apis::Core::Hashable - - # Points to a Cloud Storage URI containing file(s) to import. The URI must be in - # the following format: `gs://`bucket_id`/`object_id``. The URI can include - # wildcards in `object_id` and thus identify multiple files. Supported wildcards: - # * `*` to match 0 or more non-separator characters * `**` to match 0 or more - # characters (including separators). Must be used at the end of a path and with - # no other wildcards in the path. Can also be used with a file extension (such - # as .ndjson), which imports all files with the extension in the specified - # directory and its sub-directories. For example, `gs://my-bucket/my-directory/** - # .ndjson` imports all files with `.ndjson` extensions in `my-directory/` and - # its sub-directories. * `?` to match 1 character Files matching the wildcard - # are expected to contain content only, no metadata. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri = args[:uri] if args.key?(:uri) - end - end - # Error response of importing resources. This structure is included in the # error details to describe the detailed error after the operation finishes with # some failure. @@ -2941,41 +2825,6 @@ module Google end end - # Deprecated. Final response of importing Annotations in partial or total - # failure case. This structure is included in the error details. It is only - # included when the operation finishes. - class ImportAnnotationsErrorDetails - include Google::Apis::Core::Hashable - - # The annotation_store that the annotations were imported to. The name is in the - # format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ - # annotationStores/`annotation_store_id``. - # Corresponds to the JSON property `annotationStore` - # @return [String] - attr_accessor :annotation_store - - # The number of annotations that had errors. - # Corresponds to the JSON property `errorCount` - # @return [Fixnum] - attr_accessor :error_count - - # The number of annotations that have been imported. - # Corresponds to the JSON property `successCount` - # @return [Fixnum] - attr_accessor :success_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @annotation_store = args[:annotation_store] if args.key?(:annotation_store) - @error_count = args[:error_count] if args.key?(:error_count) - @success_count = args[:success_count] if args.key?(:success_count) - end - end - # Request to import Annotations. The Annotations to be imported must have client- # supplied resource names which indicate the annotation resource. The import # operation is not atomic. If a failure occurs, any annotations already imported @@ -2988,13 +2837,6 @@ module Google # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource] attr_accessor :gcs_source - # The name of the Annotation store to which the server imports annotations, in - # the format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id` - # /annotationStores/`annotation_store_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - def initialize(**args) update!(**args) end @@ -3002,7 +2844,6 @@ module Google # Update properties of this object def update!(**args) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) - @name = args[:name] if args.key?(:name) end end @@ -3011,26 +2852,12 @@ module Google class ImportAnnotationsResponse include Google::Apis::Core::Hashable - # The annotation_store that the annotations were imported to, in the format ` - # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ - # annotationStores/`annotation_store_id``. - # Corresponds to the JSON property `annotationStore` - # @return [String] - attr_accessor :annotation_store - - # The number of the input annotations. All input have been imported successfully. - # Corresponds to the JSON property `successCount` - # @return [Fixnum] - attr_accessor :success_count - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @annotation_store = args[:annotation_store] if args.key?(:annotation_store) - @success_count = args[:success_count] if args.key?(:success_count) end end @@ -3136,7 +2963,7 @@ module Google # Specifies the configuration for importing data from Cloud Storage. # Corresponds to the JSON property `gcsSource` - # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsSource] + # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsSource] attr_accessor :gcs_source def initialize(**args) diff --git a/generated/google/apis/healthcare_v1beta1/representations.rb b/generated/google/apis/healthcare_v1beta1/representations.rb index 6c7731d60..0d274e269 100644 --- a/generated/google/apis/healthcare_v1beta1/representations.rb +++ b/generated/google/apis/healthcare_v1beta1/representations.rb @@ -202,12 +202,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DeidentifyErrorDetails - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class DeidentifyFhirStoreRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -280,12 +274,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ExportAnnotationsErrorDetails - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ExportAnnotationsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -442,6 +430,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudHealthcareV1beta1FhirExportResourcesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudHealthcareV1beta1FhirGcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudHealthcareV1beta1FhirGcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudHealthcareV1beta1FhirImportResourcesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -454,18 +466,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudHealthcareV1beta1FhirRestGcsDestination - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudHealthcareV1beta1FhirRestGcsSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -532,12 +532,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ImportAnnotationsErrorDetails - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ImportAnnotationsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1209,16 +1203,6 @@ module Google end end - class DeidentifyErrorDetails - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :failure_resource_count, :numeric_string => true, as: 'failureResourceCount' - property :failure_store_count, :numeric_string => true, as: 'failureStoreCount' - property :success_resource_count, :numeric_string => true, as: 'successResourceCount' - property :success_store_count, :numeric_string => true, as: 'successStoreCount' - end - end - class DeidentifyFhirStoreRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1233,9 +1217,6 @@ module Google class DeidentifySummary # @private class Representation < Google::Apis::Core::JsonRepresentation - property :failure_resource_count, :numeric_string => true, as: 'failureResourceCount' - property :success_resource_count, :numeric_string => true, as: 'successResourceCount' - property :success_store_count, :numeric_string => true, as: 'successStoreCount' end end @@ -1303,17 +1284,12 @@ module Google property :golden_store, as: 'goldenStore' property :info_type_config, as: 'infoTypeConfig', class: Google::Apis::HealthcareV1beta1::InfoTypeConfig, decorator: Google::Apis::HealthcareV1beta1::InfoTypeConfig::Representation - property :name, as: 'name' end end class EvaluateAnnotationStoreResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :eval_store, as: 'evalStore' - property :golden_count, :numeric_string => true, as: 'goldenCount' - property :golden_store, as: 'goldenStore' - property :matched_count, :numeric_string => true, as: 'matchedCount' end end @@ -1340,15 +1316,6 @@ module Google end end - class ExportAnnotationsErrorDetails - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :annotation_store, as: 'annotationStore' - property :error_count, :numeric_string => true, as: 'errorCount' - property :success_count, :numeric_string => true, as: 'successCount' - end - end - class ExportAnnotationsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1356,15 +1323,12 @@ module Google property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination::Representation - property :name, as: 'name' end end class ExportAnnotationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :annotation_store, as: 'annotationStore' - property :success_count, :numeric_string => true, as: 'successCount' end end @@ -1389,7 +1353,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirBigQueryDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirBigQueryDestination::Representation - property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsDestination::Representation + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsDestination::Representation end end @@ -1486,6 +1450,7 @@ module Google property :force, as: 'force' property :schema_type, as: 'schemaType' property :table_uri, as: 'tableUri' + property :write_disposition, as: 'writeDisposition' end end @@ -1523,15 +1488,12 @@ module Google class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary # @private class Representation < Google::Apis::Core::JsonRepresentation - property :failure_resource_count, :numeric_string => true, as: 'failureResourceCount' - property :success_resource_count, :numeric_string => true, as: 'successResourceCount' end end class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary # @private class Representation < Google::Apis::Core::JsonRepresentation - property :success_resource_count, :numeric_string => true, as: 'successResourceCount' end end @@ -1540,6 +1502,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :force, as: 'force' property :table_uri, as: 'tableUri' + property :write_disposition, as: 'writeDisposition' end end @@ -1573,6 +1536,33 @@ module Google property :force, as: 'force' property :schema_config, as: 'schemaConfig', class: Google::Apis::HealthcareV1beta1::SchemaConfig, decorator: Google::Apis::HealthcareV1beta1::SchemaConfig::Representation + property :write_disposition, as: 'writeDisposition' + end + end + + class GoogleCloudHealthcareV1beta1FhirExportResourcesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudHealthcareV1beta1FhirGcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri_prefix, as: 'uriPrefix' + end + end + + class GoogleCloudHealthcareV1beta1FhirGcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudHealthcareV1beta1FhirImportResourcesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation end end @@ -1594,20 +1584,6 @@ module Google end end - class GoogleCloudHealthcareV1beta1FhirRestGcsDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri_prefix, as: 'uriPrefix' - end - end - - class GoogleCloudHealthcareV1beta1FhirRestGcsSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1712,29 +1688,17 @@ module Google end end - class ImportAnnotationsErrorDetails - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :annotation_store, as: 'annotationStore' - property :error_count, :numeric_string => true, as: 'errorCount' - property :success_count, :numeric_string => true, as: 'successCount' - end - end - class ImportAnnotationsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource::Representation - property :name, as: 'name' end end class ImportAnnotationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :annotation_store, as: 'annotationStore' - property :success_count, :numeric_string => true, as: 'successCount' end end @@ -1778,7 +1742,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :content_structure, as: 'contentStructure' - property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsSource::Representation + property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsSource::Representation end end diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index 3f9d46fda..b798034af 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -526,7 +526,7 @@ module Google # EvaluateAnnotationStoreResponse, contained in the response. The metadata field # type is OperationMetadata. Errors are logged to Cloud Logging (see [Viewing # logs](/healthcare/docs/how-tos/logging)). - # @param [String] eval_store + # @param [String] name # The Annotation store to compare against `golden_store`, in the format of ` # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # annotationStores/`annotation_store_id``. @@ -548,13 +548,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def evaluate_annotation_store(eval_store, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+evalStore}:evaluate', options) + def evaluate_annotation_store(name, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:evaluate', options) command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest::Representation command.request_object = evaluate_annotation_store_request_object command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation command.response_class = Google::Apis::HealthcareV1beta1::Operation - command.params['evalStore'] = eval_store unless eval_store.nil? + command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -565,7 +565,7 @@ module Google # the response field when the operation finishes. The metadata field type is # OperationMetadata. Errors are logged to Cloud Logging (see [Viewing logs](/ # healthcare/docs/how-tos/logging)). - # @param [String] annotation_store + # @param [String] name # The name of the Annotation store to export annotations to, in the format of ` # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # annotationStores/`annotation_store_id``. @@ -587,13 +587,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def export_annotation_store_annotations(annotation_store, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+annotationStore}:export', options) + def export_annotation_store_annotations(name, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:export', options) command.request_representation = Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest::Representation command.request_object = export_annotations_request_object command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation command.response_class = Google::Apis::HealthcareV1beta1::Operation - command.params['annotationStore'] = annotation_store unless annotation_store.nil? + command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -675,7 +675,7 @@ module Google # type ImportAnnotationsResponse, contained in the response field when the # operation finishes. The metadata field type is OperationMetadata. Errors are # logged to Cloud Logging (see [Viewing logs](/healthcare/docs/how-tos/logging)). - # @param [String] annotation_store + # @param [String] name # The name of the Annotation store to which the server imports annotations, in # the format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id` # /annotationStores/`annotation_store_id``. @@ -697,13 +697,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def import_annotation_store_annotations(annotation_store, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+annotationStore}:import', options) + def import_annotation_store_annotations(name, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:import', options) command.request_representation = Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest::Representation command.request_object = import_annotations_request_object command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation command.response_class = Google::Apis::HealthcareV1beta1::Operation - command.params['annotationStore'] = annotation_store unless annotation_store.nil? + command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1623,10 +1623,10 @@ module Google # @param [String] update_mask # The update mask that applies to the resource. For the `FieldMask` definition, # see https://developers.google.com/protocol-buffers/docs/reference/google. - # protobuf#fieldmask. The `description`, `possible_values`, ` + # protobuf#fieldmask. The `description`, `allowed_values`, ` # consent_default_values`, and `data_mapping_default_value` fields are allowed - # to be updated. The updated `possible_values` must contain all values from the - # previous `possible_values`. + # to be updated. The updated `allowed_values` must contain all values from the + # previous `allowed_values`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1980,7 +1980,7 @@ module Google # Restricts the consents returned to those matching a filter. Syntax: https:// # cloud.google.com/appengine/docs/standard/python/search/query_strings The # fields available for filtering are: - user_id - consent_artifact - state - - # state_change_time + # revision_create_time # @param [Fixnum] page_size # Limit on the number of consents to return in a single response. If zero the # default page size of 100 is used. @@ -2978,11 +2978,13 @@ module Google execute_or_queue_command(command, &block) end - # DeleteStudy deletes all instances within the given study. Delete requests are - # equivalent to the GET requests specified in the Retrieve transaction. For - # samples that show how to call DeleteStudy, see [Deleting a study, series, or - # instance](https://cloud.google.com/healthcare/docs/how-tos/dicomweb# - # deleting_a_study_series_or_instance). + # DeleteStudyAsync deletes all instances within the given study using an + # operation. Delete requests are equivalent to the GET requests specified in the + # Retrieve transaction. The method returns an Operation which will be marked + # successful when the deletion is complete. Warning: Inserting instances into a + # study while a delete operation is running for that study could result in the + # new instances not appearing in search results until the deletion operation + # finishes. # @param [String] parent # @param [String] dicom_web_path # The path of the DeleteStudy request. For example, `studies/`study_uid``. @@ -2995,18 +2997,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::HealthcareV1beta1::Empty] + # @return [Google::Apis::HealthcareV1beta1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_dataset_dicom_store_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options) - command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation - command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil? command.query['fields'] = fields unless fields.nil? @@ -3234,11 +3236,13 @@ module Google execute_or_queue_command(command, &block) end - # DeleteSeries deletes all instances within the given study and series. Delete - # requests are equivalent to the GET requests specified in the Retrieve - # transaction. For samples that show how to call DeleteSeries, see [Deleting a - # study, series, or instance](https://cloud.google.com/healthcare/docs/how-tos/ - # dicomweb#deleting_a_study_series_or_instance). + # DeleteSeriesAsync deletes all instances within the given study and series + # using an operation. Delete requests are equivalent to the GET requests + # specified in the Retrieve transaction. The method returns an Operation which + # will be marked successful when the deletion is complete. Warning: Inserting + # instances into a series while a delete operation is running for that series + # could result in the new instances not appearing in search results until the + # deletion operation finishes. # @param [String] parent # The name of the DICOM store that is being accessed. For example, `projects/` # project_id`/locations/`location_id`/datasets/`dataset_id`/dicomStores/` @@ -3255,18 +3259,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object + # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::HealthcareV1beta1::Empty] + # @return [Google::Apis::HealthcareV1beta1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_dataset_dicom_store_study_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options) - command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation - command.response_class = Google::Apis::HealthcareV1beta1::Empty + command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil? command.query['fields'] = fields unless fields.nil? @@ -3775,13 +3779,13 @@ module Google execute_or_queue_command(command, &block) end - # Export resources from the FHIR store to the specified destination. This - # method returns an Operation that can be used to track the status of the export - # by calling GetOperation. Immediate fatal errors appear in the error field, - # errors are also logged to Cloud Logging (see [Viewing logs](/healthcare/docs/ - # how-tos/logging)). Otherwise, when the operation finishes, a detailed response - # of type ExportResourcesResponse is returned in the response field. The - # metadata field type for this operation is OperationMetadata. + # Export resources from the FHIR store to the specified destination. This method + # returns an Operation that can be used to track the status of the export by + # calling GetOperation. Immediate fatal errors appear in the error field, errors + # are also logged to Cloud Logging (see [Viewing error logs in Cloud Logging](/ + # healthcare/docs/how-tos/logging)). Otherwise, when the operation finishes, a + # detailed response of type ExportResourcesResponse is returned in the response + # field. The metadata field type for this operation is OperationMetadata. # @param [String] name # The name of the FHIR store to export resource from, in the format of `projects/ # `project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/` @@ -3901,10 +3905,10 @@ module Google # considering grouping or ordering, but if the input data contains invalid # references or if some resources fail to be imported, the FHIR store might be # left in a state that violates referential integrity. The import process does - # not trigger Cloud Pub/Sub notification or BigQuery streaming update, - # regardless of how those are configured on the FHIR store. If a resource with - # the specified ID already exists, the most recent version of the resource is - # overwritten without creating a new historical version, regardless of the + # not trigger Pub/Sub notification or BigQuery streaming update, regardless of + # how those are configured on the FHIR store. If a resource with the specified + # ID already exists, the most recent version of the resource is overwritten + # without creating a new historical version, regardless of the # disable_resource_versioning setting on the FHIR store. If transient failures # occur during the import, it is possible that successfully imported resources # will be overwritten more than once. The import operation is idempotent unless @@ -3919,22 +3923,22 @@ module Google # copy of a resource such as Practitioner that might be referred to by many # patients. If some resources fail to import, for example due to parsing errors, # successfully imported resources are not rolled back. The location and format - # of the input data is specified by the parameters below. Note that if no format - # is specified, this method assumes the `BUNDLE` format. When using the `BUNDLE` - # format this method ignores the `Bundle.type` field, except that `history` - # bundles are rejected, and does not apply any of the bundle processing - # semantics for batch or transaction bundles. Unlike in ExecuteBundle, - # transaction bundles are not executed as a single transaction and bundle- - # internal references are not rewritten. The bundle is treated as a collection - # of resources to be written as provided in `Bundle.entry.resource`, ignoring ` - # Bundle.entry.request`. As an example, this allows the import of `searchset` - # bundles produced by a FHIR search or Patient-everything operation. This method - # returns an Operation that can be used to track the status of the import by - # calling GetOperation. Immediate fatal errors appear in the error field, errors - # are also logged to Cloud Logging (see [Viewing logs](/healthcare/docs/how-tos/ - # logging)). Otherwise, when the operation finishes, a detailed response of type - # ImportResourcesResponse is returned in the response field. The metadata field - # type for this operation is OperationMetadata. + # of the input data are specified by the parameters in ImportResourcesRequest. + # Note that if no format is specified, this method assumes the `BUNDLE` format. + # When using the `BUNDLE` format this method ignores the `Bundle.type` field, + # except that `history` bundles are rejected, and does not apply any of the + # bundle processing semantics for batch or transaction bundles. Unlike in + # ExecuteBundle, transaction bundles are not executed as a single transaction + # and bundle-internal references are not rewritten. The bundle is treated as a + # collection of resources to be written as provided in `Bundle.entry.resource`, + # ignoring `Bundle.entry.request`. As an example, this allows the import of ` + # searchset` bundles produced by a FHIR search or Patient-everything operation. + # This method returns an Operation that can be used to track the status of the + # import by calling GetOperation. Immediate fatal errors appear in the error + # field, errors are also logged to Cloud Logging (see [Viewing logs](/healthcare/ + # docs/how-tos/logging)). Otherwise, when the operation finishes, a detailed + # response of type ImportResourcesResponse is returned in the response field. + # The metadata field type for this operation is OperationMetadata. # @param [String] name # The name of the FHIR store to import FHIR resources to, in the format of ` # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/ diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index b58729f55..33363975d 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://devsite.googleplex.com/youtube/partner/docs/v1/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20201001' + REVISION = '20201005' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'