diff --git a/api_names_out.yaml b/api_names_out.yaml
index a5ad4871a..88df00608 100644
--- a/api_names_out.yaml
+++ b/api_names_out.yaml
@@ -13421,6 +13421,7 @@
"/cloudfunctions:v1/ListOperationsResponse/operations": operations
"/cloudfunctions:v1/ListOperationsResponse/operations/operation": operation
"/cloudfunctions:v1/Location": location
+"/cloudfunctions:v1/Location/displayName": display_name
"/cloudfunctions:v1/Location/labels": labels
"/cloudfunctions:v1/Location/labels/label": label
"/cloudfunctions:v1/Location/locationId": location_id
@@ -13546,6 +13547,7 @@
"/cloudfunctions:v1beta2/ListOperationsResponse/operations": operations
"/cloudfunctions:v1beta2/ListOperationsResponse/operations/operation": operation
"/cloudfunctions:v1beta2/Location": location
+"/cloudfunctions:v1beta2/Location/displayName": display_name
"/cloudfunctions:v1beta2/Location/labels": labels
"/cloudfunctions:v1beta2/Location/labels/label": label
"/cloudfunctions:v1beta2/Location/locationId": location_id
@@ -45881,6 +45883,8 @@
"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/entityType": entity_type
"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/text": text
"/dialogflow:v2/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/userDefined": user_defined
+"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata": google_cloud_dialogflow_v2beta1_knowledge_operation_metadata
+"/dialogflow:v2/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata/state": state
"/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest": google_cloud_dialogflow_v2beta1_original_detect_intent_request
"/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/payload": payload
"/dialogflow:v2/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest/payload/payload": payload
@@ -46587,6 +46591,8 @@
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/entityType": entity_type
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/text": text
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart/userDefined": user_defined
+"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata": google_cloud_dialogflow_v2beta1_knowledge_operation_metadata
+"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata/state": state
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse": google_cloud_dialogflow_v2beta1_list_contexts_response
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/contexts": contexts
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ListContextsResponse/contexts/context": context
@@ -59008,6 +59014,7 @@
"/oslogin:v1/PosixAccount/gecos": gecos
"/oslogin:v1/PosixAccount/gid": gid
"/oslogin:v1/PosixAccount/homeDirectory": home_directory
+"/oslogin:v1/PosixAccount/operatingSystemType": operating_system_type
"/oslogin:v1/PosixAccount/primary": primary
"/oslogin:v1/PosixAccount/shell": shell
"/oslogin:v1/PosixAccount/systemId": system_id
@@ -74412,6 +74419,28 @@
"/vision:v1/GoogleCloudVisionV1Word/property": property
"/vision:v1/GoogleCloudVisionV1Word/symbols": symbols
"/vision:v1/GoogleCloudVisionV1Word/symbols/symbol": symbol
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateFileResponse": google_cloud_vision_v1p2beta1_annotate_file_response
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/inputConfig": input_config
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses": responses
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses/response": response
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse": google_cloud_vision_v1p2beta1_annotate_image_response
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/context": context
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/error": error
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/faceAnnotations": face_annotations
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/labelAnnotations": label_annotations
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/logoAnnotations": logo_annotations
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/textAnnotations": text_annotations
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/webDetection": web_detection
"/vision:v1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p2beta1_async_annotate_file_response
"/vision:v1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse/outputConfig": output_config
"/vision:v1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse/outputs": outputs
@@ -74419,8 +74448,81 @@
"/vision:v1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p2beta1_async_batch_annotate_files_response
"/vision:v1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse/responses": responses
"/vision:v1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse/responses/response": response
+"/vision:v1/GoogleCloudVisionV1p2beta1Block": google_cloud_vision_v1p2beta1_block
+"/vision:v1/GoogleCloudVisionV1p2beta1Block/blockType": block_type
+"/vision:v1/GoogleCloudVisionV1p2beta1Block/boundingBox": bounding_box
+"/vision:v1/GoogleCloudVisionV1p2beta1Block/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1Block/paragraphs": paragraphs
+"/vision:v1/GoogleCloudVisionV1p2beta1Block/paragraphs/paragraph": paragraph
+"/vision:v1/GoogleCloudVisionV1p2beta1Block/property": property
+"/vision:v1/GoogleCloudVisionV1p2beta1BoundingPoly": google_cloud_vision_v1p2beta1_bounding_poly
+"/vision:v1/GoogleCloudVisionV1p2beta1BoundingPoly/normalizedVertices": normalized_vertices
+"/vision:v1/GoogleCloudVisionV1p2beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex
+"/vision:v1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices": vertices
+"/vision:v1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices/vertex": vertex
+"/vision:v1/GoogleCloudVisionV1p2beta1ColorInfo": google_cloud_vision_v1p2beta1_color_info
+"/vision:v1/GoogleCloudVisionV1p2beta1ColorInfo/color": color
+"/vision:v1/GoogleCloudVisionV1p2beta1ColorInfo/pixelFraction": pixel_fraction
+"/vision:v1/GoogleCloudVisionV1p2beta1ColorInfo/score": score
+"/vision:v1/GoogleCloudVisionV1p2beta1CropHint": google_cloud_vision_v1p2beta1_crop_hint
+"/vision:v1/GoogleCloudVisionV1p2beta1CropHint/boundingPoly": bounding_poly
+"/vision:v1/GoogleCloudVisionV1p2beta1CropHint/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1CropHint/importanceFraction": importance_fraction
+"/vision:v1/GoogleCloudVisionV1p2beta1CropHintsAnnotation": google_cloud_vision_v1p2beta1_crop_hints_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1CropHintsAnnotation/cropHints": crop_hints
+"/vision:v1/GoogleCloudVisionV1p2beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint
+"/vision:v1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation": google_cloud_vision_v1p2beta1_dominant_colors_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation/colors": colors
+"/vision:v1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation/colors/color": color
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation": google_cloud_vision_v1p2beta1_entity_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/boundingPoly": bounding_poly
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/description": description
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/locale": locale
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/locations": locations
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/locations/location": location
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/mid": mid
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/properties": properties
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/properties/property": property
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/score": score
+"/vision:v1/GoogleCloudVisionV1p2beta1EntityAnnotation/topicality": topicality
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation": google_cloud_vision_v1p2beta1_face_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/angerLikelihood": anger_likelihood
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/blurredLikelihood": blurred_likelihood
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/boundingPoly": bounding_poly
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/detectionConfidence": detection_confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/headwearLikelihood": headwear_likelihood
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/joyLikelihood": joy_likelihood
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarks": landmarks
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarks/landmark": landmark
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/panAngle": pan_angle
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/rollAngle": roll_angle
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/tiltAngle": tilt_angle
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark": google_cloud_vision_v1p2beta1_face_annotation_landmark
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark/position": position
+"/vision:v1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark/type": type
"/vision:v1/GoogleCloudVisionV1p2beta1GcsDestination": google_cloud_vision_v1p2beta1_gcs_destination
"/vision:v1/GoogleCloudVisionV1p2beta1GcsDestination/uri": uri
+"/vision:v1/GoogleCloudVisionV1p2beta1GcsSource": google_cloud_vision_v1p2beta1_gcs_source
+"/vision:v1/GoogleCloudVisionV1p2beta1GcsSource/uri": uri
+"/vision:v1/GoogleCloudVisionV1p2beta1ImageAnnotationContext": google_cloud_vision_v1p2beta1_image_annotation_context
+"/vision:v1/GoogleCloudVisionV1p2beta1ImageAnnotationContext/pageNumber": page_number
+"/vision:v1/GoogleCloudVisionV1p2beta1ImageAnnotationContext/uri": uri
+"/vision:v1/GoogleCloudVisionV1p2beta1ImageProperties": google_cloud_vision_v1p2beta1_image_properties
+"/vision:v1/GoogleCloudVisionV1p2beta1ImageProperties/dominantColors": dominant_colors
+"/vision:v1/GoogleCloudVisionV1p2beta1InputConfig": google_cloud_vision_v1p2beta1_input_config
+"/vision:v1/GoogleCloudVisionV1p2beta1InputConfig/gcsSource": gcs_source
+"/vision:v1/GoogleCloudVisionV1p2beta1InputConfig/mimeType": mime_type
+"/vision:v1/GoogleCloudVisionV1p2beta1LocationInfo": google_cloud_vision_v1p2beta1_location_info
+"/vision:v1/GoogleCloudVisionV1p2beta1LocationInfo/latLng": lat_lng
+"/vision:v1/GoogleCloudVisionV1p2beta1NormalizedVertex": google_cloud_vision_v1p2beta1_normalized_vertex
+"/vision:v1/GoogleCloudVisionV1p2beta1NormalizedVertex/x": x
+"/vision:v1/GoogleCloudVisionV1p2beta1NormalizedVertex/y": y
"/vision:v1/GoogleCloudVisionV1p2beta1OperationMetadata": google_cloud_vision_v1p2beta1_operation_metadata
"/vision:v1/GoogleCloudVisionV1p2beta1OperationMetadata/createTime": create_time
"/vision:v1/GoogleCloudVisionV1p2beta1OperationMetadata/state": state
@@ -74428,6 +74530,92 @@
"/vision:v1/GoogleCloudVisionV1p2beta1OutputConfig": google_cloud_vision_v1p2beta1_output_config
"/vision:v1/GoogleCloudVisionV1p2beta1OutputConfig/batchSize": batch_size
"/vision:v1/GoogleCloudVisionV1p2beta1OutputConfig/gcsDestination": gcs_destination
+"/vision:v1/GoogleCloudVisionV1p2beta1Page": google_cloud_vision_v1p2beta1_page
+"/vision:v1/GoogleCloudVisionV1p2beta1Page/blocks": blocks
+"/vision:v1/GoogleCloudVisionV1p2beta1Page/blocks/block": block
+"/vision:v1/GoogleCloudVisionV1p2beta1Page/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1Page/height": height
+"/vision:v1/GoogleCloudVisionV1p2beta1Page/property": property
+"/vision:v1/GoogleCloudVisionV1p2beta1Page/width": width
+"/vision:v1/GoogleCloudVisionV1p2beta1Paragraph": google_cloud_vision_v1p2beta1_paragraph
+"/vision:v1/GoogleCloudVisionV1p2beta1Paragraph/boundingBox": bounding_box
+"/vision:v1/GoogleCloudVisionV1p2beta1Paragraph/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1Paragraph/property": property
+"/vision:v1/GoogleCloudVisionV1p2beta1Paragraph/words": words
+"/vision:v1/GoogleCloudVisionV1p2beta1Paragraph/words/word": word
+"/vision:v1/GoogleCloudVisionV1p2beta1Position": google_cloud_vision_v1p2beta1_position
+"/vision:v1/GoogleCloudVisionV1p2beta1Position/x": x
+"/vision:v1/GoogleCloudVisionV1p2beta1Position/y": y
+"/vision:v1/GoogleCloudVisionV1p2beta1Position/z": z
+"/vision:v1/GoogleCloudVisionV1p2beta1Property": google_cloud_vision_v1p2beta1_property
+"/vision:v1/GoogleCloudVisionV1p2beta1Property/name": name
+"/vision:v1/GoogleCloudVisionV1p2beta1Property/uint64Value": uint64_value
+"/vision:v1/GoogleCloudVisionV1p2beta1Property/value": value
+"/vision:v1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation": google_cloud_vision_v1p2beta1_safe_search_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/adult": adult
+"/vision:v1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/medical": medical
+"/vision:v1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/racy": racy
+"/vision:v1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/spoof": spoof
+"/vision:v1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/violence": violence
+"/vision:v1/GoogleCloudVisionV1p2beta1Symbol": google_cloud_vision_v1p2beta1_symbol
+"/vision:v1/GoogleCloudVisionV1p2beta1Symbol/boundingBox": bounding_box
+"/vision:v1/GoogleCloudVisionV1p2beta1Symbol/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1Symbol/property": property
+"/vision:v1/GoogleCloudVisionV1p2beta1Symbol/text": text
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotation": google_cloud_vision_v1p2beta1_text_annotation
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotation/pages": pages
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotation/pages/page": page
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotation/text": text
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p2beta1_text_annotation_detected_break
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak/isPrefix": is_prefix
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak/type": type
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p2beta1_text_annotation_detected_language
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage/languageCode": language_code
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty": google_cloud_vision_v1p2beta1_text_annotation_text_property
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedBreak": detected_break
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedLanguages": detected_languages
+"/vision:v1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language
+"/vision:v1/GoogleCloudVisionV1p2beta1Vertex": google_cloud_vision_v1p2beta1_vertex
+"/vision:v1/GoogleCloudVisionV1p2beta1Vertex/x": x
+"/vision:v1/GoogleCloudVisionV1p2beta1Vertex/y": y
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection": google_cloud_vision_v1p2beta1_web_detection
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/bestGuessLabels": best_guess_labels
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/fullMatchingImages": full_matching_images
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/partialMatchingImages": partial_matching_images
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/visuallySimilarImages": visually_similar_images
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/webEntities": web_entities
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetection/webEntities/web_entity": web_entity
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity": google_cloud_vision_v1p2beta1_web_detection_web_entity
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/description": description
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/entityId": entity_id
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/score": score
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebImage": google_cloud_vision_v1p2beta1_web_detection_web_image
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebImage/score": score
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebImage/url": url
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel": google_cloud_vision_v1p2beta1_web_detection_web_label
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel/label": label
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel/languageCode": language_code
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage": google_cloud_vision_v1p2beta1_web_detection_web_page
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/fullMatchingImages": full_matching_images
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/pageTitle": page_title
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/score": score
+"/vision:v1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/url": url
+"/vision:v1/GoogleCloudVisionV1p2beta1Word": google_cloud_vision_v1p2beta1_word
+"/vision:v1/GoogleCloudVisionV1p2beta1Word/boundingBox": bounding_box
+"/vision:v1/GoogleCloudVisionV1p2beta1Word/confidence": confidence
+"/vision:v1/GoogleCloudVisionV1p2beta1Word/property": property
+"/vision:v1/GoogleCloudVisionV1p2beta1Word/symbols": symbols
+"/vision:v1/GoogleCloudVisionV1p2beta1Word/symbols/symbol": symbol
"/vision:v1/GoogleRpcStatus": google_rpc_status
"/vision:v1/GoogleRpcStatus/code": code
"/vision:v1/GoogleRpcStatus/details": details
@@ -74787,6 +74975,28 @@
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Word/property": property
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Word/symbols": symbols
"/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Word/symbols/symbol": symbol
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse": google_cloud_vision_v1p2beta1_annotate_file_response
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/inputConfig": input_config
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses": responses
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses/response": response
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse": google_cloud_vision_v1p2beta1_annotate_image_response
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/context": context
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/error": error
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/faceAnnotations": face_annotations
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/labelAnnotations": label_annotations
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/logoAnnotations": logo_annotations
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/textAnnotations": text_annotations
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/webDetection": web_detection
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p2beta1_async_annotate_file_response
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse/outputConfig": output_config
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse/outputs": outputs
@@ -74794,8 +75004,81 @@
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p2beta1_async_batch_annotate_files_response
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse/responses": responses
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse/responses/response": response
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Block": google_cloud_vision_v1p2beta1_block
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Block/blockType": block_type
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Block/boundingBox": bounding_box
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Block/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Block/paragraphs": paragraphs
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Block/paragraphs/paragraph": paragraph
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Block/property": property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1BoundingPoly": google_cloud_vision_v1p2beta1_bounding_poly
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1BoundingPoly/normalizedVertices": normalized_vertices
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices": vertices
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices/vertex": vertex
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ColorInfo": google_cloud_vision_v1p2beta1_color_info
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ColorInfo/color": color
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ColorInfo/pixelFraction": pixel_fraction
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ColorInfo/score": score
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1CropHint": google_cloud_vision_v1p2beta1_crop_hint
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1CropHint/boundingPoly": bounding_poly
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1CropHint/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1CropHint/importanceFraction": importance_fraction
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1CropHintsAnnotation": google_cloud_vision_v1p2beta1_crop_hints_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1CropHintsAnnotation/cropHints": crop_hints
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation": google_cloud_vision_v1p2beta1_dominant_colors_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation/colors": colors
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation/colors/color": color
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation": google_cloud_vision_v1p2beta1_entity_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/boundingPoly": bounding_poly
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/description": description
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/locale": locale
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/locations": locations
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/locations/location": location
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/mid": mid
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/properties": properties
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/properties/property": property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/score": score
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/topicality": topicality
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation": google_cloud_vision_v1p2beta1_face_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/angerLikelihood": anger_likelihood
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/blurredLikelihood": blurred_likelihood
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/boundingPoly": bounding_poly
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/detectionConfidence": detection_confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/headwearLikelihood": headwear_likelihood
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/joyLikelihood": joy_likelihood
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarks": landmarks
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarks/landmark": landmark
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/panAngle": pan_angle
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/rollAngle": roll_angle
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/tiltAngle": tilt_angle
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark": google_cloud_vision_v1p2beta1_face_annotation_landmark
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark/position": position
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark/type": type
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1GcsDestination": google_cloud_vision_v1p2beta1_gcs_destination
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1GcsDestination/uri": uri
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1GcsSource": google_cloud_vision_v1p2beta1_gcs_source
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1GcsSource/uri": uri
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ImageAnnotationContext": google_cloud_vision_v1p2beta1_image_annotation_context
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ImageAnnotationContext/pageNumber": page_number
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ImageAnnotationContext/uri": uri
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ImageProperties": google_cloud_vision_v1p2beta1_image_properties
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1ImageProperties/dominantColors": dominant_colors
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1InputConfig": google_cloud_vision_v1p2beta1_input_config
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1InputConfig/gcsSource": gcs_source
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1InputConfig/mimeType": mime_type
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1LocationInfo": google_cloud_vision_v1p2beta1_location_info
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1LocationInfo/latLng": lat_lng
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1NormalizedVertex": google_cloud_vision_v1p2beta1_normalized_vertex
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1NormalizedVertex/x": x
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1NormalizedVertex/y": y
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OperationMetadata": google_cloud_vision_v1p2beta1_operation_metadata
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OperationMetadata/createTime": create_time
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OperationMetadata/state": state
@@ -74803,6 +75086,92 @@
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OutputConfig": google_cloud_vision_v1p2beta1_output_config
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OutputConfig/batchSize": batch_size
"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OutputConfig/gcsDestination": gcs_destination
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Page": google_cloud_vision_v1p2beta1_page
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Page/blocks": blocks
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Page/blocks/block": block
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Page/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Page/height": height
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Page/property": property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Page/width": width
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Paragraph": google_cloud_vision_v1p2beta1_paragraph
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Paragraph/boundingBox": bounding_box
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Paragraph/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Paragraph/property": property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Paragraph/words": words
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Paragraph/words/word": word
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Position": google_cloud_vision_v1p2beta1_position
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Position/x": x
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Position/y": y
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Position/z": z
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Property": google_cloud_vision_v1p2beta1_property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Property/name": name
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Property/uint64Value": uint64_value
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Property/value": value
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation": google_cloud_vision_v1p2beta1_safe_search_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/adult": adult
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/medical": medical
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/racy": racy
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/spoof": spoof
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/violence": violence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Symbol": google_cloud_vision_v1p2beta1_symbol
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Symbol/boundingBox": bounding_box
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Symbol/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Symbol/property": property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Symbol/text": text
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotation": google_cloud_vision_v1p2beta1_text_annotation
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotation/pages": pages
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotation/pages/page": page
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotation/text": text
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p2beta1_text_annotation_detected_break
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak/isPrefix": is_prefix
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak/type": type
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p2beta1_text_annotation_detected_language
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage/languageCode": language_code
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty": google_cloud_vision_v1p2beta1_text_annotation_text_property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedBreak": detected_break
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedLanguages": detected_languages
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Vertex": google_cloud_vision_v1p2beta1_vertex
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Vertex/x": x
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Vertex/y": y
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection": google_cloud_vision_v1p2beta1_web_detection
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/bestGuessLabels": best_guess_labels
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/fullMatchingImages": full_matching_images
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/partialMatchingImages": partial_matching_images
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/visuallySimilarImages": visually_similar_images
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/webEntities": web_entities
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetection/webEntities/web_entity": web_entity
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity": google_cloud_vision_v1p2beta1_web_detection_web_entity
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/description": description
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/entityId": entity_id
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/score": score
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebImage": google_cloud_vision_v1p2beta1_web_detection_web_image
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebImage/score": score
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebImage/url": url
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel": google_cloud_vision_v1p2beta1_web_detection_web_label
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel/label": label
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel/languageCode": language_code
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage": google_cloud_vision_v1p2beta1_web_detection_web_page
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/fullMatchingImages": full_matching_images
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/pageTitle": page_title
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/score": score
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/url": url
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word": google_cloud_vision_v1p2beta1_word
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/boundingBox": bounding_box
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/confidence": confidence
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/property": property
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/symbols": symbols
+"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1Word/symbols/symbol": symbol
"/vision:v1p1beta1/GoogleRpcStatus": google_rpc_status
"/vision:v1p1beta1/GoogleRpcStatus/code": code
"/vision:v1p1beta1/GoogleRpcStatus/details": details
@@ -74835,6 +75204,10 @@
"/vision:v1p2beta1/Color/blue": blue
"/vision:v1p2beta1/Color/green": green
"/vision:v1p2beta1/Color/red": red
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse": google_cloud_vision_v1p2beta1_annotate_file_response
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/inputConfig": input_config
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses": responses
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateFileResponse/responses/response": response
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest": google_cloud_vision_v1p2beta1_annotate_image_request
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest/features": features
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest/features/feature": feature
@@ -74888,6 +75261,8 @@
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/paragraphs/paragraph": paragraph
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/property": property
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly": google_cloud_vision_v1p2beta1_bounding_poly
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly/normalizedVertices": normalized_vertices
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly/normalizedVertices/normalized_vertex": normalized_vertex
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices": vertices
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices/vertex": vertex
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ColorInfo": google_cloud_vision_v1p2beta1_color_info
@@ -74972,6 +75347,9 @@
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LatLongRect/minLatLng": min_lat_lng
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LocationInfo": google_cloud_vision_v1p2beta1_location_info
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LocationInfo/latLng": lat_lng
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1NormalizedVertex": google_cloud_vision_v1p2beta1_normalized_vertex
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1NormalizedVertex/x": x
+"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1NormalizedVertex/y": y
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OperationMetadata": google_cloud_vision_v1p2beta1_operation_metadata
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OperationMetadata/createTime": create_time
"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OperationMetadata/state": state
diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb
index 255114c70..068f049cd 100644
--- a/generated/google/apis/cloudfunctions_v1.rb
+++ b/generated/google/apis/cloudfunctions_v1.rb
@@ -20,13 +20,12 @@ module Google
module Apis
# Google Cloud Functions API
#
- # API for managing lightweight user-provided functions executed in response to
- # events.
+ # Manages lightweight user-provided functions executed in response to events.
#
# @see https://cloud.google.com/functions
module CloudfunctionsV1
VERSION = 'V1'
- REVISION = '20171208'
+ REVISION = '20180416'
# 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/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb
index 68ed05ef6..d5d72aa3e 100644
--- a/generated/google/apis/cloudfunctions_v1/classes.rb
+++ b/generated/google/apis/cloudfunctions_v1/classes.rb
@@ -459,6 +459,12 @@ module Google
class Location
include Google::Apis::Core::Hashable
+ # The friendly name for this location, typically a nearby city name.
+ # For example, "Tokyo".
+ # Corresponds to the JSON property `displayName`
+ # @return [String]
+ attr_accessor :display_name
+
# Cross-service attributes for the location. For example
# `"cloud.googleapis.com/region": "us-east1"`
# Corresponds to the JSON property `labels`
@@ -488,6 +494,7 @@ module Google
# Update properties of this object
def update!(**args)
+ @display_name = args[:display_name] if args.key?(:display_name)
@labels = args[:labels] if args.key?(:labels)
@location_id = args[:location_id] if args.key?(:location_id)
@metadata = args[:metadata] if args.key?(:metadata)
diff --git a/generated/google/apis/cloudfunctions_v1/representations.rb b/generated/google/apis/cloudfunctions_v1/representations.rb
index 2eada3a06..d630e3ba0 100644
--- a/generated/google/apis/cloudfunctions_v1/representations.rb
+++ b/generated/google/apis/cloudfunctions_v1/representations.rb
@@ -265,6 +265,7 @@ module Google
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+ property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
diff --git a/generated/google/apis/cloudfunctions_v1/service.rb b/generated/google/apis/cloudfunctions_v1/service.rb
index a3eaef3bb..5df64e4f9 100644
--- a/generated/google/apis/cloudfunctions_v1/service.rb
+++ b/generated/google/apis/cloudfunctions_v1/service.rb
@@ -22,8 +22,7 @@ module Google
module CloudfunctionsV1
# Google Cloud Functions API
#
- # API for managing lightweight user-provided functions executed in response to
- # events.
+ # Manages lightweight user-provided functions executed in response to events.
#
# @example
# require 'google/apis/cloudfunctions_v1'
@@ -318,7 +317,7 @@ module Google
# * Source file size should not exceed 100MB limit.
# When making a HTTP PUT request, these two headers need to be specified:
# * `content-type: application/zip`
- # * `x-google-content-length-range: 0,104857600`
+ # * `x-goog-content-length-range: 0,104857600`
# @param [String] parent
# The project and location in which the Google Cloud Storage signed URL
# should be generated, specified in the format `projects/*/locations/*`.
diff --git a/generated/google/apis/cloudfunctions_v1beta2.rb b/generated/google/apis/cloudfunctions_v1beta2.rb
index f4a004f6a..0759ce245 100644
--- a/generated/google/apis/cloudfunctions_v1beta2.rb
+++ b/generated/google/apis/cloudfunctions_v1beta2.rb
@@ -20,13 +20,12 @@ module Google
module Apis
# Google Cloud Functions API
#
- # API for managing lightweight user-provided functions executed in response to
- # events.
+ # Manages lightweight user-provided functions executed in response to events.
#
# @see https://cloud.google.com/functions
module CloudfunctionsV1beta2
VERSION = 'V1beta2'
- REVISION = '20171208'
+ REVISION = '20180416'
# 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/cloudfunctions_v1beta2/classes.rb b/generated/google/apis/cloudfunctions_v1beta2/classes.rb
index e6db1c336..6b389ee8e 100644
--- a/generated/google/apis/cloudfunctions_v1beta2/classes.rb
+++ b/generated/google/apis/cloudfunctions_v1beta2/classes.rb
@@ -463,6 +463,12 @@ module Google
class Location
include Google::Apis::Core::Hashable
+ # The friendly name for this location, typically a nearby city name.
+ # For example, "Tokyo".
+ # Corresponds to the JSON property `displayName`
+ # @return [String]
+ attr_accessor :display_name
+
# Cross-service attributes for the location. For example
# `"cloud.googleapis.com/region": "us-east1"`
# Corresponds to the JSON property `labels`
@@ -492,6 +498,7 @@ module Google
# Update properties of this object
def update!(**args)
+ @display_name = args[:display_name] if args.key?(:display_name)
@labels = args[:labels] if args.key?(:labels)
@location_id = args[:location_id] if args.key?(:location_id)
@metadata = args[:metadata] if args.key?(:metadata)
diff --git a/generated/google/apis/cloudfunctions_v1beta2/representations.rb b/generated/google/apis/cloudfunctions_v1beta2/representations.rb
index 9a2e9c1cf..b1dbe63dd 100644
--- a/generated/google/apis/cloudfunctions_v1beta2/representations.rb
+++ b/generated/google/apis/cloudfunctions_v1beta2/representations.rb
@@ -266,6 +266,7 @@ module Google
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+ property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
diff --git a/generated/google/apis/cloudfunctions_v1beta2/service.rb b/generated/google/apis/cloudfunctions_v1beta2/service.rb
index 92131afd9..4e7a2549f 100644
--- a/generated/google/apis/cloudfunctions_v1beta2/service.rb
+++ b/generated/google/apis/cloudfunctions_v1beta2/service.rb
@@ -22,8 +22,7 @@ module Google
module CloudfunctionsV1beta2
# Google Cloud Functions API
#
- # API for managing lightweight user-provided functions executed in response to
- # events.
+ # Manages lightweight user-provided functions executed in response to events.
#
# @example
# require 'google/apis/cloudfunctions_v1beta2'
@@ -318,7 +317,7 @@ module Google
# * Source file size should not exceed 100MB limit.
# When making a HTTP PUT request, these two headers need to be specified:
# * `content-type: application/zip`
- # * `x-google-content-length-range: 0,104857600`
+ # * `x-goog-content-length-range: 0,104857600`
# @param [String] parent
# The project and location in which the Google Cloud Storage signed URL
# should be generated, specified in the format `projects/*/locations/*`.
diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb
index e31c68ac6..1c62f5b84 100644
--- a/generated/google/apis/cloudresourcemanager_v1.rb
+++ b/generated/google/apis/cloudresourcemanager_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
- REVISION = '20180411'
+ REVISION = '20180416'
# 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/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb
index 3009542c8..1178a458a 100644
--- a/generated/google/apis/cloudresourcemanager_v1/classes.rb
+++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb
@@ -1197,11 +1197,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -1210,7 +1210,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -1219,6 +1219,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@@ -1519,11 +1530,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -1532,7 +1543,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -1541,6 +1552,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb
index 649d97511..55f3764ba 100644
--- a/generated/google/apis/cloudresourcemanager_v1/service.rb
+++ b/generated/google/apis/cloudresourcemanager_v1/service.rb
@@ -1228,9 +1228,11 @@ module Google
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
# must be granted the owner role using the Cloud Platform Console and must
# explicitly accept the invitation.
- # + Invitations to grant the owner role cannot be sent using
- # `setIamPolicy()`;
- # they must be sent only using the Cloud Platform Console.
+ # + You can only grant ownership of a project to a member by using the
+ # GCP Console. Inviting a member will deliver an invitation email that
+ # they must accept. An invitation email is not generated if you are
+ # granting a role other than owner, or if both the member you are inviting
+ # and the project are part of your organization.
# + Membership changes that leave the project without any owners that have
# accepted the Terms of Service (ToS) will be rejected.
# + If the project is not part of an organization, there must be at least
diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb
index 42591c020..7ce8b35b3 100644
--- a/generated/google/apis/cloudresourcemanager_v1beta1.rb
+++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
- REVISION = '20180402'
+ REVISION = '20180416'
# 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/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb
index 39226e313..7291980b3 100644
--- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb
+++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb
@@ -480,11 +480,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -493,7 +493,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -502,6 +502,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@@ -706,11 +717,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -719,7 +730,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -728,6 +739,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb
index f75dd0a03..f5f37be58 100644
--- a/generated/google/apis/cloudresourcemanager_v2.rb
+++ b/generated/google/apis/cloudresourcemanager_v2.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2
VERSION = 'V2'
- REVISION = '20180402'
+ REVISION = '20180416'
# 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/cloudresourcemanager_v2/classes.rb b/generated/google/apis/cloudresourcemanager_v2/classes.rb
index b8b0b9eb6..64a0fc704 100644
--- a/generated/google/apis/cloudresourcemanager_v2/classes.rb
+++ b/generated/google/apis/cloudresourcemanager_v2/classes.rb
@@ -453,11 +453,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -466,7 +466,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -475,6 +475,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@@ -641,11 +652,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -654,7 +665,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -663,6 +674,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb
index c5575c2e6..f29c9f511 100644
--- a/generated/google/apis/cloudresourcemanager_v2beta1.rb
+++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2beta1
VERSION = 'V2beta1'
- REVISION = '20180402'
+ REVISION = '20180416'
# 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/cloudresourcemanager_v2beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb
index 3f598a0e2..4be7d9aa4 100644
--- a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb
+++ b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb
@@ -453,11 +453,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -466,7 +466,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -475,6 +475,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@@ -641,11 +652,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -654,7 +665,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -663,6 +674,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb
index 50fa2b6c9..094d95685 100644
--- a/generated/google/apis/dataproc_v1beta2.rb
+++ b/generated/google/apis/dataproc_v1beta2.rb
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
- REVISION = '20180409'
+ REVISION = '20180416'
# 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb
index d95f4f88a..cd651dcb3 100644
--- a/generated/google/apis/dataproc_v1beta2/classes.rb
+++ b/generated/google/apis/dataproc_v1beta2/classes.rb
@@ -1662,9 +1662,9 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources.A Policy consists of a
- # list of bindings. A Binding binds a list of members to a role, where the
+ # list of bindings. A binding binds a list of members to a role, where the
# members can be user accounts, Google groups, Google domains, and service
- # accounts. A role is a named list of permissions defined by IAM.Example
+ # accounts. A role is a named list of permissions defined by IAM.JSON Example
# `
# "bindings": [
# `
@@ -1673,7 +1673,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -1682,6 +1682,17 @@ module Google
# `
# ]
# `
+ # YAML Example
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the IAM developer's guide (
# https://cloud.google.com/iam/docs).
class Policy
@@ -1832,9 +1843,9 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources.A Policy consists of a
- # list of bindings. A Binding binds a list of members to a role, where the
+ # list of bindings. A binding binds a list of members to a role, where the
# members can be user accounts, Google groups, Google domains, and service
- # accounts. A role is a named list of permissions defined by IAM.Example
+ # accounts. A role is a named list of permissions defined by IAM.JSON Example
# `
# "bindings": [
# `
@@ -1843,7 +1854,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -1852,6 +1863,17 @@ module Google
# `
# ]
# `
+ # YAML Example
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the IAM developer's guide (
# https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb
index 871008018..0a570cd23 100644
--- a/generated/google/apis/dialogflow_v2.rb
+++ b/generated/google/apis/dialogflow_v2.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2
VERSION = 'V2'
- REVISION = '20180407'
+ REVISION = '20180414'
# 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/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb
index 3d81908ee..d4c93b64e 100644
--- a/generated/google/apis/dialogflow_v2/classes.rb
+++ b/generated/google/apis/dialogflow_v2/classes.rb
@@ -2331,7 +2331,7 @@ module Google
# information, see
# [Actions on Google Webhook
# Format](https://developers.google.com/actions/dialogflow/webhook)
- # `
+ #
`
# "google": `
# "expectUserResponse": true,
# "richResponse": `
@@ -2344,7 +2344,7 @@ module Google
# ]
# `
# `
- # `
+ # `
# Corresponds to the JSON property `payload`
# @return [Hash]
attr_accessor :payload
@@ -3545,6 +3545,25 @@ module Google
end
end
+ # Metadata in google::longrunning::Operation for Knowledge operations.
+ class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
+ include Google::Apis::Core::Hashable
+
+ # Required. The current state of this operation.
+ # Corresponds to the JSON property `state`
+ # @return [String]
+ attr_accessor :state
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @state = args[:state] if args.key?(:state)
+ end
+ end
+
# Represents the contents of the original request that was passed to
# the `[Streaming]DetectIntent` call.
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
@@ -3779,7 +3798,7 @@ module Google
# information, see
# [Actions on Google Webhook
# Format](https://developers.google.com/actions/dialogflow/webhook)
- # `
+ # `
# "google": `
# "expectUserResponse": true,
# "richResponse": `
@@ -3792,7 +3811,7 @@ module Google
# ]
# `
# `
- # `
+ # `
# Corresponds to the JSON property `payload`
# @return [Hash]
attr_accessor :payload
diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb
index e409abc90..1c1e5c74a 100644
--- a/generated/google/apis/dialogflow_v2/representations.rb
+++ b/generated/google/apis/dialogflow_v2/representations.rb
@@ -574,6 +574,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1573,6 +1579,13 @@ module Google
end
end
+ class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :state, as: 'state'
+ end
+ end
+
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb
index bf61c6187..aca1fdbdb 100644
--- a/generated/google/apis/dialogflow_v2beta1.rb
+++ b/generated/google/apis/dialogflow_v2beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
- REVISION = '20180407'
+ REVISION = '20180414'
# 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb
index 1fe1e960e..989935718 100644
--- a/generated/google/apis/dialogflow_v2beta1/classes.rb
+++ b/generated/google/apis/dialogflow_v2beta1/classes.rb
@@ -1407,7 +1407,7 @@ module Google
# information, see
# [Actions on Google Webhook
# Format](https://developers.google.com/actions/dialogflow/webhook)
- # `
+ # `
# "google": `
# "expectUserResponse": true,
# "richResponse": `
@@ -1420,7 +1420,7 @@ module Google
# ]
# `
# `
- # `
+ # `
# Corresponds to the JSON property `payload`
# @return [Hash]
attr_accessor :payload
@@ -3191,6 +3191,25 @@ module Google
end
end
+ # Metadata in google::longrunning::Operation for Knowledge operations.
+ class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
+ include Google::Apis::Core::Hashable
+
+ # Required. The current state of this operation.
+ # Corresponds to the JSON property `state`
+ # @return [String]
+ attr_accessor :state
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @state = args[:state] if args.key?(:state)
+ end
+ end
+
# The response message for Contexts.ListContexts.
class GoogleCloudDialogflowV2beta1ListContextsResponse
include Google::Apis::Core::Hashable
@@ -3787,7 +3806,7 @@ module Google
# information, see
# [Actions on Google Webhook
# Format](https://developers.google.com/actions/dialogflow/webhook)
- # `
+ # `
# "google": `
# "expectUserResponse": true,
# "richResponse": `
@@ -3800,7 +3819,7 @@ module Google
# ]
# `
# `
- # `
+ # `
# Corresponds to the JSON property `payload`
# @return [Hash]
attr_accessor :payload
diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb
index ae821a491..67fd8b7ee 100644
--- a/generated/google/apis/dialogflow_v2beta1/representations.rb
+++ b/generated/google/apis/dialogflow_v2beta1/representations.rb
@@ -508,6 +508,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudDialogflowV2beta1ListContextsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1469,6 +1475,13 @@ module Google
end
end
+ class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :state, as: 'state'
+ end
+ end
+
class GoogleCloudDialogflowV2beta1ListContextsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/oslogin_v1.rb b/generated/google/apis/oslogin_v1.rb
index 168a5ea06..b3a5129b0 100644
--- a/generated/google/apis/oslogin_v1.rb
+++ b/generated/google/apis/oslogin_v1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/rest/
module OsloginV1
VERSION = 'V1'
- REVISION = '20180306'
+ REVISION = '20180413'
# 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/oslogin_v1/classes.rb b/generated/google/apis/oslogin_v1/classes.rb
index 9d021680b..2b0c73131 100644
--- a/generated/google/apis/oslogin_v1/classes.rb
+++ b/generated/google/apis/oslogin_v1/classes.rb
@@ -117,6 +117,11 @@ module Google
# @return [String]
attr_accessor :home_directory
+ # The operating system type where this account applies.
+ # Corresponds to the JSON property `operatingSystemType`
+ # @return [String]
+ attr_accessor :operating_system_type
+
# Only one POSIX account can be marked as primary.
# Corresponds to the JSON property `primary`
# @return [Boolean]
@@ -154,6 +159,7 @@ module Google
@gecos = args[:gecos] if args.key?(:gecos)
@gid = args[:gid] if args.key?(:gid)
@home_directory = args[:home_directory] if args.key?(:home_directory)
+ @operating_system_type = args[:operating_system_type] if args.key?(:operating_system_type)
@primary = args[:primary] if args.key?(:primary)
@shell = args[:shell] if args.key?(:shell)
@system_id = args[:system_id] if args.key?(:system_id)
diff --git a/generated/google/apis/oslogin_v1/representations.rb b/generated/google/apis/oslogin_v1/representations.rb
index 34bd5733f..babecc981 100644
--- a/generated/google/apis/oslogin_v1/representations.rb
+++ b/generated/google/apis/oslogin_v1/representations.rb
@@ -84,6 +84,7 @@ module Google
property :gecos, as: 'gecos'
property :gid, :numeric_string => true, as: 'gid'
property :home_directory, as: 'homeDirectory'
+ property :operating_system_type, as: 'operatingSystemType'
property :primary, as: 'primary'
property :shell, as: 'shell'
property :system_id, as: 'systemId'
diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb
index 7f6012b0e..46aa56183 100644
--- a/generated/google/apis/runtimeconfig_v1beta1.rb
+++ b/generated/google/apis/runtimeconfig_v1beta1.rb
@@ -18,7 +18,7 @@ require 'google/apis/runtimeconfig_v1beta1/representations.rb'
module Google
module Apis
- # Google Cloud Runtime Configuration API
+ # Cloud Runtime Configuration API
#
# The Runtime Configurator allows you to dynamically configure and expose
# variables through Google Cloud Platform. In addition, you can also set
@@ -28,7 +28,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
module RuntimeconfigV1beta1
VERSION = 'V1beta1'
- REVISION = '20180212'
+ REVISION = '20180416'
# 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 724fbe80d..3f72dd930 100644
--- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb
+++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb
@@ -338,11 +338,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -351,7 +351,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -360,6 +360,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@@ -443,11 +454,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
- # **Example**
+ # **JSON Example**
# `
# "bindings": [
# `
@@ -456,7 +467,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -465,6 +476,17 @@ module Google
# `
# ]
# `
+ # **YAML Example**
+ # bindings:
+ # - members:
+ # - user:mike@example.com
+ # - group:admins@example.com
+ # - domain:google.com
+ # - serviceAccount:my-other-app@appspot.gserviceaccount.com
+ # role: roles/owner
+ # - members:
+ # - user:sean@example.com
+ # role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
diff --git a/generated/google/apis/runtimeconfig_v1beta1/service.rb b/generated/google/apis/runtimeconfig_v1beta1/service.rb
index 0e57697a8..e97ef2533 100644
--- a/generated/google/apis/runtimeconfig_v1beta1/service.rb
+++ b/generated/google/apis/runtimeconfig_v1beta1/service.rb
@@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module RuntimeconfigV1beta1
- # Google Cloud Runtime Configuration API
+ # Cloud Runtime Configuration API
#
# The Runtime Configurator allows you to dynamically configure and expose
# variables through Google Cloud Platform. In addition, you can also set
diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb
index d473812c5..4250305d9 100644
--- a/generated/google/apis/spanner_v1.rb
+++ b/generated/google/apis/spanner_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/
module SpannerV1
VERSION = 'V1'
- REVISION = '20180327'
+ REVISION = '20180410'
# 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/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb
index 37d4fd272..2cd4bcca7 100644
--- a/generated/google/apis/spanner_v1/classes.rb
+++ b/generated/google/apis/spanner_v1/classes.rb
@@ -194,6 +194,7 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
+ # ##
# Corresponds to the JSON property `options`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :options
@@ -469,6 +470,7 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
+ # ##
# Corresponds to the JSON property `singleUseTransaction`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :single_use_transaction
@@ -737,21 +739,21 @@ module Google
# from a JSON value. For example, values of type `BYTES` and values
# of type `STRING` both appear in params as JSON strings.
# In these cases, `param_types` can be used to specify the exact
- # SQL type for some or all of the SQL query parameters. See the
+ # SQL type for some or all of the SQL statement parameters. See the
# definition of Type for more information
# about SQL types.
# Corresponds to the JSON property `paramTypes`
# @return [Hash]
attr_accessor :param_types
- # The SQL query string can contain parameter placeholders. A parameter
+ # The SQL string can contain parameter placeholders. A parameter
# placeholder consists of `'@'` followed by the parameter
# name. Parameter names consist of any combination of letters,
# numbers, and underscores.
# Parameters can appear anywhere that a literal value is expected. The same
# parameter name can be used more than once, for example:
# `"WHERE id > @msg_id AND id < @msg_id + 100"`
- # It is an error to execute an SQL query with unbound parameters.
+ # It is an error to execute an SQL statement with unbound parameters.
# Parameter values are specified using `params`, which is a JSON
# object whose keys are parameter names, and whose values are the
# corresponding parameter values.
@@ -775,10 +777,10 @@ module Google
# @return [String]
attr_accessor :query_mode
- # If this request is resuming a previously interrupted SQL query
+ # If this request is resuming a previously interrupted SQL statement
# execution, `resume_token` should be copied from the last
# PartialResultSet yielded before the interruption. Doing this
- # enables the new SQL query execution to resume where the last one left
+ # enables the new SQL statement execution to resume where the last one left
# off. The rest of the request parameters must exactly match the
# request that yielded this token.
# Corresponds to the JSON property `resumeToken`
@@ -786,7 +788,7 @@ module Google
# @return [String]
attr_accessor :resume_token
- # Required. The SQL query string.
+ # Required. The SQL string.
# Corresponds to the JSON property `sql`
# @return [String]
attr_accessor :sql
@@ -2650,6 +2652,7 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
+ # ##
class TransactionOptions
include Google::Apis::Core::Hashable
@@ -2850,6 +2853,7 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
+ # ##
# Corresponds to the JSON property `begin`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :begin
@@ -3028,6 +3032,7 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
+ # ##
# Corresponds to the JSON property `singleUse`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :single_use
diff --git a/generated/google/apis/spanner_v1/service.rb b/generated/google/apis/spanner_v1/service.rb
index 5a0befc25..c60fcf7be 100644
--- a/generated/google/apis/spanner_v1/service.rb
+++ b/generated/google/apis/spanner_v1/service.rb
@@ -1126,11 +1126,11 @@ module Google
execute_or_queue_command(command, &block)
end
- # Executes an SQL query, returning all rows in a single reply. This
+ # Executes an SQL statement, returning all results in a single reply. This
# method cannot be used to return a result set larger than 10 MiB;
# if the query yields more data than that, the query fails with
# a `FAILED_PRECONDITION` error.
- # Queries inside read-write transactions might return `ABORTED`. If
+ # Operations inside read-write transactions might return `ABORTED`. If
# this occurs, the application should restart the transaction from
# the beginning. See Transaction for more details.
# Larger result sets can be fetched in streaming fashion by calling
diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb
index 56dd863f3..a4b963788 100644
--- a/generated/google/apis/vision_v1.rb
+++ b/generated/google/apis/vision_v1.rb
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1
VERSION = 'V1'
- REVISION = '20180327'
+ REVISION = '20180416'
# 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_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb
index 75af62ba9..6922ccb12 100644
--- a/generated/google/apis/vision_v1/classes.rb
+++ b/generated/google/apis/vision_v1/classes.rb
@@ -959,6 +959,164 @@ module Google
end
end
+ # Response to a single file annotation request. A file may contain one or more
+ # images, which individually have their own responses.
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ include Google::Apis::Core::Hashable
+
+ # The desired input location and metadata.
+ # Corresponds to the JSON property `inputConfig`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
+ 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 GoogleCloudVisionV1p2beta1AnnotateImageResponse
+ 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::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
+ 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::VisionV1::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::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotation]
+ attr_accessor :full_text_annotation
+
+ # Stores image properties, such as dominant colors.
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageProperties]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1WebDetection]
+ 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 GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
include Google::Apis::Core::Hashable
@@ -998,6 +1156,493 @@ module Google
end
end
+ # Logical element on the page.
+ class GoogleCloudVisionV1p2beta1Block
+ 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::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1BoundingPoly
+ 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
+
+ # Color information consists of RGB channels, score, and the fraction of
+ # the image that the color occupies in the image.
+ class GoogleCloudVisionV1p2beta1ColorInfo
+ 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::VisionV1::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 GoogleCloudVisionV1p2beta1CropHint
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingPoly`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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 GoogleCloudVisionV1p2beta1CropHintsAnnotation
+ 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
+
+ # Set of dominant colors and their corresponding scores.
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
+ 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 GoogleCloudVisionV1p2beta1EntityAnnotation
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingPoly`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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 GoogleCloudVisionV1p2beta1FaceAnnotation
+ 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::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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
+
+ # A face-specific landmark (for example, a face feature).
+ class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
+ 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::VisionV1::GoogleCloudVisionV1p2beta1Position]
+ 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
+
# The Google Cloud Storage location where the output will be written to.
class GoogleCloudVisionV1p2beta1GcsDestination
include Google::Apis::Core::Hashable
@@ -1028,6 +1673,148 @@ module Google
end
end
+ # The Google Cloud Storage location where the input will be read from.
+ class GoogleCloudVisionV1p2beta1GcsSource
+ 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
+
+ # If an image was produced from a file (e.g. a PDF), this message gives
+ # information about the source of that image.
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
+ 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 GoogleCloudVisionV1p2beta1ImageProperties
+ include Google::Apis::Core::Hashable
+
+ # Set of dominant colors and their corresponding scores.
+ # Corresponds to the JSON property `dominantColors`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
+ 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 GoogleCloudVisionV1p2beta1InputConfig
+ 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::VisionV1::GoogleCloudVisionV1p2beta1GcsSource]
+ 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
+
+ # Detected entity location information.
+ class GoogleCloudVisionV1p2beta1LocationInfo
+ 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::VisionV1::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 GoogleCloudVisionV1p2beta1NormalizedVertex
+ include Google::Apis::Core::Hashable
+
+ # X coordinate.
+ # Corresponds to the JSON property `x`
+ # @return [Float]
+ attr_accessor :x
+
+ # Y coordinate.
+ # Corresponds to the JSON property `y`
+ # @return [Float]
+ attr_accessor :y
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @x = args[:x] if args.key?(:x)
+ @y = args[:y] if args.key?(:y)
+ end
+ end
+
# Contains metadata for the BatchAnnotateImages operation.
class GoogleCloudVisionV1p2beta1OperationMetadata
include Google::Apis::Core::Hashable
@@ -1063,7 +1850,8 @@ module Google
class GoogleCloudVisionV1p2beta1OutputConfig
include Google::Apis::Core::Hashable
- # The max number of response protos to put into each output JSON file on GCS.
+ # 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
@@ -1091,6 +1879,597 @@ module Google
end
end
+ # Detected page from OCR.
+ class GoogleCloudVisionV1p2beta1Page
+ 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::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1Paragraph
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingBox`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1Position
+ 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 GoogleCloudVisionV1p2beta1Property
+ 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 GoogleCloudVisionV1p2beta1SafeSearchAnnotation
+ 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
+
+ # A single symbol representation.
+ class GoogleCloudVisionV1p2beta1Symbol
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingBox`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1TextAnnotation
+ 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
+
+ # Detected start or end of a structural component.
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
+ 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 GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
+ 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
+
+ # Additional information detected on the structural component.
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
+ include Google::Apis::Core::Hashable
+
+ # Detected start or end of a structural component.
+ # Corresponds to the JSON property `detectedBreak`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
+ 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 GoogleCloudVisionV1p2beta1Vertex
+ 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 GoogleCloudVisionV1p2beta1WebDetection
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebEntity
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebImage
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebLabel
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebPage
+ 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 GoogleCloudVisionV1p2beta1Word
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingBox`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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
+
# Client image to perform Google Cloud Vision API tasks over.
class Image
include Google::Apis::Core::Hashable
diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb
index 390f1a4f2..22cb88c5a 100644
--- a/generated/google/apis/vision_v1/representations.rb
+++ b/generated/google/apis/vision_v1/representations.rb
@@ -136,6 +136,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1AnnotateImageResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -148,12 +160,102 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1Block
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1BoundingPoly
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1ColorInfo
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1CropHint
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1CropHintsAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1EntityAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1FaceAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1GcsDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1GcsSource
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageProperties
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1InputConfig
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1LocationInfo
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -166,6 +268,108 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1Page
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Paragraph
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Position
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Property
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Symbol
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Vertex
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetection
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebImage
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebPage
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Word
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -538,6 +742,46 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig::Representation
+
+ collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1AnnotateImageResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :context, as: 'context', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext::Representation
+
+ property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation::Representation
+
+ property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
+
+ collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotation::Representation
+
+ property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotation::Representation
+
+ property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageProperties, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageProperties::Representation
+
+ collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation::Representation
+
+ collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetection, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetection::Representation
+
+ end
+ end
+
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -554,6 +798,117 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1Block
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :block_type, as: 'blockType'
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Paragraph, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Paragraph::Representation
+
+ property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1BoundingPoly
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1NormalizedVertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1NormalizedVertex::Representation
+
+ collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Vertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Vertex::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1ColorInfo
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :color, as: 'color', class: Google::Apis::VisionV1::Color, decorator: Google::Apis::VisionV1::Color::Representation
+
+ property :pixel_fraction, as: 'pixelFraction'
+ property :score, as: 'score'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1CropHint
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :importance_fraction, as: 'importanceFraction'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1CropHintsAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHint, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHint::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :colors, as: 'colors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ColorInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ColorInfo::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1EntityAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :description, as: 'description'
+ property :locale, as: 'locale'
+ collection :locations, as: 'locations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocationInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocationInfo::Representation
+
+ property :mid, as: 'mid'
+ collection :properties, as: 'properties', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Property, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Property::Representation
+
+ property :score, as: 'score'
+ property :topicality, as: 'topicality'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1FaceAnnotation
+ # @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::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :detection_confidence, as: 'detectionConfidence'
+ property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :headwear_likelihood, as: 'headwearLikelihood'
+ property :joy_likelihood, as: 'joyLikelihood'
+ property :landmarking_confidence, as: 'landmarkingConfidence'
+ collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark::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 GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :position, as: 'position', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Position, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Position::Representation
+
+ property :type, as: 'type'
+ end
+ end
+
class GoogleCloudVisionV1p2beta1GcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -561,6 +916,54 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1GcsSource
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :uri, as: 'uri'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :page_number, as: 'pageNumber'
+ property :uri, as: 'uri'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageProperties
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1InputConfig
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource::Representation
+
+ property :mime_type, as: 'mimeType'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1LocationInfo
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :x, as: 'x'
+ property :y, as: 'y'
+ end
+ end
+
class GoogleCloudVisionV1p2beta1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -579,6 +982,185 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1Page
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Block::Representation
+
+ property :confidence, as: 'confidence'
+ property :height, as: 'height'
+ property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ property :width, as: 'width'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Paragraph
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ collection :words, as: 'words', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Word, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Word::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Position
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :x, as: 'x'
+ property :y, as: 'y'
+ property :z, as: 'z'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Property
+ # @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 GoogleCloudVisionV1p2beta1SafeSearchAnnotation
+ # @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 GoogleCloudVisionV1p2beta1Symbol
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ property :text, as: 'text'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :pages, as: 'pages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Page, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Page::Representation
+
+ property :text, as: 'text'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :is_prefix, as: 'isPrefix'
+ property :type, as: 'type'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :confidence, as: 'confidence'
+ property :language_code, as: 'languageCode'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak::Representation
+
+ collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Vertex
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :x, as: 'x'
+ property :y, as: 'y'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetection
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel::Representation
+
+ collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebPage::Representation
+
+ collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :description, as: 'description'
+ property :entity_id, as: 'entityId'
+ property :score, as: 'score'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebImage
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :score, as: 'score'
+ property :url, as: 'url'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :label, as: 'label'
+ property :language_code, as: 'languageCode'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebPage
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ property :page_title, as: 'pageTitle'
+ collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ property :score, as: 'score'
+ property :url, as: 'url'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Word
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Symbol, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Symbol::Representation
+
+ end
+ end
+
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb
index b371dbc9c..09edc51f6 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 = '20180327'
+ REVISION = '20180416'
# 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 2335d160c..29ea583f2 100644
--- a/generated/google/apis/vision_v1p1beta1/classes.rb
+++ b/generated/google/apis/vision_v1p1beta1/classes.rb
@@ -1701,6 +1701,164 @@ module Google
end
end
+ # Response to a single file annotation request. A file may contain one or more
+ # images, which individually have their own responses.
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ include Google::Apis::Core::Hashable
+
+ # The desired input location and metadata.
+ # Corresponds to the JSON property `inputConfig`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig]
+ 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 GoogleCloudVisionV1p2beta1AnnotateImageResponse
+ 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::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
+ 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::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
+ 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::GoogleCloudVisionV1p2beta1TextAnnotation]
+ attr_accessor :full_text_annotation
+
+ # Stores image properties, such as dominant colors.
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageProperties]
+ 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::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
+ 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::GoogleCloudVisionV1p2beta1WebDetection]
+ 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 GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
include Google::Apis::Core::Hashable
@@ -1740,6 +1898,493 @@ module Google
end
end
+ # Logical element on the page.
+ class GoogleCloudVisionV1p2beta1Block
+ 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::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1BoundingPoly
+ 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
+
+ # Color information consists of RGB channels, score, and the fraction of
+ # the image that the color occupies in the image.
+ class GoogleCloudVisionV1p2beta1ColorInfo
+ 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 GoogleCloudVisionV1p2beta1CropHint
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingPoly`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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 GoogleCloudVisionV1p2beta1CropHintsAnnotation
+ 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
+
+ # Set of dominant colors and their corresponding scores.
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
+ 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 GoogleCloudVisionV1p2beta1EntityAnnotation
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingPoly`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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 GoogleCloudVisionV1p2beta1FaceAnnotation
+ 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::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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
+
+ # A face-specific landmark (for example, a face feature).
+ class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
+ 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::GoogleCloudVisionV1p2beta1Position]
+ 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
+
# The Google Cloud Storage location where the output will be written to.
class GoogleCloudVisionV1p2beta1GcsDestination
include Google::Apis::Core::Hashable
@@ -1770,6 +2415,148 @@ module Google
end
end
+ # The Google Cloud Storage location where the input will be read from.
+ class GoogleCloudVisionV1p2beta1GcsSource
+ 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
+
+ # If an image was produced from a file (e.g. a PDF), this message gives
+ # information about the source of that image.
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
+ 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 GoogleCloudVisionV1p2beta1ImageProperties
+ include Google::Apis::Core::Hashable
+
+ # Set of dominant colors and their corresponding scores.
+ # Corresponds to the JSON property `dominantColors`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
+ 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 GoogleCloudVisionV1p2beta1InputConfig
+ 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::GoogleCloudVisionV1p2beta1GcsSource]
+ 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
+
+ # Detected entity location information.
+ class GoogleCloudVisionV1p2beta1LocationInfo
+ 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 GoogleCloudVisionV1p2beta1NormalizedVertex
+ include Google::Apis::Core::Hashable
+
+ # X coordinate.
+ # Corresponds to the JSON property `x`
+ # @return [Float]
+ attr_accessor :x
+
+ # Y coordinate.
+ # Corresponds to the JSON property `y`
+ # @return [Float]
+ attr_accessor :y
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @x = args[:x] if args.key?(:x)
+ @y = args[:y] if args.key?(:y)
+ end
+ end
+
# Contains metadata for the BatchAnnotateImages operation.
class GoogleCloudVisionV1p2beta1OperationMetadata
include Google::Apis::Core::Hashable
@@ -1805,7 +2592,8 @@ module Google
class GoogleCloudVisionV1p2beta1OutputConfig
include Google::Apis::Core::Hashable
- # The max number of response protos to put into each output JSON file on GCS.
+ # 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
@@ -1833,6 +2621,597 @@ module Google
end
end
+ # Detected page from OCR.
+ class GoogleCloudVisionV1p2beta1Page
+ 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::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1Paragraph
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingBox`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1Position
+ 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 GoogleCloudVisionV1p2beta1Property
+ 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 GoogleCloudVisionV1p2beta1SafeSearchAnnotation
+ 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
+
+ # A single symbol representation.
+ class GoogleCloudVisionV1p2beta1Symbol
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingBox`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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 GoogleCloudVisionV1p2beta1TextAnnotation
+ 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
+
+ # Detected start or end of a structural component.
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
+ 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 GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
+ 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
+
+ # Additional information detected on the structural component.
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
+ include Google::Apis::Core::Hashable
+
+ # Detected start or end of a structural component.
+ # Corresponds to the JSON property `detectedBreak`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
+ 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 GoogleCloudVisionV1p2beta1Vertex
+ 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 GoogleCloudVisionV1p2beta1WebDetection
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebEntity
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebImage
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebLabel
+ 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 GoogleCloudVisionV1p2beta1WebDetectionWebPage
+ 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 GoogleCloudVisionV1p2beta1Word
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingBox`
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ 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::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
+ 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
+
# 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
diff --git a/generated/google/apis/vision_v1p1beta1/representations.rb b/generated/google/apis/vision_v1p1beta1/representations.rb
index aef4f73c6..f3003d757 100644
--- a/generated/google/apis/vision_v1p1beta1/representations.rb
+++ b/generated/google/apis/vision_v1p1beta1/representations.rb
@@ -262,6 +262,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1AnnotateImageResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -274,12 +286,102 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1Block
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1BoundingPoly
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1ColorInfo
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1CropHint
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1CropHintsAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1EntityAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1FaceAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1GcsDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1GcsSource
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageProperties
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1InputConfig
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1LocationInfo
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -292,6 +394,108 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1Page
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Paragraph
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Position
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Property
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Symbol
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Vertex
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetection
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebImage
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebPage
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GoogleCloudVisionV1p2beta1Word
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class LatLng
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -737,6 +941,46 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig::Representation
+
+ collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1AnnotateImageResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :context, as: 'context', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageAnnotationContext::Representation
+
+ property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHintsAnnotation::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::GoogleCloudVisionV1p2beta1FaceAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1FaceAnnotation::Representation
+
+ property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotation::Representation
+
+ property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageProperties, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageProperties::Representation
+
+ collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation::Representation
+
+ collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
+
+ property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetection, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetection::Representation
+
+ end
+ end
+
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -753,6 +997,117 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1Block
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :block_type, as: 'blockType'
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Paragraph, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Paragraph::Representation
+
+ property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1BoundingPoly
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1NormalizedVertex::Representation
+
+ collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Vertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Vertex::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1ColorInfo
+ # @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 GoogleCloudVisionV1p2beta1CropHint
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :importance_fraction, as: 'importanceFraction'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1CropHintsAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHint, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHint::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :colors, as: 'colors', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ColorInfo, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ColorInfo::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1EntityAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :description, as: 'description'
+ property :locale, as: 'locale'
+ collection :locations, as: 'locations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1LocationInfo, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1LocationInfo::Representation
+
+ property :mid, as: 'mid'
+ collection :properties, as: 'properties', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Property, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Property::Representation
+
+ property :score, as: 'score'
+ property :topicality, as: 'topicality'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1FaceAnnotation
+ # @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::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :detection_confidence, as: 'detectionConfidence'
+ property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :headwear_likelihood, as: 'headwearLikelihood'
+ property :joy_likelihood, as: 'joyLikelihood'
+ property :landmarking_confidence, as: 'landmarkingConfidence'
+ collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark::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 GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :position, as: 'position', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Position, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Position::Representation
+
+ property :type, as: 'type'
+ end
+ end
+
class GoogleCloudVisionV1p2beta1GcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -760,6 +1115,54 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1GcsSource
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :uri, as: 'uri'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :page_number, as: 'pageNumber'
+ property :uri, as: 'uri'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1ImageProperties
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1InputConfig
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsSource, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsSource::Representation
+
+ property :mime_type, as: 'mimeType'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1LocationInfo
+ # @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 GoogleCloudVisionV1p2beta1NormalizedVertex
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :x, as: 'x'
+ property :y, as: 'y'
+ end
+ end
+
class GoogleCloudVisionV1p2beta1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -778,6 +1181,185 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1Page
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Block, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Block::Representation
+
+ property :confidence, as: 'confidence'
+ property :height, as: 'height'
+ property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ property :width, as: 'width'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Paragraph
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ collection :words, as: 'words', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Word, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Word::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Position
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :x, as: 'x'
+ property :y, as: 'y'
+ property :z, as: 'z'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Property
+ # @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 GoogleCloudVisionV1p2beta1SafeSearchAnnotation
+ # @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 GoogleCloudVisionV1p2beta1Symbol
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ property :text, as: 'text'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :pages, as: 'pages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Page, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Page::Representation
+
+ property :text, as: 'text'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :is_prefix, as: 'isPrefix'
+ property :type, as: 'type'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :confidence, as: 'confidence'
+ property :language_code, as: 'languageCode'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak::Representation
+
+ collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Vertex
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :x, as: 'x'
+ property :y, as: 'y'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetection
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel::Representation
+
+ collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebPage::Representation
+
+ collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity::Representation
+
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :description, as: 'description'
+ property :entity_id, as: 'entityId'
+ property :score, as: 'score'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebImage
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :score, as: 'score'
+ property :url, as: 'url'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :label, as: 'label'
+ property :language_code, as: 'languageCode'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1WebDetectionWebPage
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ property :page_title, as: 'pageTitle'
+ collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation
+
+ property :score, as: 'score'
+ property :url, as: 'url'
+ end
+ end
+
+ class GoogleCloudVisionV1p2beta1Word
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
+
+ property :confidence, as: 'confidence'
+ property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation
+
+ collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Symbol, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Symbol::Representation
+
+ end
+ end
+
class LatLng
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb
index c54562aa5..3ba946393 100644
--- a/generated/google/apis/vision_v1p2beta1.rb
+++ b/generated/google/apis/vision_v1p2beta1.rb
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p2beta1
VERSION = 'V1p2beta1'
- REVISION = '20180327'
+ REVISION = '20180416'
# 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_v1p2beta1/classes.rb b/generated/google/apis/vision_v1p2beta1/classes.rb
index 9379716f0..45b4781fa 100644
--- a/generated/google/apis/vision_v1p2beta1/classes.rb
+++ b/generated/google/apis/vision_v1p2beta1/classes.rb
@@ -165,6 +165,32 @@ module Google
end
end
+ # Response to a single file annotation request. A file may contain one or more
+ # images, which individually have their own responses.
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ include Google::Apis::Core::Hashable
+
+ # The desired input location and metadata.
+ # Corresponds to the JSON property `inputConfig`
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig]
+ 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
+
# Request for performing Google Cloud Vision API tasks over a user-provided
# image, with user-requested features.
class GoogleCloudVisionV1p2beta1AnnotateImageRequest
@@ -510,6 +536,11 @@ module Google
class GoogleCloudVisionV1p2beta1BoundingPoly
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]
@@ -521,6 +552,7 @@ module Google
# 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
@@ -1038,8 +1070,8 @@ module Google
class GoogleCloudVisionV1p2beta1GcsSource
include Google::Apis::Core::Hashable
- # Google Cloud Storage URI for the input file. This must only be a GCS
- # object. Wildcards are not currently supported.
+ # 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
@@ -1296,6 +1328,33 @@ module Google
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 GoogleCloudVisionV1p2beta1NormalizedVertex
+ include Google::Apis::Core::Hashable
+
+ # X coordinate.
+ # Corresponds to the JSON property `x`
+ # @return [Float]
+ attr_accessor :x
+
+ # Y coordinate.
+ # Corresponds to the JSON property `y`
+ # @return [Float]
+ attr_accessor :y
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @x = args[:x] if args.key?(:x)
+ @y = args[:y] if args.key?(:y)
+ end
+ end
+
# Contains metadata for the BatchAnnotateImages operation.
class GoogleCloudVisionV1p2beta1OperationMetadata
include Google::Apis::Core::Hashable
@@ -1331,7 +1390,8 @@ module Google
class GoogleCloudVisionV1p2beta1OutputConfig
include Google::Apis::Core::Hashable
- # The max number of response protos to put into each output JSON file on GCS.
+ # 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
diff --git a/generated/google/apis/vision_v1p2beta1/representations.rb b/generated/google/apis/vision_v1p2beta1/representations.rb
index ea28b021d..a1ff94a10 100644
--- a/generated/google/apis/vision_v1p2beta1/representations.rb
+++ b/generated/google/apis/vision_v1p2beta1/representations.rb
@@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1AnnotateImageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -202,6 +208,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class GoogleCloudVisionV1p2beta1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -350,6 +362,16 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig::Representation
+
+ collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation
+
+ end
+ end
+
class GoogleCloudVisionV1p2beta1AnnotateImageRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -463,6 +485,8 @@ module Google
class GoogleCloudVisionV1p2beta1BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+ collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1NormalizedVertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1NormalizedVertex::Representation
+
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Vertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Vertex::Representation
end
@@ -658,6 +682,14 @@ module Google
end
end
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :x, as: 'x'
+ property :y, as: 'y'
+ end
+ end
+
class GoogleCloudVisionV1p2beta1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation