Autogenerated update (2019-08-27)

Update:
- cloudbuild_v1
- cloudbuild_v1alpha1
- libraryagent_v1
- vision_v1
- vision_v1p1beta1
This commit is contained in:
Google APIs 2019-08-27 00:38:06 +00:00
parent f8afdb6c6f
commit 014f6c738e
14 changed files with 1080 additions and 16 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20190629'
REVISION = '20190824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -649,6 +649,11 @@ module Google
# @return [Array<String>]
attr_accessor :included_files
# User assigned name of the trigger. Must be unique within the project.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
@ -679,6 +684,7 @@ module Google
@id = args[:id] if args.key?(:id)
@ignored_files = args[:ignored_files] if args.key?(:ignored_files)
@included_files = args[:included_files] if args.key?(:included_files)
@name = args[:name] if args.key?(:name)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@tags = args[:tags] if args.key?(:tags)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@ -1029,14 +1035,14 @@ module Google
class PushFilter
include Google::Apis::Core::Hashable
# Regexes of branches to match.
# Regexes matching branches to build.
# The syntax of the regular expressions accepted is the syntax accepted by
# RE2 and described at https://github.com/google/re2/wiki/Syntax
# Corresponds to the JSON property `branch`
# @return [String]
attr_accessor :branch
# Regexes of tags to match.
# Regexes matching tags to build.
# The syntax of the regular expressions accepted is the syntax accepted by
# RE2 and described at https://github.com/google/re2/wiki/Syntax
# Corresponds to the JSON property `tag`
@ -1058,7 +1064,9 @@ module Google
class RepoSource
include Google::Apis::Core::Hashable
# Name of the branch to build.
# Regex matching branches to build.
# The syntax of the regular expressions accepted is the syntax accepted by
# RE2 and described at https://github.com/google/re2/wiki/Syntax
# Corresponds to the JSON property `branchName`
# @return [String]
attr_accessor :branch_name
@ -1087,7 +1095,9 @@ module Google
# @return [String]
attr_accessor :repo_name
# Name of the tag to build.
# Regex matching tags to build.
# The syntax of the regular expressions accepted is the syntax accepted by
# RE2 and described at https://github.com/google/re2/wiki/Syntax
# Corresponds to the JSON property `tagName`
# @return [String]
attr_accessor :tag_name

View File

