google-cloud-vision 0.37.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +343 -0
- data/README.md +35 -49
- data/lib/{google/cloud/vision/v1/doc/google/protobuf/wrappers.rb → google-cloud-vision.rb} +5 -12
- data/lib/google/cloud/vision.rb +132 -215
- data/lib/google/cloud/vision/version.rb +6 -2
- metadata +74 -102
- data/LICENSE +0 -201
- data/lib/google/cloud/vision/v1.rb +0 -249
- data/lib/google/cloud/vision/v1/credentials.rb +0 -42
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/geometry.rb +0 -66
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb +0 -923
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search.rb +0 -115
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search_service.rb +0 -569
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb +0 -254
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/web_detection.rb +0 -102
- data/lib/google/cloud/vision/v1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/vision/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/vision/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/vision/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/vision/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/vision/v1/doc/google/rpc/status.rb +0 -87
- data/lib/google/cloud/vision/v1/doc/google/type/color.rb +0 -161
- data/lib/google/cloud/vision/v1/doc/google/type/latlng.rb +0 -31
- data/lib/google/cloud/vision/v1/geometry_pb.rb +0 -39
- data/lib/google/cloud/vision/v1/helpers.rb +0 -1154
- data/lib/google/cloud/vision/v1/image_annotator_client.rb +0 -516
- data/lib/google/cloud/vision/v1/image_annotator_client_config.json +0 -46
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +0 -344
- data/lib/google/cloud/vision/v1/image_annotator_services_pb.rb +0 -74
- data/lib/google/cloud/vision/v1/product_search_client.rb +0 -1490
- data/lib/google/cloud/vision/v1/product_search_client_config.json +0 -121
- data/lib/google/cloud/vision/v1/product_search_pb.rb +0 -54
- data/lib/google/cloud/vision/v1/product_search_service_pb.rb +0 -207
- data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +0 -233
- data/lib/google/cloud/vision/v1/text_annotation_pb.rb +0 -94
- data/lib/google/cloud/vision/v1/web_detection_pb.rb +0 -51
- data/lib/google/cloud/vision/v1p3beta1.rb +0 -253
- data/lib/google/cloud/vision/v1p3beta1/credentials.rb +0 -42
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/geometry.rb +0 -72
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/image_annotator.rb +0 -763
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search.rb +0 -156
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search_service.rb +0 -538
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/text_annotation.rb +0 -255
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/web_detection.rb +0 -101
- data/lib/google/cloud/vision/v1p3beta1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/wrappers.rb +0 -26
- data/lib/google/cloud/vision/v1p3beta1/doc/google/rpc/status.rb +0 -87
- data/lib/google/cloud/vision/v1p3beta1/doc/google/type/color.rb +0 -161
- data/lib/google/cloud/vision/v1p3beta1/doc/google/type/latlng.rb +0 -31
- data/lib/google/cloud/vision/v1p3beta1/geometry_pb.rb +0 -43
- data/lib/google/cloud/vision/v1p3beta1/helpers.rb +0 -1154
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_client.rb +0 -312
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_client_config.json +0 -36
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_pb.rb +0 -304
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_services_pb.rb +0 -55
- data/lib/google/cloud/vision/v1p3beta1/product_search_client.rb +0 -1419
- data/lib/google/cloud/vision/v1p3beta1/product_search_client_config.json +0 -116
- data/lib/google/cloud/vision/v1p3beta1/product_search_pb.rb +0 -64
- data/lib/google/cloud/vision/v1p3beta1/product_search_service_pb.rb +0 -191
- data/lib/google/cloud/vision/v1p3beta1/product_search_service_services_pb.rb +0 -226
- data/lib/google/cloud/vision/v1p3beta1/text_annotation_pb.rb +0 -94
- data/lib/google/cloud/vision/v1p3beta1/web_detection_pb.rb +0 -51
@@ -1,94 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/vision/v1p3beta1/text_annotation.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/cloud/vision/v1p3beta1/geometry_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "google.cloud.vision.v1p3beta1.TextAnnotation" do
|
11
|
-
repeated :pages, :message, 1, "google.cloud.vision.v1p3beta1.Page"
|
12
|
-
optional :text, :string, 2
|
13
|
-
end
|
14
|
-
add_message "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage" do
|
15
|
-
optional :language_code, :string, 1
|
16
|
-
optional :confidence, :float, 2
|
17
|
-
end
|
18
|
-
add_message "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak" do
|
19
|
-
optional :type, :enum, 1, "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType"
|
20
|
-
optional :is_prefix, :bool, 2
|
21
|
-
end
|
22
|
-
add_enum "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType" do
|
23
|
-
value :UNKNOWN, 0
|
24
|
-
value :SPACE, 1
|
25
|
-
value :SURE_SPACE, 2
|
26
|
-
value :EOL_SURE_SPACE, 3
|
27
|
-
value :HYPHEN, 4
|
28
|
-
value :LINE_BREAK, 5
|
29
|
-
end
|
30
|
-
add_message "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty" do
|
31
|
-
repeated :detected_languages, :message, 1, "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage"
|
32
|
-
optional :detected_break, :message, 2, "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak"
|
33
|
-
end
|
34
|
-
add_message "google.cloud.vision.v1p3beta1.Page" do
|
35
|
-
optional :property, :message, 1, "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty"
|
36
|
-
optional :width, :int32, 2
|
37
|
-
optional :height, :int32, 3
|
38
|
-
repeated :blocks, :message, 4, "google.cloud.vision.v1p3beta1.Block"
|
39
|
-
optional :confidence, :float, 5
|
40
|
-
end
|
41
|
-
add_message "google.cloud.vision.v1p3beta1.Block" do
|
42
|
-
optional :property, :message, 1, "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty"
|
43
|
-
optional :bounding_box, :message, 2, "google.cloud.vision.v1p3beta1.BoundingPoly"
|
44
|
-
repeated :paragraphs, :message, 3, "google.cloud.vision.v1p3beta1.Paragraph"
|
45
|
-
optional :block_type, :enum, 4, "google.cloud.vision.v1p3beta1.Block.BlockType"
|
46
|
-
optional :confidence, :float, 5
|
47
|
-
end
|
48
|
-
add_enum "google.cloud.vision.v1p3beta1.Block.BlockType" do
|
49
|
-
value :UNKNOWN, 0
|
50
|
-
value :TEXT, 1
|
51
|
-
value :TABLE, 2
|
52
|
-
value :PICTURE, 3
|
53
|
-
value :RULER, 4
|
54
|
-
value :BARCODE, 5
|
55
|
-
end
|
56
|
-
add_message "google.cloud.vision.v1p3beta1.Paragraph" do
|
57
|
-
optional :property, :message, 1, "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty"
|
58
|
-
optional :bounding_box, :message, 2, "google.cloud.vision.v1p3beta1.BoundingPoly"
|
59
|
-
repeated :words, :message, 3, "google.cloud.vision.v1p3beta1.Word"
|
60
|
-
optional :confidence, :float, 4
|
61
|
-
end
|
62
|
-
add_message "google.cloud.vision.v1p3beta1.Word" do
|
63
|
-
optional :property, :message, 1, "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty"
|
64
|
-
optional :bounding_box, :message, 2, "google.cloud.vision.v1p3beta1.BoundingPoly"
|
65
|
-
repeated :symbols, :message, 3, "google.cloud.vision.v1p3beta1.Symbol"
|
66
|
-
optional :confidence, :float, 4
|
67
|
-
end
|
68
|
-
add_message "google.cloud.vision.v1p3beta1.Symbol" do
|
69
|
-
optional :property, :message, 1, "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty"
|
70
|
-
optional :bounding_box, :message, 2, "google.cloud.vision.v1p3beta1.BoundingPoly"
|
71
|
-
optional :text, :string, 3
|
72
|
-
optional :confidence, :float, 4
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
module Google
|
77
|
-
module Cloud
|
78
|
-
module Vision
|
79
|
-
module V1p3beta1
|
80
|
-
TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.TextAnnotation").msgclass
|
81
|
-
TextAnnotation::DetectedLanguage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage").msgclass
|
82
|
-
TextAnnotation::DetectedBreak = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak").msgclass
|
83
|
-
TextAnnotation::DetectedBreak::BreakType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak.BreakType").enummodule
|
84
|
-
TextAnnotation::TextProperty = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty").msgclass
|
85
|
-
Page = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Page").msgclass
|
86
|
-
Block = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Block").msgclass
|
87
|
-
Block::BlockType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Block.BlockType").enummodule
|
88
|
-
Paragraph = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Paragraph").msgclass
|
89
|
-
Word = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Word").msgclass
|
90
|
-
Symbol = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.Symbol").msgclass
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/vision/v1p3beta1/web_detection.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
-
add_message "google.cloud.vision.v1p3beta1.WebDetection" do
|
10
|
-
repeated :web_entities, :message, 1, "google.cloud.vision.v1p3beta1.WebDetection.WebEntity"
|
11
|
-
repeated :full_matching_images, :message, 2, "google.cloud.vision.v1p3beta1.WebDetection.WebImage"
|
12
|
-
repeated :partial_matching_images, :message, 3, "google.cloud.vision.v1p3beta1.WebDetection.WebImage"
|
13
|
-
repeated :pages_with_matching_images, :message, 4, "google.cloud.vision.v1p3beta1.WebDetection.WebPage"
|
14
|
-
repeated :visually_similar_images, :message, 6, "google.cloud.vision.v1p3beta1.WebDetection.WebImage"
|
15
|
-
repeated :best_guess_labels, :message, 8, "google.cloud.vision.v1p3beta1.WebDetection.WebLabel"
|
16
|
-
end
|
17
|
-
add_message "google.cloud.vision.v1p3beta1.WebDetection.WebEntity" do
|
18
|
-
optional :entity_id, :string, 1
|
19
|
-
optional :score, :float, 2
|
20
|
-
optional :description, :string, 3
|
21
|
-
end
|
22
|
-
add_message "google.cloud.vision.v1p3beta1.WebDetection.WebImage" do
|
23
|
-
optional :url, :string, 1
|
24
|
-
optional :score, :float, 2
|
25
|
-
end
|
26
|
-
add_message "google.cloud.vision.v1p3beta1.WebDetection.WebPage" do
|
27
|
-
optional :url, :string, 1
|
28
|
-
optional :score, :float, 2
|
29
|
-
optional :page_title, :string, 3
|
30
|
-
repeated :full_matching_images, :message, 4, "google.cloud.vision.v1p3beta1.WebDetection.WebImage"
|
31
|
-
repeated :partial_matching_images, :message, 5, "google.cloud.vision.v1p3beta1.WebDetection.WebImage"
|
32
|
-
end
|
33
|
-
add_message "google.cloud.vision.v1p3beta1.WebDetection.WebLabel" do
|
34
|
-
optional :label, :string, 1
|
35
|
-
optional :language_code, :string, 2
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
module Google
|
40
|
-
module Cloud
|
41
|
-
module Vision
|
42
|
-
module V1p3beta1
|
43
|
-
WebDetection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.WebDetection").msgclass
|
44
|
-
WebDetection::WebEntity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.WebDetection.WebEntity").msgclass
|
45
|
-
WebDetection::WebImage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.WebDetection.WebImage").msgclass
|
46
|
-
WebDetection::WebPage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.WebDetection.WebPage").msgclass
|
47
|
-
WebDetection::WebLabel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1p3beta1.WebDetection.WebLabel").msgclass
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|