google-cloud-vision-v1p4beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/vision/v1p4beta1/face_pb.rb +35 -0
- data/lib/google/cloud/vision/v1p4beta1/geometry_pb.rb +40 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/client.rb +629 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/credentials.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/helpers.rb +1228 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/operations.rb +664 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/paths.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator_pb.rb +343 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator_services_pb.rb +73 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/client.rb +2106 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/credentials.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/operations.rb +664 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/paths.rb +109 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search.rb +67 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search_pb.rb +55 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search_service_pb.rb +208 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search_service_services_pb.rb +236 -0
- data/lib/google/cloud/vision/v1p4beta1/text_annotation_pb.rb +95 -0
- data/lib/google/cloud/vision/v1p4beta1/version.rb +28 -0
- data/lib/google/cloud/vision/v1p4beta1/web_detection_pb.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1.rb +39 -0
- data/lib/google-cloud-vision-v1p4beta1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/face.rb +68 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/geometry.rb +82 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb +989 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/product_search.rb +136 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/product_search_service.rb +676 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/text_annotation.rb +286 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/web_detection.rb +121 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/color.rb +173 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +240 -0
@@ -0,0 +1,136 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Vision
|
23
|
+
module V1p4beta1
|
24
|
+
# Parameters for a product search request.
|
25
|
+
# @!attribute [rw] bounding_poly
|
26
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::BoundingPoly]
|
27
|
+
# The bounding polygon around the area of interest in the image.
|
28
|
+
# If it is not specified, system discretion will be applied.
|
29
|
+
# @!attribute [rw] product_set
|
30
|
+
# @return [::String]
|
31
|
+
# The resource name of a
|
32
|
+
# {::Google::Cloud::Vision::V1p4beta1::ProductSet ProductSet} to be searched for
|
33
|
+
# similar images.
|
34
|
+
#
|
35
|
+
# Format is:
|
36
|
+
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
|
37
|
+
# @!attribute [rw] product_categories
|
38
|
+
# @return [::Array<::String>]
|
39
|
+
# The list of product categories to search in. Currently, we only consider
|
40
|
+
# the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
|
41
|
+
# "packagedgoods-v1", or "general-v1" should be specified. The legacy
|
42
|
+
# categories "homegoods", "apparel", and "toys" are still supported but will
|
43
|
+
# be deprecated. For new products, please use "homegoods-v2", "apparel-v2",
|
44
|
+
# or "toys-v2" for better product search accuracy. It is recommended to
|
45
|
+
# migrate existing products to these categories as well.
|
46
|
+
# @!attribute [rw] filter
|
47
|
+
# @return [::String]
|
48
|
+
# The filtering expression. This can be used to restrict search results based
|
49
|
+
# on Product labels. We currently support an AND of OR of key-value
|
50
|
+
# expressions, where each expression within an OR must have the same key. An
|
51
|
+
# '=' should be used to connect the key and value.
|
52
|
+
#
|
53
|
+
# For example, "(color = red OR color = blue) AND brand = Google" is
|
54
|
+
# acceptable, but "(color = red OR brand = Google)" is not acceptable.
|
55
|
+
# "color: red" is not acceptable because it uses a ':' instead of an '='.
|
56
|
+
class ProductSearchParams
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
+
end
|
60
|
+
|
61
|
+
# Results for a product search request.
|
62
|
+
# @!attribute [rw] index_time
|
63
|
+
# @return [::Google::Protobuf::Timestamp]
|
64
|
+
# Timestamp of the index which provided these results. Products added to the
|
65
|
+
# product set and products removed from the product set after this time are
|
66
|
+
# not reflected in the current results.
|
67
|
+
# @!attribute [rw] results
|
68
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::ProductSearchResults::Result>]
|
69
|
+
# List of results, one for each product match.
|
70
|
+
# @!attribute [rw] product_grouped_results
|
71
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::ProductSearchResults::GroupedResult>]
|
72
|
+
# List of results grouped by products detected in the query image. Each entry
|
73
|
+
# corresponds to one bounding polygon in the query image, and contains the
|
74
|
+
# matching products specific to that region. There may be duplicate product
|
75
|
+
# matches in the union of all the per-product results.
|
76
|
+
class ProductSearchResults
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
|
80
|
+
# Information about a product.
|
81
|
+
# @!attribute [rw] product
|
82
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::Product]
|
83
|
+
# The Product.
|
84
|
+
# @!attribute [rw] score
|
85
|
+
# @return [::Float]
|
86
|
+
# A confidence level on the match, ranging from 0 (no confidence) to
|
87
|
+
# 1 (full confidence).
|
88
|
+
# @!attribute [rw] image
|
89
|
+
# @return [::String]
|
90
|
+
# The resource name of the image from the product that is the closest match
|
91
|
+
# to the query.
|
92
|
+
class Result
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# Prediction for what the object in the bounding box is.
|
98
|
+
# @!attribute [rw] mid
|
99
|
+
# @return [::String]
|
100
|
+
# Object ID that should align with EntityAnnotation mid.
|
101
|
+
# @!attribute [rw] language_code
|
102
|
+
# @return [::String]
|
103
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
104
|
+
# information, see
|
105
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
106
|
+
# @!attribute [rw] name
|
107
|
+
# @return [::String]
|
108
|
+
# Object name, expressed in its `language_code` language.
|
109
|
+
# @!attribute [rw] score
|
110
|
+
# @return [::Float]
|
111
|
+
# Score of the result. Range [0, 1].
|
112
|
+
class ObjectAnnotation
|
113
|
+
include ::Google::Protobuf::MessageExts
|
114
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
|
+
end
|
116
|
+
|
117
|
+
# Information about the products similar to a single product in a query
|
118
|
+
# image.
|
119
|
+
# @!attribute [rw] bounding_poly
|
120
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::BoundingPoly]
|
121
|
+
# The bounding polygon around the product detected in the query image.
|
122
|
+
# @!attribute [rw] results
|
123
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::ProductSearchResults::Result>]
|
124
|
+
# List of results, one for each product match.
|
125
|
+
# @!attribute [rw] object_annotations
|
126
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::ProductSearchResults::ObjectAnnotation>]
|
127
|
+
# List of generic predictions for the object in the bounding box.
|
128
|
+
class GroupedResult
|
129
|
+
include ::Google::Protobuf::MessageExts
|
130
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|