@ -334,6 +334,7 @@ module Google
property :id, as: 'id'
collection :ignored_files, as: 'ignoredFiles'
collection :included_files, as: 'includedFiles'
property :name, as: 'name'
hash :substitutions, as: 'substitutions'
collection :tags, as: 'tags'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha1
VERSION = 'V1alpha1'
REVISION = '20190422'
REVISION = '20190824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -727,7 +727,9 @@ module Google
class RepoSource
include Google::Apis::Core::Hashable
# Name of the branch to build.
# Regex matching branches to build.
# The syntax of the regular expressions accepted is the syntax accepted by
# RE2 and described at https://github.com/google/re2/wiki/Syntax
# Corresponds to the JSON property `branchName`
# @return [String]
attr_accessor :branch_name
@ -756,7 +758,9 @@ module Google
# @return [String]
attr_accessor :repo_name
# Name of the tag to build.
# Regex matching tags to build.
# The syntax of the regular expressions accepted is the syntax accepted by
# RE2 and described at https://github.com/google/re2/wiki/Syntax
# Corresponds to the JSON property `tagName`
# @return [String]
attr_accessor :tag_name

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/docs/quota
module LibraryagentV1
VERSION = 'V1'
REVISION = '20190105'
REVISION = '20190824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -49,7 +49,7 @@ module Google
# Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
# @param [String] name
# The name of the shelf to retrieve.
# Required. The name of the shelf to retrieve.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -120,7 +120,7 @@ module Google
# Returns quota exceeded error if the amount of books borrowed exceeds
# allocation quota in any dimensions.
# @param [String] name
# The name of the book to borrow.
# Required. The name of the book to borrow.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -150,7 +150,7 @@ module Google
# Gets a book. Returns NOT_FOUND if the book does not exist.
# @param [String] name
# The name of the book to retrieve.
# Required. The name of the book to retrieve.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -182,7 +182,7 @@ module Google
# created books will not necessarily be added to the end of this list.
# Returns NOT_FOUND if the shelf does not exist.
# @param [String] parent
# The name of the shelf whose books we'd like to list.
# Required. The name of the shelf whose books we'd like to list.
# @param [Fixnum] page_size
# Requested page size. Server may return fewer books than requested.
# If unspecified, server will pick an appropriate default.
@ -225,7 +225,7 @@ module Google
# Returns error if the book does not belong to the library
# or the users didn't borrow before.
# @param [String] name
# The name of the book to return.
# Required. The name of the book to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1
VERSION = 'V1'
REVISION = '20190809'
REVISION = '20190823'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -94,6 +94,16 @@ module Google
class AnnotateFileResponse
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::VisionV1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::InputConfig]
@ -116,6 +126,7 @@ module Google
# 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)
@ -1387,6 +1398,16 @@ module Google
class GoogleCloudVisionV1p1beta1AnnotateFileResponse
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::VisionV1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig]
@ -1409,6 +1430,7 @@ module Google
# 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)
@ -2604,6 +2626,11 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult>]
@ -2616,10 +2643,50 @@ module Google
# 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 GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p1beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -3135,6 +3202,16 @@ module Google
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
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::VisionV1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
@ -3157,6 +3234,7 @@ module Google
# 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)
@ -4352,6 +4430,11 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult>]
@ -4364,10 +4447,50 @@ module Google
# 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 GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p2beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -4883,6 +5006,16 @@ module Google
class GoogleCloudVisionV1p3beta1AnnotateFileResponse
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::VisionV1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig]
@ -4905,6 +5038,7 @@ module Google
# 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)
@ -6166,6 +6300,11 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult>]
@ -6178,10 +6317,50 @@ module Google
# 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 GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p3beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -6741,6 +6920,16 @@ module Google
class GoogleCloudVisionV1p4beta1AnnotateFileResponse
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::VisionV1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig]
@ -6763,6 +6952,7 @@ module Google
# 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)
@ -8097,6 +8287,11 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
@ -8109,10 +8304,50 @@ module Google
# 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 GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p4beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -8746,6 +8981,16 @@ module Google
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::VisionV1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig]
@ -8768,6 +9013,7 @@ module Google
# 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)
@ -10155,6 +10401,11 @@ module Google
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
@ -10167,10 +10418,50 @@ module Google
# 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
@ -10866,6 +11157,11 @@ module Google
# @return [Google::Apis::VisionV1::BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1::ObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1::Result>]
@ -10878,6 +11174,7 @@ module Google
# 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
@ -11567,6 +11864,45 @@ module Google
end
end
# Prediction for what the object in the bounding box is.
class ObjectAnnotation
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
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
@ -12010,6 +12346,27 @@ module Google
end
end
# Config to control which ProductSet contains the Products to be deleted.
class ProductSetPurgeConfig
include Google::Apis::Core::Hashable
# The ProductSet that contains the Products to delete. If a Product is a
# member of product_set_id in addition to other ProductSets, the Product will
# still be deleted.
# Corresponds to the JSON property `productSetId`
# @return [String]
attr_accessor :product_set_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@product_set_id = args[:product_set_id] if args.key?(:product_set_id)
end
end
# A `Property` consists of a user-supplied name/value pair.
class Property
include Google::Apis::Core::Hashable
@ -12041,6 +12398,41 @@ module Google
end
end
# Request message for the `PurgeProducts` method.
class PurgeProductsRequest
include Google::Apis::Core::Hashable
# If delete_orphan_products is true, all Products that are not in any
# ProductSet will be deleted.
# Corresponds to the JSON property `deleteOrphanProducts`
# @return [Boolean]
attr_accessor :delete_orphan_products
alias_method :delete_orphan_products?, :delete_orphan_products
# The default value is false. Override this value to true to actually perform
# the purge.
# Corresponds to the JSON property `force`
# @return [Boolean]
attr_accessor :force
alias_method :force?, :force
# Config to control which ProductSet contains the Products to be deleted.
# Corresponds to the JSON property `productSetPurgeConfig`
# @return [Google::Apis::VisionV1::ProductSetPurgeConfig]
attr_accessor :product_set_purge_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@delete_orphan_products = args[:delete_orphan_products] if args.key?(:delete_orphan_products)
@force = args[:force] if args.key?(:force)
@product_set_purge_config = args[:product_set_purge_config] if args.key?(:product_set_purge_config)
end
end
# A `ReferenceImage` represents a product image and its associated metadata,
# such as bounding boxes.
class ReferenceImage

