google-cloud-automl-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google-cloud-automl-v1beta1.rb +21 -0
  7. data/lib/google/cloud/automl/v1beta1.rb +36 -0
  8. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +41 -0
  9. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +26 -0
  10. data/lib/google/cloud/automl/v1beta1/automl.rb +63 -0
  11. data/lib/google/cloud/automl/v1beta1/automl/client.rb +2368 -0
  12. data/lib/google/cloud/automl/v1beta1/automl/credentials.rb +51 -0
  13. data/lib/google/cloud/automl/v1beta1/automl/operations.rb +564 -0
  14. data/lib/google/cloud/automl/v1beta1/automl/paths.rb +174 -0
  15. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +73 -0
  16. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +36 -0
  17. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +95 -0
  18. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +84 -0
  19. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +43 -0
  20. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +46 -0
  21. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +59 -0
  22. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +28 -0
  23. data/lib/google/cloud/automl/v1beta1/image_pb.rb +57 -0
  24. data/lib/google/cloud/automl/v1beta1/io_pb.rb +87 -0
  25. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +45 -0
  26. data/lib/google/cloud/automl/v1beta1/model_pb.rb +52 -0
  27. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +97 -0
  28. data/lib/google/cloud/automl/v1beta1/prediction_service.rb +53 -0
  29. data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +586 -0
  30. data/lib/google/cloud/automl/v1beta1/prediction_service/credentials.rb +51 -0
  31. data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +564 -0
  32. data/lib/google/cloud/automl/v1beta1/prediction_service/paths.rb +52 -0
  33. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +50 -0
  34. data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +79 -0
  35. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -0
  36. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +27 -0
  37. data/lib/google/cloud/automl/v1beta1/service_pb.rb +187 -0
  38. data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +163 -0
  39. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +31 -0
  40. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +65 -0
  41. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -0
  42. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +39 -0
  43. data/lib/google/cloud/automl/v1beta1/text_pb.rb +41 -0
  44. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +25 -0
  45. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +36 -0
  46. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +41 -0
  47. data/lib/google/cloud/automl/v1beta1/version.rb +28 -0
  48. data/lib/google/cloud/automl/v1beta1/video_pb.rb +32 -0
  49. data/lib/google/cloud/common_resources_pb.rb +15 -0
  50. data/proto_docs/README.md +4 -0
  51. data/proto_docs/google/api/field_behavior.rb +59 -0
  52. data/proto_docs/google/api/resource.rb +247 -0
  53. data/proto_docs/google/cloud/automl/v1beta1/annotation_payload.rb +70 -0
  54. data/proto_docs/google/cloud/automl/v1beta1/annotation_spec.rb +46 -0
  55. data/proto_docs/google/cloud/automl/v1beta1/classification.rb +234 -0
  56. data/proto_docs/google/cloud/automl/v1beta1/column_spec.rb +77 -0
  57. data/proto_docs/google/cloud/automl/v1beta1/data_items.rb +227 -0
  58. data/proto_docs/google/cloud/automl/v1beta1/data_stats.rb +227 -0
  59. data/proto_docs/google/cloud/automl/v1beta1/data_types.rb +118 -0
  60. data/proto_docs/google/cloud/automl/v1beta1/dataset.rb +84 -0
  61. data/proto_docs/google/cloud/automl/v1beta1/detection.rb +152 -0
  62. data/proto_docs/google/cloud/automl/v1beta1/geometry.rb +53 -0
  63. data/proto_docs/google/cloud/automl/v1beta1/image.rb +205 -0
  64. data/proto_docs/google/cloud/automl/v1beta1/io.rb +1168 -0
  65. data/proto_docs/google/cloud/automl/v1beta1/model.rb +95 -0
  66. data/proto_docs/google/cloud/automl/v1beta1/model_evaluation.rb +103 -0
  67. data/proto_docs/google/cloud/automl/v1beta1/operations.rb +206 -0
  68. data/proto_docs/google/cloud/automl/v1beta1/prediction_service.rb +238 -0
  69. data/proto_docs/google/cloud/automl/v1beta1/ranges.rb +38 -0
  70. data/proto_docs/google/cloud/automl/v1beta1/regression.rb +48 -0
  71. data/proto_docs/google/cloud/automl/v1beta1/service.rb +447 -0
  72. data/proto_docs/google/cloud/automl/v1beta1/table_spec.rb +75 -0
  73. data/proto_docs/google/cloud/automl/v1beta1/tables.rb +300 -0
  74. data/proto_docs/google/cloud/automl/v1beta1/temporal.rb +40 -0
  75. data/proto_docs/google/cloud/automl/v1beta1/text.rb +76 -0
  76. data/proto_docs/google/cloud/automl/v1beta1/text_extraction.rb +73 -0
  77. data/proto_docs/google/cloud/automl/v1beta1/text_segment.rb +44 -0
  78. data/proto_docs/google/cloud/automl/v1beta1/text_sentiment.rb +86 -0
  79. data/proto_docs/google/cloud/automl/v1beta1/translation.rb +79 -0
  80. data/proto_docs/google/cloud/automl/v1beta1/video.rb +51 -0
  81. data/proto_docs/google/longrunning/operations.rb +150 -0
  82. data/proto_docs/google/protobuf/any.rb +138 -0
  83. data/proto_docs/google/protobuf/duration.rb +98 -0
  84. data/proto_docs/google/protobuf/empty.rb +36 -0
  85. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  86. data/proto_docs/google/protobuf/struct.rb +96 -0
  87. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  88. data/proto_docs/google/rpc/status.rb +46 -0
  89. metadata +245 -0
@@ -0,0 +1,174 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 AutoML
23
+ module V1beta1
24
+ module AutoML
25
+ # Path helper methods for the AutoMl API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified AnnotationSpec resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param dataset [String]
37
+ # @param annotation_spec [String]
38
+ #
39
+ # @return [String]
40
+ def annotation_spec_path project:, location:, dataset:, annotation_spec:
41
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/datasets/#{dataset}/annotationSpecs/#{annotation_spec}"
46
+ end
47
+
48
+ ##
49
+ # Create a fully-qualified ColumnSpec resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}/columnSpecs/{column_spec}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param dataset [String]
58
+ # @param table_spec [String]
59
+ # @param column_spec [String]
60
+ #
61
+ # @return [String]
62
+ def column_spec_path project:, location:, dataset:, table_spec:, column_spec:
63
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
64
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
65
+ raise ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
66
+ raise ArgumentError, "table_spec cannot contain /" if table_spec.to_s.include? "/"
67
+
68
+ "projects/#{project}/locations/#{location}/datasets/#{dataset}/tableSpecs/#{table_spec}/columnSpecs/#{column_spec}"
69
+ end
70
+
71
+ ##
72
+ # Create a fully-qualified Dataset resource string.
73
+ #
74
+ # The resource will be in the following format:
75
+ #
76
+ # `projects/{project}/locations/{location}/datasets/{dataset}`
77
+ #
78
+ # @param project [String]
79
+ # @param location [String]
80
+ # @param dataset [String]
81
+ #
82
+ # @return [String]
83
+ def dataset_path project:, location:, dataset:
84
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
86
+
87
+ "projects/#{project}/locations/#{location}/datasets/#{dataset}"
88
+ end
89
+
90
+ ##
91
+ # Create a fully-qualified Location resource string.
92
+ #
93
+ # The resource will be in the following format:
94
+ #
95
+ # `projects/{project}/locations/{location}`
96
+ #
97
+ # @param project [String]
98
+ # @param location [String]
99
+ #
100
+ # @return [String]
101
+ def location_path project:, location:
102
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
103
+
104
+ "projects/#{project}/locations/#{location}"
105
+ end
106
+
107
+ ##
108
+ # Create a fully-qualified Model resource string.
109
+ #
110
+ # The resource will be in the following format:
111
+ #
112
+ # `projects/{project}/locations/{location}/models/{model}`
113
+ #
114
+ # @param project [String]
115
+ # @param location [String]
116
+ # @param model [String]
117
+ #
118
+ # @return [String]
119
+ def model_path project:, location:, model:
120
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
121
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
122
+
123
+ "projects/#{project}/locations/#{location}/models/#{model}"
124
+ end
125
+
126
+ ##
127
+ # Create a fully-qualified ModelEvaluation resource string.
128
+ #
129
+ # The resource will be in the following format:
130
+ #
131
+ # `projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}`
132
+ #
133
+ # @param project [String]
134
+ # @param location [String]
135
+ # @param model [String]
136
+ # @param model_evaluation [String]
137
+ #
138
+ # @return [String]
139
+ def model_evaluation_path project:, location:, model:, model_evaluation:
140
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
141
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
142
+ raise ArgumentError, "model cannot contain /" if model.to_s.include? "/"
143
+
144
+ "projects/#{project}/locations/#{location}/models/#{model}/modelEvaluations/#{model_evaluation}"
145
+ end
146
+
147
+ ##
148
+ # Create a fully-qualified TableSpec resource string.
149
+ #
150
+ # The resource will be in the following format:
151
+ #
152
+ # `projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}`
153
+ #
154
+ # @param project [String]
155
+ # @param location [String]
156
+ # @param dataset [String]
157
+ # @param table_spec [String]
158
+ #
159
+ # @return [String]
160
+ def table_spec_path project:, location:, dataset:, table_spec:
161
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
162
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
163
+ raise ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
164
+
165
+ "projects/#{project}/locations/#{location}/datasets/#{dataset}/tableSpecs/#{table_spec}"
166
+ end
167
+
168
+ extend self
169
+ end
170
+ end
171
+ end
172
+ end
173
+ end
174
+ end
@@ -0,0 +1,73 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/automl/v1beta1/classification.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/cloud/automl/v1beta1/temporal_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/cloud/automl/v1beta1/classification.proto", :syntax => :proto3) do
10
+ add_message "google.cloud.automl.v1beta1.ClassificationAnnotation" do
11
+ optional :score, :float, 1
12
+ end
13
+ add_message "google.cloud.automl.v1beta1.VideoClassificationAnnotation" do
14
+ optional :type, :string, 1
15
+ optional :classification_annotation, :message, 2, "google.cloud.automl.v1beta1.ClassificationAnnotation"
16
+ optional :time_segment, :message, 3, "google.cloud.automl.v1beta1.TimeSegment"
17
+ end
18
+ add_message "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics" do
19
+ optional :au_prc, :float, 1
20
+ optional :base_au_prc, :float, 2
21
+ optional :au_roc, :float, 6
22
+ optional :log_loss, :float, 7
23
+ repeated :confidence_metrics_entry, :message, 3, "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry"
24
+ optional :confusion_matrix, :message, 4, "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix"
25
+ repeated :annotation_spec_id, :string, 5
26
+ end
27
+ add_message "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry" do
28
+ optional :confidence_threshold, :float, 1
29
+ optional :position_threshold, :int32, 14
30
+ optional :recall, :float, 2
31
+ optional :precision, :float, 3
32
+ optional :false_positive_rate, :float, 8
33
+ optional :f1_score, :float, 4
34
+ optional :recall_at1, :float, 5
35
+ optional :precision_at1, :float, 6
36
+ optional :false_positive_rate_at1, :float, 9
37
+ optional :f1_score_at1, :float, 7
38
+ optional :true_positive_count, :int64, 10
39
+ optional :false_positive_count, :int64, 11
40
+ optional :false_negative_count, :int64, 12
41
+ optional :true_negative_count, :int64, 13
42
+ end
43
+ add_message "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix" do
44
+ repeated :annotation_spec_id, :string, 1
45
+ repeated :display_name, :string, 3
46
+ repeated :row, :message, 2, "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row"
47
+ end
48
+ add_message "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row" do
49
+ repeated :example_count, :int32, 1
50
+ end
51
+ add_enum "google.cloud.automl.v1beta1.ClassificationType" do
52
+ value :CLASSIFICATION_TYPE_UNSPECIFIED, 0
53
+ value :MULTICLASS, 1
54
+ value :MULTILABEL, 2
55
+ end
56
+ end
57
+ end
58
+
59
+ module Google
60
+ module Cloud
61
+ module AutoML
62
+ module V1beta1
63
+ ClassificationAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationAnnotation").msgclass
64
+ VideoClassificationAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoClassificationAnnotation").msgclass
65
+ ClassificationEvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics").msgclass
66
+ ClassificationEvaluationMetrics::ConfidenceMetricsEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry").msgclass
67
+ ClassificationEvaluationMetrics::ConfusionMatrix = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix").msgclass
68
+ ClassificationEvaluationMetrics::ConfusionMatrix::Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row").msgclass
69
+ ClassificationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationType").enummodule
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,36 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/automl/v1beta1/column_spec.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ require 'google/cloud/automl/v1beta1/data_stats_pb'
8
+ require 'google/cloud/automl/v1beta1/data_types_pb'
9
+ require 'google/api/annotations_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/automl/v1beta1/column_spec.proto", :syntax => :proto3) do
12
+ add_message "google.cloud.automl.v1beta1.ColumnSpec" do
13
+ optional :name, :string, 1
14
+ optional :data_type, :message, 2, "google.cloud.automl.v1beta1.DataType"
15
+ optional :display_name, :string, 3
16
+ optional :data_stats, :message, 4, "google.cloud.automl.v1beta1.DataStats"
17
+ repeated :top_correlated_columns, :message, 5, "google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn"
18
+ optional :etag, :string, 6
19
+ end
20
+ add_message "google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn" do
21
+ optional :column_spec_id, :string, 1
22
+ optional :correlation_stats, :message, 2, "google.cloud.automl.v1beta1.CorrelationStats"
23
+ end
24
+ end
25
+ end
26
+
27
+ module Google
28
+ module Cloud
29
+ module AutoML
30
+ module V1beta1
31
+ ColumnSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ColumnSpec").msgclass
32
+ ColumnSpec::CorrelatedColumn = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn").msgclass
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,95 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/automl/v1beta1/data_items.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/cloud/automl/v1beta1/geometry_pb'
7
+ require 'google/cloud/automl/v1beta1/io_pb'
8
+ require 'google/cloud/automl/v1beta1/temporal_pb'
9
+ require 'google/cloud/automl/v1beta1/text_segment_pb'
10
+ require 'google/protobuf/any_pb'
11
+ require 'google/protobuf/duration_pb'
12
+ require 'google/protobuf/struct_pb'
13
+ require 'google/api/annotations_pb'
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/cloud/automl/v1beta1/data_items.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.automl.v1beta1.Image" do
17
+ optional :thumbnail_uri, :string, 4
18
+ oneof :data do
19
+ optional :image_bytes, :bytes, 1
20
+ optional :input_config, :message, 6, "google.cloud.automl.v1beta1.InputConfig"
21
+ end
22
+ end
23
+ add_message "google.cloud.automl.v1beta1.TextSnippet" do
24
+ optional :content, :string, 1
25
+ optional :mime_type, :string, 2
26
+ optional :content_uri, :string, 4
27
+ end
28
+ add_message "google.cloud.automl.v1beta1.DocumentDimensions" do
29
+ optional :unit, :enum, 1, "google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit"
30
+ optional :width, :float, 2
31
+ optional :height, :float, 3
32
+ end
33
+ add_enum "google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit" do
34
+ value :DOCUMENT_DIMENSION_UNIT_UNSPECIFIED, 0
35
+ value :INCH, 1
36
+ value :CENTIMETER, 2
37
+ value :POINT, 3
38
+ end
39
+ add_message "google.cloud.automl.v1beta1.Document" do
40
+ optional :input_config, :message, 1, "google.cloud.automl.v1beta1.DocumentInputConfig"
41
+ optional :document_text, :message, 2, "google.cloud.automl.v1beta1.TextSnippet"
42
+ repeated :layout, :message, 3, "google.cloud.automl.v1beta1.Document.Layout"
43
+ optional :document_dimensions, :message, 4, "google.cloud.automl.v1beta1.DocumentDimensions"
44
+ optional :page_count, :int32, 5
45
+ end
46
+ add_message "google.cloud.automl.v1beta1.Document.Layout" do
47
+ optional :text_segment, :message, 1, "google.cloud.automl.v1beta1.TextSegment"
48
+ optional :page_number, :int32, 2
49
+ optional :bounding_poly, :message, 3, "google.cloud.automl.v1beta1.BoundingPoly"
50
+ optional :text_segment_type, :enum, 4, "google.cloud.automl.v1beta1.Document.Layout.TextSegmentType"
51
+ end
52
+ add_enum "google.cloud.automl.v1beta1.Document.Layout.TextSegmentType" do
53
+ value :TEXT_SEGMENT_TYPE_UNSPECIFIED, 0
54
+ value :TOKEN, 1
55
+ value :PARAGRAPH, 2
56
+ value :FORM_FIELD, 3
57
+ value :FORM_FIELD_NAME, 4
58
+ value :FORM_FIELD_CONTENTS, 5
59
+ value :TABLE, 6
60
+ value :TABLE_HEADER, 7
61
+ value :TABLE_ROW, 8
62
+ value :TABLE_CELL, 9
63
+ end
64
+ add_message "google.cloud.automl.v1beta1.Row" do
65
+ repeated :column_spec_ids, :string, 2
66
+ repeated :values, :message, 3, "google.protobuf.Value"
67
+ end
68
+ add_message "google.cloud.automl.v1beta1.ExamplePayload" do
69
+ oneof :payload do
70
+ optional :image, :message, 1, "google.cloud.automl.v1beta1.Image"
71
+ optional :text_snippet, :message, 2, "google.cloud.automl.v1beta1.TextSnippet"
72
+ optional :document, :message, 4, "google.cloud.automl.v1beta1.Document"
73
+ optional :row, :message, 3, "google.cloud.automl.v1beta1.Row"
74
+ end
75
+ end
76
+ end
77
+ end
78
+
79
+ module Google
80
+ module Cloud
81
+ module AutoML
82
+ module V1beta1
83
+ Image = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Image").msgclass
84
+ TextSnippet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextSnippet").msgclass
85
+ DocumentDimensions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DocumentDimensions").msgclass
86
+ DocumentDimensions::DocumentDimensionUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit").enummodule
87
+ Document = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Document").msgclass
88
+ Document::Layout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Document.Layout").msgclass
89
+ Document::Layout::TextSegmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Document.Layout.TextSegmentType").enummodule
90
+ Row = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Row").msgclass
91
+ ExamplePayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ExamplePayload").msgclass
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,84 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/automl/v1beta1/data_stats.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/automl/v1beta1/data_stats.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.automl.v1beta1.DataStats" do
10
+ optional :distinct_value_count, :int64, 1
11
+ optional :null_value_count, :int64, 2
12
+ optional :valid_value_count, :int64, 9
13
+ oneof :stats do
14
+ optional :float64_stats, :message, 3, "google.cloud.automl.v1beta1.Float64Stats"
15
+ optional :string_stats, :message, 4, "google.cloud.automl.v1beta1.StringStats"
16
+ optional :timestamp_stats, :message, 5, "google.cloud.automl.v1beta1.TimestampStats"
17
+ optional :array_stats, :message, 6, "google.cloud.automl.v1beta1.ArrayStats"
18
+ optional :struct_stats, :message, 7, "google.cloud.automl.v1beta1.StructStats"
19
+ optional :category_stats, :message, 8, "google.cloud.automl.v1beta1.CategoryStats"
20
+ end
21
+ end
22
+ add_message "google.cloud.automl.v1beta1.Float64Stats" do
23
+ optional :mean, :double, 1
24
+ optional :standard_deviation, :double, 2
25
+ repeated :quantiles, :double, 3
26
+ repeated :histogram_buckets, :message, 4, "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket"
27
+ end
28
+ add_message "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket" do
29
+ optional :min, :double, 1
30
+ optional :max, :double, 2
31
+ optional :count, :int64, 3
32
+ end
33
+ add_message "google.cloud.automl.v1beta1.StringStats" do
34
+ repeated :top_unigram_stats, :message, 1, "google.cloud.automl.v1beta1.StringStats.UnigramStats"
35
+ end
36
+ add_message "google.cloud.automl.v1beta1.StringStats.UnigramStats" do
37
+ optional :value, :string, 1
38
+ optional :count, :int64, 2
39
+ end
40
+ add_message "google.cloud.automl.v1beta1.TimestampStats" do
41
+ map :granular_stats, :string, :message, 1, "google.cloud.automl.v1beta1.TimestampStats.GranularStats"
42
+ end
43
+ add_message "google.cloud.automl.v1beta1.TimestampStats.GranularStats" do
44
+ map :buckets, :int32, :int64, 1
45
+ end
46
+ add_message "google.cloud.automl.v1beta1.ArrayStats" do
47
+ optional :member_stats, :message, 2, "google.cloud.automl.v1beta1.DataStats"
48
+ end
49
+ add_message "google.cloud.automl.v1beta1.StructStats" do
50
+ map :field_stats, :string, :message, 1, "google.cloud.automl.v1beta1.DataStats"
51
+ end
52
+ add_message "google.cloud.automl.v1beta1.CategoryStats" do
53
+ repeated :top_category_stats, :message, 1, "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats"
54
+ end
55
+ add_message "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats" do
56
+ optional :value, :string, 1
57
+ optional :count, :int64, 2
58
+ end
59
+ add_message "google.cloud.automl.v1beta1.CorrelationStats" do
60
+ optional :cramers_v, :double, 1
61
+ end
62
+ end
63
+ end
64
+
65
+ module Google
66
+ module Cloud
67
+ module AutoML
68
+ module V1beta1
69
+ DataStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DataStats").msgclass
70
+ Float64Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Float64Stats").msgclass
71
+ Float64Stats::HistogramBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Float64Stats.HistogramBucket").msgclass
72
+ StringStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StringStats").msgclass
73
+ StringStats::UnigramStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StringStats.UnigramStats").msgclass
74
+ TimestampStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TimestampStats").msgclass
75
+ TimestampStats::GranularStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TimestampStats.GranularStats").msgclass
76
+ ArrayStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ArrayStats").msgclass
77
+ StructStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StructStats").msgclass
78
+ CategoryStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CategoryStats").msgclass
79
+ CategoryStats::SingleCategoryStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats").msgclass
80
+ CorrelationStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CorrelationStats").msgclass
81
+ end
82
+ end
83
+ end
84
+ end