google-cloud-automl 0.7.1 → 1.0.0

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 +51 -54
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +324 -0
  6. data/README.md +36 -25
  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 +74 -110
  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,146 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.cloud.automl.v1beta1.AutoMl": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 100,
14
- "retry_delay_multiplier": 1.3,
15
- "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "CreateDataset": {
24
- "timeout_millis": 5000,
25
- "retry_codes_name": "non_idempotent",
26
- "retry_params_name": "default"
27
- },
28
- "UpdateDataset": {
29
- "timeout_millis": 5000,
30
- "retry_codes_name": "non_idempotent",
31
- "retry_params_name": "default"
32
- },
33
- "GetDataset": {
34
- "timeout_millis": 5000,
35
- "retry_codes_name": "idempotent",
36
- "retry_params_name": "default"
37
- },
38
- "ListDatasets": {
39
- "timeout_millis": 50000,
40
- "retry_codes_name": "idempotent",
41
- "retry_params_name": "default"
42
- },
43
- "DeleteDataset": {
44
- "timeout_millis": 5000,
45
- "retry_codes_name": "idempotent",
46
- "retry_params_name": "default"
47
- },
48
- "ImportData": {
49
- "timeout_millis": 20000,
50
- "retry_codes_name": "non_idempotent",
51
- "retry_params_name": "default"
52
- },
53
- "ExportData": {
54
- "timeout_millis": 5000,
55
- "retry_codes_name": "non_idempotent",
56
- "retry_params_name": "default"
57
- },
58
- "CreateModel": {
59
- "timeout_millis": 20000,
60
- "retry_codes_name": "non_idempotent",
61
- "retry_params_name": "default"
62
- },
63
- "GetModel": {
64
- "timeout_millis": 5000,
65
- "retry_codes_name": "idempotent",
66
- "retry_params_name": "default"
67
- },
68
- "ListModels": {
69
- "timeout_millis": 50000,
70
- "retry_codes_name": "idempotent",
71
- "retry_params_name": "default"
72
- },
73
- "DeleteModel": {
74
- "timeout_millis": 5000,
75
- "retry_codes_name": "idempotent",
76
- "retry_params_name": "default"
77
- },
78
- "DeployModel": {
79
- "timeout_millis": 5000,
80
- "retry_codes_name": "non_idempotent",
81
- "retry_params_name": "default"
82
- },
83
- "UndeployModel": {
84
- "timeout_millis": 5000,
85
- "retry_codes_name": "non_idempotent",
86
- "retry_params_name": "default"
87
- },
88
- "GetModelEvaluation": {
89
- "timeout_millis": 5000,
90
- "retry_codes_name": "idempotent",
91
- "retry_params_name": "default"
92
- },
93
- "ExportModel": {
94
- "timeout_millis": 5000,
95
- "retry_codes_name": "non_idempotent",
96
- "retry_params_name": "default"
97
- },
98
- "ExportEvaluatedExamples": {
99
- "timeout_millis": 5000,
100
- "retry_codes_name": "non_idempotent",
101
- "retry_params_name": "default"
102
- },
103
- "ListModelEvaluations": {
104
- "timeout_millis": 50000,
105
- "retry_codes_name": "non_idempotent",
106
- "retry_params_name": "default"
107
- },
108
- "GetAnnotationSpec": {
109
- "timeout_millis": 5000,
110
- "retry_codes_name": "idempotent",
111
- "retry_params_name": "default"
112
- },
113
- "GetTableSpec": {
114
- "timeout_millis": 5000,
115
- "retry_codes_name": "idempotent",
116
- "retry_params_name": "default"
117
- },
118
- "ListTableSpecs": {
119
- "timeout_millis": 5000,
120
- "retry_codes_name": "idempotent",
121
- "retry_params_name": "default"
122
- },
123
- "UpdateTableSpec": {
124
- "timeout_millis": 5000,
125
- "retry_codes_name": "non_idempotent",
126
- "retry_params_name": "default"
127
- },
128
- "GetColumnSpec": {
129
- "timeout_millis": 5000,
130
- "retry_codes_name": "idempotent",
131
- "retry_params_name": "default"
132
- },
133
- "ListColumnSpecs": {
134
- "timeout_millis": 5000,
135
- "retry_codes_name": "idempotent",
136
- "retry_params_name": "default"
137
- },
138
- "UpdateColumnSpec": {
139
- "timeout_millis": 5000,
140
- "retry_codes_name": "non_idempotent",
141
- "retry_params_name": "default"
142
- }
143
- }
144
- }
145
- }
146
- }
@@ -1,109 +0,0 @@
1
- # Copyright 2019 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
- # EDITING INSTRUCTIONS
16
- # This file was generated from the file
17
- # https://github.com/googleapis/googleapis/blob/master/google/cloud/automl/v1beta1/service.proto,
18
- # and updates to that file get reflected here through a refresh process.
19
- # For the short term, the refresh process will only be runnable by Google
20
- # engineers.
21
-
22
-
23
- module Google
24
- module Cloud
25
- module AutoML
26
- module V1beta1
27
- class AutoMLClient
28
- ##
29
- # Gets the latest state of a long-running operation. Clients can use this
30
- # method to poll the operation result at intervals as recommended by the API
31
- # service.
32
- #
33
- # @param name [String]
34
- # The name of the operation resource.
35
- # @param options [Google::Gax::CallOptions]
36
- # Overrides the default settings for this call, e.g, timeout,
37
- # retries, etc.
38
- # @return [Google::Gax::Operation]
39
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
40
- # @example
41
- # require "google/cloud/automl"
42
- #
43
- # automl_client = Google::Cloud::AutoML::AutoML.new(version: :v1beta1)
44
- # operation_name = "projects/[PROJECT]/locations/[LOCATION]/operations/[OPERATION]"
45
- # operation = automl_client.get_operation(operation_name)
46
- #
47
- def get_operation name, options: nil
48
- proto_op = @operations_client.get_operation name, options: options
49
-
50
- Google::Gax::Operation.new(
51
- proto_op,
52
- @operations_client,
53
- nil,
54
- nil,
55
- call_options: options
56
- )
57
- end
58
-
59
- ##
60
- # Lists operations that match the specified filter in the request.
61
- #
62
- # @param name [String]
63
- # The name of the operation collection.
64
- # @param filter [String]
65
- # The standard list filter.
66
- # @param page_size [Integer]
67
- # The maximum number of resources contained in the underlying API
68
- # response. If page streaming is performed per-resource, this
69
- # parameter does not affect the return value. If page streaming is
70
- # performed per-page, this determines the maximum number of
71
- # resources in a page.
72
- # @param options [Google::Gax::CallOptions]
73
- # Overrides the default settings for this call, e.g, timeout,
74
- # retries, etc.
75
- # @return [Google::Gax::PagedEnumerable<Google::Gax::Operation>]
76
- # An enumerable of Google::Gax::Operation instances.
77
- # See Google::Gax::PagedEnumerable documentation for other
78
- # operations such as per-page iteration or access to the response
79
- # object.
80
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
81
- # @example
82
- # require "google/cloud/automl"
83
- #
84
- # automl_client = Google::Cloud::AutoML::AutoML.new(version: :v1beta1)
85
- # formatted_name = automl_client.class.location_path("[PROJECT]", "[LOCATION]")
86
- # operations = automl_client.list_operations(formatted_name, "")
87
- #
88
- def list_operations name, filter, page_size: nil, options: nil
89
- paged_operations = @operations_client.list_operations name, filter, page_size: page_size, options: options
90
- # Monkey-patch PagedEnumerable#each to yield Google::Gax::Operation instead of
91
- # Google::Longrunning::Operation.
92
- def paged_operations.each
93
- return enum_for :each unless block_given?
94
- super do |proto_op|
95
- yield Google::Gax::Operation.new(
96
- proto_op,
97
- @operations_client,
98
- nil,
99
- nil
100
- )
101
- end
102
- end
103
- paged_operations
104
- end
105
- end
106
- end
107
- end
108
- end
109
- end
@@ -1,66 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/automl/v1beta1/classification.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/cloud/automl/v1beta1/temporal_pb'
8
- require 'google/api/annotations_pb'
9
- Google::Protobuf::DescriptorPool.generated_pool.build 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
-
58
- module Google::Cloud::AutoML::V1beta1
59
- ClassificationAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationAnnotation").msgclass
60
- VideoClassificationAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoClassificationAnnotation").msgclass
61
- ClassificationEvaluationMetrics = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics").msgclass
62
- ClassificationEvaluationMetrics::ConfidenceMetricsEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry").msgclass
63
- ClassificationEvaluationMetrics::ConfusionMatrix = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix").msgclass
64
- ClassificationEvaluationMetrics::ConfusionMatrix::Row = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row").msgclass
65
- ClassificationType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ClassificationType").enummodule
66
- end
@@ -1,29 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/automl/v1beta1/column_spec.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/resource_pb'
8
- require 'google/cloud/automl/v1beta1/data_stats_pb'
9
- require 'google/cloud/automl/v1beta1/data_types_pb'
10
- require 'google/api/annotations_pb'
11
- Google::Protobuf::DescriptorPool.generated_pool.build 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
-
26
- module Google::Cloud::AutoML::V1beta1
27
- ColumnSpec = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ColumnSpec").msgclass
28
- ColumnSpec::CorrelatedColumn = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn").msgclass
29
- end
@@ -1,41 +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
- require "googleauth"
17
-
18
- module Google
19
- module Cloud
20
- module AutoML
21
- module V1beta1
22
- class Credentials < Google::Auth::Credentials
23
- SCOPE = [
24
- "https://www.googleapis.com/auth/cloud-platform"
25
- ].freeze
26
- PATH_ENV_VARS = %w(AUTOML_CREDENTIALS
27
- AUTOML_KEYFILE
28
- GOOGLE_CLOUD_CREDENTIALS
29
- GOOGLE_CLOUD_KEYFILE
30
- GCLOUD_KEYFILE)
31
- JSON_ENV_VARS = %w(AUTOML_CREDENTIALS_JSON
32
- AUTOML_KEYFILE_JSON
33
- GOOGLE_CLOUD_CREDENTIALS_JSON
34
- GOOGLE_CLOUD_KEYFILE_JSON
35
- GCLOUD_KEYFILE_JSON)
36
- DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
37
- end
38
- end
39
- end
40
- end
41
- end
@@ -1,88 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/automl/v1beta1/data_items.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/cloud/automl/v1beta1/geometry_pb'
8
- require 'google/cloud/automl/v1beta1/io_pb'
9
- require 'google/cloud/automl/v1beta1/temporal_pb'
10
- require 'google/cloud/automl/v1beta1/text_segment_pb'
11
- require 'google/protobuf/any_pb'
12
- require 'google/protobuf/duration_pb'
13
- require 'google/protobuf/struct_pb'
14
- require 'google/api/annotations_pb'
15
- Google::Protobuf::DescriptorPool.generated_pool.build 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
-
78
- module Google::Cloud::AutoML::V1beta1
79
- Image = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Image").msgclass
80
- TextSnippet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextSnippet").msgclass
81
- DocumentDimensions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DocumentDimensions").msgclass
82
- DocumentDimensions::DocumentDimensionUnit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit").enummodule
83
- Document = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Document").msgclass
84
- Document::Layout = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Document.Layout").msgclass
85
- Document::Layout::TextSegmentType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Document.Layout.TextSegmentType").enummodule
86
- Row = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Row").msgclass
87
- ExamplePayload = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ExamplePayload").msgclass
88
- end