View File

@ -400,6 +400,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -670,6 +676,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p2beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -952,6 +964,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p3beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1258,6 +1276,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1570,6 +1594,12 @@ module Google
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
@ -1822,6 +1852,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1882,12 +1918,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ProductSetPurgeConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Property
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PurgeProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReferenceImage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2007,6 +2055,8 @@ module Google
class AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::InputConfig, decorator: Google::Apis::VisionV1::InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::AnnotateImageResponse, decorator: Google::Apis::VisionV1::AnnotateImageResponse::Representation
@ -2335,6 +2385,8 @@ module Google
class GoogleCloudVisionV1p1beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse::Representation
@ -2661,11 +2713,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p1beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2823,6 +2887,8 @@ module Google
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation
@ -3149,11 +3215,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p2beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3311,6 +3389,8 @@ module Google
class GoogleCloudVisionV1p3beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse::Representation
@ -3656,11 +3736,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p3beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3828,6 +3920,8 @@ module Google
class GoogleCloudVisionV1p4beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateImageResponse::Representation
@ -4200,11 +4294,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p4beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4387,6 +4493,8 @@ module Google
class GoogleCloudVisionV1p5beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse::Representation
@ -4768,11 +4876,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::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
@ -4978,6 +5098,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::ObjectAnnotation, decorator: Google::Apis::VisionV1::ObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1::Result, decorator: Google::Apis::VisionV1::Result::Representation
end
@ -5183,6 +5305,16 @@ module Google
end
end
class ObjectAnnotation
# @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 Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5293,6 +5425,13 @@ module Google
end
end
class ProductSetPurgeConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :product_set_id, as: 'productSetId'
end
end
class Property
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5302,6 +5441,16 @@ module Google
end
end
class PurgeProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delete_orphan_products, as: 'deleteOrphanProducts'
property :force, as: 'force'
property :product_set_purge_config, as: 'productSetPurgeConfig', class: Google::Apis::VisionV1::ProductSetPurgeConfig, decorator: Google::Apis::VisionV1::ProductSetPurgeConfig::Representation
end
end
class ReferenceImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1320,6 +1320,58 @@ module Google
execute_or_queue_command(command, &block)
end
# Asynchronous API to delete all Products in a ProductSet or all Products
# that are in no ProductSet.
# If a Product is a member of the specified ProductSet in addition to other
# ProductSets, the Product will still be deleted.
# It is recommended to not delete the specified ProductSet until after this
# operation has completed. It is also recommended to not add any of the
# Products involved in the batch delete to a new ProductSet while this
# operation is running because those Products may still end up deleted.
# It's not possible to undo the PurgeProducts operation. Therefore, it is
# recommended to keep the csv files used in ImportProductSets (if that was
# how you originally built the Product Set) before starting PurgeProducts, in
# case you need to re-import the data after deletion.
# If the plan is to purge all of the Products from a ProductSet and then
# re-use the empty ProductSet to re-import new Products into the empty
# ProductSet, you must wait until the PurgeProducts operation has finished
# for that ProductSet.
# The google.longrunning.Operation API can be used to keep track of the
# progress and results of the request.
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
# @param [String] parent
# The project and location in which the Products should be deleted.
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
# @param [Google::Apis::VisionV1::PurgeProductsRequest] purge_products_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::VisionV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def purge_products(parent, purge_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/products:purge', options)
command.request_representation = Google::Apis::VisionV1::PurgeProductsRequest::Representation
command.request_object = purge_products_request_object
command.response_representation = Google::Apis::VisionV1::Operation::Representation
command.response_class = Google::Apis::VisionV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates and returns a new ReferenceImage resource.
# The `bounding_poly` field is optional. If `bounding_poly` is not specified,
# the system will try to detect regions of interest in the image that are

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20190809'
REVISION = '20190823'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,6 +27,16 @@ module Google
class AnnotateFileResponse
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::VisionV1p1beta1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1p1beta1::InputConfig]
@ -49,6 +59,7 @@ module Google
# 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)
@ -1050,6 +1061,16 @@ module Google
class GoogleCloudVisionV1p1beta1AnnotateFileResponse
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::VisionV1p1beta1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig]
@ -1072,6 +1093,7 @@ module Google
# 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)
@ -2775,6 +2797,11 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult>]
@ -2787,10 +2814,50 @@ module Google
# 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 GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p1beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -3326,6 +3393,16 @@ module Google
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
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::VisionV1p1beta1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig]
@ -3348,6 +3425,7 @@ module Google
# 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)
@ -4543,6 +4621,11 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult>]
@ -4555,10 +4638,50 @@ module Google
# 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 GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p2beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -5074,6 +5197,16 @@ module Google
class GoogleCloudVisionV1p3beta1AnnotateFileResponse
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::VisionV1p1beta1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1InputConfig]
@ -5096,6 +5229,7 @@ module Google
# 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)
@ -6357,6 +6491,11 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult>]
@ -6369,10 +6508,50 @@ module Google
# 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 GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p3beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -6932,6 +7111,16 @@ module Google
class GoogleCloudVisionV1p4beta1AnnotateFileResponse
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::VisionV1p1beta1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1InputConfig]
@ -6954,6 +7143,7 @@ module Google
# 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)
@ -8288,6 +8478,11 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
@ -8300,10 +8495,50 @@ module Google
# 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 GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
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 GoogleCloudVisionV1p4beta1ProductSearchResultsResult
include Google::Apis::Core::Hashable
@ -8937,6 +9172,16 @@ module Google
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::VisionV1p1beta1::Status]
attr_accessor :error
# The desired input location and metadata.
# Corresponds to the JSON property `inputConfig`
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1InputConfig]
@ -8959,6 +9204,7 @@ module Google
# 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)
@ -10346,6 +10592,11 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
@ -10358,10 +10609,50 @@ module Google
# 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
@ -11057,6 +11348,11 @@ module Google
# @return [Google::Apis::VisionV1p1beta1::BoundingPoly]
attr_accessor :bounding_poly
# List of generic predictions for the object in the bounding box.
# Corresponds to the JSON property `objectAnnotations`
# @return [Array<Google::Apis::VisionV1p1beta1::ObjectAnnotation>]
attr_accessor :object_annotations
# List of results, one for each product match.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::VisionV1p1beta1::Result>]
@ -11069,6 +11365,7 @@ module Google
# 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
@ -11366,6 +11663,45 @@ module Google
end
end
# Prediction for what the object in the bounding box is.
class ObjectAnnotation
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
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation

