google-cloud-automl 0.7.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +56 -59
  4. data/LICENSE.md +201 -0
  5. data/MIGRATING.md +324 -0
  6. data/README.md +97 -27
  7. data/lib/google-cloud-automl.rb +6 -2
  8. data/lib/google/cloud/automl.rb +132 -190
  9. data/lib/google/cloud/automl/version.rb +6 -2
  10. metadata +83 -107
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/automl/v1beta1.rb +0 -231
  13. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +0 -34
  14. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +0 -19
  15. data/lib/google/cloud/automl/v1beta1/automl_client.rb +0 -1909
  16. data/lib/google/cloud/automl/v1beta1/automl_client_config.json +0 -146
  17. data/lib/google/cloud/automl/v1beta1/automl_client_helpers.rb +0 -109
  18. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +0 -66
  19. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +0 -29
  20. data/lib/google/cloud/automl/v1beta1/credentials.rb +0 -41
  21. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +0 -88
  22. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +0 -77
  23. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +0 -36
  24. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +0 -39
  25. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +0 -52
  26. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/annotation_payload.rb +0 -63
  27. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/annotation_spec.rb +0 -39
  28. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/classification.rb +0 -212
  29. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/column_spec.rb +0 -67
  30. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb +0 -202
  31. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_stats.rb +0 -160
  32. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_types.rb +0 -99
  33. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/dataset.rb +0 -77
  34. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/detection.rb +0 -130
  35. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/geometry.rb +0 -43
  36. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/image.rb +0 -183
  37. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/io.rb +0 -1110
  38. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/model.rb +0 -88
  39. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/model_evaluation.rb +0 -96
  40. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/prediction_service.rb +0 -186
  41. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/ranges.rb +0 -31
  42. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/regression.rb +0 -41
  43. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/service.rb +0 -356
  44. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/table_spec.rb +0 -68
  45. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/tables.rb +0 -275
  46. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/temporal.rb +0 -33
  47. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text.rb +0 -54
  48. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_extraction.rb +0 -60
  49. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_segment.rb +0 -37
  50. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_sentiment.rb +0 -76
  51. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/translation.rb +0 -63
  52. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/video.rb +0 -35
  53. data/lib/google/cloud/automl/v1beta1/doc/google/longrunning/operations.rb +0 -51
  54. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/any.rb +0 -131
  55. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/duration.rb +0 -91
  56. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/field_mask.rb +0 -222
  57. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/struct.rb +0 -74
  58. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/timestamp.rb +0 -113
  59. data/lib/google/cloud/automl/v1beta1/doc/google/rpc/status.rb +0 -39
  60. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +0 -21
  61. data/lib/google/cloud/automl/v1beta1/image_pb.rb +0 -50
  62. data/lib/google/cloud/automl/v1beta1/io_pb.rb +0 -80
  63. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +0 -38
  64. data/lib/google/cloud/automl/v1beta1/model_pb.rb +0 -45
  65. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +0 -90
  66. data/lib/google/cloud/automl/v1beta1/prediction_service_client.rb +0 -480
  67. data/lib/google/cloud/automl/v1beta1/prediction_service_client_config.json +0 -36
  68. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +0 -43
  69. data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +0 -74
  70. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +0 -17
  71. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +0 -20
  72. data/lib/google/cloud/automl/v1beta1/service_pb.rb +0 -180
  73. data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +0 -158
  74. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +0 -24
  75. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +0 -58
  76. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +0 -18
  77. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +0 -32
  78. data/lib/google/cloud/automl/v1beta1/text_pb.rb +0 -34
  79. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +0 -18
  80. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +0 -29
  81. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +0 -34
  82. data/lib/google/cloud/automl/v1beta1/video_pb.rb +0 -25
