diff --git a/api_names_out.yaml b/api_names_out.yaml index c8d0b0e10..99e45fa81 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -68681,7 +68681,14 @@ "/toolresults:v1beta3firstparty/toolresults.projects.initializeSettings": initialize_project_settings "/toolresults:v1beta3firstparty/toolresults.projects.initializeSettings/projectId": project_id "/toolresults:v1beta3firstparty/userIp": user_ip +"/tpu:v1alpha1/AcceleratorType": accelerator_type +"/tpu:v1alpha1/AcceleratorType/name": name +"/tpu:v1alpha1/AcceleratorType/type": type "/tpu:v1alpha1/Empty": empty +"/tpu:v1alpha1/ListAcceleratorTypesResponse": list_accelerator_types_response +"/tpu:v1alpha1/ListAcceleratorTypesResponse/acceleratorTypes": accelerator_types +"/tpu:v1alpha1/ListAcceleratorTypesResponse/acceleratorTypes/accelerator_type": accelerator_type +"/tpu:v1alpha1/ListAcceleratorTypesResponse/nextPageToken": next_page_token "/tpu:v1alpha1/ListLocationsResponse": list_locations_response "/tpu:v1alpha1/ListLocationsResponse/locations": locations "/tpu:v1alpha1/ListLocationsResponse/locations/location": location @@ -68759,6 +68766,14 @@ "/tpu:v1alpha1/fields": fields "/tpu:v1alpha1/key": key "/tpu:v1alpha1/quotaUser": quota_user +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.get": get_project_location_accelerator_type +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.get/name": name +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.list": list_project_location_accelerator_types +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.list/filter": filter +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.list/orderBy": order_by +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.list/pageSize": page_size +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.list/pageToken": page_token +"/tpu:v1alpha1/tpu.projects.locations.acceleratorTypes.list/parent": parent "/tpu:v1alpha1/tpu.projects.locations.get": get_project_location "/tpu:v1alpha1/tpu.projects.locations.get/name": name "/tpu:v1alpha1/tpu.projects.locations.list": list_project_locations @@ -69247,6 +69262,7 @@ "/vision:v1/BoundingPoly": bounding_poly "/vision:v1/BoundingPoly/vertices": vertices "/vision:v1/BoundingPoly/vertices/vertex": vertex +"/vision:v1/CancelOperationRequest": cancel_operation_request "/vision:v1/Color": color "/vision:v1/Color/alpha": alpha "/vision:v1/Color/blue": blue @@ -69275,6 +69291,7 @@ "/vision:v1/DominantColorsAnnotation": dominant_colors_annotation "/vision:v1/DominantColorsAnnotation/colors": colors "/vision:v1/DominantColorsAnnotation/colors/color": color +"/vision:v1/Empty": empty "/vision:v1/EntityAnnotation": entity_annotation "/vision:v1/EntityAnnotation/boundingPoly": bounding_poly "/vision:v1/EntityAnnotation/confidence": confidence @@ -69486,6 +69503,20 @@ "/vision:v1/GoogleCloudVisionV1Word/property": property "/vision:v1/GoogleCloudVisionV1Word/symbols": symbols "/vision:v1/GoogleCloudVisionV1Word/symbols/symbol": symbol +"/vision:v1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p2beta1_async_annotate_file_response +"/vision:v1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/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/GoogleCloudVisionV1p2beta1GcsDestination": google_cloud_vision_v1p2beta1_gcs_destination +"/vision:v1/GoogleCloudVisionV1p2beta1GcsDestination/uri": uri +"/vision:v1/GoogleCloudVisionV1p2beta1OperationMetadata": google_cloud_vision_v1p2beta1_operation_metadata +"/vision:v1/GoogleCloudVisionV1p2beta1OperationMetadata/createTime": create_time +"/vision:v1/GoogleCloudVisionV1p2beta1OperationMetadata/state": state +"/vision:v1/GoogleCloudVisionV1p2beta1OperationMetadata/updateTime": update_time +"/vision:v1/GoogleCloudVisionV1p2beta1OutputConfig": google_cloud_vision_v1p2beta1_output_config +"/vision:v1/GoogleCloudVisionV1p2beta1OutputConfig/batchSize": batch_size +"/vision:v1/GoogleCloudVisionV1p2beta1OutputConfig/gcsDestination": gcs_destination "/vision:v1/GoogleRpcStatus": google_rpc_status "/vision:v1/GoogleRpcStatus/code": code "/vision:v1/GoogleRpcStatus/details": details @@ -69523,8 +69554,20 @@ "/vision:v1/LatLongRect": lat_long_rect "/vision:v1/LatLongRect/maxLatLng": max_lat_lng "/vision:v1/LatLongRect/minLatLng": min_lat_lng +"/vision:v1/ListOperationsResponse": list_operations_response +"/vision:v1/ListOperationsResponse/nextPageToken": next_page_token +"/vision:v1/ListOperationsResponse/operations": operations +"/vision:v1/ListOperationsResponse/operations/operation": operation "/vision:v1/LocationInfo": location_info "/vision:v1/LocationInfo/latLng": lat_lng +"/vision:v1/Operation": operation +"/vision:v1/Operation/done": done +"/vision:v1/Operation/error": error +"/vision:v1/Operation/metadata": metadata +"/vision:v1/Operation/metadata/metadatum": metadatum +"/vision:v1/Operation/name": name +"/vision:v1/Operation/response": response +"/vision:v1/Operation/response/response": response "/vision:v1/Page": page "/vision:v1/Page/blocks": blocks "/vision:v1/Page/blocks/block": block @@ -69617,6 +69660,17 @@ "/vision:v1/key": key "/vision:v1/quotaUser": quota_user "/vision:v1/vision.images.annotate": annotate_image +"/vision:v1/vision.operations.cancel": cancel_operation +"/vision:v1/vision.operations.cancel/name": name +"/vision:v1/vision.operations.delete": delete_operation +"/vision:v1/vision.operations.delete/name": name +"/vision:v1/vision.operations.get": get_operation +"/vision:v1/vision.operations.get/name": name +"/vision:v1/vision.operations.list": list_operations +"/vision:v1/vision.operations.list/filter": filter +"/vision:v1/vision.operations.list/name": name +"/vision:v1/vision.operations.list/pageSize": page_size +"/vision:v1/vision.operations.list/pageToken": page_token "/vision:v1p1beta1/Color": color "/vision:v1p1beta1/Color/alpha": alpha "/vision:v1p1beta1/Color/blue": blue @@ -69820,6 +69874,20 @@ "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Word/property": property "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Word/symbols": symbols "/vision:v1p1beta1/GoogleCloudVisionV1p1beta1Word/symbols/symbol": symbol +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p2beta1_async_annotate_file_response +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/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/GoogleCloudVisionV1p2beta1GcsDestination": google_cloud_vision_v1p2beta1_gcs_destination +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1GcsDestination/uri": uri +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OperationMetadata": google_cloud_vision_v1p2beta1_operation_metadata +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OperationMetadata/createTime": create_time +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OperationMetadata/state": state +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OperationMetadata/updateTime": update_time +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OutputConfig": google_cloud_vision_v1p2beta1_output_config +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OutputConfig/batchSize": batch_size +"/vision:v1p1beta1/GoogleCloudVisionV1p2beta1OutputConfig/gcsDestination": gcs_destination "/vision:v1p1beta1/GoogleRpcStatus": google_rpc_status "/vision:v1p1beta1/GoogleRpcStatus/code": code "/vision:v1p1beta1/GoogleRpcStatus/details": details @@ -69847,6 +69915,263 @@ "/vision:v1p1beta1/key": key "/vision:v1p1beta1/quotaUser": quota_user "/vision:v1p1beta1/vision.images.annotate": annotate_image +"/vision:v1p2beta1/Color": color +"/vision:v1p2beta1/Color/alpha": alpha +"/vision:v1p2beta1/Color/blue": blue +"/vision:v1p2beta1/Color/green": green +"/vision:v1p2beta1/Color/red": red +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest": google_cloud_vision_v1p2beta1_annotate_image_request +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest/features": features +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest/features/feature": feature +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest/image": image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageRequest/imageContext": image_context +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse": google_cloud_vision_v1p2beta1_annotate_image_response +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/context": context +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/cropHintsAnnotation": crop_hints_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/error": error +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/faceAnnotations": face_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/faceAnnotations/face_annotation": face_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/fullTextAnnotation": full_text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/imagePropertiesAnnotation": image_properties_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/labelAnnotations": label_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/labelAnnotations/label_annotation": label_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/landmarkAnnotations": landmark_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/landmarkAnnotations/landmark_annotation": landmark_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/logoAnnotations": logo_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/logoAnnotations/logo_annotation": logo_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/safeSearchAnnotation": safe_search_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/textAnnotations": text_annotations +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/textAnnotations/text_annotation": text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AnnotateImageResponse/webDetection": web_detection +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest": google_cloud_vision_v1p2beta1_async_annotate_file_request +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest/features": features +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest/features/feature": feature +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest/imageContext": image_context +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest/inputConfig": input_config +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest/outputConfig": output_config +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse": google_cloud_vision_v1p2beta1_async_annotate_file_response +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse/outputConfig": output_config +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest": google_cloud_vision_v1p2beta1_async_batch_annotate_files_request +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest/requests": requests +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest/requests/request": request +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse": google_cloud_vision_v1p2beta1_async_batch_annotate_files_response +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse/responses": responses +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse/responses/response": response +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest": google_cloud_vision_v1p2beta1_batch_annotate_images_request +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest/requests": requests +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest/requests/request": request +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse": google_cloud_vision_v1p2beta1_batch_annotate_images_response +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse/responses": responses +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse/responses/response": response +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block": google_cloud_vision_v1p2beta1_block +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/blockType": block_type +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/paragraphs": paragraphs +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/paragraphs/paragraph": paragraph +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Block/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly": google_cloud_vision_v1p2beta1_bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices": vertices +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1BoundingPoly/vertices/vertex": vertex +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ColorInfo": google_cloud_vision_v1p2beta1_color_info +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ColorInfo/color": color +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ColorInfo/pixelFraction": pixel_fraction +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ColorInfo/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHint": google_cloud_vision_v1p2beta1_crop_hint +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHint/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHint/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHint/importanceFraction": importance_fraction +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHintsAnnotation": google_cloud_vision_v1p2beta1_crop_hints_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHintsAnnotation/cropHints": crop_hints +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHintsAnnotation/cropHints/crop_hint": crop_hint +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHintsParams": google_cloud_vision_v1p2beta1_crop_hints_params +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHintsParams/aspectRatios": aspect_ratios +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1CropHintsParams/aspectRatios/aspect_ratio": aspect_ratio +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation": google_cloud_vision_v1p2beta1_dominant_colors_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation/colors": colors +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1DominantColorsAnnotation/colors/color": color +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation": google_cloud_vision_v1p2beta1_entity_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/description": description +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/locale": locale +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/locations": locations +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/locations/location": location +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/mid": mid +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/properties": properties +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/properties/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1EntityAnnotation/topicality": topicality +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation": google_cloud_vision_v1p2beta1_face_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/angerLikelihood": anger_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/blurredLikelihood": blurred_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/boundingPoly": bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/detectionConfidence": detection_confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/fdBoundingPoly": fd_bounding_poly +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/headwearLikelihood": headwear_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/joyLikelihood": joy_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarkingConfidence": landmarking_confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarks": landmarks +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/landmarks/landmark": landmark +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/panAngle": pan_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/rollAngle": roll_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/sorrowLikelihood": sorrow_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/surpriseLikelihood": surprise_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/tiltAngle": tilt_angle +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotation/underExposedLikelihood": under_exposed_likelihood +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark": google_cloud_vision_v1p2beta1_face_annotation_landmark +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark/position": position +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1FaceAnnotationLandmark/type": type +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Feature": google_cloud_vision_v1p2beta1_feature +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Feature/maxResults": max_results +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Feature/model": model +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Feature/type": type +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1GcsDestination": google_cloud_vision_v1p2beta1_gcs_destination +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1GcsDestination/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1GcsSource": google_cloud_vision_v1p2beta1_gcs_source +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1GcsSource/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Image": google_cloud_vision_v1p2beta1_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Image/content": content +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Image/source": source +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageAnnotationContext": google_cloud_vision_v1p2beta1_image_annotation_context +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageAnnotationContext/pageNumber": page_number +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageAnnotationContext/uri": uri +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageContext": google_cloud_vision_v1p2beta1_image_context +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageContext/cropHintsParams": crop_hints_params +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageContext/languageHints": language_hints +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageContext/languageHints/language_hint": language_hint +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageContext/latLongRect": lat_long_rect +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageContext/webDetectionParams": web_detection_params +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageProperties": google_cloud_vision_v1p2beta1_image_properties +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageProperties/dominantColors": dominant_colors +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageSource": google_cloud_vision_v1p2beta1_image_source +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageSource/gcsImageUri": gcs_image_uri +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1ImageSource/imageUri": image_uri +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1InputConfig": google_cloud_vision_v1p2beta1_input_config +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1InputConfig/gcsSource": gcs_source +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1InputConfig/mimeType": mime_type +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LatLongRect": google_cloud_vision_v1p2beta1_lat_long_rect +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LatLongRect/maxLatLng": max_lat_lng +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LatLongRect/minLatLng": min_lat_lng +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LocationInfo": google_cloud_vision_v1p2beta1_location_info +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1LocationInfo/latLng": lat_lng +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OperationMetadata": google_cloud_vision_v1p2beta1_operation_metadata +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OperationMetadata/createTime": create_time +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OperationMetadata/state": state +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OperationMetadata/updateTime": update_time +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OutputConfig": google_cloud_vision_v1p2beta1_output_config +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OutputConfig/batchSize": batch_size +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1OutputConfig/gcsDestination": gcs_destination +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Page": google_cloud_vision_v1p2beta1_page +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Page/blocks": blocks +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Page/blocks/block": block +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Page/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Page/height": height +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Page/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Page/width": width +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Paragraph": google_cloud_vision_v1p2beta1_paragraph +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Paragraph/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Paragraph/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Paragraph/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Paragraph/words": words +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Paragraph/words/word": word +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Position": google_cloud_vision_v1p2beta1_position +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Position/x": x +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Position/y": y +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Position/z": z +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Property": google_cloud_vision_v1p2beta1_property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Property/name": name +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Property/uint64Value": uint64_value +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Property/value": value +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation": google_cloud_vision_v1p2beta1_safe_search_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/adult": adult +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/medical": medical +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/racy": racy +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/spoof": spoof +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1SafeSearchAnnotation/violence": violence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Symbol": google_cloud_vision_v1p2beta1_symbol +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Symbol/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Symbol/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Symbol/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Symbol/text": text +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotation": google_cloud_vision_v1p2beta1_text_annotation +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotation/pages": pages +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotation/pages/page": page +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotation/text": text +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak": google_cloud_vision_v1p2beta1_text_annotation_detected_break +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak/isPrefix": is_prefix +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak/type": type +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage": google_cloud_vision_v1p2beta1_text_annotation_detected_language +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage/languageCode": language_code +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty": google_cloud_vision_v1p2beta1_text_annotation_text_property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedBreak": detected_break +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedLanguages": detected_languages +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1TextAnnotationTextProperty/detectedLanguages/detected_language": detected_language +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Vertex": google_cloud_vision_v1p2beta1_vertex +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Vertex/x": x +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Vertex/y": y +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection": google_cloud_vision_v1p2beta1_web_detection +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/bestGuessLabels": best_guess_labels +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/bestGuessLabels/best_guess_label": best_guess_label +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/fullMatchingImages": full_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/pagesWithMatchingImages": pages_with_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/pagesWithMatchingImages/pages_with_matching_image": pages_with_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/partialMatchingImages": partial_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/visuallySimilarImages": visually_similar_images +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/visuallySimilarImages/visually_similar_image": visually_similar_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/webEntities": web_entities +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetection/webEntities/web_entity": web_entity +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionParams": google_cloud_vision_v1p2beta1_web_detection_params +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionParams/includeGeoResults": include_geo_results +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity": google_cloud_vision_v1p2beta1_web_detection_web_entity +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/description": description +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/entityId": entity_id +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebEntity/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebImage": google_cloud_vision_v1p2beta1_web_detection_web_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebImage/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebImage/url": url +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel": google_cloud_vision_v1p2beta1_web_detection_web_label +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel/label": label +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebLabel/languageCode": language_code +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage": google_cloud_vision_v1p2beta1_web_detection_web_page +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/fullMatchingImages": full_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/fullMatchingImages/full_matching_image": full_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/pageTitle": page_title +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/partialMatchingImages": partial_matching_images +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/partialMatchingImages/partial_matching_image": partial_matching_image +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/score": score +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1WebDetectionWebPage/url": url +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word": google_cloud_vision_v1p2beta1_word +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/boundingBox": bounding_box +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/confidence": confidence +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/property": property +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/symbols": symbols +"/vision:v1p2beta1/GoogleCloudVisionV1p2beta1Word/symbols/symbol": symbol +"/vision:v1p2beta1/LatLng": lat_lng +"/vision:v1p2beta1/LatLng/latitude": latitude +"/vision:v1p2beta1/LatLng/longitude": longitude +"/vision:v1p2beta1/Operation": operation +"/vision:v1p2beta1/Operation/done": done +"/vision:v1p2beta1/Operation/error": error +"/vision:v1p2beta1/Operation/metadata": metadata +"/vision:v1p2beta1/Operation/metadata/metadatum": metadatum +"/vision:v1p2beta1/Operation/name": name +"/vision:v1p2beta1/Operation/response": response +"/vision:v1p2beta1/Operation/response/response": response +"/vision:v1p2beta1/Status": status +"/vision:v1p2beta1/Status/code": code +"/vision:v1p2beta1/Status/details": details +"/vision:v1p2beta1/Status/details/detail": detail +"/vision:v1p2beta1/Status/details/detail/detail": detail +"/vision:v1p2beta1/Status/message": message +"/vision:v1p2beta1/fields": fields +"/vision:v1p2beta1/key": key +"/vision:v1p2beta1/quotaUser": quota_user +"/vision:v1p2beta1/vision.files.asyncBatchAnnotate": async_file_batch_annotate +"/vision:v1p2beta1/vision.images.annotate": annotate_image "/webfonts:v1/Webfont": webfont "/webfonts:v1/Webfont/category": category "/webfonts:v1/Webfont/family": family diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index 54ad8bd48..100579053 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/iot module CloudiotV1 VERSION = 'V1' - REVISION = '20180208' + REVISION = '20180215' # 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/cloudiot_v1/classes.rb b/generated/google/apis/cloudiot_v1/classes.rb index 411bde2cb..eae08ab31 100644 --- a/generated/google/apis/cloudiot_v1/classes.rb +++ b/generated/google/apis/cloudiot_v1/classes.rb @@ -301,8 +301,8 @@ module Google # The metadata key-value pairs assigned to the device. This metadata is not # interpreted or indexed by Cloud IoT Core. It can be used to add contextual # information for the device. - # Keys must conform to the regular expression [a-zA-Z0-9-_]+ and be less than - # 128 bytes in length. + # Keys must conform to the regular expression a-zA-Z+ and + # be less than 128 bytes in length. # Values are free-form strings. Each value must be less than or equal to 32 # KB in size. # The total size of all keys and values must be less than 256 KB, and the diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 192d598de..ed2034923 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20180220' + REVISION = '20180222' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index b013803b2..ec0e61862 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -1399,7 +1399,8 @@ module Google # @return [Google::Apis::GenomicsV1::Status] attr_accessor :error - # An OperationMetadata object. This will always be returned with the Operation. + # An OperationMetadata or Metadata object. This will always be returned with the + # Operation. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 4eca1629b..3146fe368 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -1043,7 +1043,15 @@ module Google # The name of the operation's parent resource. # @param [String] filter # A string for filtering Operations. - # The following filter fields are supported: + # In v2alpha1, the following filter fields are supported: + # * createTime: The time this job was created + # * events: The set of event (names) that have occurred while running + # the pipeline. The : operator can be used to determine if a + # particular event has occurred. + # * error: If the pipeline is running, this value is NULL. Once the + # pipeline finishes, the value is the standard Google error code. + # * labels.key or labels."key with space" where key is a label key. + # In v1 and v1alpha2, the following filter fields are supported: # * projectId: Required. Corresponds to # OperationMetadata.projectId. # * createTime: The time this job was created, in seconds from the diff --git a/generated/google/apis/genomics_v1alpha2.rb b/generated/google/apis/genomics_v1alpha2.rb index 7d400e3f6..fd567ea2d 100644 --- a/generated/google/apis/genomics_v1alpha2.rb +++ b/generated/google/apis/genomics_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1alpha2 VERSION = 'V1alpha2' - REVISION = '20180220' + REVISION = '20180222' # 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/genomics_v1alpha2/classes.rb b/generated/google/apis/genomics_v1alpha2/classes.rb index 15388f0ad..bbbd408f9 100644 --- a/generated/google/apis/genomics_v1alpha2/classes.rb +++ b/generated/google/apis/genomics_v1alpha2/classes.rb @@ -615,7 +615,8 @@ module Google # @return [Google::Apis::GenomicsV1alpha2::Status] attr_accessor :error - # An OperationMetadata object. This will always be returned with the Operation. + # An OperationMetadata or Metadata object. This will always be returned with the + # Operation. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata diff --git a/generated/google/apis/genomics_v1alpha2/service.rb b/generated/google/apis/genomics_v1alpha2/service.rb index 077c41578..f030b286e 100644 --- a/generated/google/apis/genomics_v1alpha2/service.rb +++ b/generated/google/apis/genomics_v1alpha2/service.rb @@ -120,7 +120,15 @@ module Google # The name of the operation's parent resource. # @param [String] filter # A string for filtering Operations. - # The following filter fields are supported: + # In v2alpha1, the following filter fields are supported: + # * createTime: The time this job was created + # * events: The set of event (names) that have occurred while running + # the pipeline. The : operator can be used to determine if a + # particular event has occurred. + # * error: If the pipeline is running, this value is NULL. Once the + # pipeline finishes, the value is the standard Google error code. + # * labels.key or labels."key with space" where key is a label key. + # In v1 and v1alpha2, the following filter fields are supported: # * projectId: Required. Corresponds to # OperationMetadata.projectId. # * createTime: The time this job was created, in seconds from the diff --git a/generated/google/apis/genomics_v2alpha1.rb b/generated/google/apis/genomics_v2alpha1.rb index be84a66c1..64665efef 100644 --- a/generated/google/apis/genomics_v2alpha1.rb +++ b/generated/google/apis/genomics_v2alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV2alpha1 VERSION = 'V2alpha1' - REVISION = '20180220' + REVISION = '20180222' # 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/genomics_v2alpha1/classes.rb b/generated/google/apis/genomics_v2alpha1/classes.rb index 4e9131b0b..9066262c8 100644 --- a/generated/google/apis/genomics_v2alpha1/classes.rb +++ b/generated/google/apis/genomics_v2alpha1/classes.rb @@ -716,7 +716,8 @@ module Google # @return [Google::Apis::GenomicsV2alpha1::Status] attr_accessor :error - # An OperationMetadata object. This will always be returned with the Operation. + # An OperationMetadata or Metadata object. This will always be returned with the + # Operation. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata diff --git a/generated/google/apis/genomics_v2alpha1/service.rb b/generated/google/apis/genomics_v2alpha1/service.rb index 0eee77fba..673975691 100644 --- a/generated/google/apis/genomics_v2alpha1/service.rb +++ b/generated/google/apis/genomics_v2alpha1/service.rb @@ -48,6 +48,12 @@ module Google end # Runs a pipeline. + # **Note:** In order to use this method, the Genomics Service Agent must have + # access to your project. This is done automatically when the Genomics API + # is first enabled, but if you delete this permission, or if you have + # already enabled the Genomics API prior to the launch of the v2alpha1 API, + # you must disable and re-enable the API to grant the Genomics Service Agent + # the required permissions. # @param [Google::Apis::GenomicsV2alpha1::RunPipelineRequest] run_pipeline_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -150,7 +156,15 @@ module Google # The name of the operation's parent resource. # @param [String] filter # A string for filtering Operations. - # The following filter fields are supported: + # In v2alpha1, the following filter fields are supported: + # * createTime: The time this job was created + # * events: The set of event (names) that have occurred while running + # the pipeline. The : operator can be used to determine if a + # particular event has occurred. + # * error: If the pipeline is running, this value is NULL. Once the + # pipeline finishes, the value is the standard Google error code. + # * labels.key or labels."key with space" where key is a label key. + # In v1 and v1alpha2, the following filter fields are supported: # * projectId: Required. Corresponds to # OperationMetadata.projectId. # * createTime: The time this job was created, in seconds from the diff --git a/generated/google/apis/language_v1.rb b/generated/google/apis/language_v1.rb index 62ed06afa..5540ffbd4 100644 --- a/generated/google/apis/language_v1.rb +++ b/generated/google/apis/language_v1.rb @@ -18,7 +18,7 @@ require 'google/apis/language_v1/representations.rb' module Google module Apis - # Google Cloud Natural Language API + # Cloud Natural Language API # # Provides natural language understanding technologies to developers. Examples # include sentiment analysis, entity recognition, entity sentiment analysis, and @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1 VERSION = 'V1' - REVISION = '20171023' + REVISION = '20180221' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1/service.rb b/generated/google/apis/language_v1/service.rb index 80cc11977..fba03d509 100644 --- a/generated/google/apis/language_v1/service.rb +++ b/generated/google/apis/language_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module LanguageV1 - # Google Cloud Natural Language API + # Cloud Natural Language API # # Provides natural language understanding technologies to developers. Examples # include sentiment analysis, entity recognition, entity sentiment analysis, and diff --git a/generated/google/apis/language_v1beta1.rb b/generated/google/apis/language_v1beta1.rb index c27e8c02b..d5e8fdc05 100644 --- a/generated/google/apis/language_v1beta1.rb +++ b/generated/google/apis/language_v1beta1.rb @@ -18,7 +18,7 @@ require 'google/apis/language_v1beta1/representations.rb' module Google module Apis - # Google Cloud Natural Language API + # Cloud Natural Language API # # Provides natural language understanding technologies to developers. Examples # include sentiment analysis, entity recognition, entity sentiment analysis, and @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta1 VERSION = 'V1beta1' - REVISION = '20170911' + REVISION = '20180221' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1beta1/service.rb b/generated/google/apis/language_v1beta1/service.rb index 29690890b..24ae524b8 100644 --- a/generated/google/apis/language_v1beta1/service.rb +++ b/generated/google/apis/language_v1beta1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module LanguageV1beta1 - # Google Cloud Natural Language API + # Cloud Natural Language API # # Provides natural language understanding technologies to developers. Examples # include sentiment analysis, entity recognition, entity sentiment analysis, and diff --git a/generated/google/apis/language_v1beta2.rb b/generated/google/apis/language_v1beta2.rb index 0d05d7fa0..eab504456 100644 --- a/generated/google/apis/language_v1beta2.rb +++ b/generated/google/apis/language_v1beta2.rb @@ -18,7 +18,7 @@ require 'google/apis/language_v1beta2/representations.rb' module Google module Apis - # Google Cloud Natural Language API + # Cloud Natural Language API # # Provides natural language understanding technologies to developers. Examples # include sentiment analysis, entity recognition, entity sentiment analysis, and @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta2 VERSION = 'V1beta2' - REVISION = '20171031' + REVISION = '20180221' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1beta2/service.rb b/generated/google/apis/language_v1beta2/service.rb index ced694139..d3f4e782c 100644 --- a/generated/google/apis/language_v1beta2/service.rb +++ b/generated/google/apis/language_v1beta2/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module LanguageV1beta2 - # Google Cloud Natural Language API + # Cloud Natural Language API # # Provides natural language understanding technologies to developers. Examples # include sentiment analysis, entity recognition, entity sentiment analysis, and diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb index c01da1b76..4063a20c2 100644 --- a/generated/google/apis/speech_v1.rb +++ b/generated/google/apis/speech_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech/ module SpeechV1 VERSION = 'V1' - REVISION = '20180123' + REVISION = '20180220' # 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/speech_v1/classes.rb b/generated/google/apis/speech_v1/classes.rb index 77440c47b..cd778cfd3 100644 --- a/generated/google/apis/speech_v1/classes.rb +++ b/generated/google/apis/speech_v1/classes.rb @@ -190,14 +190,6 @@ module Google class RecognitionConfig include Google::Apis::Core::Hashable - # *Optional* If `true`, the top result includes a list of words and the - # confidence for those words. If `false`, no word-level confidence - # information is returned. The default is `false`. - # Corresponds to the JSON property `enableWordConfidence` - # @return [Boolean] - attr_accessor :enable_word_confidence - alias_method :enable_word_confidence?, :enable_word_confidence - # *Optional* If `true`, the top result includes a list of words and # the start and end time offsets (timestamps) for those words. If # `false`, no word-level time offset information is returned. The default is @@ -260,7 +252,6 @@ module Google # Update properties of this object def update!(**args) - @enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence) @enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets) @encoding = args[:encoding] if args.key?(:encoding) @language_code = args[:language_code] if args.key?(:language_code) diff --git a/generated/google/apis/speech_v1/representations.rb b/generated/google/apis/speech_v1/representations.rb index 623b6f83f..37aa028e6 100644 --- a/generated/google/apis/speech_v1/representations.rb +++ b/generated/google/apis/speech_v1/representations.rb @@ -121,7 +121,6 @@ module Google class RecognitionConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :enable_word_confidence, as: 'enableWordConfidence' property :enable_word_time_offsets, as: 'enableWordTimeOffsets' property :encoding, as: 'encoding' property :language_code, as: 'languageCode' diff --git a/generated/google/apis/tpu_v1alpha1.rb b/generated/google/apis/tpu_v1alpha1.rb index 4ea3e6bb4..15883e57b 100644 --- a/generated/google/apis/tpu_v1alpha1.rb +++ b/generated/google/apis/tpu_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1alpha1 VERSION = 'V1alpha1' - REVISION = '20180202' + REVISION = '20180222' # 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/tpu_v1alpha1/classes.rb b/generated/google/apis/tpu_v1alpha1/classes.rb index c3c774c0c..7d7468668 100644 --- a/generated/google/apis/tpu_v1alpha1/classes.rb +++ b/generated/google/apis/tpu_v1alpha1/classes.rb @@ -22,6 +22,31 @@ module Google module Apis module TpuV1alpha1 + # A accelerator type that a Node can be configured with. + class AcceleratorType + include Google::Apis::Core::Hashable + + # The resource name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # the accelerator 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) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + end + end + # A generic empty message that you can re-use to avoid defining duplicated # empty messages in your APIs. A typical example is to use it as the request # or the response type of an API method. For instance: @@ -41,6 +66,31 @@ module Google end end + # Response for ListAcceleratorTypes. + class ListAcceleratorTypesResponse + include Google::Apis::Core::Hashable + + # The listed nodes. + # Corresponds to the JSON property `acceleratorTypes` + # @return [Array] + attr_accessor :accelerator_types + + # The next page token or empty if none. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @accelerator_types = args[:accelerator_types] if args.key?(:accelerator_types) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Locations.ListLocations. class ListLocationsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/tpu_v1alpha1/representations.rb b/generated/google/apis/tpu_v1alpha1/representations.rb index 688e7cffb..8c55e0b66 100644 --- a/generated/google/apis/tpu_v1alpha1/representations.rb +++ b/generated/google/apis/tpu_v1alpha1/representations.rb @@ -22,12 +22,24 @@ module Google module Apis module TpuV1alpha1 + class AcceleratorType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListAcceleratorTypesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLocationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -118,12 +130,29 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AcceleratorType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :type, as: 'type' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class ListAcceleratorTypesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::TpuV1alpha1::AcceleratorType, decorator: Google::Apis::TpuV1alpha1::AcceleratorType::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListLocationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/tpu_v1alpha1/service.rb b/generated/google/apis/tpu_v1alpha1/service.rb index 08ed31aa0..0786b7eec 100644 --- a/generated/google/apis/tpu_v1alpha1/service.rb +++ b/generated/google/apis/tpu_v1alpha1/service.rb @@ -116,6 +116,78 @@ module Google execute_or_queue_command(command, &block) end + # Gets AcceleratorType. + # @param [String] name + # The resource name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1alpha1::AcceleratorType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1alpha1::AcceleratorType] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_accelerator_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::TpuV1alpha1::AcceleratorType::Representation + command.response_class = Google::Apis::TpuV1alpha1::AcceleratorType + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists accelerator types supported by this API. + # @param [String] parent + # The parent resource name. + # @param [String] filter + # List filter. + # @param [String] order_by + # Sort results. + # @param [Fixnum] page_size + # The maximum number of items to return. + # @param [String] page_token + # The next_page_token value returned from a previous List request, if any. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV1alpha1::ListAcceleratorTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV1alpha1::ListAcceleratorTypesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_accelerator_types(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/acceleratorTypes', options) + command.response_representation = Google::Apis::TpuV1alpha1::ListAcceleratorTypesResponse::Representation + command.response_class = Google::Apis::TpuV1alpha1::ListAcceleratorTypesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a node. # @param [String] parent # The parent resource name. diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 4765faf22..a7f49bf5f 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 = '20180122' + REVISION = '20180221' # 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 9361a3836..75af62ba9 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -279,6 +279,19 @@ module Google end end + # The request message for Operations.CancelOperation. + class CancelOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various # languages over compactness; for example, the fields of this representation @@ -700,6 +713,25 @@ module Google end end + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Set of detected entity features. class EntityAnnotation include Google::Apis::Core::Hashable @@ -927,6 +959,138 @@ module Google end end + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p2beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p2beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p2beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on GCS. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + # Client image to perform Google Cloud Vision API tasks over. class Image include Google::Apis::Core::Hashable @@ -1149,6 +1313,31 @@ module Google end end + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + # Detected entity location information. class LocationInfo include Google::Apis::Core::Hashable @@ -1172,6 +1361,103 @@ module Google end end + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + # Detected page from OCR. class Page include Google::Apis::Core::Hashable @@ -1186,7 +1472,8 @@ module Google # @return [Float] attr_accessor :confidence - # Page height in pixels. + # 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 @@ -1196,7 +1483,8 @@ module Google # @return [Google::Apis::VisionV1::TextProperty] attr_accessor :property - # Page width in pixels. + # 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 diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index b38c1787e..390f1a4f2 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -58,6 +58,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Color class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class EntityAnnotation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -124,6 +136,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + 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 GoogleCloudVisionV1p2beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Image class Representation < Google::Apis::Core::JsonRepresentation; end @@ -166,12 +208,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LocationInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Page class Representation < Google::Apis::Core::JsonRepresentation; end @@ -352,6 +406,12 @@ module Google end end + class CancelOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Color # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -421,6 +481,12 @@ module Google end end + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class EntityAnnotation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -472,6 +538,47 @@ module Google end end + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1OutputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse::Representation + + end + end + + class GoogleCloudVisionV1p2beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p2beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p2beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination::Representation + + end + end + class Image # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -537,6 +644,15 @@ module Google end end + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::VisionV1::Operation, decorator: Google::Apis::VisionV1::Operation::Representation + + end + end + class LocationInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -545,6 +661,18 @@ module Google end end + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + class Page # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1/service.rb b/generated/google/apis/vision_v1/service.rb index 05bf09e0a..528338c7d 100644 --- a/generated/google/apis/vision_v1/service.rb +++ b/generated/google/apis/vision_v1/service.rb @@ -78,6 +78,160 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::VisionV1::CancelOperationRequest] cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::VisionV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VisionV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.request_representation = Google::Apis::VisionV1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::VisionV1::Empty::Representation + command.response_class = Google::Apis::VisionV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::VisionV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VisionV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::VisionV1::Empty::Representation + command.response_class = Google::Apis::VisionV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VisionV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::VisionV1::Operation::Representation + command.response_class = Google::Apis::VisionV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::VisionV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VisionV1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::VisionV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::VisionV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index fbad1d729..43790ba3a 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 = '20180103' + REVISION = '20180221' # 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 4866826ae..2335d160c 100644 --- a/generated/google/apis/vision_v1p1beta1/classes.rb +++ b/generated/google/apis/vision_v1p1beta1/classes.rb @@ -1104,7 +1104,8 @@ module Google # @return [Float] attr_accessor :confidence - # Page height in pixels. + # 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 @@ -1114,7 +1115,8 @@ module Google # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty] attr_accessor :property - # Page width in pixels. + # 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 @@ -1699,6 +1701,138 @@ module Google end end + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # The Google Cloud Storage location where the output will be written to. + class GoogleCloudVisionV1p2beta1GcsDestination + include Google::Apis::Core::Hashable + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p2beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p2beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on GCS. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + # 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 9719cac40..aef4f73c6 100644 --- a/generated/google/apis/vision_v1p1beta1/representations.rb +++ b/generated/google/apis/vision_v1p1beta1/representations.rb @@ -262,6 +262,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + 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 GoogleCloudVisionV1p2beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LatLng class Representation < Google::Apis::Core::JsonRepresentation; end @@ -707,6 +737,47 @@ module Google end end + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1OutputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse::Representation + + end + end + + class GoogleCloudVisionV1p2beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p2beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p2beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination::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 new file mode 100644 index 000000000..3f53afe50 --- /dev/null +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -0,0 +1,39 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/vision_v1p2beta1/service.rb' +require 'google/apis/vision_v1p2beta1/classes.rb' +require 'google/apis/vision_v1p2beta1/representations.rb' + +module Google + module Apis + # Google Cloud Vision API + # + # Integrates Google Vision features, including image labeling, face, logo, and + # landmark detection, optical character recognition (OCR), and detection of + # explicit content, into applications. + # + # @see https://cloud.google.com/vision/ + module VisionV1p2beta1 + VERSION = 'V1p2beta1' + REVISION = '20180221' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Apply machine learning models to understand and label images + AUTH_CLOUD_VISION = 'https://www.googleapis.com/auth/cloud-vision' + end + end +end diff --git a/generated/google/apis/vision_v1p2beta1/classes.rb b/generated/google/apis/vision_v1p2beta1/classes.rb new file mode 100644 index 000000000..9379716f0 --- /dev/null +++ b/generated/google/apis/vision_v1p2beta1/classes.rb @@ -0,0 +1,2172 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module VisionV1p2beta1 + + # 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(''); + # `; + # // ... + class Color + include Google::Apis::Core::Hashable + + # The fraction of this color that should be applied to the pixel. That is, + # the final pixel color is defined by the equation: + # pixel color = alpha * (this color) + (1.0 - alpha) * (background color) + # This means that a value of 1.0 corresponds to a solid color, whereas + # a value of 0.0 corresponds to a completely transparent color. This + # uses a wrapper message rather than a simple float scalar so that it is + # possible to distinguish between a default value and the value being unset. + # If omitted, this color object is to be rendered as a solid color + # (as if the alpha value had been explicitly given with a value of 1.0). + # Corresponds to the JSON property `alpha` + # @return [Float] + attr_accessor :alpha + + # The amount of blue in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `blue` + # @return [Float] + attr_accessor :blue + + # The amount of green in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `green` + # @return [Float] + attr_accessor :green + + # The amount of red in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `red` + # @return [Float] + attr_accessor :red + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alpha = args[:alpha] if args.key?(:alpha) + @blue = args[:blue] if args.key?(:blue) + @green = args[:green] if args.key?(:green) + @red = args[:red] if args.key?(:red) + end + end + + # Request for performing Google Cloud Vision API tasks over a user-provided + # image, with user-requested features. + class GoogleCloudVisionV1p2beta1AnnotateImageRequest + include Google::Apis::Core::Hashable + + # Requested features. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # Client image to perform Google Cloud Vision API tasks over. + # Corresponds to the JSON property `image` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Image] + attr_accessor :image + + # Image context and/or feature-specific parameters. + # Corresponds to the JSON property `imageContext` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext] + attr_accessor :image_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @features = args[:features] if args.key?(:features) + @image = args[:image] if args.key?(:image) + @image_context = args[:image_context] if args.key?(:image_context) + 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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotation] + attr_accessor :full_text_annotation + + # Stores image properties, such as dominant colors. + # Corresponds to the JSON property `imagePropertiesAnnotation` + # @return [Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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 + + # An offline file annotation request. + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest + include Google::Apis::Core::Hashable + + # Required. Requested features. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # Image context and/or feature-specific parameters. + # Corresponds to the JSON property `imageContext` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext] + attr_accessor :image_context + + # The desired input location and metadata. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig] + attr_accessor :input_config + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @features = args[:features] if args.key?(:features) + @image_context = args[:image_context] if args.key?(:image_context) + @input_config = args[:input_config] if args.key?(:input_config) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # The response for a single offline file annotation request. + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + include Google::Apis::Core::Hashable + + # The desired output location and metadata. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1OutputConfig] + attr_accessor :output_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_config = args[:output_config] if args.key?(:output_config) + end + end + + # Multiple async file annotation requests are batched into a single service + # call. + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest + include Google::Apis::Core::Hashable + + # Individual async file annotation requests for this batch. + # Corresponds to the JSON property `requests` + # @return [Array] + attr_accessor :requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requests = args[:requests] if args.key?(:requests) + end + end + + # Response to an async batch file annotation request. + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + include Google::Apis::Core::Hashable + + # The list of file annotation responses, one for each request in + # AsyncBatchAnnotateFilesRequest. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Multiple image annotation requests are batched into a single service call. + class GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest + include Google::Apis::Core::Hashable + + # Individual image annotation requests for this batch. + # Corresponds to the JSON property `requests` + # @return [Array] + attr_accessor :requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requests = args[:requests] if args.key?(:requests) + end + end + + # Response to a batch image annotation request. + class GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse + include Google::Apis::Core::Hashable + + # Individual responses to image annotation requests within the batch. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @responses = args[:responses] if args.key?(:responses) + end + end + + # Logical element on the page. + class 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::VisionV1p2beta1::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::VisionV1p2beta1::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 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) + @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::VisionV1p2beta1::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::VisionV1p2beta1::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 + + # Parameters for crop hints annotation request. + class GoogleCloudVisionV1p2beta1CropHintsParams + include Google::Apis::Core::Hashable + + # Aspect ratios in floats, representing the ratio of the width to the height + # of the image. For example, if the desired aspect ratio is 4/3, the + # corresponding float value should be 1.33333. If not specified, the + # best possible crop is returned. The number of provided aspect ratios is + # limited to a maximum of 16; any aspect ratios provided after the 16th are + # ignored. + # Corresponds to the JSON property `aspectRatios` + # @return [Array] + attr_accessor :aspect_ratios + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aspect_ratios = args[:aspect_ratios] if args.key?(:aspect_ratios) + 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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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 type of Google Cloud Vision API detection to perform, and the maximum + # number of results to return for that type. Multiple `Feature` objects can + # be specified in the `features` list. + class GoogleCloudVisionV1p2beta1Feature + include Google::Apis::Core::Hashable + + # Maximum number of results of this type. Does not apply to + # `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. + # Corresponds to the JSON property `maxResults` + # @return [Fixnum] + attr_accessor :max_results + + # Model to use for the feature. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + # The feature 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) + @max_results = args[:max_results] if args.key?(:max_results) + @model = args[:model] if args.key?(:model) + @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 + + # Google Cloud Storage URI where the results will be stored. Results will + # be in JSON format and preceded by its corresponding input URI. This field + # can either represent a single file, or a prefix for multiple outputs. + # Prefixes must end in a `/`. + # Examples: + # * File: gs://bucket-name/filename.json + # * Prefix: gs://bucket-name/prefix/here/ + # * File: gs://bucket-name/prefix/here + # If multiple outputs, each response is still AnnotateFileResponse, each of + # which contains some subset of the full list of AnnotateImageResponse. + # Multiple outputs can happen if, for example, the output JSON is too large + # and overflows into multiple sharded files. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # The Google Cloud Storage location where the input will be read from. + class 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. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Client image to perform Google Cloud Vision API tasks over. + class GoogleCloudVisionV1p2beta1Image + include Google::Apis::Core::Hashable + + # Image content, represented as a stream of bytes. + # Note: As with all `bytes` fields, protobuffers use a pure binary + # representation, whereas JSON representations use base64. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # External image source (Google Cloud Storage or web URL image location). + # Corresponds to the JSON property `source` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageSource] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @source = args[:source] if args.key?(:source) + 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 + + # Image context and/or feature-specific parameters. + class GoogleCloudVisionV1p2beta1ImageContext + include Google::Apis::Core::Hashable + + # Parameters for crop hints annotation request. + # Corresponds to the JSON property `cropHintsParams` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsParams] + attr_accessor :crop_hints_params + + # List of languages to use for TEXT_DETECTION. In most cases, an empty value + # yields the best results since it enables automatic language detection. For + # languages based on the Latin alphabet, setting `language_hints` is not + # needed. In rare cases, when the language of the text in the image is known, + # setting a hint will help get better results (although it will be a + # significant hindrance if the hint is wrong). Text detection returns an + # error if one or more of the specified languages is not one of the + # [supported languages](/vision/docs/languages). + # Corresponds to the JSON property `languageHints` + # @return [Array] + attr_accessor :language_hints + + # Rectangle determined by min and max `LatLng` pairs. + # Corresponds to the JSON property `latLongRect` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1LatLongRect] + attr_accessor :lat_long_rect + + # Parameters for web detection request. + # Corresponds to the JSON property `webDetectionParams` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionParams] + attr_accessor :web_detection_params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params) + @language_hints = args[:language_hints] if args.key?(:language_hints) + @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect) + @web_detection_params = args[:web_detection_params] if args.key?(:web_detection_params) + 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::VisionV1p2beta1::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 + + # External image source (Google Cloud Storage or web URL image location). + class GoogleCloudVisionV1p2beta1ImageSource + include Google::Apis::Core::Hashable + + # **Use `image_uri` instead.** + # The Google Cloud Storage URI of the form + # `gs://bucket_name/object_name`. Object versioning is not supported. See + # [Google Cloud Storage Request + # URIs](https://cloud.google.com/storage/docs/reference-uris) for more info. + # Corresponds to the JSON property `gcsImageUri` + # @return [String] + attr_accessor :gcs_image_uri + + # The URI of the source image. Can be either: + # 1. A Google Cloud Storage URI of the form + # `gs://bucket_name/object_name`. Object versioning is not supported. See + # [Google Cloud Storage Request + # URIs](https://cloud.google.com/storage/docs/reference-uris) for more + # info. + # 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from + # HTTP/HTTPS URLs, Google cannot guarantee that the request will be + # completed. Your request may fail if the specified host denies the + # request (e.g. due to request throttling or DOS prevention), or if Google + # throttles requests to the site for abuse prevention. You should not + # depend on externally-hosted images for production applications. + # When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes + # precedence. + # Corresponds to the JSON property `imageUri` + # @return [String] + attr_accessor :image_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_image_uri = args[:gcs_image_uri] if args.key?(:gcs_image_uri) + @image_uri = args[:image_uri] if args.key?(:image_uri) + 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::VisionV1p2beta1::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 + + # Rectangle determined by min and max `LatLng` pairs. + class GoogleCloudVisionV1p2beta1LatLongRect + 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 `maxLatLng` + # @return [Google::Apis::VisionV1p2beta1::LatLng] + attr_accessor :max_lat_lng + + # 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 `minLatLng` + # @return [Google::Apis::VisionV1p2beta1::LatLng] + attr_accessor :min_lat_lng + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_lat_lng = args[:max_lat_lng] if args.key?(:max_lat_lng) + @min_lat_lng = args[:min_lat_lng] if args.key?(:min_lat_lng) + 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::VisionV1p2beta1::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 + + # Contains metadata for the BatchAnnotateImages operation. + class GoogleCloudVisionV1p2beta1OperationMetadata + include Google::Apis::Core::Hashable + + # The time when the batch request was received. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Current state of the batch operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The time when the operation result was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The desired output location and metadata. + class GoogleCloudVisionV1p2beta1OutputConfig + include Google::Apis::Core::Hashable + + # The max number of response protos to put into each output JSON file on GCS. + # The valid range is [1, 100]. If not specified, the default value is 20. + # For example, for one pdf file with 100 pages, 100 response protos will + # be generated. If `batch_size` = 20, then 5 json files each + # containing 20 response protos will be written under the prefix + # `gcs_destination`.`uri`. + # Currently, batch_size only applies to GcsDestination, with potential future + # support for other output configurations. + # Corresponds to the JSON property `batchSize` + # @return [Fixnum] + attr_accessor :batch_size + + # The Google Cloud Storage location where the output will be written to. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_size = args[:batch_size] if args.key?(:batch_size) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Detected page from OCR. + class 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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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::VisionV1p2beta1::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 + + # Parameters for web detection request. + class GoogleCloudVisionV1p2beta1WebDetectionParams + include Google::Apis::Core::Hashable + + # Whether to include results derived from the geo information in the image. + # Corresponds to the JSON property `includeGeoResults` + # @return [Boolean] + attr_accessor :include_geo_results + alias_method :include_geo_results?, :include_geo_results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @include_geo_results = args[:include_geo_results] if args.key?(:include_geo_results) + 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::VisionV1p2beta1::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::VisionV1p2beta1::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 + # WGS84 + # standard. Values must be within normalized ranges. + class LatLng + include Google::Apis::Core::Hashable + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # 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. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + end + end +end diff --git a/generated/google/apis/vision_v1p2beta1/representations.rb b/generated/google/apis/vision_v1p2beta1/representations.rb new file mode 100644 index 000000000..ea28b021d --- /dev/null +++ b/generated/google/apis/vision_v1p2beta1/representations.rb @@ -0,0 +1,895 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module VisionV1p2beta1 + + class Color + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1AnnotateImageRequest + 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 GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + 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 GoogleCloudVisionV1p2beta1CropHintsParams + 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 GoogleCloudVisionV1p2beta1Feature + 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 GoogleCloudVisionV1p2beta1Image + 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 GoogleCloudVisionV1p2beta1ImageContext + 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 GoogleCloudVisionV1p2beta1ImageSource + 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 GoogleCloudVisionV1p2beta1LatLongRect + 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 GoogleCloudVisionV1p2beta1OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVisionV1p2beta1OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + 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 GoogleCloudVisionV1p2beta1WebDetectionParams + 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 + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Color + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alpha, as: 'alpha' + property :blue, as: 'blue' + property :green, as: 'green' + property :red, as: 'red' + end + end + + class GoogleCloudVisionV1p2beta1AnnotateImageRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :features, as: 'features', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Feature, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Feature::Representation + + property :image, as: 'image', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Image, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Image::Representation + + property :image_context, as: 'imageContext', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext::Representation + + end + end + + class GoogleCloudVisionV1p2beta1AnnotateImageResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :context, as: 'context', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageAnnotationContext::Representation + + property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsAnnotation::Representation + + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + + collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1FaceAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1FaceAnnotation::Representation + + property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotation::Representation + + property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageProperties, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageProperties::Representation + + collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation + + collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation + + collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation + + property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation::Representation + + collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation + + property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetection, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetection::Representation + + end + end + + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :features, as: 'features', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Feature, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Feature::Representation + + property :image_context, as: 'imageContext', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext::Representation + + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig::Representation + + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1OutputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1OutputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1OutputConfig::Representation + + end + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requests, as: 'requests', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest::Representation + + end + end + + class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse::Representation + + end + end + + class GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requests, as: 'requests', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageRequest, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageRequest::Representation + + end + end + + class GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation + + end + end + + class GoogleCloudVisionV1p2beta1Block + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :block_type, as: 'blockType' + property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Paragraph, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Paragraph::Representation + + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation + + end + end + + class GoogleCloudVisionV1p2beta1BoundingPoly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Vertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Vertex::Representation + + end + end + + class GoogleCloudVisionV1p2beta1ColorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :color, as: 'color', class: Google::Apis::VisionV1p2beta1::Color, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHint, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHint::Representation + + end + end + + class GoogleCloudVisionV1p2beta1CropHintsParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :aspect_ratios, as: 'aspectRatios' + end + end + + class GoogleCloudVisionV1p2beta1DominantColorsAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :colors, as: 'colors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ColorInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ColorInfo::Representation + + end + end + + class GoogleCloudVisionV1p2beta1EntityAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :description, as: 'description' + property :locale, as: 'locale' + collection :locations, as: 'locations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1LocationInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1LocationInfo::Representation + + property :mid, as: 'mid' + collection :properties, as: 'properties', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Property, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + + property :detection_confidence, as: 'detectionConfidence' + property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + + property :headwear_likelihood, as: 'headwearLikelihood' + property :joy_likelihood, as: 'joyLikelihood' + property :landmarking_confidence, as: 'landmarkingConfidence' + collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Position, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Position::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p2beta1Feature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_results, as: 'maxResults' + property :model, as: 'model' + property :type, as: 'type' + end + end + + class GoogleCloudVisionV1p2beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p2beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p2beta1Image + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :source, as: 'source', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageSource, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageSource::Representation + + end + end + + class GoogleCloudVisionV1p2beta1ImageAnnotationContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :page_number, as: 'pageNumber' + property :uri, as: 'uri' + end + end + + class GoogleCloudVisionV1p2beta1ImageContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :crop_hints_params, as: 'cropHintsParams', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsParams, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsParams::Representation + + collection :language_hints, as: 'languageHints' + property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1LatLongRect, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1LatLongRect::Representation + + property :web_detection_params, as: 'webDetectionParams', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionParams, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionParams::Representation + + end + end + + class GoogleCloudVisionV1p2beta1ImageProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation::Representation + + end + end + + class GoogleCloudVisionV1p2beta1ImageSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_image_uri, as: 'gcsImageUri' + property :image_uri, as: 'imageUri' + end + end + + class GoogleCloudVisionV1p2beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsSource, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsSource::Representation + + property :mime_type, as: 'mimeType' + end + end + + class GoogleCloudVisionV1p2beta1LatLongRect + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_lat_lng, as: 'maxLatLng', class: Google::Apis::VisionV1p2beta1::LatLng, decorator: Google::Apis::VisionV1p2beta1::LatLng::Representation + + property :min_lat_lng, as: 'minLatLng', class: Google::Apis::VisionV1p2beta1::LatLng, decorator: Google::Apis::VisionV1p2beta1::LatLng::Representation + + end + end + + class GoogleCloudVisionV1p2beta1LocationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p2beta1::LatLng, decorator: Google::Apis::VisionV1p2beta1::LatLng::Representation + + end + end + + class GoogleCloudVisionV1p2beta1OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudVisionV1p2beta1OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_size, as: 'batchSize' + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsDestination, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsDestination::Representation + + end + end + + class GoogleCloudVisionV1p2beta1Page + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Block, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Block::Representation + + property :confidence, as: 'confidence' + property :height, as: 'height' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation + + collection :words, as: 'words', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Word, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation + + property :text, as: 'text' + end + end + + class GoogleCloudVisionV1p2beta1TextAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :pages, as: 'pages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Page, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak::Representation + + collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel::Representation + + collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation + + collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebPage::Representation + + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation + + collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation + + collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity::Representation + + end + end + + class GoogleCloudVisionV1p2beta1WebDetectionParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :include_geo_results, as: 'includeGeoResults' + 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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage::Representation + + property :page_title, as: 'pageTitle' + collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::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::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + + property :confidence, as: 'confidence' + property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::Representation + + collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Symbol, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Symbol::Representation + + end + end + + class LatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + end + end +end diff --git a/generated/google/apis/vision_v1p2beta1/service.rb b/generated/google/apis/vision_v1p2beta1/service.rb new file mode 100644 index 000000000..40875f96e --- /dev/null +++ b/generated/google/apis/vision_v1p2beta1/service.rb @@ -0,0 +1,126 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module VisionV1p2beta1 + # Google Cloud Vision API + # + # Integrates Google Vision features, including image labeling, face, logo, and + # landmark detection, optical character recognition (OCR), and detection of + # explicit content, into applications. + # + # @example + # require 'google/apis/vision_v1p2beta1' + # + # Vision = Google::Apis::VisionV1p2beta1 # Alias the module + # service = Vision::VisionService.new + # + # @see https://cloud.google.com/vision/ + class VisionService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://vision.googleapis.com/', '') + @batch_path = 'batch' + end + + # Run async image detection and annotation for a list of generic files (e.g. + # PDF) which may contain multiple pages and multiple images per page. + # Progress and results can be retrieved through the + # `google.longrunning.Operations` interface. + # `Operation.metadata` contains `OperationMetadata` (metadata). + # `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + # @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest] google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::VisionV1p2beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VisionV1p2beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def async_file_batch_annotate(google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1p2beta1/files:asyncBatchAnnotate', options) + command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest::Representation + command.request_object = google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object + command.response_representation = Google::Apis::VisionV1p2beta1::Operation::Representation + command.response_class = Google::Apis::VisionV1p2beta1::Operation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Run image detection and annotation for a batch of images. + # @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest] google_cloud_vision_v1p2beta1_batch_annotate_images_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def annotate_image(google_cloud_vision_v1p2beta1_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1p2beta1/images:annotate', options) + command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest::Representation + command.request_object = google_cloud_vision_v1p2beta1_batch_annotate_images_request_object + command.response_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse::Representation + command.response_class = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index c06aa7bc8..bbcc1a082 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20180212' + REVISION = '20180219' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'