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,109 @@
|
|
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
|
+
module ProductSearch
|
25
|
+
# Path helper methods for the ProductSearch API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Location resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def location_path project:, location:
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project}/locations/#{location}"
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create a fully-qualified Product resource string.
|
46
|
+
#
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `projects/{project}/locations/{location}/products/{product}`
|
50
|
+
#
|
51
|
+
# @param project [String]
|
52
|
+
# @param location [String]
|
53
|
+
# @param product [String]
|
54
|
+
#
|
55
|
+
# @return [::String]
|
56
|
+
def product_path project:, location:, product:
|
57
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}/products/#{product}"
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified ProductSet resource string.
|
65
|
+
#
|
66
|
+
# The resource will be in the following format:
|
67
|
+
#
|
68
|
+
# `projects/{project}/locations/{location}/productSets/{product_set}`
|
69
|
+
#
|
70
|
+
# @param project [String]
|
71
|
+
# @param location [String]
|
72
|
+
# @param product_set [String]
|
73
|
+
#
|
74
|
+
# @return [::String]
|
75
|
+
def product_set_path project:, location:, product_set:
|
76
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
77
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
78
|
+
|
79
|
+
"projects/#{project}/locations/#{location}/productSets/#{product_set}"
|
80
|
+
end
|
81
|
+
|
82
|
+
##
|
83
|
+
# Create a fully-qualified ReferenceImage resource string.
|
84
|
+
#
|
85
|
+
# The resource will be in the following format:
|
86
|
+
#
|
87
|
+
# `projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}`
|
88
|
+
#
|
89
|
+
# @param project [String]
|
90
|
+
# @param location [String]
|
91
|
+
# @param product [String]
|
92
|
+
# @param reference_image [String]
|
93
|
+
#
|
94
|
+
# @return [::String]
|
95
|
+
def reference_image_path project:, location:, product:, reference_image:
|
96
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
97
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "product cannot contain /" if product.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/products/#{product}/referenceImages/#{reference_image}"
|
101
|
+
end
|
102
|
+
|
103
|
+
extend self
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,67 @@
|
|
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
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/vision/v1p4beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/vision/v1p4beta1/product_search/credentials"
|
26
|
+
require "google/cloud/vision/v1p4beta1/product_search/paths"
|
27
|
+
require "google/cloud/vision/v1p4beta1/product_search/operations"
|
28
|
+
require "google/cloud/vision/v1p4beta1/product_search/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Vision
|
33
|
+
module V1p4beta1
|
34
|
+
##
|
35
|
+
# Manages Products and ProductSets of reference images for use in product
|
36
|
+
# search. It uses the following resource model:
|
37
|
+
#
|
38
|
+
# - The API has a collection of
|
39
|
+
# {::Google::Cloud::Vision::V1p4beta1::ProductSet ProductSet} resources, named
|
40
|
+
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
41
|
+
# products into groups to limit identification.
|
42
|
+
#
|
43
|
+
# In parallel,
|
44
|
+
#
|
45
|
+
# - The API has a collection of
|
46
|
+
# {::Google::Cloud::Vision::V1p4beta1::Product Product} resources, named
|
47
|
+
# `projects/*/locations/*/products/*`
|
48
|
+
#
|
49
|
+
# - Each {::Google::Cloud::Vision::V1p4beta1::Product Product} has a collection of
|
50
|
+
# {::Google::Cloud::Vision::V1p4beta1::ReferenceImage ReferenceImage} resources,
|
51
|
+
# named
|
52
|
+
# `projects/*/locations/*/products/*/referenceImages/*`
|
53
|
+
#
|
54
|
+
# To load this service and instantiate a client:
|
55
|
+
#
|
56
|
+
# require "google/cloud/vision/v1p4beta1/product_search"
|
57
|
+
# client = ::Google::Cloud::Vision::V1p4beta1::ProductSearch::Client.new
|
58
|
+
#
|
59
|
+
module ProductSearch
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
helper_path = ::File.join __dir__, "product_search", "helpers.rb"
|
67
|
+
require "google/cloud/vision/v1p4beta1/product_search/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/vision/v1p4beta1/product_search.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/vision/v1p4beta1/geometry_pb'
|
9
|
+
require 'google/cloud/vision/v1p4beta1/product_search_service_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/vision/v1p4beta1/product_search.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.vision.v1p4beta1.ProductSearchParams" do
|
14
|
+
optional :bounding_poly, :message, 9, "google.cloud.vision.v1p4beta1.BoundingPoly"
|
15
|
+
optional :product_set, :string, 6
|
16
|
+
repeated :product_categories, :string, 7
|
17
|
+
optional :filter, :string, 8
|
18
|
+
end
|
19
|
+
add_message "google.cloud.vision.v1p4beta1.ProductSearchResults" do
|
20
|
+
optional :index_time, :message, 2, "google.protobuf.Timestamp"
|
21
|
+
repeated :results, :message, 5, "google.cloud.vision.v1p4beta1.ProductSearchResults.Result"
|
22
|
+
repeated :product_grouped_results, :message, 6, "google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult"
|
23
|
+
end
|
24
|
+
add_message "google.cloud.vision.v1p4beta1.ProductSearchResults.Result" do
|
25
|
+
optional :product, :message, 1, "google.cloud.vision.v1p4beta1.Product"
|
26
|
+
optional :score, :float, 2
|
27
|
+
optional :image, :string, 3
|
28
|
+
end
|
29
|
+
add_message "google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation" do
|
30
|
+
optional :mid, :string, 1
|
31
|
+
optional :language_code, :string, 2
|
32
|
+
optional :name, :string, 3
|
33
|
+
optional :score, :float, 4
|
34
|
+
end
|
35
|
+
add_message "google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult" do
|
36
|
+
optional :bounding_poly, :message, 1, "google.cloud.vision.v1p4beta1.BoundingPoly"
|
37
|
+
repeated :results, :message, 2, "google.cloud.vision.v1p4beta1.ProductSearchResults.Result"
|
38
|
+
repeated :object_annotations, :message, 3, "google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
module Google
|
44
|
+
module Cloud
|
45
|
+
module Vision
|
46
|
+
module V1p4beta1
|
47
|
+
ProductSearchParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ProductSearchParams").msgclass
|
48
|
+
ProductSearchResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ProductSearchResults").msgclass
|
49
|
+
ProductSearchResults::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ProductSearchResults.Result").msgclass
|
50
|
+
ProductSearchResults::ObjectAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotation").msgclass
|
51
|
+
ProductSearchResults::GroupedResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult").msgclass
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,208 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/vision/v1p4beta1/product_search_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/vision/v1p4beta1/geometry_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
require 'google/protobuf/empty_pb'
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
15
|
+
require 'google/rpc/status_pb'
|
16
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
|
+
add_file("google/cloud/vision/v1p4beta1/product_search_service.proto", :syntax => :proto3) do
|
18
|
+
add_message "google.cloud.vision.v1p4beta1.Product" do
|
19
|
+
optional :name, :string, 1
|
20
|
+
optional :display_name, :string, 2
|
21
|
+
optional :description, :string, 3
|
22
|
+
optional :product_category, :string, 4
|
23
|
+
repeated :product_labels, :message, 5, "google.cloud.vision.v1p4beta1.Product.KeyValue"
|
24
|
+
end
|
25
|
+
add_message "google.cloud.vision.v1p4beta1.Product.KeyValue" do
|
26
|
+
optional :key, :string, 1
|
27
|
+
optional :value, :string, 2
|
28
|
+
end
|
29
|
+
add_message "google.cloud.vision.v1p4beta1.ProductSet" do
|
30
|
+
optional :name, :string, 1
|
31
|
+
optional :display_name, :string, 2
|
32
|
+
optional :index_time, :message, 3, "google.protobuf.Timestamp"
|
33
|
+
optional :index_error, :message, 4, "google.rpc.Status"
|
34
|
+
end
|
35
|
+
add_message "google.cloud.vision.v1p4beta1.ReferenceImage" do
|
36
|
+
optional :name, :string, 1
|
37
|
+
optional :uri, :string, 2
|
38
|
+
repeated :bounding_polys, :message, 3, "google.cloud.vision.v1p4beta1.BoundingPoly"
|
39
|
+
end
|
40
|
+
add_message "google.cloud.vision.v1p4beta1.CreateProductRequest" do
|
41
|
+
optional :parent, :string, 1
|
42
|
+
optional :product, :message, 2, "google.cloud.vision.v1p4beta1.Product"
|
43
|
+
optional :product_id, :string, 3
|
44
|
+
end
|
45
|
+
add_message "google.cloud.vision.v1p4beta1.ListProductsRequest" do
|
46
|
+
optional :parent, :string, 1
|
47
|
+
optional :page_size, :int32, 2
|
48
|
+
optional :page_token, :string, 3
|
49
|
+
end
|
50
|
+
add_message "google.cloud.vision.v1p4beta1.ListProductsResponse" do
|
51
|
+
repeated :products, :message, 1, "google.cloud.vision.v1p4beta1.Product"
|
52
|
+
optional :next_page_token, :string, 2
|
53
|
+
end
|
54
|
+
add_message "google.cloud.vision.v1p4beta1.GetProductRequest" do
|
55
|
+
optional :name, :string, 1
|
56
|
+
end
|
57
|
+
add_message "google.cloud.vision.v1p4beta1.UpdateProductRequest" do
|
58
|
+
optional :product, :message, 1, "google.cloud.vision.v1p4beta1.Product"
|
59
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
60
|
+
end
|
61
|
+
add_message "google.cloud.vision.v1p4beta1.DeleteProductRequest" do
|
62
|
+
optional :name, :string, 1
|
63
|
+
end
|
64
|
+
add_message "google.cloud.vision.v1p4beta1.CreateProductSetRequest" do
|
65
|
+
optional :parent, :string, 1
|
66
|
+
optional :product_set, :message, 2, "google.cloud.vision.v1p4beta1.ProductSet"
|
67
|
+
optional :product_set_id, :string, 3
|
68
|
+
end
|
69
|
+
add_message "google.cloud.vision.v1p4beta1.ListProductSetsRequest" do
|
70
|
+
optional :parent, :string, 1
|
71
|
+
optional :page_size, :int32, 2
|
72
|
+
optional :page_token, :string, 3
|
73
|
+
end
|
74
|
+
add_message "google.cloud.vision.v1p4beta1.ListProductSetsResponse" do
|
75
|
+
repeated :product_sets, :message, 1, "google.cloud.vision.v1p4beta1.ProductSet"
|
76
|
+
optional :next_page_token, :string, 2
|
77
|
+
end
|
78
|
+
add_message "google.cloud.vision.v1p4beta1.GetProductSetRequest" do
|
79
|
+
optional :name, :string, 1
|
80
|
+
end
|
81
|
+
add_message "google.cloud.vision.v1p4beta1.UpdateProductSetRequest" do
|
82
|
+
optional :product_set, :message, 1, "google.cloud.vision.v1p4beta1.ProductSet"
|
83
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
84
|
+
end
|
85
|
+
add_message "google.cloud.vision.v1p4beta1.DeleteProductSetRequest" do
|
86
|
+
optional :name, :string, 1
|
87
|
+
end
|
88
|
+
add_message "google.cloud.vision.v1p4beta1.CreateReferenceImageRequest" do
|
89
|
+
optional :parent, :string, 1
|
90
|
+
optional :reference_image, :message, 2, "google.cloud.vision.v1p4beta1.ReferenceImage"
|
91
|
+
optional :reference_image_id, :string, 3
|
92
|
+
end
|
93
|
+
add_message "google.cloud.vision.v1p4beta1.ListReferenceImagesRequest" do
|
94
|
+
optional :parent, :string, 1
|
95
|
+
optional :page_size, :int32, 2
|
96
|
+
optional :page_token, :string, 3
|
97
|
+
end
|
98
|
+
add_message "google.cloud.vision.v1p4beta1.ListReferenceImagesResponse" do
|
99
|
+
repeated :reference_images, :message, 1, "google.cloud.vision.v1p4beta1.ReferenceImage"
|
100
|
+
optional :page_size, :int32, 2
|
101
|
+
optional :next_page_token, :string, 3
|
102
|
+
end
|
103
|
+
add_message "google.cloud.vision.v1p4beta1.GetReferenceImageRequest" do
|
104
|
+
optional :name, :string, 1
|
105
|
+
end
|
106
|
+
add_message "google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest" do
|
107
|
+
optional :name, :string, 1
|
108
|
+
end
|
109
|
+
add_message "google.cloud.vision.v1p4beta1.AddProductToProductSetRequest" do
|
110
|
+
optional :name, :string, 1
|
111
|
+
optional :product, :string, 2
|
112
|
+
end
|
113
|
+
add_message "google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest" do
|
114
|
+
optional :name, :string, 1
|
115
|
+
optional :product, :string, 2
|
116
|
+
end
|
117
|
+
add_message "google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest" do
|
118
|
+
optional :name, :string, 1
|
119
|
+
optional :page_size, :int32, 2
|
120
|
+
optional :page_token, :string, 3
|
121
|
+
end
|
122
|
+
add_message "google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse" do
|
123
|
+
repeated :products, :message, 1, "google.cloud.vision.v1p4beta1.Product"
|
124
|
+
optional :next_page_token, :string, 2
|
125
|
+
end
|
126
|
+
add_message "google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource" do
|
127
|
+
optional :csv_file_uri, :string, 1
|
128
|
+
end
|
129
|
+
add_message "google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig" do
|
130
|
+
oneof :source do
|
131
|
+
optional :gcs_source, :message, 1, "google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource"
|
132
|
+
end
|
133
|
+
end
|
134
|
+
add_message "google.cloud.vision.v1p4beta1.ImportProductSetsRequest" do
|
135
|
+
optional :parent, :string, 1
|
136
|
+
optional :input_config, :message, 2, "google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig"
|
137
|
+
end
|
138
|
+
add_message "google.cloud.vision.v1p4beta1.ImportProductSetsResponse" do
|
139
|
+
repeated :reference_images, :message, 1, "google.cloud.vision.v1p4beta1.ReferenceImage"
|
140
|
+
repeated :statuses, :message, 2, "google.rpc.Status"
|
141
|
+
end
|
142
|
+
add_message "google.cloud.vision.v1p4beta1.BatchOperationMetadata" do
|
143
|
+
optional :state, :enum, 1, "google.cloud.vision.v1p4beta1.BatchOperationMetadata.State"
|
144
|
+
optional :submit_time, :message, 2, "google.protobuf.Timestamp"
|
145
|
+
optional :end_time, :message, 3, "google.protobuf.Timestamp"
|
146
|
+
end
|
147
|
+
add_enum "google.cloud.vision.v1p4beta1.BatchOperationMetadata.State" do
|
148
|
+
value :STATE_UNSPECIFIED, 0
|
149
|
+
value :PROCESSING, 1
|
150
|
+
value :SUCCESSFUL, 2
|
151
|
+
value :FAILED, 3
|
152
|
+
value :CANCELLED, 4
|
153
|
+
end
|
154
|
+
add_message "google.cloud.vision.v1p4beta1.ProductSetPurgeConfig" do
|
155
|
+
optional :product_set_id, :string, 1
|
156
|
+
end
|
157
|
+
add_message "google.cloud.vision.v1p4beta1.PurgeProductsRequest" do
|
158
|
+
optional :parent, :string, 1
|
159
|
+
optional :force, :bool, 4
|
160
|
+
oneof :target do
|
161
|
+
optional :product_set_purge_config, :message, 2, "google.cloud.vision.v1p4beta1.ProductSetPurgeConfig"
|
162
|
+
optional :delete_orphan_products, :bool, 3
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
module Google
|
169
|
+
module Cloud
|
170
|
+
module Vision
|
171
|
+
module V1p4beta1
|
172
|
+
Product = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.Product").msgclass
|
173
|
+
Product::KeyValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.Product.KeyValue").msgclass
|
174
|
+
ProductSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ProductSet").msgclass
|
175
|
+
ReferenceImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ReferenceImage").msgclass
|
176
|
+
CreateProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.CreateProductRequest").msgclass
|
177
|
+
ListProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListProductsRequest").msgclass
|
178
|
+
ListProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListProductsResponse").msgclass
|
179
|
+
GetProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.GetProductRequest").msgclass
|
180
|
+
UpdateProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.UpdateProductRequest").msgclass
|
181
|
+
DeleteProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.DeleteProductRequest").msgclass
|
182
|
+
CreateProductSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.CreateProductSetRequest").msgclass
|
183
|
+
ListProductSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListProductSetsRequest").msgclass
|
184
|
+
ListProductSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListProductSetsResponse").msgclass
|
185
|
+
GetProductSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.GetProductSetRequest").msgclass
|
186
|
+
UpdateProductSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.UpdateProductSetRequest").msgclass
|
187
|
+
DeleteProductSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.DeleteProductSetRequest").msgclass
|
188
|
+
CreateReferenceImageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.CreateReferenceImageRequest").msgclass
|
189
|
+
ListReferenceImagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListReferenceImagesRequest").msgclass
|
190
|
+
ListReferenceImagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListReferenceImagesResponse").msgclass
|
191
|
+
GetReferenceImageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.GetReferenceImageRequest").msgclass
|
192
|
+
DeleteReferenceImageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.DeleteReferenceImageRequest").msgclass
|
193
|
+
AddProductToProductSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.AddProductToProductSetRequest").msgclass
|
194
|
+
RemoveProductFromProductSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.RemoveProductFromProductSetRequest").msgclass
|
195
|
+
ListProductsInProductSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListProductsInProductSetRequest").msgclass
|
196
|
+
ListProductsInProductSetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse").msgclass
|
197
|
+
ImportProductSetsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource").msgclass
|
198
|
+
ImportProductSetsInputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig").msgclass
|
199
|
+
ImportProductSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ImportProductSetsRequest").msgclass
|
200
|
+
ImportProductSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ImportProductSetsResponse").msgclass
|
201
|
+
BatchOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.BatchOperationMetadata").msgclass
|
202
|
+
BatchOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.BatchOperationMetadata.State").enummodule
|
203
|
+
ProductSetPurgeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.ProductSetPurgeConfig").msgclass
|
204
|
+
PurgeProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p4beta1.PurgeProductsRequest").msgclass
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|