View File

@ -418,6 +418,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p1beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -694,6 +700,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p2beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -976,6 +988,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p3beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1282,6 +1300,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1594,6 +1618,12 @@ module Google
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
@ -1774,6 +1804,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ObjectAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1915,6 +1951,8 @@ module Google
class AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::InputConfig, decorator: Google::Apis::VisionV1p1beta1::InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::AnnotateImageResponse::Representation
@ -2156,6 +2194,8 @@ module Google
class GoogleCloudVisionV1p1beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse::Representation
@ -2631,11 +2671,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p1beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2800,6 +2852,8 @@ module Google
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation
@ -3126,11 +3180,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p2beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3288,6 +3354,8 @@ module Google
class GoogleCloudVisionV1p3beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse::Representation
@ -3633,11 +3701,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p3beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3805,6 +3885,8 @@ module Google
class GoogleCloudVisionV1p4beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1AnnotateImageResponse::Representation
@ -4177,11 +4259,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult::Representation
end
end
class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
# @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 GoogleCloudVisionV1p4beta1ProductSearchResultsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4364,6 +4458,8 @@ module Google
class GoogleCloudVisionV1p5beta1AnnotateFileResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation
property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1InputConfig::Representation
collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse::Representation
@ -4745,11 +4841,23 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::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
@ -4955,6 +5063,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p1beta1::ObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::ObjectAnnotation::Representation
collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::Result, decorator: Google::Apis::VisionV1p1beta1::Result::Representation
end
@ -5049,6 +5159,16 @@ module Google
end
end
class ObjectAnnotation
# @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 Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation