google-cloud-automl-v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google-cloud-automl-v1beta1.rb +21 -0
- data/lib/google/cloud/automl/v1beta1.rb +36 -0
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +41 -0
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +26 -0
- data/lib/google/cloud/automl/v1beta1/automl.rb +63 -0
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +2368 -0
- data/lib/google/cloud/automl/v1beta1/automl/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +564 -0
- data/lib/google/cloud/automl/v1beta1/automl/paths.rb +174 -0
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +73 -0
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +36 -0
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +95 -0
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +84 -0
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +43 -0
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +46 -0
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +59 -0
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +28 -0
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +57 -0
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +87 -0
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +45 -0
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +52 -0
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +97 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service.rb +53 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +586 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +564 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/paths.rb +52 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +50 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +79 -0
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -0
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +27 -0
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +187 -0
- data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +163 -0
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +31 -0
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +65 -0
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -0
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +39 -0
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +41 -0
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +25 -0
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +36 -0
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +41 -0
- data/lib/google/cloud/automl/v1beta1/version.rb +28 -0
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +32 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/automl/v1beta1/annotation_payload.rb +70 -0
- data/proto_docs/google/cloud/automl/v1beta1/annotation_spec.rb +46 -0
- data/proto_docs/google/cloud/automl/v1beta1/classification.rb +234 -0
- data/proto_docs/google/cloud/automl/v1beta1/column_spec.rb +77 -0
- data/proto_docs/google/cloud/automl/v1beta1/data_items.rb +227 -0
- data/proto_docs/google/cloud/automl/v1beta1/data_stats.rb +227 -0
- data/proto_docs/google/cloud/automl/v1beta1/data_types.rb +118 -0
- data/proto_docs/google/cloud/automl/v1beta1/dataset.rb +84 -0
- data/proto_docs/google/cloud/automl/v1beta1/detection.rb +152 -0
- data/proto_docs/google/cloud/automl/v1beta1/geometry.rb +53 -0
- data/proto_docs/google/cloud/automl/v1beta1/image.rb +205 -0
- data/proto_docs/google/cloud/automl/v1beta1/io.rb +1168 -0
- data/proto_docs/google/cloud/automl/v1beta1/model.rb +95 -0
- data/proto_docs/google/cloud/automl/v1beta1/model_evaluation.rb +103 -0
- data/proto_docs/google/cloud/automl/v1beta1/operations.rb +206 -0
- data/proto_docs/google/cloud/automl/v1beta1/prediction_service.rb +238 -0
- data/proto_docs/google/cloud/automl/v1beta1/ranges.rb +38 -0
- data/proto_docs/google/cloud/automl/v1beta1/regression.rb +48 -0
- data/proto_docs/google/cloud/automl/v1beta1/service.rb +447 -0
- data/proto_docs/google/cloud/automl/v1beta1/table_spec.rb +75 -0
- data/proto_docs/google/cloud/automl/v1beta1/tables.rb +300 -0
- data/proto_docs/google/cloud/automl/v1beta1/temporal.rb +40 -0
- data/proto_docs/google/cloud/automl/v1beta1/text.rb +76 -0
- data/proto_docs/google/cloud/automl/v1beta1/text_extraction.rb +73 -0
- data/proto_docs/google/cloud/automl/v1beta1/text_segment.rb +44 -0
- data/proto_docs/google/cloud/automl/v1beta1/text_sentiment.rb +86 -0
- data/proto_docs/google/cloud/automl/v1beta1/translation.rb +79 -0
- data/proto_docs/google/cloud/automl/v1beta1/video.rb +51 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +245 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/table_spec.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/automl/v1beta1/io_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/automl/v1beta1/table_spec.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.automl.v1beta1.TableSpec" do
|
12
|
+
optional :name, :string, 1
|
13
|
+
optional :time_column_spec_id, :string, 2
|
14
|
+
optional :row_count, :int64, 3
|
15
|
+
optional :valid_row_count, :int64, 4
|
16
|
+
optional :column_count, :int64, 7
|
17
|
+
repeated :input_configs, :message, 5, "google.cloud.automl.v1beta1.InputConfig"
|
18
|
+
optional :etag, :string, 6
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module AutoML
|
26
|
+
module V1beta1
|
27
|
+
TableSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TableSpec").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/tables.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/automl/v1beta1/classification_pb'
|
7
|
+
require 'google/cloud/automl/v1beta1/column_spec_pb'
|
8
|
+
require 'google/cloud/automl/v1beta1/data_items_pb'
|
9
|
+
require 'google/cloud/automl/v1beta1/data_stats_pb'
|
10
|
+
require 'google/cloud/automl/v1beta1/ranges_pb'
|
11
|
+
require 'google/cloud/automl/v1beta1/regression_pb'
|
12
|
+
require 'google/cloud/automl/v1beta1/temporal_pb'
|
13
|
+
require 'google/protobuf/struct_pb'
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
15
|
+
require 'google/api/annotations_pb'
|
16
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
|
+
add_file("google/cloud/automl/v1beta1/tables.proto", :syntax => :proto3) do
|
18
|
+
add_message "google.cloud.automl.v1beta1.TablesDatasetMetadata" do
|
19
|
+
optional :primary_table_spec_id, :string, 1
|
20
|
+
optional :target_column_spec_id, :string, 2
|
21
|
+
optional :weight_column_spec_id, :string, 3
|
22
|
+
optional :ml_use_column_spec_id, :string, 4
|
23
|
+
map :target_column_correlations, :string, :message, 6, "google.cloud.automl.v1beta1.CorrelationStats"
|
24
|
+
optional :stats_update_time, :message, 7, "google.protobuf.Timestamp"
|
25
|
+
end
|
26
|
+
add_message "google.cloud.automl.v1beta1.TablesModelMetadata" do
|
27
|
+
optional :target_column_spec, :message, 2, "google.cloud.automl.v1beta1.ColumnSpec"
|
28
|
+
repeated :input_feature_column_specs, :message, 3, "google.cloud.automl.v1beta1.ColumnSpec"
|
29
|
+
optional :optimization_objective, :string, 4
|
30
|
+
repeated :tables_model_column_info, :message, 5, "google.cloud.automl.v1beta1.TablesModelColumnInfo"
|
31
|
+
optional :train_budget_milli_node_hours, :int64, 6
|
32
|
+
optional :train_cost_milli_node_hours, :int64, 7
|
33
|
+
optional :disable_early_stopping, :bool, 12
|
34
|
+
oneof :additional_optimization_objective_config do
|
35
|
+
optional :optimization_objective_recall_value, :float, 17
|
36
|
+
optional :optimization_objective_precision_value, :float, 18
|
37
|
+
end
|
38
|
+
end
|
39
|
+
add_message "google.cloud.automl.v1beta1.TablesAnnotation" do
|
40
|
+
optional :score, :float, 1
|
41
|
+
optional :prediction_interval, :message, 4, "google.cloud.automl.v1beta1.DoubleRange"
|
42
|
+
optional :value, :message, 2, "google.protobuf.Value"
|
43
|
+
repeated :tables_model_column_info, :message, 3, "google.cloud.automl.v1beta1.TablesModelColumnInfo"
|
44
|
+
optional :baseline_score, :float, 5
|
45
|
+
end
|
46
|
+
add_message "google.cloud.automl.v1beta1.TablesModelColumnInfo" do
|
47
|
+
optional :column_spec_name, :string, 1
|
48
|
+
optional :column_display_name, :string, 2
|
49
|
+
optional :feature_importance, :float, 3
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
module Google
|
55
|
+
module Cloud
|
56
|
+
module AutoML
|
57
|
+
module V1beta1
|
58
|
+
TablesDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TablesDatasetMetadata").msgclass
|
59
|
+
TablesModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TablesModelMetadata").msgclass
|
60
|
+
TablesAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TablesAnnotation").msgclass
|
61
|
+
TablesModelColumnInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TablesModelColumnInfo").msgclass
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/temporal.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/duration_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/automl/v1beta1/temporal.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.automl.v1beta1.TimeSegment" do
|
11
|
+
optional :start_time_offset, :message, 1, "google.protobuf.Duration"
|
12
|
+
optional :end_time_offset, :message, 2, "google.protobuf.Duration"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module AutoML
|
20
|
+
module V1beta1
|
21
|
+
TimeSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TimeSegment").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/text_extraction.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/automl/v1beta1/text_segment_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/automl/v1beta1/text_extraction.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.automl.v1beta1.TextExtractionAnnotation" do
|
11
|
+
optional :score, :float, 1
|
12
|
+
oneof :annotation do
|
13
|
+
optional :text_segment, :message, 3, "google.cloud.automl.v1beta1.TextSegment"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
add_message "google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics" do
|
17
|
+
optional :au_prc, :float, 1
|
18
|
+
repeated :confidence_metrics_entries, :message, 2, "google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry"
|
19
|
+
end
|
20
|
+
add_message "google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry" do
|
21
|
+
optional :confidence_threshold, :float, 1
|
22
|
+
optional :recall, :float, 3
|
23
|
+
optional :precision, :float, 4
|
24
|
+
optional :f1_score, :float, 5
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module AutoML
|
32
|
+
module V1beta1
|
33
|
+
TextExtractionAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextExtractionAnnotation").msgclass
|
34
|
+
TextExtractionEvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics").msgclass
|
35
|
+
TextExtractionEvaluationMetrics::ConfidenceMetricsEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry").msgclass
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/text.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/automl/v1beta1/classification_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/automl/v1beta1/text.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.automl.v1beta1.TextClassificationDatasetMetadata" do
|
11
|
+
optional :classification_type, :enum, 1, "google.cloud.automl.v1beta1.ClassificationType"
|
12
|
+
end
|
13
|
+
add_message "google.cloud.automl.v1beta1.TextClassificationModelMetadata" do
|
14
|
+
optional :classification_type, :enum, 3, "google.cloud.automl.v1beta1.ClassificationType"
|
15
|
+
end
|
16
|
+
add_message "google.cloud.automl.v1beta1.TextExtractionDatasetMetadata" do
|
17
|
+
end
|
18
|
+
add_message "google.cloud.automl.v1beta1.TextExtractionModelMetadata" do
|
19
|
+
end
|
20
|
+
add_message "google.cloud.automl.v1beta1.TextSentimentDatasetMetadata" do
|
21
|
+
optional :sentiment_max, :int32, 1
|
22
|
+
end
|
23
|
+
add_message "google.cloud.automl.v1beta1.TextSentimentModelMetadata" do
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module AutoML
|
31
|
+
module V1beta1
|
32
|
+
TextClassificationDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextClassificationDatasetMetadata").msgclass
|
33
|
+
TextClassificationModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextClassificationModelMetadata").msgclass
|
34
|
+
TextExtractionDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextExtractionDatasetMetadata").msgclass
|
35
|
+
TextExtractionModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextExtractionModelMetadata").msgclass
|
36
|
+
TextSentimentDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextSentimentDatasetMetadata").msgclass
|
37
|
+
TextSentimentModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextSentimentModelMetadata").msgclass
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/text_segment.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/text_segment.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.automl.v1beta1.TextSegment" do
|
10
|
+
optional :content, :string, 3
|
11
|
+
optional :start_offset, :int64, 1
|
12
|
+
optional :end_offset, :int64, 2
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module AutoML
|
20
|
+
module V1beta1
|
21
|
+
TextSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextSegment").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/text_sentiment.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/automl/v1beta1/classification_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/automl/v1beta1/text_sentiment.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.automl.v1beta1.TextSentimentAnnotation" do
|
11
|
+
optional :sentiment, :int32, 1
|
12
|
+
end
|
13
|
+
add_message "google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics" do
|
14
|
+
optional :precision, :float, 1
|
15
|
+
optional :recall, :float, 2
|
16
|
+
optional :f1_score, :float, 3
|
17
|
+
optional :mean_absolute_error, :float, 4
|
18
|
+
optional :mean_squared_error, :float, 5
|
19
|
+
optional :linear_kappa, :float, 6
|
20
|
+
optional :quadratic_kappa, :float, 7
|
21
|
+
optional :confusion_matrix, :message, 8, "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix"
|
22
|
+
repeated :annotation_spec_id, :string, 9
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
module Google
|
28
|
+
module Cloud
|
29
|
+
module AutoML
|
30
|
+
module V1beta1
|
31
|
+
TextSentimentAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextSentimentAnnotation").msgclass
|
32
|
+
TextSentimentEvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics").msgclass
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/translation.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/cloud/automl/v1beta1/data_items_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/automl/v1beta1/translation.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.automl.v1beta1.TranslationDatasetMetadata" do
|
12
|
+
optional :source_language_code, :string, 1
|
13
|
+
optional :target_language_code, :string, 2
|
14
|
+
end
|
15
|
+
add_message "google.cloud.automl.v1beta1.TranslationEvaluationMetrics" do
|
16
|
+
optional :bleu_score, :double, 1
|
17
|
+
optional :base_bleu_score, :double, 2
|
18
|
+
end
|
19
|
+
add_message "google.cloud.automl.v1beta1.TranslationModelMetadata" do
|
20
|
+
optional :base_model, :string, 1
|
21
|
+
optional :source_language_code, :string, 2
|
22
|
+
optional :target_language_code, :string, 3
|
23
|
+
end
|
24
|
+
add_message "google.cloud.automl.v1beta1.TranslationAnnotation" do
|
25
|
+
optional :translated_content, :message, 1, "google.cloud.automl.v1beta1.TextSnippet"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module AutoML
|
33
|
+
module V1beta1
|
34
|
+
TranslationDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TranslationDatasetMetadata").msgclass
|
35
|
+
TranslationEvaluationMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TranslationEvaluationMetrics").msgclass
|
36
|
+
TranslationModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TranslationModelMetadata").msgclass
|
37
|
+
TranslationAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TranslationAnnotation").msgclass
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/automl/v1beta1/video.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/automl/v1beta1/classification_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/automl/v1beta1/video.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata" do
|
11
|
+
end
|
12
|
+
add_message "google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata" do
|
13
|
+
end
|
14
|
+
add_message "google.cloud.automl.v1beta1.VideoClassificationModelMetadata" do
|
15
|
+
end
|
16
|
+
add_message "google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata" do
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module AutoML
|
24
|
+
module V1beta1
|
25
|
+
VideoClassificationDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata").msgclass
|
26
|
+
VideoObjectTrackingDatasetMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata").msgclass
|
27
|
+
VideoClassificationModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoClassificationModelMetadata").msgclass
|
28
|
+
VideoObjectTrackingModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata").msgclass
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/common_resources.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
module Google
|
13
|
+
module Cloud
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|