diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb index 047f5f651..5b0e759f2 100644 --- a/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/private-catalog/ module CloudprivatecatalogproducerV1beta1 VERSION = 'V1beta1' - REVISION = '20190810' + REVISION = '20190907' # 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/cloudprivatecatalogproducer_v1beta1/classes.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb index a00886b3b..cbe689ef4 100644 --- a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb @@ -810,7 +810,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb index fac197776..5aea695e9 100644 --- a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb @@ -153,9 +153,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb index b31a5e02d..ce163ac22 100644 --- a/generated/google/apis/cloudsearch_v1.rb +++ b/generated/google/apis/cloudsearch_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-search/docs/guides/ module CloudsearchV1 VERSION = 'V1' - REVISION = '20190821' + REVISION = '20190905' # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' diff --git a/generated/google/apis/cloudsearch_v1/classes.rb b/generated/google/apis/cloudsearch_v1/classes.rb index ec6ddd4d0..333501994 100644 --- a/generated/google/apis/cloudsearch_v1/classes.rb +++ b/generated/google/apis/cloudsearch_v1/classes.rb @@ -3371,7 +3371,9 @@ module Google # "Australia/Sydney". These IDs are defined by # [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) # project, and currently available in the file - # [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml) + # [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). + # This field is used to correctly interpret date and time queries. + # If this field is not specified, the default time zone (UTC) is used. # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone diff --git a/generated/google/apis/cloudsearch_v1/service.rb b/generated/google/apis/cloudsearch_v1/service.rb index d00167be1..1d347c214 100644 --- a/generated/google/apis/cloudsearch_v1/service.rb +++ b/generated/google/apis/cloudsearch_v1/service.rb @@ -929,7 +929,9 @@ module Google # "Australia/Sydney". These IDs are defined by # [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) # project, and currently available in the file - # [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml) + # [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). + # This field is used to correctly interpret date and time queries. + # If this field is not specified, the default time zone (UTC) is used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index dfc805102..27da9ca69 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20190822' + REVISION = '20190905' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 468cba39b..f2597381a 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -4101,6 +4101,11 @@ module Google # @return [String] attr_accessor :payment_status + # Pickup details for shipments of type pickup. + # Corresponds to the JSON property `pickupDetails` + # @return [Google::Apis::ContentV2::OrderPickupDetails] + attr_accessor :pickup_details + # The date when the order was placed, in ISO 8601 format. # Corresponds to the JSON property `placedDate` # @return [String] @@ -4165,6 +4170,7 @@ module Google @net_amount = args[:net_amount] if args.key?(:net_amount) @payment_method = args[:payment_method] if args.key?(:payment_method) @payment_status = args[:payment_status] if args.key?(:payment_status) + @pickup_details = args[:pickup_details] if args.key?(:pickup_details) @placed_date = args[:placed_date] if args.key?(:placed_date) @promotions = args[:promotions] if args.key?(:promotions) @refunds = args[:refunds] if args.key?(:refunds) @@ -4562,6 +4568,11 @@ module Google # @return [Fixnum] attr_accessor :quantity_pending + # Number of items ready for pickup. + # Corresponds to the JSON property `quantityReadyForPickup` + # @return [Fixnum] + attr_accessor :quantity_ready_for_pickup + # Number of items returned. # Corresponds to the JSON property `quantityReturned` # @return [Fixnum] @@ -4608,6 +4619,7 @@ module Google @quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered) @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) @quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending) + @quantity_ready_for_pickup = args[:quantity_ready_for_pickup] if args.key?(:quantity_ready_for_pickup) @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned) @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped) @return_info = args[:return_info] if args.key?(:return_info) @@ -4829,6 +4841,12 @@ module Google # @return [String] attr_accessor :ship_by_date + # Type of shipment. Indicates whether deliveryDetails or pickupDetails is + # applicable for this shipment. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end @@ -4838,6 +4856,7 @@ module Google @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date) @method_prop = args[:method_prop] if args.key?(:method_prop) @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date) + @type = args[:type] if args.key?(:type) end end @@ -4963,6 +4982,64 @@ module Google end end + # + class OrderPickupDetails + include Google::Apis::Core::Hashable + + # Address of the pickup location where the shipment should be sent. Note that + # recipientName in the address is the name of the business at the pickup + # location. + # Corresponds to the JSON property `address` + # @return [Google::Apis::ContentV2::OrderAddress] + attr_accessor :address + + # Collectors authorized to pick up shipment from the pickup location. + # Corresponds to the JSON property `collectors` + # @return [Array] + attr_accessor :collectors + + # ID of the pickup location. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] if args.key?(:address) + @collectors = args[:collectors] if args.key?(:collectors) + @location_id = args[:location_id] if args.key?(:location_id) + end + end + + # + class OrderPickupDetailsCollector + include Google::Apis::Core::Hashable + + # Name of the person picking up the shipment. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Phone number of the person picking up the shipment. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + # class OrderRefund include Google::Apis::Core::Hashable @@ -10616,6 +10693,12 @@ module Google # @return [String] attr_accessor :predefined_delivery_address + # Identifier of one of the predefined pickup details. Required for orders + # containing line items with shipping type pickup. + # Corresponds to the JSON property `predefinedPickupDetails` + # @return [String] + attr_accessor :predefined_pickup_details + # Deprecated. Ignored if provided. # Corresponds to the JSON property `promotions` # @return [Array] @@ -10652,6 +10735,7 @@ module Google @notification_mode = args[:notification_mode] if args.key?(:notification_mode) @payment_method = args[:payment_method] if args.key?(:payment_method) @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) + @predefined_pickup_details = args[:predefined_pickup_details] if args.key?(:predefined_pickup_details) @promotions = args[:promotions] if args.key?(:promotions) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 39f38e4ff..bfaf3b2ac 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -748,6 +748,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrderPickupDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderPickupDetailsCollector + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OrderRefund class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2798,6 +2810,8 @@ module Google property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::OrderPaymentMethod, decorator: Google::Apis::ContentV2::OrderPaymentMethod::Representation property :payment_status, as: 'paymentStatus' + property :pickup_details, as: 'pickupDetails', class: Google::Apis::ContentV2::OrderPickupDetails, decorator: Google::Apis::ContentV2::OrderPickupDetails::Representation + property :placed_date, as: 'placedDate' collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderLegacyPromotion, decorator: Google::Apis::ContentV2::OrderLegacyPromotion::Representation @@ -2913,6 +2927,7 @@ module Google property :quantity_delivered, as: 'quantityDelivered' property :quantity_ordered, as: 'quantityOrdered' property :quantity_pending, as: 'quantityPending' + property :quantity_ready_for_pickup, as: 'quantityReadyForPickup' property :quantity_returned, as: 'quantityReturned' property :quantity_shipped, as: 'quantityShipped' property :return_info, as: 'returnInfo', class: Google::Apis::ContentV2::OrderLineItemReturnInfo, decorator: Google::Apis::ContentV2::OrderLineItemReturnInfo::Representation @@ -2984,6 +2999,7 @@ module Google property :method_prop, as: 'method', class: Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod, decorator: Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod::Representation property :ship_by_date, as: 'shipByDate' + property :type, as: 'type' end end @@ -3018,6 +3034,25 @@ module Google end end + class OrderPickupDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address', class: Google::Apis::ContentV2::OrderAddress, decorator: Google::Apis::ContentV2::OrderAddress::Representation + + collection :collectors, as: 'collectors', class: Google::Apis::ContentV2::OrderPickupDetailsCollector, decorator: Google::Apis::ContentV2::OrderPickupDetailsCollector::Representation + + property :location_id, as: 'locationId' + end + end + + class OrderPickupDetailsCollector + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :phone_number, as: 'phoneNumber' + end + end + class OrderRefund # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4585,6 +4620,7 @@ module Google property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2::TestOrderPaymentMethod::Representation property :predefined_delivery_address, as: 'predefinedDeliveryAddress' + property :predefined_pickup_details, as: 'predefinedPickupDetails' collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderLegacyPromotion, decorator: Google::Apis::ContentV2::OrderLegacyPromotion::Representation property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 5c25de588..09d7dd65d 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20190822' + REVISION = '20190905' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 49d34b0b2..24100450b 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -3479,6 +3479,11 @@ module Google # @return [String] attr_accessor :payment_status + # Pickup details for shipments of type pickup. + # Corresponds to the JSON property `pickupDetails` + # @return [Google::Apis::ContentV2_1::OrderPickupDetails] + attr_accessor :pickup_details + # The date when the order was placed, in ISO 8601 format. # Corresponds to the JSON property `placedDate` # @return [String] @@ -3537,6 +3542,7 @@ module Google @net_price_amount = args[:net_price_amount] if args.key?(:net_price_amount) @net_tax_amount = args[:net_tax_amount] if args.key?(:net_tax_amount) @payment_status = args[:payment_status] if args.key?(:payment_status) + @pickup_details = args[:pickup_details] if args.key?(:pickup_details) @placed_date = args[:placed_date] if args.key?(:placed_date) @promotions = args[:promotions] if args.key?(:promotions) @refunds = args[:refunds] if args.key?(:refunds) @@ -3848,6 +3854,11 @@ module Google # @return [Fixnum] attr_accessor :quantity_pending + # Number of items ready for pickup. + # Corresponds to the JSON property `quantityReadyForPickup` + # @return [Fixnum] + attr_accessor :quantity_ready_for_pickup + # Number of items returned. # Corresponds to the JSON property `quantityReturned` # @return [Fixnum] @@ -3900,6 +3911,7 @@ module Google @quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered) @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) @quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending) + @quantity_ready_for_pickup = args[:quantity_ready_for_pickup] if args.key?(:quantity_ready_for_pickup) @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned) @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped) @quantity_undeliverable = args[:quantity_undeliverable] if args.key?(:quantity_undeliverable) @@ -4147,6 +4159,12 @@ module Google # @return [String] attr_accessor :ship_by_date + # Type of shipment. Indicates whether deliveryDetails or pickupDetails is + # applicable for this shipment. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end @@ -4156,6 +4174,7 @@ module Google @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date) @method_prop = args[:method_prop] if args.key?(:method_prop) @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date) + @type = args[:type] if args.key?(:type) end end @@ -4224,6 +4243,64 @@ module Google end end + # + class OrderPickupDetails + include Google::Apis::Core::Hashable + + # Address of the pickup location where the shipment should be sent. Note that + # recipientName in the address is the name of the business at the pickup + # location. + # Corresponds to the JSON property `address` + # @return [Google::Apis::ContentV2_1::OrderAddress] + attr_accessor :address + + # Collectors authorized to pick up shipment from the pickup location. + # Corresponds to the JSON property `collectors` + # @return [Array] + attr_accessor :collectors + + # ID of the pickup location. + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] if args.key?(:address) + @collectors = args[:collectors] if args.key?(:collectors) + @location_id = args[:location_id] if args.key?(:location_id) + end + end + + # + class OrderPickupDetailsCollector + include Google::Apis::Core::Hashable + + # Name of the person picking up the shipment. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Phone number of the person picking up the shipment. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + # class OrderPromotion include Google::Apis::Core::Hashable @@ -9417,6 +9494,12 @@ module Google # @return [String] attr_accessor :predefined_email + # Identifier of one of the predefined pickup details. Required for orders + # containing line items with shipping type pickup. + # Corresponds to the JSON property `predefinedPickupDetails` + # @return [String] + attr_accessor :predefined_pickup_details + # Promotions associated with the order. # Corresponds to the JSON property `promotions` # @return [Array] @@ -9448,6 +9531,7 @@ module Google @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address) @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) @predefined_email = args[:predefined_email] if args.key?(:predefined_email) + @predefined_pickup_details = args[:predefined_pickup_details] if args.key?(:predefined_pickup_details) @promotions = args[:promotions] if args.key?(:promotions) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_option = args[:shipping_option] if args.key?(:shipping_option) diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 0e2cade70..f792699d3 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -676,6 +676,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrderPickupDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderPickupDetailsCollector + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OrderPromotion class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2495,6 +2507,8 @@ module Google property :net_tax_amount, as: 'netTaxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation property :payment_status, as: 'paymentStatus' + property :pickup_details, as: 'pickupDetails', class: Google::Apis::ContentV2_1::OrderPickupDetails, decorator: Google::Apis::ContentV2_1::OrderPickupDetails::Representation + property :placed_date, as: 'placedDate' collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::OrderPromotion, decorator: Google::Apis::ContentV2_1::OrderPromotion::Representation @@ -2592,6 +2606,7 @@ module Google property :quantity_delivered, as: 'quantityDelivered' property :quantity_ordered, as: 'quantityOrdered' property :quantity_pending, as: 'quantityPending' + property :quantity_ready_for_pickup, as: 'quantityReadyForPickup' property :quantity_returned, as: 'quantityReturned' property :quantity_shipped, as: 'quantityShipped' property :quantity_undeliverable, as: 'quantityUndeliverable' @@ -2674,6 +2689,7 @@ module Google property :method_prop, as: 'method', class: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod, decorator: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod::Representation property :ship_by_date, as: 'shipByDate' + property :type, as: 'type' end end @@ -2695,6 +2711,25 @@ module Google end end + class OrderPickupDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address', class: Google::Apis::ContentV2_1::OrderAddress, decorator: Google::Apis::ContentV2_1::OrderAddress::Representation + + collection :collectors, as: 'collectors', class: Google::Apis::ContentV2_1::OrderPickupDetailsCollector, decorator: Google::Apis::ContentV2_1::OrderPickupDetailsCollector::Representation + + property :location_id, as: 'locationId' + end + end + + class OrderPickupDetailsCollector + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :phone_number, as: 'phoneNumber' + end + end + class OrderPromotion # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4135,6 +4170,7 @@ module Google property :predefined_billing_address, as: 'predefinedBillingAddress' property :predefined_delivery_address, as: 'predefinedDeliveryAddress' property :predefined_email, as: 'predefinedEmail' + property :predefined_pickup_details, as: 'predefinedPickupDetails' collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::OrderPromotion, decorator: Google::Apis::ContentV2_1::OrderPromotion::Representation property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation diff --git a/generated/google/apis/driveactivity_v2.rb b/generated/google/apis/driveactivity_v2.rb index 84c232477..9380fd70d 100644 --- a/generated/google/apis/driveactivity_v2.rb +++ b/generated/google/apis/driveactivity_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/activity/ module DriveactivityV2 VERSION = 'V2' - REVISION = '20190824' + REVISION = '20190907' # View and add to the activity record of files in your Google Drive AUTH_DRIVE_ACTIVITY = 'https://www.googleapis.com/auth/drive.activity' diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 816a732e1..5922c98ef 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20190905' + REVISION = '20190910' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 35751860a..c9426d34d 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -2079,12 +2079,7 @@ module Google # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. + # Deprecated. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index bfcde4405..9c8ccecf7 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -221,11 +221,9 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. + # Acceptable values are 0, 1, and 3. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -619,11 +617,9 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. + # Acceptable values are 0, 1, and 3. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/servicebroker_v1.rb b/generated/google/apis/servicebroker_v1.rb index 419090952..649fe9634 100644 --- a/generated/google/apis/servicebroker_v1.rb +++ b/generated/google/apis/servicebroker_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1 VERSION = 'V1' - REVISION = '20190802' + REVISION = '20190909' # 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/servicebroker_v1/classes.rb b/generated/google/apis/servicebroker_v1/classes.rb index 6b246c61d..c3d50f6f0 100644 --- a/generated/google/apis/servicebroker_v1/classes.rb +++ b/generated/google/apis/servicebroker_v1/classes.rb @@ -130,7 +130,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/servicebroker_v1/service.rb b/generated/google/apis/servicebroker_v1/service.rb index 4eb74ff88..7e8e833f4 100644 --- a/generated/google/apis/servicebroker_v1/service.rb +++ b/generated/google/apis/servicebroker_v1/service.rb @@ -57,9 +57,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/servicebroker_v1alpha1.rb b/generated/google/apis/servicebroker_v1alpha1.rb index 821e69a44..41aff0f23 100644 --- a/generated/google/apis/servicebroker_v1alpha1.rb +++ b/generated/google/apis/servicebroker_v1alpha1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190802' + REVISION = '20190909' # 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/servicebroker_v1alpha1/classes.rb b/generated/google/apis/servicebroker_v1alpha1/classes.rb index 4da8a3957..477486beb 100644 --- a/generated/google/apis/servicebroker_v1alpha1/classes.rb +++ b/generated/google/apis/servicebroker_v1alpha1/classes.rb @@ -834,7 +834,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/servicebroker_v1alpha1/service.rb b/generated/google/apis/servicebroker_v1alpha1/service.rb index 5fc9e70a4..4ab1604d4 100644 --- a/generated/google/apis/servicebroker_v1alpha1/service.rb +++ b/generated/google/apis/servicebroker_v1alpha1/service.rb @@ -617,9 +617,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/servicebroker_v1beta1.rb b/generated/google/apis/servicebroker_v1beta1.rb index 95c4e0947..6b4d7bf75 100644 --- a/generated/google/apis/servicebroker_v1beta1.rb +++ b/generated/google/apis/servicebroker_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1beta1 VERSION = 'V1beta1' - REVISION = '20190802' + REVISION = '20190909' # 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/servicebroker_v1beta1/classes.rb b/generated/google/apis/servicebroker_v1beta1/classes.rb index 95e81a29f..11d8c304f 100644 --- a/generated/google/apis/servicebroker_v1beta1/classes.rb +++ b/generated/google/apis/servicebroker_v1beta1/classes.rb @@ -951,7 +951,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/servicebroker_v1beta1/service.rb b/generated/google/apis/servicebroker_v1beta1/service.rb index e95be5c3f..ff61af78b 100644 --- a/generated/google/apis/servicebroker_v1beta1/service.rb +++ b/generated/google/apis/servicebroker_v1beta1/service.rb @@ -806,9 +806,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb index e4f73e049..bd677c42a 100644 --- a/generated/google/apis/vision_v1p2beta1.rb +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20190823' + REVISION = '20190907' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p2beta1/classes.rb b/generated/google/apis/vision_v1p2beta1/classes.rb index 63484c765..698c297b1 100644 --- a/generated/google/apis/vision_v1p2beta1/classes.rb +++ b/generated/google/apis/vision_v1p2beta1/classes.rb @@ -2133,11 +2133,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -3121,7 +3121,7 @@ module Google # @return [String] attr_accessor :parent - # Individual async file annotation requests for this batch. + # Required. Individual async file annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -3178,7 +3178,7 @@ module Google # @return [String] attr_accessor :parent - # Individual image annotation requests for this batch. + # Required. Individual image annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -3211,7 +3211,7 @@ module Google # @return [String] attr_accessor :parent - # The list of file annotation requests. Right now we support only one + # Required. The list of file annotation requests. Right now we support only one # AnnotateFileRequest in BatchAnnotateFilesRequest. # Corresponds to the JSON property `requests` # @return [Array] @@ -3264,7 +3264,7 @@ module Google # @return [String] attr_accessor :parent - # Individual image annotation requests for this batch. + # Required. Individual image annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -4440,11 +4440,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -6381,11 +6381,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -6621,8 +6621,9 @@ module Google class GoogleCloudVisionV1p3beta1ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -6641,9 +6642,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -8368,11 +8368,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -8640,8 +8640,9 @@ module Google class GoogleCloudVisionV1p4beta1ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -8660,9 +8661,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -9167,2177 +9167,6 @@ module Google end end - # Response to a single file annotation request. A file may contain one or more - # images, which individually have their own responses. - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - include Google::Apis::Core::Hashable - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::VisionV1p2beta1::Status] - attr_accessor :error - - # The desired input location and metadata. - # Corresponds to the JSON property `inputConfig` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig] - attr_accessor :input_config - - # Individual responses to images found within the file. This field will be - # empty if the `error` field is set. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses - - # This field gives the total number of pages in the file. - # Corresponds to the JSON property `totalPages` - # @return [Fixnum] - attr_accessor :total_pages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error = args[:error] if args.key?(:error) - @input_config = args[:input_config] if args.key?(:input_config) - @responses = args[:responses] if args.key?(:responses) - @total_pages = args[:total_pages] if args.key?(:total_pages) - end - end - - # Response to an image annotation request. - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - 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::GoogleCloudVisionV1p5beta1ImageAnnotationContext] - 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::GoogleCloudVisionV1p5beta1CropHintsAnnotation] - 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::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::GoogleCloudVisionV1p5beta1TextAnnotation] - attr_accessor :full_text_annotation - - # Stores image properties, such as dominant colors. - # Corresponds to the JSON property `imagePropertiesAnnotation` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ImageProperties] - 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, localized object detection has completed successfully. - # This will be sorted descending by confidence score. - # Corresponds to the JSON property `localizedObjectAnnotations` - # @return [Array] - attr_accessor :localized_object_annotations - - # If present, logo detection has completed successfully. - # Corresponds to the JSON property `logoAnnotations` - # @return [Array] - attr_accessor :logo_annotations - - # Results for a product search request. - # Corresponds to the JSON property `productSearchResults` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResults] - attr_accessor :product_search_results - - # 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::GoogleCloudVisionV1p5beta1SafeSearchAnnotation] - 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::GoogleCloudVisionV1p5beta1WebDetection] - 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) - @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) - @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) - @product_search_results = args[:product_search_results] if args.key?(:product_search_results) - @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) - @text_annotations = args[:text_annotations] if args.key?(:text_annotations) - @web_detection = args[:web_detection] if args.key?(:web_detection) - end - end - - # The response for a single offline file annotation request. - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - include Google::Apis::Core::Hashable - - # The desired output location and metadata. - # Corresponds to the JSON property `outputConfig` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig] - 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 GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - 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 - - # Response to an async batch image annotation request. - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - include Google::Apis::Core::Hashable - - # The desired output location and metadata. - # Corresponds to the JSON property `outputConfig` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig] - 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 - - # A list of file annotation responses. - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - include Google::Apis::Core::Hashable - - # The list of file annotation responses, each response corresponding to each - # AnnotateFileRequest in BatchAnnotateFilesRequest. - # 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 - - # Metadata for the batch operations such as the current state. - # This is included in the `metadata` field of the `Operation` returned by the - # `GetOperation` call of the `google::longrunning::Operations` service. - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - include Google::Apis::Core::Hashable - - # The time when the batch request is finished and - # google.longrunning.Operation.done is set to true. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # The current state of the batch operation. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The time when the batch request was submitted to the server. - # Corresponds to the JSON property `submitTime` - # @return [String] - attr_accessor :submit_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end_time = args[:end_time] if args.key?(:end_time) - @state = args[:state] if args.key?(:state) - @submit_time = args[:submit_time] if args.key?(:submit_time) - end - end - - # Logical element on the page. - class GoogleCloudVisionV1p5beta1Block - 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::GoogleCloudVisionV1p5beta1BoundingPoly] - 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 - - # Proto for a key value pair. - # Corresponds to the JSON property `keyValuePair` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1KeyValuePair] - attr_accessor :key_value_pair - - # All UTF-8 text detected in this block. This field is by default not - # returned unless specified in TextDetectionParams.block_filter or - # DocumentParsingParams.block_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # 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::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # A table representation similar to HTML table structure. - # Corresponds to the JSON property `table` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Table] - attr_accessor :table - - 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) - @key_value_pair = args[:key_value_pair] if args.key?(:key_value_pair) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @paragraphs = args[:paragraphs] if args.key?(:paragraphs) - @property = args[:property] if args.key?(:property) - @table = args[:table] if args.key?(:table) - end - end - - # A bounding polygon for the detected image annotation. - class GoogleCloudVisionV1p5beta1BoundingPoly - include Google::Apis::Core::Hashable - - # The bounding polygon normalized vertices. - # Corresponds to the JSON property `normalizedVertices` - # @return [Array] - attr_accessor :normalized_vertices - - # The bounding polygon vertices. - # Corresponds to the JSON property `vertices` - # @return [Array] - attr_accessor :vertices - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) - @vertices = args[:vertices] if args.key?(:vertices) - end - end - - # Color information consists of RGB channels, score, and the fraction of - # the image that the color occupies in the image. - class GoogleCloudVisionV1p5beta1ColorInfo - include Google::Apis::Core::Hashable - - # Represents a color in the RGBA color space. This representation is designed - # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # 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 GoogleCloudVisionV1p5beta1CropHint - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - 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 GoogleCloudVisionV1p5beta1CropHintsAnnotation - include Google::Apis::Core::Hashable - - # Crop hint results. - # Corresponds to the JSON property `cropHints` - # @return [Array] - attr_accessor :crop_hints - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @crop_hints = args[:crop_hints] if args.key?(:crop_hints) - end - end - - # Set of dominant colors and their corresponding scores. - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - 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 GoogleCloudVisionV1p5beta1EntityAnnotation - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - 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 GoogleCloudVisionV1p5beta1FaceAnnotation - 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::GoogleCloudVisionV1p5beta1BoundingPoly] - 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::GoogleCloudVisionV1p5beta1BoundingPoly] - 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 GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - 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::GoogleCloudVisionV1p5beta1Position] - attr_accessor :position - - # Face landmark type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @position = args[:position] if args.key?(:position) - @type = args[:type] if args.key?(:type) - end - end - - # The Google Cloud Storage location where the output will be written to. - class GoogleCloudVisionV1p5beta1GcsDestination - include Google::Apis::Core::Hashable - - # Google Cloud Storage URI prefix where the results will be stored. Results - # will be in JSON format and preceded by its corresponding input URI prefix. - # This field can either represent a gcs file prefix or gcs directory. In - # either case, the uri should be unique because in order to get all of the - # output files, you will need to do a wildcard gcs search on the uri prefix - # you provide. - # Examples: - # * File Prefix: gs://bucket-name/here/filenameprefix The output files - # will be created in gs://bucket-name/here/ and the names of the - # output files will begin with "filenameprefix". - # * Directory Prefix: gs://bucket-name/some/location/ The output files - # will be created in gs://bucket-name/some/location/ and the names of the - # output files could be anything because there was no filename prefix - # specified. - # 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 GoogleCloudVisionV1p5beta1GcsSource - include Google::Apis::Core::Hashable - - # Google Cloud Storage URI for the input file. This must only be a - # Google Cloud Storage object. Wildcards are not currently supported. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri = args[:uri] if args.key?(:uri) - end - end - - # If an image was produced from a file (e.g. a PDF), this message gives - # information about the source of that image. - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - include Google::Apis::Core::Hashable - - # If the file was a PDF or TIFF, this field gives the page number within - # the file used to produce the image. - # Corresponds to the JSON property `pageNumber` - # @return [Fixnum] - attr_accessor :page_number - - # The URI of the file used to produce the image. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @page_number = args[:page_number] if args.key?(:page_number) - @uri = args[:uri] if args.key?(:uri) - end - end - - # Stores image properties, such as dominant colors. - class GoogleCloudVisionV1p5beta1ImageProperties - include Google::Apis::Core::Hashable - - # Set of dominant colors and their corresponding scores. - # Corresponds to the JSON property `dominantColors` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation] - 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 - - # Response message for the `ImportProductSets` method. - # This message is returned by the - # google.longrunning.Operations.GetOperation method in the returned - # google.longrunning.Operation.response field. - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - include Google::Apis::Core::Hashable - - # The list of reference_images that are imported successfully. - # Corresponds to the JSON property `referenceImages` - # @return [Array] - attr_accessor :reference_images - - # The rpc status for each ImportProductSet request, including both successes - # and errors. - # The number of statuses here matches the number of lines in the csv file, - # and statuses[i] stores the success or failure status of processing the i-th - # line of the csv, starting from line 0. - # Corresponds to the JSON property `statuses` - # @return [Array] - attr_accessor :statuses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @reference_images = args[:reference_images] if args.key?(:reference_images) - @statuses = args[:statuses] if args.key?(:statuses) - end - end - - # The desired input location and metadata. - class GoogleCloudVisionV1p5beta1InputConfig - include Google::Apis::Core::Hashable - - # File content, represented as a stream of bytes. - # Note: As with all `bytes` fields, protobuffers use a pure binary - # representation, whereas JSON representations use base64. - # Currently, this field only works for BatchAnnotateFiles requests. It does - # not work for AsyncBatchAnnotateFiles requests. - # Corresponds to the JSON property `content` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :content - - # The Google Cloud Storage location where the input will be read from. - # Corresponds to the JSON property `gcsSource` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsSource] - attr_accessor :gcs_source - - # The type of the file. Currently only "application/pdf", "image/tiff" and - # "image/gif" 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) - @content = args[:content] if args.key?(:content) - @gcs_source = args[:gcs_source] if args.key?(:gcs_source) - @mime_type = args[:mime_type] if args.key?(:mime_type) - end - end - - # Proto for a key value pair. - class GoogleCloudVisionV1p5beta1KeyValuePair - include Google::Apis::Core::Hashable - - # The key string value. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Logical element on the page. - # Corresponds to the JSON property `keyBlock` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :key_block - - # Optional. The translation of key text if the text is not in English. - # Corresponds to the JSON property `normalizedKey` - # @return [String] - attr_accessor :normalized_key - - # Logical element on the page. - # Corresponds to the JSON property `valueBlock` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :value_block - - # Type of the value. Valid strings are the following: - # "generic" - For generic text that is mapped to a value. - # "number" - for numeric types - # "id" - for generic identifiers. - # "currency" - for currency values. - # "date" - for dates. - # "time" - for time and duration values. - # "date_range" - for date ranges. - # "address" - for address values (can be long). - # "person" - for names of people or other personal identifiers. - # "phone" - for phone numbers. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @key_block = args[:key_block] if args.key?(:key_block) - @normalized_key = args[:normalized_key] if args.key?(:normalized_key) - @value_block = args[:value_block] if args.key?(:value_block) - @value_type = args[:value_type] if args.key?(:value_type) - end - end - - # Set of detected objects with bounding boxes. - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # 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 - - # Object ID that should align with EntityAnnotation mid. - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Object name, expressed in its `language_code` language. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Score of the result. 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) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @language_code = args[:language_code] if args.key?(:language_code) - @mid = args[:mid] if args.key?(:mid) - @name = args[:name] if args.key?(:name) - @score = args[:score] if args.key?(:score) - end - end - - # Detected entity location information. - class GoogleCloudVisionV1p5beta1LocationInfo - 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 - - # A vertex represents a 2D point in the image. - # NOTE: the normalized vertex coordinates are relative to the original image - # and range from 0 to 1. - class GoogleCloudVisionV1p5beta1NormalizedVertex - include Google::Apis::Core::Hashable - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Float] - attr_accessor :x - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Float] - attr_accessor :y - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @x = args[:x] if args.key?(:x) - @y = args[:y] if args.key?(:y) - end - end - - # Contains metadata for the BatchAnnotateImages operation. - class GoogleCloudVisionV1p5beta1OperationMetadata - 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 GoogleCloudVisionV1p5beta1OutputConfig - include Google::Apis::Core::Hashable - - # The max number of response protos to put into each output JSON file on - # Google Cloud Storage. - # The valid range is [1, 100]. If not specified, the default value is 20. - # For example, for one pdf file with 100 pages, 100 response protos will - # be generated. If `batch_size` = 20, then 5 json files each - # containing 20 response protos will be written under the prefix - # `gcs_destination`.`uri`. - # Currently, batch_size only applies to GcsDestination, with potential future - # support for other output configurations. - # Corresponds to the JSON property `batchSize` - # @return [Fixnum] - attr_accessor :batch_size - - # The Google Cloud Storage location where the output will be written to. - # Corresponds to the JSON property `gcsDestination` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsDestination] - 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 GoogleCloudVisionV1p5beta1Page - 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 - - # All UTF-8 text detected in this page. This field is by default not - # returned unless specified in TextDetectionParams.page_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - 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) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @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 GoogleCloudVisionV1p5beta1Paragraph - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - 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 - - # All UTF-8 text detected in this paragraph. This field is by default not - # returned unless specified in TextDetectionParams.paragraph_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # List of all 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) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @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 GoogleCloudVisionV1p5beta1Position - 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 Product contains ReferenceImages. - class GoogleCloudVisionV1p5beta1Product - include Google::Apis::Core::Hashable - - # User-provided metadata to be stored with this product. Must be at most 4096 - # characters long. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The user-provided name for this Product. Must not be empty. Must be at most - # 4096 characters long. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The resource name of the product. - # Format is: - # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. - # This field is ignored when creating a product. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The category for the product identified by the reference image. This should - # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories - # "homegoods", "apparel", and "toys" are still supported, but these should - # not be used for new products. - # This field is immutable. - # Corresponds to the JSON property `productCategory` - # @return [String] - attr_accessor :product_category - - # Key-value pairs that can be attached to a product. At query time, - # constraints can be specified based on the product_labels. - # Note that integer values can be provided as strings, e.g. "1199". Only - # strings with integer values can match a range-based restriction which is - # to be supported soon. - # Multiple values can be assigned to the same key. One product may have up to - # 500 product_labels. - # Notice that the total number of distinct product_labels over all products - # in one ProductSet cannot exceed 1M, otherwise the product search pipeline - # will refuse to work for that ProductSet. - # Corresponds to the JSON property `productLabels` - # @return [Array] - attr_accessor :product_labels - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @display_name = args[:display_name] if args.key?(:display_name) - @name = args[:name] if args.key?(:name) - @product_category = args[:product_category] if args.key?(:product_category) - @product_labels = args[:product_labels] if args.key?(:product_labels) - end - end - - # A product label represented as a key-value pair. - class GoogleCloudVisionV1p5beta1ProductKeyValue - include Google::Apis::Core::Hashable - - # The key of the label attached to the product. Cannot be empty and cannot - # exceed 128 bytes. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # The value of the label attached to the product. Cannot be empty and - # cannot exceed 128 bytes. - # 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) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - - # Results for a product search request. - class GoogleCloudVisionV1p5beta1ProductSearchResults - include Google::Apis::Core::Hashable - - # Timestamp of the index which provided these results. Products added to the - # product set and products removed from the product set after this time are - # not reflected in the current results. - # Corresponds to the JSON property `indexTime` - # @return [String] - attr_accessor :index_time - - # List of results grouped by products detected in the query image. Each entry - # corresponds to one bounding polygon in the query image, and contains the - # matching products specific to that region. There may be duplicate product - # matches in the union of all the per-product results. - # Corresponds to the JSON property `productGroupedResults` - # @return [Array] - attr_accessor :product_grouped_results - - # List of results, one for each product match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @index_time = args[:index_time] if args.key?(:index_time) - @product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results) - @results = args[:results] if args.key?(:results) - end - end - - # Information about the products similar to a single product in a query - # image. - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # List of generic predictions for the object in the bounding box. - # Corresponds to the JSON property `objectAnnotations` - # @return [Array] - attr_accessor :object_annotations - - # List of results, one for each product match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @object_annotations = args[:object_annotations] if args.key?(:object_annotations) - @results = args[:results] if args.key?(:results) - end - end - - # Prediction for what the object in the bounding box is. - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - include Google::Apis::Core::Hashable - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Object ID that should align with EntityAnnotation mid. - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Object name, expressed in its `language_code` language. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Score of the result. 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) - @language_code = args[:language_code] if args.key?(:language_code) - @mid = args[:mid] if args.key?(:mid) - @name = args[:name] if args.key?(:name) - @score = args[:score] if args.key?(:score) - end - end - - # Information about a product. - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - include Google::Apis::Core::Hashable - - # The resource name of the image from the product that is the closest match - # to the query. - # Corresponds to the JSON property `image` - # @return [String] - attr_accessor :image - - # A Product contains ReferenceImages. - # Corresponds to the JSON property `product` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Product] - attr_accessor :product - - # A confidence level on the match, ranging from 0 (no confidence) to - # 1 (full confidence). - # 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) - @image = args[:image] if args.key?(:image) - @product = args[:product] if args.key?(:product) - @score = args[:score] if args.key?(:score) - end - end - - # A `Property` consists of a user-supplied name/value pair. - class GoogleCloudVisionV1p5beta1Property - 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 - - # A `ReferenceImage` represents a product image and its associated metadata, - # such as bounding boxes. - class GoogleCloudVisionV1p5beta1ReferenceImage - include Google::Apis::Core::Hashable - - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of - # interest. At most 10 bounding polygons will be used. - # The provided shape is converted into a non-rotated rectangle. Once - # converted, the small edge of the rectangle must be greater than or equal - # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 - # is not). - # Corresponds to the JSON property `boundingPolys` - # @return [Array] - attr_accessor :bounding_polys - - # The resource name of the reference image. - # Format is: - # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/ - # IMAGE_ID`. - # This field is ignored when creating a reference image. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The Google Cloud Storage URI of the reference image. - # The URI must start with `gs://`. - # Required. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys) - @name = args[:name] if args.key?(:name) - @uri = args[:uri] if args.key?(:uri) - end - end - - # Set of features pertaining to the image, computed by computer vision - # methods over safe-search verticals (for example, adult, spoof, medical, - # violence). - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - 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 - - # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `adultConfidence` - # @return [Float] - attr_accessor :adult_confidence - - # Likelihood that this is a medical image. - # Corresponds to the JSON property `medical` - # @return [String] - attr_accessor :medical - - # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `medicalConfidence` - # @return [Float] - attr_accessor :medical_confidence - - # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `nsfwConfidence` - # @return [Float] - attr_accessor :nsfw_confidence - - # 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 - - # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `racyConfidence` - # @return [Float] - attr_accessor :racy_confidence - - # 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 - - # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `spoofConfidence` - # @return [Float] - attr_accessor :spoof_confidence - - # Likelihood that this image contains violent content. - # Corresponds to the JSON property `violence` - # @return [String] - attr_accessor :violence - - # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `violenceConfidence` - # @return [Float] - attr_accessor :violence_confidence - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adult = args[:adult] if args.key?(:adult) - @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence) - @medical = args[:medical] if args.key?(:medical) - @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence) - @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence) - @racy = args[:racy] if args.key?(:racy) - @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence) - @spoof = args[:spoof] if args.key?(:spoof) - @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence) - @violence = args[:violence] if args.key?(:violence) - @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence) - end - end - - # A single symbol representation. - class GoogleCloudVisionV1p5beta1Symbol - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - 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::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - 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 - - # A table representation similar to HTML table structure. - class GoogleCloudVisionV1p5beta1Table - include Google::Apis::Core::Hashable - - # Body rows of the table - # Corresponds to the JSON property `bodyRows` - # @return [Array] - attr_accessor :body_rows - - # Header rows of the table - # Corresponds to the JSON property `headerRows` - # @return [Array] - attr_accessor :header_rows - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @body_rows = args[:body_rows] if args.key?(:body_rows) - @header_rows = args[:header_rows] if args.key?(:header_rows) - end - end - - # A cell representation inside of tables. - class GoogleCloudVisionV1p5beta1TableTableCell - include Google::Apis::Core::Hashable - - # How many columns this cell spans. - # Corresponds to the JSON property `colSpan` - # @return [Fixnum] - attr_accessor :col_span - - # How many rows this cell spans. - # Corresponds to the JSON property `rowSpan` - # @return [Fixnum] - attr_accessor :row_span - - # The merged text value of this cell, omitting any deeper structural - # information unlike `text_block`. This is useful for simple cells. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - # Logical element on the page. - # Corresponds to the JSON property `textBlock` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :text_block - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @col_span = args[:col_span] if args.key?(:col_span) - @row_span = args[:row_span] if args.key?(:row_span) - @text = args[:text] if args.key?(:text) - @text_block = args[:text_block] if args.key?(:text_block) - end - end - - # A row of table cells. - class GoogleCloudVisionV1p5beta1TableTableRow - include Google::Apis::Core::Hashable - - # Cells that make up this row. - # Corresponds to the JSON property `cells` - # @return [Array] - attr_accessor :cells - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cells = args[:cells] if args.key?(:cells) - end - end - - # 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 GoogleCloudVisionV1p5beta1TextAnnotation - 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 GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - 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 GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - 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 GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - include Google::Apis::Core::Hashable - - # Detected start or end of a structural component. - # Corresponds to the JSON property `detectedBreak` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak] - 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 GoogleCloudVisionV1p5beta1Vertex - 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 GoogleCloudVisionV1p5beta1WebDetection - include Google::Apis::Core::Hashable - - # The service's best guess as to the topic of the request image. - # Inferred from similar images on the open web. - # Corresponds to the JSON property `bestGuessLabels` - # @return [Array] - attr_accessor :best_guess_labels - - # Fully matching images from the Internet. - # Can include resized copies of the query image. - # Corresponds to the JSON property `fullMatchingImages` - # @return [Array] - attr_accessor :full_matching_images - - # Web pages containing the matching images from the Internet. - # Corresponds to the JSON property `pagesWithMatchingImages` - # @return [Array] - attr_accessor :pages_with_matching_images - - # Partial matching images from the Internet. - # Those images are similar enough to share some key-point features. For - # example an original image will likely have partial matching for its crops. - # Corresponds to the JSON property `partialMatchingImages` - # @return [Array] - attr_accessor :partial_matching_images - - # The visually similar image results. - # Corresponds to the JSON property `visuallySimilarImages` - # @return [Array] - attr_accessor :visually_similar_images - - # Deduced entities from similar images on the Internet. - # Corresponds to the JSON property `webEntities` - # @return [Array] - attr_accessor :web_entities - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) - @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) - @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) - @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) - @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) - @web_entities = args[:web_entities] if args.key?(:web_entities) - end - end - - # Entity deduced from similar images on the Internet. - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - 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 GoogleCloudVisionV1p5beta1WebDetectionWebImage - 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 GoogleCloudVisionV1p5beta1WebDetectionWebLabel - 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 GoogleCloudVisionV1p5beta1WebDetectionWebPage - 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 GoogleCloudVisionV1p5beta1Word - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - 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 - - # All UTF-8 text detected in this word. This field is by default not - # returned unless specified in TextDetectionParams.word_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - 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) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @property = args[:property] if args.key?(:property) - @symbols = args[:symbols] if args.key?(:symbols) - end - end - # Information about the products similar to a single product in a query # image. class GroupedResult @@ -11969,11 +9798,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -12078,8 +9907,9 @@ module Google class ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -12098,9 +9928,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri diff --git a/generated/google/apis/vision_v1p2beta1/representations.rb b/generated/google/apis/vision_v1p2beta1/representations.rb index 2a49757a4..f8ccef9b3 100644 --- a/generated/google/apis/vision_v1p2beta1/representations.rb +++ b/generated/google/apis/vision_v1p2beta1/representations.rb @@ -1408,336 +1408,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Block - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BoundingPoly - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ColorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1CropHint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1EntityAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1FaceAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1GcsDestination - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1GcsSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImageProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1InputConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1KeyValuePair - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1LocationInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1NormalizedVertex - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1OperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1OutputConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Page - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Paragraph - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Position - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Product - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductKeyValue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResults - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Property - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ReferenceImage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Symbol - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Table - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TableTableCell - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TableTableRow - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Vertex - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetection - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Word - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GroupedResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4455,609 +4125,6 @@ module Google end end - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation - - property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig::Representation - - collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse::Representation - - property :total_pages, as: 'totalPages' - end - end - - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :context, as: 'context', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ImageAnnotationContext::Representation - - property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1CropHintsAnnotation::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::GoogleCloudVisionV1p5beta1FaceAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1FaceAnnotation::Representation - - property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotation::Representation - - property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ImageProperties, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ImageProperties::Representation - - collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation::Representation - - collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - property :product_search_results, as: 'productSearchResults', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResults, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResults::Representation - - property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation::Representation - - collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetection, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetection::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateFileResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateFileResponse::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - property :state, as: 'state' - property :submit_time, as: 'submitTime' - end - end - - class GoogleCloudVisionV1p5beta1Block - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :block_type, as: 'blockType' - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :key_value_pair, as: 'keyValuePair', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1KeyValuePair, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1KeyValuePair::Representation - - property :merged_text, as: 'mergedText' - collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Paragraph, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Paragraph::Representation - - property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :table, as: 'table', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Table, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Table::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BoundingPoly - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1NormalizedVertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1NormalizedVertex::Representation - - collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Vertex, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Vertex::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ColorInfo - # @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 GoogleCloudVisionV1p5beta1CropHint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :importance_fraction, as: 'importanceFraction' - end - end - - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1CropHint, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1CropHint::Representation - - end - end - - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :colors, as: 'colors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ColorInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ColorInfo::Representation - - end - end - - class GoogleCloudVisionV1p5beta1EntityAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :description, as: 'description' - property :locale, as: 'locale' - collection :locations, as: 'locations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1LocationInfo, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1LocationInfo::Representation - - property :mid, as: 'mid' - collection :properties, as: 'properties', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Property, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Property::Representation - - property :score, as: 'score' - property :topicality, as: 'topicality' - end - end - - class GoogleCloudVisionV1p5beta1FaceAnnotation - # @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::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :detection_confidence, as: 'detectionConfidence' - property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :headwear_likelihood, as: 'headwearLikelihood' - property :joy_likelihood, as: 'joyLikelihood' - property :landmarking_confidence, as: 'landmarkingConfidence' - collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark::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 GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Position, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Position::Representation - - property :type, as: 'type' - end - end - - class GoogleCloudVisionV1p5beta1GcsDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1GcsSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :page_number, as: 'pageNumber' - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1ImageProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :reference_images, as: 'referenceImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ReferenceImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ReferenceImage::Representation - - collection :statuses, as: 'statuses', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation - - end - end - - class GoogleCloudVisionV1p5beta1InputConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, :base64 => true, as: 'content' - property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsSource, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsSource::Representation - - property :mime_type, as: 'mimeType' - end - end - - class GoogleCloudVisionV1p5beta1KeyValuePair - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :key_block, as: 'keyBlock', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block::Representation - - property :normalized_key, as: 'normalizedKey' - property :value_block, as: 'valueBlock', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block::Representation - - property :value_type, as: 'valueType' - end - end - - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :language_code, as: 'languageCode' - property :mid, as: 'mid' - property :name, as: 'name' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1LocationInfo - # @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 GoogleCloudVisionV1p5beta1NormalizedVertex - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - end - end - - class GoogleCloudVisionV1p5beta1OperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :state, as: 'state' - property :update_time, as: 'updateTime' - end - end - - class GoogleCloudVisionV1p5beta1OutputConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :batch_size, as: 'batchSize' - property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsDestination, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsDestination::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Page - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block::Representation - - property :confidence, as: 'confidence' - property :height, as: 'height' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :width, as: 'width' - end - end - - class GoogleCloudVisionV1p5beta1Paragraph - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - collection :words, as: 'words', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Word, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Word::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Position - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - property :z, as: 'z' - end - end - - class GoogleCloudVisionV1p5beta1Product - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :display_name, as: 'displayName' - property :name, as: 'name' - property :product_category, as: 'productCategory' - collection :product_labels, as: 'productLabels', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductKeyValue, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductKeyValue::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductKeyValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResults - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :index_time, as: 'indexTime' - collection :product_grouped_results, as: 'productGroupedResults', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult::Representation - - collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation::Representation - - collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :language_code, as: 'languageCode' - property :mid, as: 'mid' - property :name, as: 'name' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :image, as: 'image' - property :product, as: 'product', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Product, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Product::Representation - - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1Property - # @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 GoogleCloudVisionV1p5beta1ReferenceImage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bounding_polys, as: 'boundingPolys', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :name, as: 'name' - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adult, as: 'adult' - property :adult_confidence, as: 'adultConfidence' - property :medical, as: 'medical' - property :medical_confidence, as: 'medicalConfidence' - property :nsfw_confidence, as: 'nsfwConfidence' - property :racy, as: 'racy' - property :racy_confidence, as: 'racyConfidence' - property :spoof, as: 'spoof' - property :spoof_confidence, as: 'spoofConfidence' - property :violence, as: 'violence' - property :violence_confidence, as: 'violenceConfidence' - end - end - - class GoogleCloudVisionV1p5beta1Symbol - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :text, as: 'text' - end - end - - class GoogleCloudVisionV1p5beta1Table - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :body_rows, as: 'bodyRows', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableRow, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableRow::Representation - - collection :header_rows, as: 'headerRows', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableRow, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableRow::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TableTableCell - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :col_span, as: 'colSpan' - property :row_span, as: 'rowSpan' - property :text, as: 'text' - property :text_block, as: 'textBlock', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TableTableRow - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :cells, as: 'cells', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableCell, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableCell::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :pages, as: 'pages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Page, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Page::Representation - - property :text, as: 'text' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :is_prefix, as: 'isPrefix' - property :type, as: 'type' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :language_code, as: 'languageCode' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak::Representation - - collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Vertex - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - end - end - - class GoogleCloudVisionV1p5beta1WebDetection - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel::Representation - - collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebPage::Representation - - collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity::Representation - - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :entity_id, as: 'entityId' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :score, as: 'score' - property :url, as: 'url' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :label, as: 'label' - property :language_code, as: 'languageCode' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - property :page_title, as: 'pageTitle' - collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - property :score, as: 'score' - property :url, as: 'url' - end - end - - class GoogleCloudVisionV1p5beta1Word - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Symbol, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Symbol::Representation - - end - end - class GroupedResult # @private class Representation < Google::Apis::Core::JsonRepresentation