From 02b88ae098d41aebe40f5c062e1246d8d5db2558 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 17 May 2018 00:36:16 +0000 Subject: [PATCH] Autogenerated update (2018-05-17) Update: - analyticsreporting_v4 - androidpublisher_v2 - container_v1 - dlp_v2 - language_v1 - language_v1beta1 - language_v1beta2 - runtimeconfig_v1beta1 - vision_v1p1beta1 --- api_names_out.yaml | 259 +++ .../google/apis/analyticsreporting_v4.rb | 4 +- .../apis/analyticsreporting_v4/classes.rb | 2 +- .../apis/analyticsreporting_v4/service.rb | 2 +- generated/google/apis/androidpublisher_v2.rb | 2 +- .../apis/androidpublisher_v2/service.rb | 42 + generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/service.rb | 36 +- generated/google/apis/dlp_v2.rb | 2 +- generated/google/apis/dlp_v2/classes.rb | 20 + .../google/apis/dlp_v2/representations.rb | 3 + generated/google/apis/language_v1.rb | 2 +- generated/google/apis/language_v1/classes.rb | 1 + generated/google/apis/language_v1beta1.rb | 2 +- .../google/apis/language_v1beta1/classes.rb | 1 + generated/google/apis/language_v1beta2.rb | 2 +- .../google/apis/language_v1beta2/classes.rb | 1 + generated/google/apis/pubsub_v1/classes.rb | 57 +- generated/google/apis/pubsub_v1/service.rb | 61 +- .../google/apis/runtimeconfig_v1beta1.rb | 2 +- .../apis/runtimeconfig_v1beta1/classes.rb | 2 +- generated/google/apis/vision_v1p1beta1.rb | 2 +- .../google/apis/vision_v1p1beta1/classes.rb | 1996 +++++++++++++++++ .../apis/vision_v1p1beta1/representations.rb | 868 +++++++ .../google/apis/vision_v1p1beta1/service.rb | 35 + 25 files changed, 3289 insertions(+), 117 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 286bb0594..4f11936fd 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -7085,6 +7085,10 @@ "/androidpublisher:v2/androidpublisher.inappproducts.update/autoConvertMissingPrices": auto_convert_missing_prices "/androidpublisher:v2/androidpublisher.inappproducts.update/packageName": package_name "/androidpublisher:v2/androidpublisher.inappproducts.update/sku": sku +"/androidpublisher:v2/androidpublisher.orders.refund": refund_order +"/androidpublisher:v2/androidpublisher.orders.refund/orderId": order_id +"/androidpublisher:v2/androidpublisher.orders.refund/packageName": package_name +"/androidpublisher:v2/androidpublisher.orders.refund/revoke": revoke "/androidpublisher:v2/androidpublisher.purchases.products.get": get_purchase_product "/androidpublisher:v2/androidpublisher.purchases.products.get/packageName": package_name "/androidpublisher:v2/androidpublisher.purchases.products.get/productId": product_id @@ -48373,6 +48377,7 @@ "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/identifyingFields": identifying_fields "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/identifyingFields/identifying_field": identifying_field "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/rowsLimit": rows_limit +"/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/sampleMethod": sample_method "/dlp:v2/GooglePrivacyDlpV2BigQueryOptions/tableReference": table_reference "/dlp:v2/GooglePrivacyDlpV2BigQueryTable": google_privacy_dlp_v2_big_query_table "/dlp:v2/GooglePrivacyDlpV2BigQueryTable/datasetId": dataset_id @@ -48420,6 +48425,8 @@ "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileSet": file_set "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileTypes": file_types "/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/fileTypes/file_type": file_type +"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/filesLimitPercent": files_limit_percent +"/dlp:v2/GooglePrivacyDlpV2CloudStorageOptions/sampleMethod": sample_method "/dlp:v2/GooglePrivacyDlpV2CloudStoragePath": google_privacy_dlp_v2_cloud_storage_path "/dlp:v2/GooglePrivacyDlpV2CloudStoragePath/path": path "/dlp:v2/GooglePrivacyDlpV2Color": google_privacy_dlp_v2_color @@ -77090,17 +77097,110 @@ "/vision:v1/vision.operations.list/name": name "/vision:v1/vision.operations.list/pageSize": page_size "/vision:v1/vision.operations.list/pageToken": page_token +"/vision:v1p1beta1/AnnotateFileResponse": annotate_file_response +"/vision:v1p1beta1/AnnotateFileResponse/inputConfig": input_config +"/vision:v1p1beta1/AnnotateFileResponse/responses": responses +"/vision:v1p1beta1/AnnotateFileResponse/responses/response": response +"/vision:v1p1beta1/AnnotateImageResponse": annotate_image_response +"/vision:v1p1beta1/AnnotateImageResponse/context": context +"/vision:v1p1beta1/AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation +"/vision:v1p1beta1/AnnotateImageResponse/error": error +"/vision:v1p1beta1/AnnotateImageResponse/faceAnnotations": face_annotations +"/vision:v1p1beta1/AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation +"/vision:v1p1beta1/AnnotateImageResponse/fullTextAnnotation": full_text_annotation +"/vision:v1p1beta1/AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation +"/vision:v1p1beta1/AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1p1beta1/AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1p1beta1/AnnotateImageResponse/landmarkAnnotations": landmark_annotations +"/vision:v1p1beta1/AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation +"/vision:v1p1beta1/AnnotateImageResponse/logoAnnotations": logo_annotations +"/vision:v1p1beta1/AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation +"/vision:v1p1beta1/AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation +"/vision:v1p1beta1/AnnotateImageResponse/textAnnotations": text_annotations +"/vision:v1p1beta1/AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1p1beta1/AnnotateImageResponse/webDetection": web_detection +"/vision:v1p1beta1/AsyncAnnotateFileResponse": async_annotate_file_response +"/vision:v1p1beta1/AsyncAnnotateFileResponse/outputConfig": output_config +"/vision:v1p1beta1/AsyncBatchAnnotateFilesResponse": async_batch_annotate_files_response +"/vision:v1p1beta1/AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1p1beta1/AsyncBatchAnnotateFilesResponse/responses/response": response +"/vision:v1p1beta1/Block": block +"/vision:v1p1beta1/Block/blockType": block_type +"/vision:v1p1beta1/Block/boundingBox": bounding_box +"/vision:v1p1beta1/Block/confidence": confidence +"/vision:v1p1beta1/Block/paragraphs": paragraphs +"/vision:v1p1beta1/Block/paragraphs/paragraph": paragraph +"/vision:v1p1beta1/Block/property": property +"/vision:v1p1beta1/BoundingPoly": bounding_poly +"/vision:v1p1beta1/BoundingPoly/normalizedVertices": normalized_vertices +"/vision:v1p1beta1/BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex +"/vision:v1p1beta1/BoundingPoly/vertices": vertices +"/vision:v1p1beta1/BoundingPoly/vertices/vertex": vertex "/vision:v1p1beta1/Color": color "/vision:v1p1beta1/Color/alpha": alpha "/vision:v1p1beta1/Color/blue": blue "/vision:v1p1beta1/Color/green": green "/vision:v1p1beta1/Color/red": red +"/vision:v1p1beta1/ColorInfo": color_info +"/vision:v1p1beta1/ColorInfo/color": color +"/vision:v1p1beta1/ColorInfo/pixelFraction": pixel_fraction +"/vision:v1p1beta1/ColorInfo/score": score +"/vision:v1p1beta1/CropHint": crop_hint +"/vision:v1p1beta1/CropHint/boundingPoly": bounding_poly +"/vision:v1p1beta1/CropHint/confidence": confidence +"/vision:v1p1beta1/CropHint/importanceFraction": importance_fraction +"/vision:v1p1beta1/CropHintsAnnotation": crop_hints_annotation +"/vision:v1p1beta1/CropHintsAnnotation/cropHints": crop_hints +"/vision:v1p1beta1/CropHintsAnnotation/cropHints/crop_hint": crop_hint +"/vision:v1p1beta1/DetectedBreak": detected_break +"/vision:v1p1beta1/DetectedBreak/isPrefix": is_prefix +"/vision:v1p1beta1/DetectedBreak/type": type +"/vision:v1p1beta1/DetectedLanguage": detected_language +"/vision:v1p1beta1/DetectedLanguage/confidence": confidence +"/vision:v1p1beta1/DetectedLanguage/languageCode": language_code +"/vision:v1p1beta1/DominantColorsAnnotation": dominant_colors_annotation +"/vision:v1p1beta1/DominantColorsAnnotation/colors": colors +"/vision:v1p1beta1/DominantColorsAnnotation/colors/color": color +"/vision:v1p1beta1/EntityAnnotation": entity_annotation +"/vision:v1p1beta1/EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1p1beta1/EntityAnnotation/confidence": confidence +"/vision:v1p1beta1/EntityAnnotation/description": description +"/vision:v1p1beta1/EntityAnnotation/locale": locale +"/vision:v1p1beta1/EntityAnnotation/locations": locations +"/vision:v1p1beta1/EntityAnnotation/locations/location": location +"/vision:v1p1beta1/EntityAnnotation/mid": mid +"/vision:v1p1beta1/EntityAnnotation/properties": properties +"/vision:v1p1beta1/EntityAnnotation/properties/property": property +"/vision:v1p1beta1/EntityAnnotation/score": score +"/vision:v1p1beta1/EntityAnnotation/topicality": topicality +"/vision:v1p1beta1/FaceAnnotation": face_annotation +"/vision:v1p1beta1/FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1p1beta1/FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1p1beta1/FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1p1beta1/FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1p1beta1/FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1p1beta1/FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1p1beta1/FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1p1beta1/FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1p1beta1/FaceAnnotation/landmarks": landmarks +"/vision:v1p1beta1/FaceAnnotation/landmarks/landmark": landmark +"/vision:v1p1beta1/FaceAnnotation/panAngle": pan_angle +"/vision:v1p1beta1/FaceAnnotation/rollAngle": roll_angle +"/vision:v1p1beta1/FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1p1beta1/FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1p1beta1/FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1p1beta1/FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1p1beta1/GcsDestination": gcs_destination +"/vision:v1p1beta1/GcsDestination/uri": uri +"/vision:v1p1beta1/GcsSource": gcs_source +"/vision:v1p1beta1/GcsSource/uri": uri "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest": google_cloud_vision_v1p1beta1_annotate_image_request "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/features": features "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/features/feature": feature "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/image": image "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageRequest/imageContext": image_context "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse": google_cloud_vision_v1p1beta1_annotate_image_response +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/context": context "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/error": error "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/faceAnnotations": face_annotations @@ -77117,6 +77217,15 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/textAnnotations": text_annotations "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AnnotateImageResponse/webDetection": web_detection +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest": google_cloud_vision_v1p1beta1_async_annotate_file_request +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/features": features +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/features/feature": feature +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/imageContext": image_context +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/inputConfig": input_config +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest/outputConfig": output_config +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest": google_cloud_vision_v1p1beta1_async_batch_annotate_files_request +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest/requests": requests +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest/requests/request": request "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest": google_cloud_vision_v1p1beta1_batch_annotate_images_request "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest/requests": requests "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest/requests/request": request @@ -77186,9 +77295,16 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Feature/maxResults": max_results "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Feature/model": model "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Feature/type": type +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1GcsDestination": google_cloud_vision_v1p1beta1_gcs_destination +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1GcsDestination/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1GcsSource": google_cloud_vision_v1p1beta1_gcs_source +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1GcsSource/uri": uri "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Image": google_cloud_vision_v1p1beta1_image "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Image/content": content "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Image/source": source +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageAnnotationContext": google_cloud_vision_v1p1beta1_image_annotation_context +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageAnnotationContext/pageNumber": page_number +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageAnnotationContext/uri": uri "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageContext": google_cloud_vision_v1p1beta1_image_context "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageContext/cropHintsParams": crop_hints_params "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageContext/languageHints": language_hints @@ -77200,11 +77316,17 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageSource": google_cloud_vision_v1p1beta1_image_source "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageSource/gcsImageUri": gcs_image_uri "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1ImageSource/imageUri": image_uri +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1InputConfig": google_cloud_vision_v1p1beta1_input_config +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1InputConfig/gcsSource": gcs_source +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1InputConfig/mimeType": mime_type "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LatLongRect": google_cloud_vision_v1p1beta1_lat_long_rect "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LatLongRect/maxLatLng": max_lat_lng "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LatLongRect/minLatLng": min_lat_lng "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo": google_cloud_vision_v1p1beta1_location_info "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1LocationInfo/latLng": lat_lng +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OutputConfig": google_cloud_vision_v1p1beta1_output_config +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OutputConfig/batchSize": batch_size +"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1OutputConfig/gcsDestination": gcs_destination "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Page": google_cloud_vision_v1p1beta1_page "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Page/blocks": blocks "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Page/blocks/block": block @@ -77490,6 +77612,31 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/property": property "/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/symbols": symbols "/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/symbols/symbol": symbol +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata": google_cloud_vision_v1p3beta1_batch_operation_metadata +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/endTime": end_time +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/state": state +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BatchOperationMetadata/submitTime": submit_time +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly": google_cloud_vision_v1p3beta1_bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices": normalized_vertices +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices": vertices +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1BoundingPoly/vertices/vertex": vertex +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse": google_cloud_vision_v1p3beta1_import_product_sets_response +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages": reference_images +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/referenceImages/reference_image": reference_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses": statuses +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ImportProductSetsResponse/statuses/status": status +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1NormalizedVertex": google_cloud_vision_v1p3beta1_normalized_vertex +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1NormalizedVertex/x": x +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1NormalizedVertex/y": y +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage": google_cloud_vision_v1p3beta1_reference_image +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys": bounding_polys +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/boundingPolys/bounding_poly": bounding_poly +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/name": name +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1ReferenceImage/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Vertex": google_cloud_vision_v1p3beta1_vertex +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Vertex/x": x +"/vision:v1p1beta1/GoogleCloudVisionV1p3beta1Vertex/y": y "/vision:v1p1beta1/GoogleRpcStatus": google_rpc_status "/vision:v1p1beta1/GoogleRpcStatus/code": code "/vision:v1p1beta1/GoogleRpcStatus/details": details @@ -77504,18 +77651,130 @@ "/vision:v1p1beta1/GoogleTypeLatLng": google_type_lat_lng "/vision:v1p1beta1/GoogleTypeLatLng/latitude": latitude "/vision:v1p1beta1/GoogleTypeLatLng/longitude": longitude +"/vision:v1p1beta1/ImageAnnotationContext": image_annotation_context +"/vision:v1p1beta1/ImageAnnotationContext/pageNumber": page_number +"/vision:v1p1beta1/ImageAnnotationContext/uri": uri +"/vision:v1p1beta1/ImageProperties": image_properties +"/vision:v1p1beta1/ImageProperties/dominantColors": dominant_colors +"/vision:v1p1beta1/InputConfig": input_config +"/vision:v1p1beta1/InputConfig/gcsSource": gcs_source +"/vision:v1p1beta1/InputConfig/mimeType": mime_type +"/vision:v1p1beta1/Landmark": landmark +"/vision:v1p1beta1/Landmark/position": position +"/vision:v1p1beta1/Landmark/type": type "/vision:v1p1beta1/LatLng": lat_lng "/vision:v1p1beta1/LatLng/latitude": latitude "/vision:v1p1beta1/LatLng/longitude": longitude +"/vision:v1p1beta1/LocationInfo": location_info +"/vision:v1p1beta1/LocationInfo/latLng": lat_lng +"/vision:v1p1beta1/NormalizedVertex": normalized_vertex +"/vision:v1p1beta1/NormalizedVertex/x": x +"/vision:v1p1beta1/NormalizedVertex/y": y +"/vision:v1p1beta1/Operation": operation +"/vision:v1p1beta1/Operation/done": done +"/vision:v1p1beta1/Operation/error": error +"/vision:v1p1beta1/Operation/metadata": metadata +"/vision:v1p1beta1/Operation/metadata/metadatum": metadatum +"/vision:v1p1beta1/Operation/name": name +"/vision:v1p1beta1/Operation/response": response +"/vision:v1p1beta1/Operation/response/response": response +"/vision:v1p1beta1/OperationMetadata": operation_metadata +"/vision:v1p1beta1/OperationMetadata/createTime": create_time +"/vision:v1p1beta1/OperationMetadata/state": state +"/vision:v1p1beta1/OperationMetadata/updateTime": update_time +"/vision:v1p1beta1/OutputConfig": output_config +"/vision:v1p1beta1/OutputConfig/batchSize": batch_size +"/vision:v1p1beta1/OutputConfig/gcsDestination": gcs_destination +"/vision:v1p1beta1/Page": page +"/vision:v1p1beta1/Page/blocks": blocks +"/vision:v1p1beta1/Page/blocks/block": block +"/vision:v1p1beta1/Page/confidence": confidence +"/vision:v1p1beta1/Page/height": height +"/vision:v1p1beta1/Page/property": property +"/vision:v1p1beta1/Page/width": width +"/vision:v1p1beta1/Paragraph": paragraph +"/vision:v1p1beta1/Paragraph/boundingBox": bounding_box +"/vision:v1p1beta1/Paragraph/confidence": confidence +"/vision:v1p1beta1/Paragraph/property": property +"/vision:v1p1beta1/Paragraph/words": words +"/vision:v1p1beta1/Paragraph/words/word": word +"/vision:v1p1beta1/Position": position +"/vision:v1p1beta1/Position/x": x +"/vision:v1p1beta1/Position/y": y +"/vision:v1p1beta1/Position/z": z +"/vision:v1p1beta1/Property": property +"/vision:v1p1beta1/Property/name": name +"/vision:v1p1beta1/Property/uint64Value": uint64_value +"/vision:v1p1beta1/Property/value": value +"/vision:v1p1beta1/SafeSearchAnnotation": safe_search_annotation +"/vision:v1p1beta1/SafeSearchAnnotation/adult": adult +"/vision:v1p1beta1/SafeSearchAnnotation/medical": medical +"/vision:v1p1beta1/SafeSearchAnnotation/racy": racy +"/vision:v1p1beta1/SafeSearchAnnotation/spoof": spoof +"/vision:v1p1beta1/SafeSearchAnnotation/violence": violence "/vision:v1p1beta1/Status": status "/vision:v1p1beta1/Status/code": code "/vision:v1p1beta1/Status/details": details "/vision:v1p1beta1/Status/details/detail": detail "/vision:v1p1beta1/Status/details/detail/detail": detail "/vision:v1p1beta1/Status/message": message +"/vision:v1p1beta1/Symbol": symbol +"/vision:v1p1beta1/Symbol/boundingBox": bounding_box +"/vision:v1p1beta1/Symbol/confidence": confidence +"/vision:v1p1beta1/Symbol/property": property +"/vision:v1p1beta1/Symbol/text": text +"/vision:v1p1beta1/TextAnnotation": text_annotation +"/vision:v1p1beta1/TextAnnotation/pages": pages +"/vision:v1p1beta1/TextAnnotation/pages/page": page +"/vision:v1p1beta1/TextAnnotation/text": text +"/vision:v1p1beta1/TextProperty": text_property +"/vision:v1p1beta1/TextProperty/detectedBreak": detected_break +"/vision:v1p1beta1/TextProperty/detectedLanguages": detected_languages +"/vision:v1p1beta1/TextProperty/detectedLanguages/detected_language": detected_language +"/vision:v1p1beta1/Vertex": vertex +"/vision:v1p1beta1/Vertex/x": x +"/vision:v1p1beta1/Vertex/y": y +"/vision:v1p1beta1/WebDetection": web_detection +"/vision:v1p1beta1/WebDetection/bestGuessLabels": best_guess_labels +"/vision:v1p1beta1/WebDetection/bestGuessLabels/best_guess_label": best_guess_label +"/vision:v1p1beta1/WebDetection/fullMatchingImages": full_matching_images +"/vision:v1p1beta1/WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p1beta1/WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1p1beta1/WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1p1beta1/WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1p1beta1/WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p1beta1/WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1p1beta1/WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1p1beta1/WebDetection/webEntities": web_entities +"/vision:v1p1beta1/WebDetection/webEntities/web_entity": web_entity +"/vision:v1p1beta1/WebEntity": web_entity +"/vision:v1p1beta1/WebEntity/description": description +"/vision:v1p1beta1/WebEntity/entityId": entity_id +"/vision:v1p1beta1/WebEntity/score": score +"/vision:v1p1beta1/WebImage": web_image +"/vision:v1p1beta1/WebImage/score": score +"/vision:v1p1beta1/WebImage/url": url +"/vision:v1p1beta1/WebLabel": web_label +"/vision:v1p1beta1/WebLabel/label": label +"/vision:v1p1beta1/WebLabel/languageCode": language_code +"/vision:v1p1beta1/WebPage": web_page +"/vision:v1p1beta1/WebPage/fullMatchingImages": full_matching_images +"/vision:v1p1beta1/WebPage/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p1beta1/WebPage/pageTitle": page_title +"/vision:v1p1beta1/WebPage/partialMatchingImages": partial_matching_images +"/vision:v1p1beta1/WebPage/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p1beta1/WebPage/score": score +"/vision:v1p1beta1/WebPage/url": url +"/vision:v1p1beta1/Word": word +"/vision:v1p1beta1/Word/boundingBox": bounding_box +"/vision:v1p1beta1/Word/confidence": confidence +"/vision:v1p1beta1/Word/property": property +"/vision:v1p1beta1/Word/symbols": symbols +"/vision:v1p1beta1/Word/symbols/symbol": symbol "/vision:v1p1beta1/fields": fields "/vision:v1p1beta1/key": key "/vision:v1p1beta1/quotaUser": quota_user +"/vision:v1p1beta1/vision.files.asyncBatchAnnotate": async_file_batch_annotate "/vision:v1p1beta1/vision.images.annotate": annotate_image "/vision:v1p2beta1/Color": color "/vision:v1p2beta1/Color/alpha": alpha diff --git a/generated/google/apis/analyticsreporting_v4.rb b/generated/google/apis/analyticsreporting_v4.rb index 98da91277..5fde62286 100644 --- a/generated/google/apis/analyticsreporting_v4.rb +++ b/generated/google/apis/analyticsreporting_v4.rb @@ -18,14 +18,14 @@ require 'google/apis/analyticsreporting_v4/representations.rb' module Google module Apis - # Google Analytics Reporting API + # Analytics Reporting API # # Accesses Analytics report data. # # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ module AnalyticsreportingV4 VERSION = 'V4' - REVISION = '20171108' + REVISION = '20180515' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analyticsreporting_v4/classes.rb b/generated/google/apis/analyticsreporting_v4/classes.rb index 4584093b0..5c9568b71 100644 --- a/generated/google/apis/analyticsreporting_v4/classes.rb +++ b/generated/google/apis/analyticsreporting_v4/classes.rb @@ -1031,7 +1031,7 @@ module Google # Page size is for paging and specifies the maximum number of returned rows. # Page size should be >= 0. A query returns the default of 1,000 rows. - # The Analytics Core Reporting API returns a maximum of 10,000 rows per + # The Analytics Core Reporting API returns a maximum of 100,000 rows per # request, no matter how many you ask for. It can also return fewer rows # than requested, if there aren't as many dimension segments as you expect. # For instance, there are fewer than 300 possible values for `ga:country`, diff --git a/generated/google/apis/analyticsreporting_v4/service.rb b/generated/google/apis/analyticsreporting_v4/service.rb index 4034192d6..1553f173a 100644 --- a/generated/google/apis/analyticsreporting_v4/service.rb +++ b/generated/google/apis/analyticsreporting_v4/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module AnalyticsreportingV4 - # Google Analytics Reporting API + # Analytics Reporting API # # Accesses Analytics report data. # diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 21151aa73..f0e786ed4 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20180504' + REVISION = '20180515' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v2/service.rb b/generated/google/apis/androidpublisher_v2/service.rb index e80a16567..8e86c32ca 100644 --- a/generated/google/apis/androidpublisher_v2/service.rb +++ b/generated/google/apis/androidpublisher_v2/service.rb @@ -2045,6 +2045,48 @@ module Google execute_or_queue_command(command, &block) end + # Refund a user's subscription or in-app purchase order. + # @param [String] package_name + # The package name of the application for which this subscription or in-app item + # was purchased (for example, 'com.some.thing'). + # @param [String] order_id + # The order ID provided to the user when the subscription or in-app order was + # purchased. + # @param [Boolean] revoke + # Whether to revoke the purchased item. If set to true, access to the + # subscription or in-app item will be terminated immediately. If the item is a + # recurring subscription, all future payments will also be terminated. Consumed + # in-app items need to be handled by developer's app. (optional) + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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 refund_order(package_name, order_id, revoke: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/orders/{orderId}:refund', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['orderId'] = order_id unless order_id.nil? + command.query['revoke'] = revoke unless revoke.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? + execute_or_queue_command(command, &block) + end + # Checks the purchase and consumption status of an inapp item. # @param [String] package_name # The package name of the application the inapp product was sold in (for example, diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index 1f2645c07..e4686e83c 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20180427' + REVISION = '20180504' # 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/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index 51503e15e..33a67b53b 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -308,7 +308,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the addons of a specific cluster. + # Sets the addons for a specific cluster. # @param [String] name # The name (project, location, cluster) of the cluster to set addons. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -376,7 +376,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the locations of a specific cluster. + # Sets the locations for a specific cluster. # @param [String] name # The name (project, location, cluster) of the cluster to set locations. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -410,7 +410,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the logging service of a specific cluster. + # Sets the logging service for a specific cluster. # @param [String] name # The name (project, location, cluster) of the cluster to set logging. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -480,7 +480,7 @@ module Google end # Used to set master auth materials. Currently supports :- - # Changing the admin password of a specific cluster. + # Changing the admin password for a specific cluster. # This can be either via password generation or explicitly set the password. # @param [String] name # The name (project, location, cluster) of the cluster to set auth. @@ -515,7 +515,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the monitoring service of a specific cluster. + # Sets the monitoring service for a specific cluster. # @param [String] name # The name (project, location, cluster) of the cluster to set monitoring. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -685,7 +685,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates the master of a specific cluster. + # Updates the master for a specific cluster. # @param [String] name # The name (project, location, cluster) of the cluster to update. # Specified in the format 'projects/*/locations/*/clusters/*'. @@ -938,7 +938,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the autoscaling settings of a specific node pool. + # Sets the autoscaling settings for a specific node pool. # @param [String] name # The name (project, location, cluster, node pool) of the node pool to set # autoscaler settings. Specified in the format @@ -1008,7 +1008,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the size of a specific node pool. + # Sets the size for a specific node pool. # @param [String] name # The name (project, location, cluster, node pool id) of the node pool to set # size. @@ -1043,7 +1043,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates the version and/or image type of a specific node pool. + # Updates the version and/or image type for a specific node pool. # @param [String] name # The name (project, location, cluster, node pool) of the node pool to # update. Specified in the format @@ -1241,7 +1241,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the addons of a specific cluster. + # Sets the addons for a specific cluster. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -1568,7 +1568,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the locations of a specific cluster. + # Sets the locations for a specific cluster. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -1613,7 +1613,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the logging service of a specific cluster. + # Sets the logging service for a specific cluster. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -1658,7 +1658,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates the master of a specific cluster. + # Updates the master for a specific cluster. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -1703,7 +1703,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the monitoring service of a specific cluster. + # Sets the monitoring service for a specific cluster. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -1836,7 +1836,7 @@ module Google end # Used to set master auth materials. Currently supports :- - # Changing the admin password of a specific cluster. + # Changing the admin password for a specific cluster. # This can be either via password generation or explicitly set the password. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project @@ -2017,7 +2017,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the autoscaling settings of a specific node pool. + # Sets the autoscaling settings for a specific node pool. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -2358,7 +2358,7 @@ module Google execute_or_queue_command(command, &block) end - # Sets the size of a specific node pool. + # Sets the size for a specific node pool. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). @@ -2407,7 +2407,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates the version and/or image type of a specific node pool. + # Updates the version and/or image type for a specific node pool. # @param [String] project_id # Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index de0d4ef81..93a8cf2e6 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20180507' + REVISION = '20180515' # 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/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index 5e5383010..1b14f204d 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -208,6 +208,11 @@ module Google # @return [Fixnum] attr_accessor :rows_limit + # + # Corresponds to the JSON property `sampleMethod` + # @return [String] + attr_accessor :sample_method + # Message defining the location of a BigQuery table. A table is uniquely # identified by its project_id, dataset_id, and table_name. Within a query # a table is often referenced with a string in the format of: @@ -225,6 +230,7 @@ module Google def update!(**args) @identifying_fields = args[:identifying_fields] if args.key?(:identifying_fields) @rows_limit = args[:rows_limit] if args.key?(:rows_limit) + @sample_method = args[:sample_method] if args.key?(:sample_method) @table_reference = args[:table_reference] if args.key?(:table_reference) end end @@ -598,6 +604,18 @@ module Google # @return [Array] attr_accessor :file_types + # Limits the number of files to scan to this percentage of the input FileSet. + # Number of files scanned is rounded down. Must be between 0 and 100, + # inclusively. Both 0 and 100 means no limit. Defaults to 0. + # Corresponds to the JSON property `filesLimitPercent` + # @return [Fixnum] + attr_accessor :files_limit_percent + + # + # Corresponds to the JSON property `sampleMethod` + # @return [String] + attr_accessor :sample_method + def initialize(**args) update!(**args) end @@ -607,6 +625,8 @@ module Google @bytes_limit_per_file = args[:bytes_limit_per_file] if args.key?(:bytes_limit_per_file) @file_set = args[:file_set] if args.key?(:file_set) @file_types = args[:file_types] if args.key?(:file_types) + @files_limit_percent = args[:files_limit_percent] if args.key?(:files_limit_percent) + @sample_method = args[:sample_method] if args.key?(:sample_method) end end diff --git a/generated/google/apis/dlp_v2/representations.rb b/generated/google/apis/dlp_v2/representations.rb index f4c3ac0ec..5946615a8 100644 --- a/generated/google/apis/dlp_v2/representations.rb +++ b/generated/google/apis/dlp_v2/representations.rb @@ -963,6 +963,7 @@ module Google collection :identifying_fields, as: 'identifyingFields', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation property :rows_limit, :numeric_string => true, as: 'rowsLimit' + property :sample_method, as: 'sampleMethod' property :table_reference, as: 'tableReference', class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryTable::Representation end @@ -1075,6 +1076,8 @@ module Google property :file_set, as: 'fileSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FileSet::Representation collection :file_types, as: 'fileTypes' + property :files_limit_percent, as: 'filesLimitPercent' + property :sample_method, as: 'sampleMethod' end end diff --git a/generated/google/apis/language_v1.rb b/generated/google/apis/language_v1.rb index 1a7fc95b8..9f1b2bad8 100644 --- a/generated/google/apis/language_v1.rb +++ b/generated/google/apis/language_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1 VERSION = 'V1' - REVISION = '20180322' + REVISION = '20180514' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1/classes.rb b/generated/google/apis/language_v1/classes.rb index 5a4b57b64..67e3ff741 100644 --- a/generated/google/apis/language_v1/classes.rb +++ b/generated/google/apis/language_v1/classes.rb @@ -441,6 +441,7 @@ module Google include Google::Apis::Core::Hashable # The content of the input in string format. + # Cloud audit logging exempt since it is based on user data. # Corresponds to the JSON property `content` # @return [String] attr_accessor :content diff --git a/generated/google/apis/language_v1beta1.rb b/generated/google/apis/language_v1beta1.rb index d5e8fdc05..6e100d3c9 100644 --- a/generated/google/apis/language_v1beta1.rb +++ b/generated/google/apis/language_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta1 VERSION = 'V1beta1' - REVISION = '20180221' + REVISION = '20180514' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1beta1/classes.rb b/generated/google/apis/language_v1beta1/classes.rb index 9a61b7165..4dadf21c7 100644 --- a/generated/google/apis/language_v1beta1/classes.rb +++ b/generated/google/apis/language_v1beta1/classes.rb @@ -315,6 +315,7 @@ module Google include Google::Apis::Core::Hashable # The content of the input in string format. + # Cloud audit logging exempt since it is based on user data. # Corresponds to the JSON property `content` # @return [String] attr_accessor :content diff --git a/generated/google/apis/language_v1beta2.rb b/generated/google/apis/language_v1beta2.rb index 570ac2be6..02f5e8ee3 100644 --- a/generated/google/apis/language_v1beta2.rb +++ b/generated/google/apis/language_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta2 VERSION = 'V1beta2' - REVISION = '20180322' + REVISION = '20180514' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1beta2/classes.rb b/generated/google/apis/language_v1beta2/classes.rb index 7d77c4210..c79cbbaae 100644 --- a/generated/google/apis/language_v1beta2/classes.rb +++ b/generated/google/apis/language_v1beta2/classes.rb @@ -440,6 +440,7 @@ module Google include Google::Apis::Core::Hashable # The content of the input in string format. + # Cloud audit logging exempt since it is based on user data. # Corresponds to the JSON property `content` # @return [String] attr_accessor :content diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index d54129845..52f3272eb 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -82,11 +82,7 @@ module Google end end - # Request for the `CreateSnapshot` method.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in - # backward-incompatible ways and is not recommended for production use. - # It is not subject to any SLA or deprecation policy. + # Request for the `CreateSnapshot` method. class CreateSnapshotRequest include Google::Apis::Core::Hashable @@ -132,11 +128,7 @@ module Google end end - # Response for the `ListSnapshots` method.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # Response for the `ListSnapshots` method. class ListSnapshotsResponse include Google::Apis::Core::Hashable @@ -189,11 +181,8 @@ module Google end end - # Response for the `ListTopicSnapshots` method.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # Response for the `ListTopicSnapshots` method. + # [ALPHA] This method is a part of a closed Alpha API. class ListTopicSnapshotsResponse include Google::Apis::Core::Hashable @@ -605,11 +594,7 @@ module Google end end - # Request for the `Seek` method.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # Request for the `Seek` method. class SeekRequest include Google::Apis::Core::Hashable @@ -714,11 +699,7 @@ module Google end end - # A snapshot resource.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # A snapshot resource. class Snapshot include Google::Apis::Core::Hashable @@ -788,11 +769,8 @@ module Google # If `retain_acked_messages` is true, then this also configures the retention # of acknowledged messages, and thus configures how far back in time a `Seek` # can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10 - # minutes.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # minutes. + # [ALPHA] This field is a part of a closed Alpha API. # Corresponds to the JSON property `messageRetentionDuration` # @return [String] attr_accessor :message_retention_duration @@ -815,11 +793,8 @@ module Google # Indicates whether to retain acknowledged messages. If true, then # messages are not expunged from the subscription's backlog, even if they are # acknowledged, until they fall out of the `message_retention_duration` - # window.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # window. + # [ALPHA] This field is a part of a closed Alpha API. # Corresponds to the JSON property `retainAckedMessages` # @return [Boolean] attr_accessor :retain_acked_messages @@ -914,19 +889,11 @@ module Google end end - # Request for the UpdateSnapshot method.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # Request for the UpdateSnapshot method. class UpdateSnapshotRequest include Google::Apis::Core::Hashable - # A snapshot resource.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # A snapshot resource. # Corresponds to the JSON property `snapshot` # @return [Google::Apis::PubsubV1::Snapshot] attr_accessor :snapshot diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index 17fa46b4d..be59acc0c 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -47,21 +47,18 @@ module Google @batch_path = 'batch' end - # Creates a snapshot from the requested subscription.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # [ALPHA] This method is a part of a closed Alpha API. + # Creates a snapshot from the requested subscription. # If the snapshot already exists, returns `ALREADY_EXISTS`. # If the requested subscription doesn't exist, returns `NOT_FOUND`. # If the backlog in the subscription is too old -- and the resulting snapshot # would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. - # See also the `Snapshot.expire_time` field. If the name is not provided in - # the request, the server will assign a random + # See also the `Snapshot.expire_time` field. + # If the name is not provided in the request, the server will assign a random # name for this snapshot on the same project as the subscription, conforming - # to the [resource name format](https://cloud.google.com/pubsub/docs/overview# - # names). - # The generated + # to the + # [resource name + # format](https://cloud.google.com/pubsub/docs/overview#names). The generated # name is populated in the returned Snapshot object. Note that for REST API # requests, you must specify a name in the request. # @param [String] name @@ -100,15 +97,11 @@ module Google execute_or_queue_command(command, &block) end - # Removes an existing snapshot.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. - # When the snapshot is deleted, all messages retained in the snapshot + # Removes an existing snapshot. All messages retained in the snapshot # are immediately dropped. After a snapshot is deleted, a new one may be # created with the same name, but the new one has no association with the old # snapshot or its subscription, unless the same subscription is specified. + # [ALPHA] This method is a part of a closed Alpha API. # @param [String] snapshot # The name of the snapshot to delete. # Format is `projects/`project`/snapshots/`snap``. @@ -139,11 +132,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets the configuration details of a snapshot.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # Gets the configuration details of a snapshot. + # [ALPHA] This method is a part of a closed Alpha API. # @param [String] snapshot # The name of the snapshot to get. # Format is `projects/`project`/snapshots/`snap``. @@ -207,11 +197,8 @@ module Google execute_or_queue_command(command, &block) end - # Lists the existing snapshots.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # Lists the existing snapshots. + # [ALPHA] This method is a part of a closed Alpha API. # @param [String] project # The name of the cloud project that snapshots belong to. # Format is `projects/`project``. @@ -250,12 +237,9 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing snapshot.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. - # Note that certain properties of a snapshot are not modifiable. + # Updates an existing snapshot. Note that certain properties of a + # snapshot are not modifiable. + # [ALPHA] This method is a part of a closed Alpha API. # @param [String] name # The name of the snapshot. # @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object @@ -738,11 +722,8 @@ module Google end # Seeks an existing subscription to a point in time or to a given snapshot, - # whichever is provided in the request.

- # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # whichever is provided in the request. + # [ALPHA] This method is a part of a closed Alpha API. # @param [String] subscription # The subscription to affect. # @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object @@ -1135,10 +1116,8 @@ module Google execute_or_queue_command(command, &block) end - # Lists the names of the snapshots on this topic.

- # ALPHA: This feature is part of an alpha release. This API might be - # changed in backward-incompatible ways and is not recommended for production - # use. It is not subject to any SLA or deprecation policy. + # Lists the names of the snapshots on this topic. + # [ALPHA] This method is a part of a closed Alpha API. # @param [String] topic # The name of the topic that snapshots are attached to. # Format is `projects/`project`/topics/`topic``. diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index 46aa56183..b15615b91 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20180416' + REVISION = '20180515' # 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/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 3f72dd930..e59b0d718 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -33,7 +33,7 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone # who is authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@gmail.com` or `joe@example.com`. + # account. For example, `alice@gmail.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index 09edc51f6..e89bb1e3a 100644 --- a/generated/google/apis/vision_v1p1beta1.rb +++ b/generated/google/apis/vision_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20180416' + REVISION = '20180515' # 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/vision_v1p1beta1/classes.rb b/generated/google/apis/vision_v1p1beta1/classes.rb index 29ea583f2..b7ee66447 100644 --- a/generated/google/apis/vision_v1p1beta1/classes.rb +++ b/generated/google/apis/vision_v1p1beta1/classes.rb @@ -22,6 +22,271 @@ module Google module Apis module VisionV1p1beta1 + # Response to a single file annotation request. A file may contain one or more + # images, which individually have their own responses. + class AnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1p1beta1::InputConfig] + attr_accessor :input_config + + # Individual responses to images found within the file. + # 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) + @input_config = args[:input_config] if args.key?(:input_config) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Response to an image annotation request. + class AnnotateImageResponse + include Google::Apis::Core::Hashable + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + # Corresponds to the JSON property `context` + # @return [Google::Apis::VisionV1p1beta1::ImageAnnotationContext] + attr_accessor :context + + # Set of crop hints that are used to generate new crops when serving images. + # Corresponds to the JSON property `cropHintsAnnotation` + # @return [Google::Apis::VisionV1p1beta1::CropHintsAnnotation] + attr_accessor :crop_hints_annotation + + # 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p1beta1::Status] + attr_accessor :error + + # If present, face detection has completed successfully. + # Corresponds to the JSON property `faceAnnotations` + # @return [Array] + attr_accessor :face_annotations + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + # Corresponds to the JSON property `fullTextAnnotation` + # @return [Google::Apis::VisionV1p1beta1::TextAnnotation] + attr_accessor :full_text_annotation + + # Stores image properties, such as dominant colors. + # Corresponds to the JSON property `imagePropertiesAnnotation` + # @return [Google::Apis::VisionV1p1beta1::ImageProperties] + attr_accessor :image_properties_annotation + + # If present, label detection has completed successfully. + # Corresponds to the JSON property `labelAnnotations` + # @return [Array] + attr_accessor :label_annotations + + # If present, landmark detection has completed successfully. + # Corresponds to the JSON property `landmarkAnnotations` + # @return [Array] + attr_accessor :landmark_annotations + + # If present, logo detection has completed successfully. + # Corresponds to the JSON property `logoAnnotations` + # @return [Array] + attr_accessor :logo_annotations + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + # Corresponds to the JSON property `safeSearchAnnotation` + # @return [Google::Apis::VisionV1p1beta1::SafeSearchAnnotation] + attr_accessor :safe_search_annotation + + # If present, text (OCR) detection has completed successfully. + # Corresponds to the JSON property `textAnnotations` + # @return [Array] + attr_accessor :text_annotations + + # Relevant information for the image from the Internet. + # Corresponds to the JSON property `webDetection` + # @return [Google::Apis::VisionV1p1beta1::WebDetection] + attr_accessor :web_detection + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @context = args[:context] if args.key?(:context) + @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) + @error = args[:error] if args.key?(:error) + @face_annotations = args[:face_annotations] if args.key?(:face_annotations) + @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) + @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) + @label_annotations = args[:label_annotations] if args.key?(:label_annotations) + @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) + @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) + @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) + @text_annotations = args[:text_annotations] if args.key?(:text_annotations) + @web_detection = args[:web_detection] if args.key?(:web_detection) + end + end + + # The response for a single offline file annotation request. + class AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p1beta1::OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # 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 + + # Logical element on the page. + class Block + include Google::Apis::Core::Hashable + + # Detected block type (text, image etc) for this block. + # Corresponds to the JSON property `blockType` + # @return [String] + attr_accessor :block_type + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results on the block. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # List of paragraphs in this block (if this blocks is of type text). + # Corresponds to the JSON property `paragraphs` + # @return [Array] + attr_accessor :paragraphs + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::TextProperty] + attr_accessor :property + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @block_type = args[:block_type] if args.key?(:block_type) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @paragraphs = args[:paragraphs] if args.key?(:paragraphs) + @property = args[:property] if args.key?(:property) + end + end + + # A bounding polygon for the detected image annotation. + class BoundingPoly + 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 + # 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 @@ -165,6 +430,501 @@ module Google end end + # Color information consists of RGB channels, score, and the fraction of + # the image that the color occupies in the image. + class ColorInfo + 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. Here are some examples: + # 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::VisionV1p1beta1::Color] + attr_accessor :color + + # The fraction of pixels the color occupies in the image. + # Value in range [0, 1]. + # Corresponds to the JSON property `pixelFraction` + # @return [Float] + attr_accessor :pixel_fraction + + # Image-specific score for this color. Value in range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @color = args[:color] if args.key?(:color) + @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) + @score = args[:score] if args.key?(:score) + end + end + + # Single crop hint that is used to generate a new crop when serving an image. + class CropHint + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :bounding_poly + + # Confidence of this being a salient region. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Fraction of importance of this salient region with respect to the original + # image. + # Corresponds to the JSON property `importanceFraction` + # @return [Float] + attr_accessor :importance_fraction + + 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) + @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) + end + end + + # Set of crop hints that are used to generate new crops when serving images. + class CropHintsAnnotation + include Google::Apis::Core::Hashable + + # Crop hint results. + # Corresponds to the JSON property `cropHints` + # @return [Array] + attr_accessor :crop_hints + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints = args[:crop_hints] if args.key?(:crop_hints) + end + end + + # Detected start or end of a structural component. + class DetectedBreak + include Google::Apis::Core::Hashable + + # True if break prepends the element. + # Corresponds to the JSON property `isPrefix` + # @return [Boolean] + attr_accessor :is_prefix + alias_method :is_prefix?, :is_prefix + + # 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) + @is_prefix = args[:is_prefix] if args.key?(:is_prefix) + @type = args[:type] if args.key?(:type) + end + end + + # Detected language for a structural component. + class DetectedLanguage + 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 + + # Set of dominant colors and their corresponding scores. + class DominantColorsAnnotation + include Google::Apis::Core::Hashable + + # RGB color values with their score and pixel fraction. + # Corresponds to the JSON property `colors` + # @return [Array] + attr_accessor :colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @colors = args[:colors] if args.key?(:colors) + end + end + + # Set of detected entity features. + class EntityAnnotation + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :bounding_poly + + # **Deprecated. Use `score` instead.** + # The accuracy of the entity detection in an image. + # For example, for an image in which the "Eiffel Tower" entity is detected, + # this field represents the confidence that there is a tower in the query + # image. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Entity textual description, expressed in its `locale` language. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The language code for the locale in which the entity textual + # `description` is expressed. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The location information for the detected entity. Multiple + # `LocationInfo` elements can be present because one location may + # indicate the location of the scene in the image, and another location + # may indicate the location of the place where the image was taken. + # Location information is usually present for landmarks. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # Opaque entity ID. Some IDs may be available in + # [Google Knowledge Graph Search + # API](https://developers.google.com/knowledge-graph/). + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Some entities may have optional user-supplied `Property` (name/value) + # fields, such a score or string that qualifies the entity. + # Corresponds to the JSON property `properties` + # @return [Array] + attr_accessor :properties + + # Overall score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The relevancy of the ICA (Image Content Annotation) label to the + # image. For example, the relevancy of "tower" is likely higher to an image + # containing the detected "Eiffel Tower" than to an image containing a + # detected distant towering building, even though the confidence that + # there is a tower in each image may be the same. Range [0, 1]. + # Corresponds to the JSON property `topicality` + # @return [Float] + attr_accessor :topicality + + 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) + @description = args[:description] if args.key?(:description) + @locale = args[:locale] if args.key?(:locale) + @locations = args[:locations] if args.key?(:locations) + @mid = args[:mid] if args.key?(:mid) + @properties = args[:properties] if args.key?(:properties) + @score = args[:score] if args.key?(:score) + @topicality = args[:topicality] if args.key?(:topicality) + end + end + + # A face annotation object contains the results of face detection. + class FaceAnnotation + include Google::Apis::Core::Hashable + + # Anger likelihood. + # Corresponds to the JSON property `angerLikelihood` + # @return [String] + attr_accessor :anger_likelihood + + # Blurred likelihood. + # Corresponds to the JSON property `blurredLikelihood` + # @return [String] + attr_accessor :blurred_likelihood + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :bounding_poly + + # Detection confidence. Range [0, 1]. + # Corresponds to the JSON property `detectionConfidence` + # @return [Float] + attr_accessor :detection_confidence + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `fdBoundingPoly` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :fd_bounding_poly + + # Headwear likelihood. + # Corresponds to the JSON property `headwearLikelihood` + # @return [String] + attr_accessor :headwear_likelihood + + # Joy likelihood. + # Corresponds to the JSON property `joyLikelihood` + # @return [String] + attr_accessor :joy_likelihood + + # Face landmarking confidence. Range [0, 1]. + # Corresponds to the JSON property `landmarkingConfidence` + # @return [Float] + attr_accessor :landmarking_confidence + + # Detected face landmarks. + # Corresponds to the JSON property `landmarks` + # @return [Array] + attr_accessor :landmarks + + # Yaw angle, which indicates the leftward/rightward angle that the face is + # pointing relative to the vertical plane perpendicular to the image. Range + # [-180,180]. + # Corresponds to the JSON property `panAngle` + # @return [Float] + attr_accessor :pan_angle + + # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + # of the face relative to the image vertical about the axis perpendicular to + # the face. Range [-180,180]. + # Corresponds to the JSON property `rollAngle` + # @return [Float] + attr_accessor :roll_angle + + # Sorrow likelihood. + # Corresponds to the JSON property `sorrowLikelihood` + # @return [String] + attr_accessor :sorrow_likelihood + + # Surprise likelihood. + # Corresponds to the JSON property `surpriseLikelihood` + # @return [String] + attr_accessor :surprise_likelihood + + # Pitch angle, which indicates the upwards/downwards angle that the face is + # pointing relative to the image's horizontal plane. Range [-180,180]. + # Corresponds to the JSON property `tiltAngle` + # @return [Float] + attr_accessor :tilt_angle + + # Under-exposed likelihood. + # Corresponds to the JSON property `underExposedLikelihood` + # @return [String] + attr_accessor :under_exposed_likelihood + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) + @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) + @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) + @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) + @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) + @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) + @landmarks = args[:landmarks] if args.key?(:landmarks) + @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @roll_angle = args[:roll_angle] if args.key?(:roll_angle) + @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) + @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) + @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) + @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # 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 will be read from. + class GcsSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI for the input file. This must only be a + # Google Cloud Storage object. Wildcards are not currently supported. + # 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 + # Request for performing Google Cloud Vision API tasks over a user-provided # image, with user-requested features. class GoogleCloudVisionV1p1beta1AnnotateImageRequest @@ -201,6 +961,12 @@ module Google class GoogleCloudVisionV1p1beta1AnnotateImageResponse include Google::Apis::Core::Hashable + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + # Corresponds to the JSON property `context` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext] + attr_accessor :context + # Set of crop hints that are used to generate new crops when serving images. # Corresponds to the JSON property `cropHintsAnnotation` # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation] @@ -308,6 +1074,7 @@ module Google # Update properties of this object def update!(**args) + @context = args[:context] if args.key?(:context) @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) @error = args[:error] if args.key?(:error) @face_annotations = args[:face_annotations] if args.key?(:face_annotations) @@ -322,6 +1089,63 @@ module Google end end + # An offline file annotation request. + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest + include Google::Apis::Core::Hashable + + # Required. Requested features. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # Image context and/or feature-specific parameters. + # Corresponds to the JSON property `imageContext` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext] + attr_accessor :image_context + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig] + attr_accessor :input_config + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @features = args[:features] if args.key?(:features) + @image_context = args[:image_context] if args.key?(:image_context) + @input_config = args[:input_config] if args.key?(:input_config) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Multiple async file annotation requests are batched into a single service + # call. + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest + include Google::Apis::Core::Hashable + + # Individual async file annotation requests for this batch. + # Corresponds to the JSON property `requests` + # @return [Array] + attr_accessor :requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requests = args[:requests] if args.key?(:requests) + end + end + # Multiple image annotation requests are batched into a single service call. class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest include Google::Apis::Core::Hashable @@ -901,6 +1725,56 @@ module Google end end + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p1beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # 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 will be read from. + class GoogleCloudVisionV1p1beta1GcsSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI for the input file. This must only be a + # Google Cloud Storage object. Wildcards are not currently supported. + # 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 + # Client image to perform Google Cloud Vision API tasks over. class GoogleCloudVisionV1p1beta1Image include Google::Apis::Core::Hashable @@ -929,6 +1803,33 @@ module Google end end + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + include Google::Apis::Core::Hashable + + # If the file was a PDF or TIFF, this field gives the page number within + # the file used to produce the image. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # The URI of the file used to produce the image. + # 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) + @page_number = args[:page_number] if args.key?(:page_number) + @uri = args[:uri] if args.key?(:uri) + end + end + # Image context and/or feature-specific parameters. class GoogleCloudVisionV1p1beta1ImageContext include Google::Apis::Core::Hashable @@ -1034,6 +1935,32 @@ module Google end end + # The desired input location and metadata. + class GoogleCloudVisionV1p1beta1InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsSource] + attr_accessor :gcs_source + + # The type of the file. Currently only "application/pdf" and "image/tiff" + # are supported. Wildcards are not supported. + # 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 + # Rectangle determined by min and max `LatLng` pairs. class GoogleCloudVisionV1p1beta1LatLongRect include Google::Apis::Core::Hashable @@ -1090,6 +2017,39 @@ module Google end end + # The desired output location and metadata. + class GoogleCloudVisionV1p1beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file 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 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + # Detected page from OCR. class GoogleCloudVisionV1p1beta1Page include Google::Apis::Core::Hashable @@ -3212,6 +4172,293 @@ module Google end end + # Metadata for the batch operations such as the current state. + # This is included in the `metadata` field of the `Operation` returned by the + # `GetOperation` call of the `google::longrunning::Operations` service. + class GoogleCloudVisionV1p3beta1BatchOperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request is finished and + # google.longrunning.Operation.done is set to true. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the batch request was submitted to the server. + # Corresponds to the JSON property `submitTime` + # @return [String] + attr_accessor :submit_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @state = args[:state] if args.key?(:state) + @submit_time = args[:submit_time] if args.key?(:submit_time) + end + end + + # A bounding polygon for the detected image annotation. + class GoogleCloudVisionV1p3beta1BoundingPoly + 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 + + # Response message for the `ImportProductSets` method. + # This message is returned by the + # google.longrunning.Operations.GetOperation method in the returned + # google.longrunning.Operation.response field. + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse + include Google::Apis::Core::Hashable + + # The list of reference_images that are imported successfully. + # Corresponds to the JSON property `referenceImages` + # @return [Array] + attr_accessor :reference_images + + # The rpc status for each ImportProductSet request, including both successes + # and errors. + # The number of statuses here matches the number of lines in the csv file, + # and statuses[i] stores the success or failure status of processing the i-th + # line of the csv, starting from line 0. + # Corresponds to the JSON property `statuses` + # @return [Array] + attr_accessor :statuses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reference_images = args[:reference_images] if args.key?(:reference_images) + @statuses = args[:statuses] if args.key?(:statuses) + 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 GoogleCloudVisionV1p3beta1NormalizedVertex + 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 + + # A `ReferenceImage` represents a product image and its associated metadata, + # such as bounding boxes. + class GoogleCloudVisionV1p3beta1ReferenceImage + include Google::Apis::Core::Hashable + + # Bounding polygons around the areas of interest in the reference image. + # Optional. If this field is empty, the system will try to detect regions of + # interest. At most 10 bounding polygons will be used. + # The provided shape is converted into a non-rotated rectangle. Once + # converted, the small edge of the rectangle must be greater than or equal + # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 + # is not). + # Corresponds to the JSON property `boundingPolys` + # @return [Array] + attr_accessor :bounding_polys + + # The resource name of the reference image. + # Format is: + # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/ + # IMAGE_ID`. + # This field is ignored when creating a reference image. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The Google Cloud Storage URI of the reference image. + # The URI must start with `gs://`. + # Required. + # 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) + @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys) + @name = args[:name] if args.key?(:name) + @uri = args[:uri] if args.key?(:uri) + 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 GoogleCloudVisionV1p3beta1Vertex + 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 + + # If an image was produced from a file (e.g. a PDF), this message gives + # information about the source of that image. + class ImageAnnotationContext + include Google::Apis::Core::Hashable + + # If the file was a PDF or TIFF, this field gives the page number within + # the file used to produce the image. + # Corresponds to the JSON property `pageNumber` + # @return [Fixnum] + attr_accessor :page_number + + # The URI of the file used to produce the image. + # 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) + @page_number = args[:page_number] if args.key?(:page_number) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Stores image properties, such as dominant colors. + class ImageProperties + include Google::Apis::Core::Hashable + + # Set of dominant colors and their corresponding scores. + # Corresponds to the JSON property `dominantColors` + # @return [Google::Apis::VisionV1p1beta1::DominantColorsAnnotation] + attr_accessor :dominant_colors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) + end + end + + # The desired input location and metadata. + class InputConfig + include Google::Apis::Core::Hashable + + # The Google Cloud Storage location where the input will be read from. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::VisionV1p1beta1::GcsSource] + attr_accessor :gcs_source + + # The type of the file. Currently only "application/pdf" and "image/tiff" + # are supported. Wildcards are not supported. + # 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 face-specific landmark (for example, a face feature). + class Landmark + include Google::Apis::Core::Hashable + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + # Corresponds to the JSON property `position` + # @return [Google::Apis::VisionV1p1beta1::Position] + attr_accessor :position + + # Face landmark 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) + @position = args[:position] if args.key?(:position) + @type = args[:type] if args.key?(:type) + end + end + # An object representing a latitude/longitude pair. This is expressed as a pair # of doubles representing degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the @@ -3241,6 +4488,415 @@ module Google end end + # Detected entity location information. + class LocationInfo + include Google::Apis::Core::Hashable + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the + # WGS84 + # standard. Values must be within normalized ranges. + # Corresponds to the JSON property `latLng` + # @return [Google::Apis::VisionV1p1beta1::LatLng] + attr_accessor :lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + 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 NormalizedVertex + 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 + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + 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). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p1beta1::Status] + 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 have the format of `operations/some/unique/name`. + # 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 + + # Contains metadata for the BatchAnnotateImages operation. + class OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # 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 desired output location and metadata. + class OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file 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 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1p1beta1::GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Detected page from OCR. + class Page + include Google::Apis::Core::Hashable + + # List of blocks of text, images etc on this page. + # Corresponds to the JSON property `blocks` + # @return [Array] + attr_accessor :blocks + + # Confidence of the OCR results on the page. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Page height. For PDFs the unit is points. For images (including + # TIFFs) the unit is pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::TextProperty] + attr_accessor :property + + # Page width. For PDFs the unit is points. For images (including + # TIFFs) the unit is 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) + @blocks = args[:blocks] if args.key?(:blocks) + @confidence = args[:confidence] if args.key?(:confidence) + @height = args[:height] if args.key?(:height) + @property = args[:property] if args.key?(:property) + @width = args[:width] if args.key?(:width) + end + end + + # Structural unit of text representing a number of words in certain order. + class Paragraph + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the paragraph. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::TextProperty] + attr_accessor :property + + # List of words in this paragraph. + # Corresponds to the JSON property `words` + # @return [Array] + attr_accessor :words + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @words = args[:words] if args.key?(:words) + end + end + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + class Position + 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 + + # Z coordinate (or depth). + # Corresponds to the JSON property `z` + # @return [Float] + attr_accessor :z + + 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) + @z = args[:z] if args.key?(:z) + end + end + + # A `Property` consists of a user-supplied name/value pair. + class Property + include Google::Apis::Core::Hashable + + # Name of the property. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value of numeric properties. + # Corresponds to the JSON property `uint64Value` + # @return [Fixnum] + attr_accessor :uint64_value + + # Value of the property. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @uint64_value = args[:uint64_value] if args.key?(:uint64_value) + @value = args[:value] if args.key?(:value) + end + end + + # Set of features pertaining to the image, computed by computer vision + # methods over safe-search verticals (for example, adult, spoof, medical, + # violence). + class SafeSearchAnnotation + include Google::Apis::Core::Hashable + + # Represents the adult content likelihood for the image. Adult content may + # contain elements such as nudity, pornographic images or cartoons, or + # sexual activities. + # Corresponds to the JSON property `adult` + # @return [String] + attr_accessor :adult + + # Likelihood that this is a medical image. + # Corresponds to the JSON property `medical` + # @return [String] + attr_accessor :medical + + # Likelihood that the request image contains racy content. Racy content may + # include (but is not limited to) skimpy or sheer clothing, strategically + # covered nudity, lewd or provocative poses, or close-ups of sensitive + # body areas. + # Corresponds to the JSON property `racy` + # @return [String] + attr_accessor :racy + + # Spoof likelihood. The likelihood that an modification + # was made to the image's canonical version to make it appear + # funny or offensive. + # Corresponds to the JSON property `spoof` + # @return [String] + attr_accessor :spoof + + # Likelihood that this image contains violent content. + # Corresponds to the JSON property `violence` + # @return [String] + attr_accessor :violence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @adult = args[:adult] if args.key?(:adult) + @medical = args[:medical] if args.key?(:medical) + @racy = args[:racy] if args.key?(:racy) + @spoof = args[:spoof] if args.key?(:spoof) + @violence = args[:violence] if args.key?(:violence) + 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). The error model is designed to be: @@ -3312,6 +4968,346 @@ module Google @message = args[:message] if args.key?(:message) end end + + # A single symbol representation. + class Symbol + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the symbol. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::TextProperty] + attr_accessor :property + + # The actual UTF-8 representation of the symbol. + # 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) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @text = args[:text] if args.key?(:text) + end + end + + # TextAnnotation contains a structured representation of OCR extracted text. + # The hierarchy of an OCR extracted text structure is like this: + # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol + # Each structural component, starting from Page, may further have their own + # properties. Properties describe detected languages, breaks etc.. Please refer + # to the TextAnnotation.TextProperty message definition below for more + # detail. + class TextAnnotation + include Google::Apis::Core::Hashable + + # List of pages detected by OCR. + # Corresponds to the JSON property `pages` + # @return [Array] + attr_accessor :pages + + # UTF-8 text detected on the pages. + # 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) + @pages = args[:pages] if args.key?(:pages) + @text = args[:text] if args.key?(:text) + end + end + + # Additional information detected on the structural component. + class TextProperty + include Google::Apis::Core::Hashable + + # Detected start or end of a structural component. + # Corresponds to the JSON property `detectedBreak` + # @return [Google::Apis::VisionV1p1beta1::DetectedBreak] + attr_accessor :detected_break + + # A list of detected languages together with confidence. + # Corresponds to the JSON property `detectedLanguages` + # @return [Array] + attr_accessor :detected_languages + + 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) + 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 Vertex + 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 + + # Relevant information for the image from the Internet. + class WebDetection + include Google::Apis::Core::Hashable + + # Best guess text labels for the request image. + # Corresponds to the JSON property `bestGuessLabels` + # @return [Array] + attr_accessor :best_guess_labels + + # Fully matching images from the Internet. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Web pages containing the matching images from the Internet. + # Corresponds to the JSON property `pagesWithMatchingImages` + # @return [Array] + attr_accessor :pages_with_matching_images + + # Partial matching images from the Internet. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # The visually similar image results. + # Corresponds to the JSON property `visuallySimilarImages` + # @return [Array] + attr_accessor :visually_similar_images + + # Deduced entities from similar images on the Internet. + # Corresponds to the JSON property `webEntities` + # @return [Array] + attr_accessor :web_entities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) + @web_entities = args[:web_entities] if args.key?(:web_entities) + end + end + + # Entity deduced from similar images on the Internet. + class WebEntity + include Google::Apis::Core::Hashable + + # Canonical description of the entity, in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Opaque entity ID. + # Corresponds to the JSON property `entityId` + # @return [String] + attr_accessor :entity_id + + # Overall relevancy score for the entity. + # Not normalized and not comparable across different image queries. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @score = args[:score] if args.key?(:score) + end + end + + # Metadata for online images. + class WebImage + include Google::Apis::Core::Hashable + + # (Deprecated) Overall relevancy score for the image. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result image URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # Label to provide extra metadata for the web detection. + class WebLabel + include Google::Apis::Core::Hashable + + # Label for extra metadata. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The BCP-47 language code for `label`, 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) + @label = args[:label] if args.key?(:label) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + + # Metadata for web pages. + class WebPage + include Google::Apis::Core::Hashable + + # Fully matching images on the page. + # Can include resized copies of the query image. + # Corresponds to the JSON property `fullMatchingImages` + # @return [Array] + attr_accessor :full_matching_images + + # Title for the web page, may contain HTML markups. + # Corresponds to the JSON property `pageTitle` + # @return [String] + attr_accessor :page_title + + # Partial matching images on the page. + # Those images are similar enough to share some key-point features. For + # example an original image will likely have partial matching for its + # crops. + # Corresponds to the JSON property `partialMatchingImages` + # @return [Array] + attr_accessor :partial_matching_images + + # (Deprecated) Overall relevancy score for the web page. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + # The result web page URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) + @page_title = args[:page_title] if args.key?(:page_title) + @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) + @score = args[:score] if args.key?(:score) + @url = args[:url] if args.key?(:url) + end + end + + # A word representation. + class Word + include Google::Apis::Core::Hashable + + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingBox` + # @return [Google::Apis::VisionV1p1beta1::BoundingPoly] + attr_accessor :bounding_box + + # Confidence of the OCR results for the word. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Additional information detected on the structural component. + # Corresponds to the JSON property `property` + # @return [Google::Apis::VisionV1p1beta1::TextProperty] + attr_accessor :property + + # List of symbols in the word. + # The order of the symbols follows the natural reading order. + # Corresponds to the JSON property `symbols` + # @return [Array] + attr_accessor :symbols + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bounding_box = args[:bounding_box] if args.key?(:bounding_box) + @confidence = args[:confidence] if args.key?(:confidence) + @property = args[:property] if args.key?(:property) + @symbols = args[:symbols] if args.key?(:symbols) + end + end end end end diff --git a/generated/google/apis/vision_v1p1beta1/representations.rb b/generated/google/apis/vision_v1p1beta1/representations.rb index f3003d757..eabc24a5b 100644 --- a/generated/google/apis/vision_v1p1beta1/representations.rb +++ b/generated/google/apis/vision_v1p1beta1/representations.rb @@ -22,12 +22,108 @@ module Google module Apis module VisionV1p1beta1 + class AnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnnotateImageResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Block + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Color class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ColorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CropHint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CropHintsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DetectedBreak + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DetectedLanguage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DominantColorsAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EntityAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FaceAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1AnnotateImageRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,6 +136,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -118,12 +226,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p1beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1Image class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1ImageContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +268,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1LatLongRect class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,6 +286,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1Page class Representation < Google::Apis::Core::JsonRepresentation; end @@ -496,18 +634,278 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1BoundingPoly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1ReferenceImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p3beta1Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImageAnnotationContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImageProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Landmark + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LatLng class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class LocationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NormalizedVertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Page + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Paragraph + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Position + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Property + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SafeSearchAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Symbol + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TextAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TextProperty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Vertex + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WebDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WebEntity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WebImage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WebLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WebPage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Word + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::InputConfig, decorator: Google::Apis::VisionV1p1beta1::InputConfig::Representation + + collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::AnnotateImageResponse::Representation + + end + end + + class AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1p1beta1::ImageAnnotationContext, decorator: Google::Apis::VisionV1p1beta1::ImageAnnotationContext::Representation + + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p1beta1::CropHintsAnnotation, decorator: Google::Apis::VisionV1p1beta1::CropHintsAnnotation::Representation + + property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation + + collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p1beta1::FaceAnnotation, decorator: Google::Apis::VisionV1p1beta1::FaceAnnotation::Representation + + property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p1beta1::TextAnnotation, decorator: Google::Apis::VisionV1p1beta1::TextAnnotation::Representation + + property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p1beta1::ImageProperties, decorator: Google::Apis::VisionV1p1beta1::ImageProperties::Representation + + collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation + + collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation + + property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::SafeSearchAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation + + property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p1beta1::WebDetection, decorator: Google::Apis::VisionV1p1beta1::WebDetection::Representation + + end + end + + class AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::OutputConfig, decorator: Google::Apis::VisionV1p1beta1::OutputConfig::Representation + + end + end + + class AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p1beta1::AsyncAnnotateFileResponse::Representation + + end + end + + class Block + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :block_type, as: 'blockType' + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :confidence, as: 'confidence' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p1beta1::Paragraph, decorator: Google::Apis::VisionV1p1beta1::Paragraph::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation + + end + end + + class BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::NormalizedVertex::Representation + + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::Vertex, decorator: Google::Apis::VisionV1p1beta1::Vertex::Representation + + end + end + class Color # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -518,6 +916,114 @@ module Google end end + class ColorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::VisionV1p1beta1::Color, decorator: Google::Apis::VisionV1p1beta1::Color::Representation + + property :pixel_fraction, as: 'pixelFraction' + property :score, as: 'score' + end + end + + class CropHint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :importance_fraction, as: 'importanceFraction' + end + end + + class CropHintsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p1beta1::CropHint, decorator: Google::Apis::VisionV1p1beta1::CropHint::Representation + + end + end + + class DetectedBreak + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_prefix, as: 'isPrefix' + property :type, as: 'type' + end + end + + class DetectedLanguage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :language_code, as: 'languageCode' + end + end + + class DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1p1beta1::ColorInfo, decorator: Google::Apis::VisionV1p1beta1::ColorInfo::Representation + + end + end + + class EntityAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :description, as: 'description' + property :locale, as: 'locale' + collection :locations, as: 'locations', class: Google::Apis::VisionV1p1beta1::LocationInfo, decorator: Google::Apis::VisionV1p1beta1::LocationInfo::Representation + + property :mid, as: 'mid' + collection :properties, as: 'properties', class: Google::Apis::VisionV1p1beta1::Property, decorator: Google::Apis::VisionV1p1beta1::Property::Representation + + property :score, as: 'score' + property :topicality, as: 'topicality' + end + end + + class FaceAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :anger_likelihood, as: 'angerLikelihood' + property :blurred_likelihood, as: 'blurredLikelihood' + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :detection_confidence, as: 'detectionConfidence' + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :headwear_likelihood, as: 'headwearLikelihood' + property :joy_likelihood, as: 'joyLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p1beta1::Landmark, decorator: Google::Apis::VisionV1p1beta1::Landmark::Representation + + property :pan_angle, as: 'panAngle' + property :roll_angle, as: 'rollAngle' + property :sorrow_likelihood, as: 'sorrowLikelihood' + property :surprise_likelihood, as: 'surpriseLikelihood' + property :tilt_angle, as: 'tiltAngle' + property :under_exposed_likelihood, as: 'underExposedLikelihood' + end + end + + class GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + class GoogleCloudVisionV1p1beta1AnnotateImageRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -533,6 +1039,8 @@ module Google class GoogleCloudVisionV1p1beta1AnnotateImageResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageAnnotationContext::Representation + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation::Representation property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation @@ -558,6 +1066,28 @@ module Google end end + class GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :features, as: 'features', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature::Representation + + property :image_context, as: 'imageContext', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext::Representation + + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig::Representation + + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requests, as: 'requests', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest::Representation + + end + end + class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -699,6 +1229,20 @@ module Google end end + class GoogleCloudVisionV1p1beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p1beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + class GoogleCloudVisionV1p1beta1Image # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -708,6 +1252,14 @@ module Google end end + class GoogleCloudVisionV1p1beta1ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + class GoogleCloudVisionV1p1beta1ImageContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -737,6 +1289,15 @@ module Google end end + class GoogleCloudVisionV1p1beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsSource, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + class GoogleCloudVisionV1p1beta1LatLongRect # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -755,6 +1316,15 @@ module Google end end + class GoogleCloudVisionV1p1beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsDestination, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1GcsDestination::Representation + + end + end + class GoogleCloudVisionV1p1beta1Page # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1360,6 +1930,95 @@ module Google end end + class GoogleCloudVisionV1p3beta1BatchOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :state, as: 'state' + property :submit_time, as: 'submitTime' + end + end + + class GoogleCloudVisionV1p3beta1BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1NormalizedVertex::Representation + + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Vertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Vertex::Representation + + end + end + + class GoogleCloudVisionV1p3beta1ImportProductSetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reference_images, as: 'referenceImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ReferenceImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ReferenceImage::Representation + + collection :statuses, as: 'statuses', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation + + end + end + + class GoogleCloudVisionV1p3beta1NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class GoogleCloudVisionV1p3beta1ReferenceImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bounding_polys, as: 'boundingPolys', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + + property :name, as: 'name' + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p3beta1Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + + class ImageProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p1beta1::DominantColorsAnnotation, decorator: Google::Apis::VisionV1p1beta1::DominantColorsAnnotation::Representation + + end + end + + class InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p1beta1::GcsSource, decorator: Google::Apis::VisionV1p1beta1::GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class Landmark + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::VisionV1p1beta1::Position, decorator: Google::Apis::VisionV1p1beta1::Position::Representation + + property :type, as: 'type' + end + end + class LatLng # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1368,6 +2027,107 @@ module Google end end + class LocationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p1beta1::LatLng, decorator: Google::Apis::VisionV1p1beta1::LatLng::Representation + + end + end + + class NormalizedVertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p1beta1::GcsDestination, decorator: Google::Apis::VisionV1p1beta1::GcsDestination::Representation + + end + end + + class Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p1beta1::Block, decorator: Google::Apis::VisionV1p1beta1::Block::Representation + + property :confidence, as: 'confidence' + property :height, as: 'height' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation + + property :width, as: 'width' + end + end + + class Paragraph + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1p1beta1::Word, decorator: Google::Apis::VisionV1p1beta1::Word::Representation + + end + end + + class Position + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + property :z, as: 'z' + end + end + + class Property + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :uint64_value, :numeric_string => true, as: 'uint64Value' + property :value, as: 'value' + end + end + + class SafeSearchAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :adult, as: 'adult' + property :medical, as: 'medical' + property :racy, as: 'racy' + property :spoof, as: 'spoof' + property :violence, as: 'violence' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1376,6 +2136,114 @@ module Google property :message, as: 'message' end end + + class Symbol + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation + + property :text, as: 'text' + end + end + + class TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1p1beta1::Page, decorator: Google::Apis::VisionV1p1beta1::Page::Representation + + property :text, as: 'text' + end + end + + class TextProperty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p1beta1::DetectedBreak, decorator: Google::Apis::VisionV1p1beta1::DetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p1beta1::DetectedLanguage, decorator: Google::Apis::VisionV1p1beta1::DetectedLanguage::Representation + + end + end + + class Vertex + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :x, as: 'x' + property :y, as: 'y' + end + end + + class WebDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p1beta1::WebLabel, decorator: Google::Apis::VisionV1p1beta1::WebLabel::Representation + + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation + + collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p1beta1::WebPage, decorator: Google::Apis::VisionV1p1beta1::WebPage::Representation + + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation + + collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation + + collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p1beta1::WebEntity, decorator: Google::Apis::VisionV1p1beta1::WebEntity::Representation + + end + end + + class WebEntity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :entity_id, as: 'entityId' + property :score, as: 'score' + end + end + + class WebImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :score, as: 'score' + property :url, as: 'url' + end + end + + class WebLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :language_code, as: 'languageCode' + end + end + + class WebPage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation + + property :page_title, as: 'pageTitle' + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::WebImage, decorator: Google::Apis::VisionV1p1beta1::WebImage::Representation + + property :score, as: 'score' + property :url, as: 'url' + end + end + + class Word + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::TextProperty, decorator: Google::Apis::VisionV1p1beta1::TextProperty::Representation + + collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p1beta1::Symbol, decorator: Google::Apis::VisionV1p1beta1::Symbol::Representation + + end + end end end end diff --git a/generated/google/apis/vision_v1p1beta1/service.rb b/generated/google/apis/vision_v1p1beta1/service.rb index 0631c32c7..eb7e8137e 100644 --- a/generated/google/apis/vision_v1p1beta1/service.rb +++ b/generated/google/apis/vision_v1p1beta1/service.rb @@ -49,6 +49,41 @@ module Google @batch_path = 'batch' end + # Run asynchronous image detection and annotation for a list of generic + # files, such as PDF files, which may contain multiple pages and multiple + # images per page. Progress and results can be retrieved through the + # `google.longrunning.Operations` interface. + # `Operation.metadata` contains `OperationMetadata` (metadata). + # `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + # @param [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest] google_cloud_vision_v1p1beta1_async_batch_annotate_files_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::VisionV1p1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VisionV1p1beta1::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 async_file_batch_annotate(google_cloud_vision_v1p1beta1_async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1p1beta1/files:asyncBatchAnnotate', options) + command.request_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest::Representation + command.request_object = google_cloud_vision_v1p1beta1_async_batch_annotate_files_request_object + command.response_representation = Google::Apis::VisionV1p1beta1::Operation::Representation + command.response_class = Google::Apis::VisionV1p1beta1::Operation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Run image detection and annotation for a batch of images. # @param [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest] google_cloud_vision_v1p1beta1_batch_annotate_images_request_object # @param [String] fields