@@ -1,67 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- module AutoML
19
- module V1beta1
20
- # A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were
21
- # given on import .
22
- # Used by:
23
- # * Tables
24
- # @!attribute [rw] name
25
- # @return [String]
26
- # Output only. The resource name of the column specs.
27
- # Form:
28
- #
29
- # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
30
- # @!attribute [rw] data_type
31
- # @return [Google::Cloud::AutoML::V1beta1::DataType]
32
- # The data type of elements stored in the column.
33
- # @!attribute [rw] display_name
34
- # @return [String]
35
- # Output only. The name of the column to show in the interface. The name can
36
- # be up to 100 characters long and can consist only of ASCII Latin letters
37
- # A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
38
- # must start with a letter or a digit.
39
- # @!attribute [rw] data_stats
40
- # @return [Google::Cloud::AutoML::V1beta1::DataStats]
41
- # Output only. Stats of the series of values in the column.
42
- # This field may be stale, see the ancestor's
43
- # Dataset.tables_dataset_metadata.stats_update_time field
44
- # for the timestamp at which these stats were last updated.
45
- # @!attribute [rw] top_correlated_columns
46
- # @return [Array<Google::Cloud::AutoML::V1beta1::ColumnSpec::CorrelatedColumn>]
47
- # Deprecated.
48
- # @!attribute [rw] etag
49
- # @return [String]
50
- # Used to perform consistent read-modify-write updates. If not set, a blind
51
- # "overwrite" update happens.
52
- class ColumnSpec
53
- # Identifies the table's column, and its correlation with the column this
54
- # ColumnSpec describes.
55
- # @!attribute [rw] column_spec_id
56
- # @return [String]
57
- # The column_spec_id of the correlated column, which belongs to the same
58
- # table as the in-context column.
59
- # @!attribute [rw] correlation_stats
60
- # @return [Google::Cloud::AutoML::V1beta1::CorrelationStats]
61
- # Correlation between this and the in-context column.
62
- class CorrelatedColumn; end
63
- end
64
- end
65
- end
66
- end
67
- end
@@ -1,202 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- module AutoML
19
- module V1beta1
20
- # A representation of an image.
21
- # Only images up to 30MB in size are supported.
22
- # @!attribute [rw] image_bytes
23
- # @return [String]
24
- # Image content represented as a stream of bytes.
25
- # Note: As with all `bytes` fields, protobuffers use a pure binary
26
- # representation, whereas JSON representations use base64.
27
- # @!attribute [rw] input_config
28
- # @return [Google::Cloud::AutoML::V1beta1::InputConfig]
29
- # An input config specifying the content of the image.
30
- # @!attribute [rw] thumbnail_uri
31
- # @return [String]
32
- # Output only. HTTP URI to the thumbnail image.
33
- class Image; end
34
-
35
- # A representation of a text snippet.
36
- # @!attribute [rw] content
37
- # @return [String]
38
- # Required. The content of the text snippet as a string. Up to 250000
39
- # characters long.
40
- # @!attribute [rw] mime_type
41
- # @return [String]
42
- # Optional. The format of {Google::Cloud::AutoML::V1beta1::TextSnippet#content content}. Currently the only two allowed
43
- # values are "text/html" and "text/plain". If left blank, the format is
44
- # automatically determined from the type of the uploaded {Google::Cloud::AutoML::V1beta1::TextSnippet#content content}.
45
- # @!attribute [rw] content_uri
46
- # @return [String]
47
- # Output only. HTTP URI where you can download the content.
48
- class TextSnippet; end
49
-
50
- # Message that describes dimension of a document.
51
- # @!attribute [rw] unit
52
- # @return [Google::Cloud::AutoML::V1beta1::DocumentDimensions::DocumentDimensionUnit]
53
- # Unit of the dimension.
54
- # @!attribute [rw] width
55
- # @return [Float]
56
- # Width value of the document, works together with the unit.
57
- # @!attribute [rw] height
58
- # @return [Float]
59
- # Height value of the document, works together with the unit.
60
- class DocumentDimensions
61
- # Unit of the document dimension.
62
- module DocumentDimensionUnit
63
- # Should not be used.
64
- DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0
65
-
66
- # Document dimension is measured in inches.
67
- INCH = 1
68
-
69
- # Document dimension is measured in centimeters.
70
- CENTIMETER = 2
71
-
72
- # Document dimension is measured in points. 72 points = 1 inch.
73
- POINT = 3
74
- end
75
- end
76
-
77
- # A structured text document e.g. a PDF.
78
- # @!attribute [rw] input_config
79
- # @return [Google::Cloud::AutoML::V1beta1::DocumentInputConfig]
80
- # An input config specifying the content of the document.
81
- # @!attribute [rw] document_text
82
- # @return [Google::Cloud::AutoML::V1beta1::TextSnippet]
83
- # The plain text version of this document.
84
- # @!attribute [rw] layout
85
- # @return [Array<Google::Cloud::AutoML::V1beta1::Document::Layout>]
86
- # Describes the layout of the document.
87
- # Sorted by \\{Page_number}.
88
- # @!attribute [rw] document_dimensions
89
- # @return [Google::Cloud::AutoML::V1beta1::DocumentDimensions]
90
- # The dimensions of the page in the document.
91
- # @!attribute [rw] page_count
92
- # @return [Integer]
93
- # Number of pages in the document.
94
- class Document
95
- # Describes the layout information of a {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in the document.
96
- # @!attribute [rw] text_segment
97
- # @return [Google::Cloud::AutoML::V1beta1::TextSegment]
98
- # Text Segment that represents a segment in
99
- # {Google::Cloud::AutoML::V1beta1::Document#document_text document_text}.
100
- # @!attribute [rw] page_number
101
- # @return [Integer]
102
- # Page number of the {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in the original document, starts
103
- # from 1.
104
- # @!attribute [rw] bounding_poly
105
- # @return [Google::Cloud::AutoML::V1beta1::BoundingPoly]
106
- # The position of the {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in the page.
107
- # Contains exactly 4
108
- #
109
- # {Google::Cloud::AutoML::V1beta1::BoundingPoly#normalized_vertices normalized_vertices}
110
- # and they are connected by edges in the order provided, which will
111
- # represent a rectangle parallel to the frame. The
112
- # {Google::Cloud::AutoML::V1beta1::NormalizedVertex NormalizedVertex-s} are
113
- # relative to the page.
114
- # Coordinates are based on top-left as point (0,0).
115
- # @!attribute [rw] text_segment_type
116
- # @return [Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType]
117
- # The type of the {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in document.
118
- class Layout
119
- # The type of TextSegment in the context of the original document.
120
- module TextSegmentType
121
- # Should not be used.
122
- TEXT_SEGMENT_TYPE_UNSPECIFIED = 0
123
-
124
- # The text segment is a token. e.g. word.
125
- TOKEN = 1
126
-
127
- # The text segment is a paragraph.
128
- PARAGRAPH = 2
129
-
130
- # The text segment is a form field.
131
- FORM_FIELD = 3
132
-
133
- # The text segment is the name part of a form field. It will be treated
134
- # as child of another FORM_FIELD TextSegment if its span is subspan of
135
- # another TextSegment with type FORM_FIELD.
136
- FORM_FIELD_NAME = 4
137
-
138
- # The text segment is the text content part of a form field. It will be
139
- # treated as child of another FORM_FIELD TextSegment if its span is
140
- # subspan of another TextSegment with type FORM_FIELD.
141
- FORM_FIELD_CONTENTS = 5
142
-
143
- # The text segment is a whole table, including headers, and all rows.
144
- TABLE = 6
145
-
146
- # The text segment is a table's headers. It will be treated as child of
147
- # another TABLE TextSegment if its span is subspan of another TextSegment
148
- # with type TABLE.
149
- TABLE_HEADER = 7
150
-
151
- # The text segment is a row in table. It will be treated as child of
152
- # another TABLE TextSegment if its span is subspan of another TextSegment
153
- # with type TABLE.
154
- TABLE_ROW = 8
155
-
156
- # The text segment is a cell in table. It will be treated as child of
157
- # another TABLE_ROW TextSegment if its span is subspan of another
158
- # TextSegment with type TABLE_ROW.
159
- TABLE_CELL = 9
160
- end
161
- end
162
- end
163
-
164
- # A representation of a row in a relational table.
165
- # @!attribute [rw] column_spec_ids
166
- # @return [Array<String>]
167
- # The resource IDs of the column specs describing the columns of the row.
168
- # If set must contain, but possibly in a different order, all input
169
- # feature
170
- #
171
- # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#input_feature_column_specs column_spec_ids}
172
- # of the Model this row is being passed to.
173
- # Note: The below `values` field must match order of this field, if this
174
- # field is set.
175
- # @!attribute [rw] values
176
- # @return [Array<Google::Protobuf::Value>]
177
- # Required. The values of the row cells, given in the same order as the
178
- # column_spec_ids, or, if not set, then in the same order as input
179
- # feature
180
- #
181
- # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#input_feature_column_specs column_specs}
182
- # of the Model this row is being passed to.
183
- class Row; end
184
-
185
- # Example data used for training or prediction.
186
- # @!attribute [rw] image
187
- # @return [Google::Cloud::AutoML::V1beta1::Image]
188
- # Example image.
189
- # @!attribute [rw] text_snippet
190
- # @return [Google::Cloud::AutoML::V1beta1::TextSnippet]
191
- # Example text.
192
- # @!attribute [rw] document
193
- # @return [Google::Cloud::AutoML::V1beta1::Document]
194
- # Example document.
195
- # @!attribute [rw] row
196
- # @return [Google::Cloud::AutoML::V1beta1::Row]
197
- # Example relational table row.
198
- class ExamplePayload; end
199
- end
200
- end
201
- end
202
- end
@@ -1,160 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- module AutoML
19
- module V1beta1
20
- # The data statistics of a series of values that share the same DataType.
21
- # @!attribute [rw] float64_stats
22
- # @return [Google::Cloud::AutoML::V1beta1::Float64Stats]
23
- # The statistics for FLOAT64 DataType.
24
- # @!attribute [rw] string_stats
25
- # @return [Google::Cloud::AutoML::V1beta1::StringStats]
26
- # The statistics for STRING DataType.
27
- # @!attribute [rw] timestamp_stats
28
- # @return [Google::Cloud::AutoML::V1beta1::TimestampStats]
29
- # The statistics for TIMESTAMP DataType.
30
- # @!attribute [rw] array_stats
31
- # @return [Google::Cloud::AutoML::V1beta1::ArrayStats]
32
- # The statistics for ARRAY DataType.
33
- # @!attribute [rw] struct_stats
34
- # @return [Google::Cloud::AutoML::V1beta1::StructStats]
35
- # The statistics for STRUCT DataType.
36
- # @!attribute [rw] category_stats
37
- # @return [Google::Cloud::AutoML::V1beta1::CategoryStats]
38
- # The statistics for CATEGORY DataType.
39
- # @!attribute [rw] distinct_value_count
40
- # @return [Integer]
41
- # The number of distinct values.
42
- # @!attribute [rw] null_value_count
43
- # @return [Integer]
44
- # The number of values that are null.
45
- # @!attribute [rw] valid_value_count
46
- # @return [Integer]
47
- # The number of values that are valid.
48
- class DataStats; end
49
-
50
- # The data statistics of a series of FLOAT64 values.
51
- # @!attribute [rw] mean
52
- # @return [Float]
53
- # The mean of the series.
54
- # @!attribute [rw] standard_deviation
55
- # @return [Float]
56
- # The standard deviation of the series.
57
- # @!attribute [rw] quantiles
58
- # @return [Array<Float>]
59
- # Ordered from 0 to k k-quantile values of the data series of n values.
60
- # The value at index i is, approximately, the i*n/k-th smallest value in the
61
- # series; for i = 0 and i = k these are, respectively, the min and max
62
- # values.
63
- # @!attribute [rw] histogram_buckets
64
- # @return [Array<Google::Cloud::AutoML::V1beta1::Float64Stats::HistogramBucket>]
65
- # Histogram buckets of the data series. Sorted by the min value of the
66
- # bucket, ascendingly, and the number of the buckets is dynamically
67
- # generated. The buckets are non-overlapping and completely cover whole
68
- # FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
69
- # the last one being `"Infinity"`.
70
- class Float64Stats
71
- # A bucket of a histogram.
72
- # @!attribute [rw] min
73
- # @return [Float]
74
- # The minimum value of the bucket, inclusive.
75
- # @!attribute [rw] max
76
- # @return [Float]
77
- # The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
78
- # which case it's inclusive.
79
- # @!attribute [rw] count
80
- # @return [Integer]
81
- # The number of data values that are in the bucket, i.e. are between
82
- # min and max values.
83
- class HistogramBucket; end
84
- end
85
-
86
- # The data statistics of a series of STRING values.
87
- # @!attribute [rw] top_unigram_stats
88
- # @return [Array<Google::Cloud::AutoML::V1beta1::StringStats::UnigramStats>]
89
- # The statistics of the top 20 unigrams, ordered by
90
- # {Google::Cloud::AutoML::V1beta1::StringStats::UnigramStats#count count}.
91
- class StringStats
92
- # The statistics of a unigram.
93
- # @!attribute [rw] value
94
- # @return [String]
95
- # The unigram.
96
- # @!attribute [rw] count
97
- # @return [Integer]
98
- # The number of occurrences of this unigram in the series.
99
- class UnigramStats; end
100
- end
101
-
102
- # The data statistics of a series of TIMESTAMP values.
103
- # @!attribute [rw] granular_stats
104
- # @return [Hash{String => Google::Cloud::AutoML::V1beta1::TimestampStats::GranularStats}]
105
- # The string key is the pre-defined granularity. Currently supported:
106
- # hour_of_day, day_of_week, month_of_year.
107
- # Granularities finer that the granularity of timestamp data are not
108
- # populated (e.g. if timestamps are at day granularity, then hour_of_day
109
- # is not populated).
110
- class TimestampStats
111
- # Stats split by a defined in context granularity.
112
- # @!attribute [rw] buckets
113
- # @return [Hash{Integer => Integer}]
114
- # A map from granularity key to example count for that key.
115
- # E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
116
- class GranularStats; end
117
- end
118
-
119
- # The data statistics of a series of ARRAY values.
120
- # @!attribute [rw] member_stats
121
- # @return [Google::Cloud::AutoML::V1beta1::DataStats]
122
- # Stats of all the values of all arrays, as if they were a single long
123
- # series of data. The type depends on the element type of the array.
124
- class ArrayStats; end
125
-
126
- # The data statistics of a series of STRUCT values.
127
- # @!attribute [rw] field_stats
128
- # @return [Hash{String => Google::Cloud::AutoML::V1beta1::DataStats}]
129
- # Map from a field name of the struct to data stats aggregated over series
130
- # of all data in that field across all the structs.
131
- class StructStats; end
132
-
133
- # The data statistics of a series of CATEGORY values.
134
- # @!attribute [rw] top_category_stats
135
- # @return [Array<Google::Cloud::AutoML::V1beta1::CategoryStats::SingleCategoryStats>]
136
- # The statistics of the top 20 CATEGORY values, ordered by
137
- #
138
- # {Google::Cloud::AutoML::V1beta1::CategoryStats::SingleCategoryStats#count count}.
139
- class CategoryStats
140
- # The statistics of a single CATEGORY value.
141
- # @!attribute [rw] value
142
- # @return [String]
143
- # The CATEGORY value.
144
- # @!attribute [rw] count
145
- # @return [Integer]
146
- # The number of occurrences of this value in the series.
147
- class SingleCategoryStats; end
148
- end
149
-
150
- # A correlation statistics between two series of DataType values. The series
151
- # may have differing DataType-s, but within a single series the DataType must
152
- # be the same.
153
- # @!attribute [rw] cramers_v
154
- # @return [Float]
155
- # The correlation value using the Cramer's V measure.
156
- class CorrelationStats; end
157
- end
158
- end
159
- end
160
- end
@@ -1,99 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- module AutoML
19
- module V1beta1
20
- # Indicated the type of data that can be stored in a structured data entity
21
- # (e.g. a table).
22
- # @!attribute [rw] list_element_type
23
- # @return [Google::Cloud::AutoML::V1beta1::DataType]
24
- # If {Google::Cloud::AutoML::V1beta1::DataType#type_code type_code} == {Google::Cloud::AutoML::V1beta1::TypeCode::ARRAY ARRAY},
25
- # then `list_element_type` is the type of the elements.
26
- # @!attribute [rw] struct_type
27
- # @return [Google::Cloud::AutoML::V1beta1::StructType]
28
- # If {Google::Cloud::AutoML::V1beta1::DataType#type_code type_code} == {Google::Cloud::AutoML::V1beta1::TypeCode::STRUCT STRUCT}, then `struct_type`
29
- # provides type information for the struct's fields.
30
- # @!attribute [rw] time_format
31
- # @return [String]
32
- # If {Google::Cloud::AutoML::V1beta1::DataType#type_code type_code} == {Google::Cloud::AutoML::V1beta1::TypeCode::TIMESTAMP TIMESTAMP}
33
- # then `time_format` provides the format in which that time field is
34
- # expressed. The time_format must either be one of:
35
- # * `UNIX_SECONDS`
36
- # * `UNIX_MILLISECONDS`
37
- # * `UNIX_MICROSECONDS`
38
- # * `UNIX_NANOSECONDS`
39
- # (for respectively number of seconds, milliseconds, microseconds and
40
- # nanoseconds since start of the Unix epoch);
41
- # or be written in `strftime` syntax. If time_format is not set, then the
42
- # default format as described on the type_code is used.
43
- # @!attribute [rw] type_code
44
- # @return [Google::Cloud::AutoML::V1beta1::TypeCode]
45
- # Required. The {Google::Cloud::AutoML::V1beta1::TypeCode TypeCode} for this type.
46
- # @!attribute [rw] nullable
47
- # @return [true, false]
48
- # If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
49
- # expressed as an empty string.
50
- class DataType; end
51
-
52
- # `StructType` defines the DataType-s of a {Google::Cloud::AutoML::V1beta1::TypeCode::STRUCT STRUCT} type.
53
- # @!attribute [rw] fields
54
- # @return [Hash{String => Google::Cloud::AutoML::V1beta1::DataType}]
55
- # Unordered map of struct field names to their data types.
56
- # Fields cannot be added or removed via Update. Their names and
57
- # data types are still mutable.
58
- class StructType; end
59
-
60
- # `TypeCode` is used as a part of
61
- # {Google::Cloud::AutoML::V1beta1::DataType DataType}.
62
- module TypeCode
63
- # Not specified. Should not be used.
64
- TYPE_CODE_UNSPECIFIED = 0
65
-
66
- # Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
67
- # `"-Infinity"`.
68
- FLOAT64 = 3
69
-
70
- # Must be between 0AD and 9999AD. Encoded as `string` according to
71
- # {Google::Cloud::AutoML::V1beta1::DataType#time_format time_format}, or, if
72
- # that format is not set, then in RFC 3339 `date-time` format, where
73
- # `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
74
- TIMESTAMP = 4
75
-
76
- # Encoded as `string`.
77
- STRING = 6
78
-
79
- # Encoded as `list`, where the list elements are represented according to
80
- #
81
- # {Google::Cloud::AutoML::V1beta1::DataType#list_element_type list_element_type}.
82
- ARRAY = 8
83
-
84
- # Encoded as `struct`, where field values are represented according to
85
- # {Google::Cloud::AutoML::V1beta1::DataType#struct_type struct_type}.
86
- STRUCT = 9
87
-
88
- # Values of this type are not further understood by AutoML,
89
- # e.g. AutoML is unable to tell the order of values (as it could with
90
- # FLOAT64), or is unable to say if one value contains another (as it
91
- # could with STRING).
92
- # Encoded as `string` (bytes should be base64-encoded, as described in RFC
93
- # 4648, section 4).
94
- CATEGORY = 10
95
- end
96
- end
97
- end
98
- end
99
- end