google-api-ruby-client/generated/google/apis/vision_v1/representations.rb

686 lines
26 KiB
Ruby
Raw Normal View History

2016-02-25 23:16:53 +00:00
# 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 VisionV1
class DominantColorsAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Vertex
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DetectedLanguage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextProperty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BoundingPoly
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebEntity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnnotateImageResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CropHintsParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Block
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Property
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationInfo
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImageSource
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchAnnotateImagesResponse
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebDetection
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Position
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebPage
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ColorInfo
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EntityAnnotation
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CropHint
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Landmark
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebImage
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Word
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Paragraph
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Image
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FaceAnnotation
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchAnnotateImagesRequest
2016-02-25 23:16:53 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DetectedBreak
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
2017-03-10 21:11:09 +00:00
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class ImageContext
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-10 21:11:09 +00:00
include Google::Apis::Core::JsonObjectSupport
end
class Page
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2016-02-25 23:16:53 +00:00
2017-03-10 21:11:09 +00:00
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class AnnotateImageRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class Symbol
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-02-13 23:28:52 +00:00
2017-03-10 21:11:09 +00:00
include Google::Apis::Core::JsonObjectSupport
end
2016-02-25 23:16:53 +00:00
class LatLongRect
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class CropHintsAnnotation
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class LatLng
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class Color
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class ImageProperties
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-10 21:11:09 +00:00
include Google::Apis::Core::JsonObjectSupport
2016-02-25 23:16:53 +00:00
end
class Feature
2017-05-26 16:44:32 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-02-13 23:28:52 +00:00
end
class SafeSearchAnnotation
2017-05-26 16:44:32 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-04-03 20:18:48 +00:00
2017-05-26 16:44:32 +00:00
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
class DominantColorsAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :colors, as: 'colors', class: Google::Apis::VisionV1::ColorInfo, decorator: Google::Apis::VisionV1::ColorInfo::Representation
2017-03-30 22:30:51 +00:00
end
end
2016-02-25 23:16:53 +00:00
class TextAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :pages, as: 'pages', class: Google::Apis::VisionV1::Page, decorator: Google::Apis::VisionV1::Page::Representation
2017-04-03 20:18:48 +00:00
property :text, as: 'text'
end
end
class Vertex
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :x, as: 'x'
property :y, as: 'y'
end
end
class DetectedLanguage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :language_code, as: 'languageCode'
property :confidence, as: 'confidence'
end
2017-03-31 19:53:27 +00:00
end
2017-03-10 21:11:09 +00:00
class TextProperty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::DetectedBreak, decorator: Google::Apis::VisionV1::DetectedBreak::Representation
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::DetectedLanguage, decorator: Google::Apis::VisionV1::DetectedLanguage::Representation
2017-03-10 21:11:09 +00:00
end
end
2017-03-27 22:14:47 +00:00
class BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::Vertex, decorator: Google::Apis::VisionV1::Vertex::Representation
end
end
2017-03-27 22:14:47 +00:00
class WebEntity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :score, as: 'score'
property :entity_id, as: 'entityId'
property :description, as: 'description'
end
end
class AnnotateImageResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::TextAnnotation, decorator: Google::Apis::VisionV1::TextAnnotation::Representation
collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::FaceAnnotation, decorator: Google::Apis::VisionV1::FaceAnnotation::Representation
property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::ImageProperties, decorator: Google::Apis::VisionV1::ImageProperties::Representation
collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::CropHintsAnnotation, decorator: Google::Apis::VisionV1::CropHintsAnnotation::Representation
property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::WebDetection, decorator: Google::Apis::VisionV1::WebDetection::Representation
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1::SafeSearchAnnotation::Representation
end
end
class CropHintsParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :aspect_ratios, as: 'aspectRatios'
end
end
class Block
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
property :block_type, as: 'blockType'
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::Paragraph, decorator: Google::Apis::VisionV1::Paragraph::Representation
end
end
2017-03-27 22:14:47 +00:00
class Property
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :uint64_value, :numeric_string => true, as: 'uint64Value'
property :name, as: 'name'
end
end
2017-05-26 16:44:32 +00:00
class LocationInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation
end
end
class ImageSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_image_uri, as: 'gcsImageUri'
property :image_uri, as: 'imageUri'
end
end
class BatchAnnotateImagesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::AnnotateImageResponse, decorator: Google::Apis::VisionV1::AnnotateImageResponse::Representation
end
end
class WebDetection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::WebEntity, decorator: Google::Apis::VisionV1::WebEntity::Representation
collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::WebPage, decorator: Google::Apis::VisionV1::WebPage::Representation
collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::WebImage, decorator: Google::Apis::VisionV1::WebImage::Representation
end
end
class Position
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :y, as: 'y'
property :x, as: 'x'
property :z, as: 'z'
end
2017-03-27 22:14:47 +00:00
end
2017-03-31 19:53:27 +00:00
class WebPage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :score, as: 'score'
property :url, as: 'url'
end
2017-03-27 22:14:47 +00:00
end
2017-04-03 20:18:48 +00:00
class ColorInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :score, as: 'score'
property :pixel_fraction, as: 'pixelFraction'
property :color, as: 'color', class: Google::Apis::VisionV1::Color, decorator: Google::Apis::VisionV1::Color::Representation
2017-03-27 22:14:47 +00:00
end
2017-04-03 20:18:48 +00:00
end
2017-03-27 22:14:47 +00:00
2017-04-03 20:18:48 +00:00
class EntityAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mid, as: 'mid'
property :confidence, as: 'confidence'
property :locale, as: 'locale'
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :description, as: 'description'
property :topicality, as: 'topicality'
collection :properties, as: 'properties', class: Google::Apis::VisionV1::Property, decorator: Google::Apis::VisionV1::Property::Representation
property :score, as: 'score'
collection :locations, as: 'locations', class: Google::Apis::VisionV1::LocationInfo, decorator: Google::Apis::VisionV1::LocationInfo::Representation
end
2017-03-27 22:14:47 +00:00
end
2017-03-31 19:53:27 +00:00
class CropHint
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :confidence, as: 'confidence'
property :importance_fraction, as: 'importanceFraction'
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
2017-03-27 22:14:47 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Landmark
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
2017-03-31 19:53:27 +00:00
property :position, as: 'position', class: Google::Apis::VisionV1::Position, decorator: Google::Apis::VisionV1::Position::Representation
2017-03-27 22:14:47 +00:00
end
end
2017-03-31 19:53:27 +00:00
class WebImage
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :score, as: 'score'
property :url, as: 'url'
2017-03-27 22:14:47 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Word
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-05-26 16:44:32 +00:00
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::Symbol, decorator: Google::Apis::VisionV1::Symbol::Representation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
2017-03-27 22:14:47 +00:00
end
end
2017-05-26 16:44:32 +00:00
class Paragraph
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
2017-05-26 16:44:32 +00:00
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
collection :words, as: 'words', class: Google::Apis::VisionV1::Word, decorator: Google::Apis::VisionV1::Word::Representation
2017-03-27 22:14:47 +00:00
end
end
2017-05-26 16:44:32 +00:00
class Image
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-05-26 16:44:32 +00:00
property :content, :base64 => true, as: 'content'
property :source, as: 'source', class: Google::Apis::VisionV1::ImageSource, decorator: Google::Apis::VisionV1::ImageSource::Representation
2017-03-31 19:53:27 +00:00
2017-03-27 22:14:47 +00:00
end
end
2017-03-31 19:53:27 +00:00
class FaceAnnotation
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tilt_angle, as: 'tiltAngle'
property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :surprise_likelihood, as: 'surpriseLikelihood'
collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::Landmark, decorator: Google::Apis::VisionV1::Landmark::Representation
property :anger_likelihood, as: 'angerLikelihood'
2017-03-31 19:53:27 +00:00
property :joy_likelihood, as: 'joyLikelihood'
2017-04-03 20:18:48 +00:00
property :landmarking_confidence, as: 'landmarkingConfidence'
property :detection_confidence, as: 'detectionConfidence'
2017-05-26 16:44:32 +00:00
property :pan_angle, as: 'panAngle'
property :under_exposed_likelihood, as: 'underExposedLikelihood'
2017-03-31 19:53:27 +00:00
property :blurred_likelihood, as: 'blurredLikelihood'
property :headwear_likelihood, as: 'headwearLikelihood'
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
property :roll_angle, as: 'rollAngle'
property :sorrow_likelihood, as: 'sorrowLikelihood'
2017-03-27 22:14:47 +00:00
end
end
2017-03-31 19:53:27 +00:00
class BatchAnnotateImagesRequest
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :requests, as: 'requests', class: Google::Apis::VisionV1::AnnotateImageRequest, decorator: Google::Apis::VisionV1::AnnotateImageRequest::Representation
2017-03-27 22:14:47 +00:00
end
end
2017-03-31 19:53:27 +00:00
class DetectedBreak
2016-02-25 23:16:53 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-05-26 16:44:32 +00:00
property :type, as: 'type'
property :is_prefix, as: 'isPrefix'
2016-02-25 23:16:53 +00:00
end
end
2017-03-31 19:53:27 +00:00
class ImageContext
2016-02-25 23:16:53 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :language_hints, as: 'languageHints'
2017-05-26 16:44:32 +00:00
property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation
property :crop_hints_params, as: 'cropHintsParams', class: Google::Apis::VisionV1::CropHintsParams, decorator: Google::Apis::VisionV1::CropHintsParams::Representation
2016-02-25 23:16:53 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Page
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :width, as: 'width'
2017-03-31 19:53:27 +00:00
collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::Block, decorator: Google::Apis::VisionV1::Block::Representation
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
2017-03-10 21:11:09 +00:00
end
end
2017-03-31 19:53:27 +00:00
class AnnotateImageRequest
2016-02-25 23:16:53 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :image, as: 'image', class: Google::Apis::VisionV1::Image, decorator: Google::Apis::VisionV1::Image::Representation
2017-03-30 22:30:51 +00:00
2017-03-31 19:53:27 +00:00
collection :features, as: 'features', class: Google::Apis::VisionV1::Feature, decorator: Google::Apis::VisionV1::Feature::Representation
2017-02-13 23:28:52 +00:00
property :image_context, as: 'imageContext', class: Google::Apis::VisionV1::ImageContext, decorator: Google::Apis::VisionV1::ImageContext::Representation
2016-02-25 23:16:53 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Status
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
2017-03-31 19:53:27 +00:00
property :code, as: 'code'
property :message, as: 'message'
2017-03-10 21:11:09 +00:00
end
end
class Symbol
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :text, as: 'text'
property :property, as: 'property', class: Google::Apis::VisionV1::TextProperty, decorator: Google::Apis::VisionV1::TextProperty::Representation
2017-03-10 21:11:09 +00:00
property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
2017-03-10 21:11:09 +00:00
end
end
class LatLongRect
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min_lat_lng, as: 'minLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation
2017-03-31 19:53:27 +00:00
property :max_lat_lng, as: 'maxLatLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation
2017-03-31 19:53:27 +00:00
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class CropHintsAnnotation
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::CropHint, decorator: Google::Apis::VisionV1::CropHint::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class LatLng
2016-02-25 23:16:53 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-05-26 16:44:32 +00:00
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
2017-03-31 19:53:27 +00:00
end
end
2016-02-25 23:16:53 +00:00
2017-03-31 19:53:27 +00:00
class Color
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :green, as: 'green'
property :blue, as: 'blue'
property :alpha, as: 'alpha'
property :red, as: 'red'
2016-02-25 23:16:53 +00:00
end
end
class ImageProperties
2016-02-25 23:16:53 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::DominantColorsAnnotation, decorator: Google::Apis::VisionV1::DominantColorsAnnotation::Representation
2016-02-25 23:16:53 +00:00
end
end
class Feature
2016-02-25 23:16:53 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :max_results, as: 'maxResults'
end
end
2017-03-31 19:53:27 +00:00
class SafeSearchAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :medical, as: 'medical'
2017-04-03 20:18:48 +00:00
property :violence, as: 'violence'
property :adult, as: 'adult'
property :spoof, as: 'spoof'
2017-05-26 16:44:32 +00:00
end
end
2016-02-25 23:16:53 +00:00
end
end
end