google-cloud-automl-v1beta1 0.6.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +30 -15
  4. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +24 -6
  5. data/lib/google/cloud/automl/v1beta1/automl/client.rb +6 -4
  6. data/lib/google/cloud/automl/v1beta1/automl/operations.rb +5 -3
  7. data/lib/google/cloud/automl/v1beta1/automl/rest/client.rb +2224 -0
  8. data/lib/google/cloud/automl/v1beta1/automl/rest/operations.rb +937 -0
  9. data/lib/google/cloud/automl/v1beta1/automl/rest/service_stub.rb +1475 -0
  10. data/lib/google/cloud/automl/v1beta1/automl/rest.rb +66 -0
  11. data/lib/google/cloud/automl/v1beta1/automl.rb +6 -0
  12. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +25 -47
  13. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +26 -13
  14. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +28 -61
  15. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +24 -54
  16. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +24 -22
  17. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +30 -20
  18. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +26 -33
  19. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +24 -8
  20. data/lib/google/cloud/automl/v1beta1/image_pb.rb +24 -29
  21. data/lib/google/cloud/automl/v1beta1/io_pb.rb +24 -57
  22. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +31 -17
  23. data/lib/google/cloud/automl/v1beta1/model_pb.rb +30 -25
  24. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +27 -59
  25. data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +6 -4
  26. data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +5 -3
  27. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/client.rb +565 -0
  28. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/operations.rb +937 -0
  29. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/service_stub.rb +168 -0
  30. data/lib/google/cloud/automl/v1beta1/prediction_service/rest.rb +56 -0
  31. data/lib/google/cloud/automl/v1beta1/prediction_service.rb +6 -0
  32. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +27 -20
  33. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -5
  34. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +24 -8
  35. data/lib/google/cloud/automl/v1beta1/rest.rb +38 -0
  36. data/lib/google/cloud/automl/v1beta1/service_pb.rb +32 -125
  37. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +25 -10
  38. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +29 -34
  39. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -5
  40. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +25 -17
  41. data/lib/google/cloud/automl/v1beta1/text_pb.rb +24 -17
  42. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +24 -6
  43. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +25 -15
  44. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +25 -17
  45. data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
  46. data/lib/google/cloud/automl/v1beta1/video_pb.rb +24 -9
  47. data/lib/google/cloud/automl/v1beta1.rb +5 -0
  48. data/proto_docs/google/api/client.rb +67 -4
  49. data/proto_docs/google/protobuf/any.rb +7 -4
  50. data/proto_docs/google/protobuf/struct.rb +1 -1
  51. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  52. metadata +15 -5
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/table_spec.proto
3
4
 
@@ -6,18 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/cloud/automl/v1beta1/io_pb'
8
9
 
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
10
+
11
+ descriptor_data = "\n,google/cloud/automl/v1beta1/table_spec.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x19google/api/resource.proto\x1a$google/cloud/automl/v1beta1/io.proto\"\xc1\x02\n\tTableSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1b\n\x13time_column_spec_id\x18\x02 \x01(\t\x12\x11\n\trow_count\x18\x03 \x01(\x03\x12\x17\n\x0fvalid_row_count\x18\x04 \x01(\x03\x12\x14\n\x0c\x63olumn_count\x18\x07 \x01(\x03\x12?\n\rinput_configs\x18\x05 \x03(\x0b\x32(.google.cloud.automl.v1beta1.InputConfig\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t:x\xea\x41u\n\x1f\x61utoml.googleapis.com/TableSpec\x12Rprojects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}B\x9b\x01\n\x1f\x63om.google.cloud.automl.v1beta1P\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.cloud.automl.v1beta1.InputConfig", "google/cloud/automl/v1beta1/io.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
19
32
  end
20
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
21
36
  end
22
37
 
23
38
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/tables.proto
3
4
 
@@ -13,42 +14,36 @@ require 'google/cloud/automl/v1beta1/temporal_pb'
13
14
  require 'google/protobuf/struct_pb'
14
15
  require 'google/protobuf/timestamp_pb'
15
16
 
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
17
+
18
+ descriptor_data = "\n(google/cloud/automl/v1beta1/tables.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x30google/cloud/automl/v1beta1/classification.proto\x1a-google/cloud/automl/v1beta1/column_spec.proto\x1a,google/cloud/automl/v1beta1/data_items.proto\x1a,google/cloud/automl/v1beta1/data_stats.proto\x1a(google/cloud/automl/v1beta1/ranges.proto\x1a,google/cloud/automl/v1beta1/regression.proto\x1a*google/cloud/automl/v1beta1/temporal.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x03\n\x15TablesDatasetMetadata\x12\x1d\n\x15primary_table_spec_id\x18\x01 \x01(\t\x12\x1d\n\x15target_column_spec_id\x18\x02 \x01(\t\x12\x1d\n\x15weight_column_spec_id\x18\x03 \x01(\t\x12\x1d\n\x15ml_use_column_spec_id\x18\x04 \x01(\t\x12t\n\x1atarget_column_correlations\x18\x06 \x03(\x0b\x32P.google.cloud.automl.v1beta1.TablesDatasetMetadata.TargetColumnCorrelationsEntry\x12\x35\n\x11stats_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1an\n\x1dTargetColumnCorrelationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.cloud.automl.v1beta1.CorrelationStats:\x02\x38\x01\"\x96\x04\n\x13TablesModelMetadata\x12-\n#optimization_objective_recall_value\x18\x11 \x01(\x02H\x00\x12\x30\n&optimization_objective_precision_value\x18\x12 \x01(\x02H\x00\x12\x43\n\x12target_column_spec\x18\x02 \x01(\x0b\x32\'.google.cloud.automl.v1beta1.ColumnSpec\x12K\n\x1ainput_feature_column_specs\x18\x03 \x03(\x0b\x32\'.google.cloud.automl.v1beta1.ColumnSpec\x12\x1e\n\x16optimization_objective\x18\x04 \x01(\t\x12T\n\x18tables_model_column_info\x18\x05 \x03(\x0b\x32\x32.google.cloud.automl.v1beta1.TablesModelColumnInfo\x12%\n\x1dtrain_budget_milli_node_hours\x18\x06 \x01(\x03\x12#\n\x1btrain_cost_milli_node_hours\x18\x07 \x01(\x03\x12\x1e\n\x16\x64isable_early_stopping\x18\x0c \x01(\x08\x42*\n(additional_optimization_objective_config\"\xfd\x01\n\x10TablesAnnotation\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x45\n\x13prediction_interval\x18\x04 \x01(\x0b\x32(.google.cloud.automl.v1beta1.DoubleRange\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x12T\n\x18tables_model_column_info\x18\x03 \x03(\x0b\x32\x32.google.cloud.automl.v1beta1.TablesModelColumnInfo\x12\x16\n\x0e\x62\x61seline_score\x18\x05 \x01(\x02\"j\n\x15TablesModelColumnInfo\x12\x18\n\x10\x63olumn_spec_name\x18\x01 \x01(\t\x12\x1b\n\x13\x63olumn_display_name\x18\x02 \x01(\t\x12\x1a\n\x12\x66\x65\x61ture_importance\x18\x03 \x01(\x02\x42\x9b\x01\n\x1f\x63om.google.cloud.automl.v1beta1P\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
+ ["google.cloud.automl.v1beta1.CorrelationStats", "google/cloud/automl/v1beta1/data_stats.proto"],
35
+ ["google.cloud.automl.v1beta1.ColumnSpec", "google/cloud/automl/v1beta1/column_spec.proto"],
36
+ ["google.cloud.automl.v1beta1.DoubleRange", "google/cloud/automl/v1beta1/ranges.proto"],
37
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
38
+ ]
39
+ imports.each do |type_name, expected_filename|
40
+ import_file = pool.lookup(type_name).file_descriptor
41
+ if import_file.name != expected_filename
42
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
50
43
  end
51
44
  end
45
+ warn "Each proto file must use a consistent fully-qualified name."
46
+ warn "This will become an error in the next major version."
52
47
  end
53
48
 
54
49
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/temporal.proto
3
4
 
@@ -5,13 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/duration_pb'
7
8
 
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"
9
+
10
+ descriptor_data = "\n*google/cloud/automl/v1beta1/temporal.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1egoogle/protobuf/duration.proto\"w\n\x0bTimeSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x9b\x01\n\x1f\x63om.google.cloud.automl.v1beta1P\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
13
31
  end
14
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
15
35
  end
16
36
 
17
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/text_extraction.proto
3
4
 
@@ -5,25 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/automl/v1beta1/text_segment_pb'
7
8
 
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
9
+
10
+ descriptor_data = "\n1google/cloud/automl/v1beta1/text_extraction.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a.google/cloud/automl/v1beta1/text_segment.proto\"y\n\x18TextExtractionAnnotation\x12@\n\x0ctext_segment\x18\x03 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TextSegmentH\x00\x12\r\n\x05score\x18\x01 \x01(\x02\x42\x0c\n\nannotation\"\x97\x02\n\x1fTextExtractionEvaluationMetrics\x12\x0e\n\x06\x61u_prc\x18\x01 \x01(\x02\x12w\n\x1a\x63onfidence_metrics_entries\x18\x02 \x03(\x0b\x32S.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry\x1ak\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x03 \x01(\x02\x12\x11\n\tprecision\x18\x04 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x05 \x01(\x02\x42\x9b\x01\n\x1f\x63om.google.cloud.automl.v1beta1P\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.cloud.automl.v1beta1.TextSegment", "google/cloud/automl/v1beta1/text_segment.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
25
31
  end
26
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
27
35
  end
28
36
 
29
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/text.proto
3
4
 
@@ -5,25 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/automl/v1beta1/classification_pb'
7
8
 
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
- optional :model_hint, :string, 3
20
- end
21
- add_message "google.cloud.automl.v1beta1.TextSentimentDatasetMetadata" do
22
- optional :sentiment_max, :int32, 1
23
- end
24
- add_message "google.cloud.automl.v1beta1.TextSentimentModelMetadata" do
9
+
10
+ descriptor_data = "\n&google/cloud/automl/v1beta1/text.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x30google/cloud/automl/v1beta1/classification.proto\"q\n!TextClassificationDatasetMetadata\x12L\n\x13\x63lassification_type\x18\x01 \x01(\x0e\x32/.google.cloud.automl.v1beta1.ClassificationType\"o\n\x1fTextClassificationModelMetadata\x12L\n\x13\x63lassification_type\x18\x03 \x01(\x0e\x32/.google.cloud.automl.v1beta1.ClassificationType\"\x1f\n\x1dTextExtractionDatasetMetadata\"1\n\x1bTextExtractionModelMetadata\x12\x12\n\nmodel_hint\x18\x03 \x01(\t\"5\n\x1cTextSentimentDatasetMetadata\x12\x15\n\rsentiment_max\x18\x01 \x01(\x05\"\x1c\n\x1aTextSentimentModelMetadataB\xa6\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\tTextProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
25
30
  end
26
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
27
34
  end
28
35
 
29
36
  module Google
@@ -1,16 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/text_segment.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/automl/v1beta1/text_segment.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.TextSegment" do
9
- optional :content, :string, 3
10
- optional :start_offset, :int64, 1
11
- optional :end_offset, :int64, 2
7
+
8
+ descriptor_data = "\n.google/cloud/automl/v1beta1/text_segment.proto\x12\x1bgoogle.cloud.automl.v1beta1\"H\n\x0bTextSegment\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x14\n\x0cstart_offset\x18\x01 \x01(\x03\x12\x12\n\nend_offset\x18\x02 \x01(\x03\x42\xad\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x10TextSegmentProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
12
28
  end
13
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
14
32
  end
15
33
 
16
34
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/text_sentiment.proto
3
4
 
@@ -5,23 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/automl/v1beta1/classification_pb'
7
8
 
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
9
+
10
+ descriptor_data = "\n0google/cloud/automl/v1beta1/text_sentiment.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x30google/cloud/automl/v1beta1/classification.proto\",\n\x17TextSentimentAnnotation\x12\x11\n\tsentiment\x18\x01 \x01(\x05\"\xc5\x02\n\x1eTextSentimentEvaluationMetrics\x12\x11\n\tprecision\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x03 \x01(\x02\x12\x1b\n\x13mean_absolute_error\x18\x04 \x01(\x02\x12\x1a\n\x12mean_squared_error\x18\x05 \x01(\x02\x12\x14\n\x0clinear_kappa\x18\x06 \x01(\x02\x12\x17\n\x0fquadratic_kappa\x18\x07 \x01(\x02\x12\x66\n\x10\x63onfusion_matrix\x18\x08 \x01(\x0b\x32L.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix\x12\x1e\n\x12\x61nnotation_spec_id\x18\t \x03(\tB\x02\x18\x01\x42\xad\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x12TextSentimentProtoZ7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix", "google/cloud/automl/v1beta1/classification.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
23
31
  end
24
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
25
35
  end
26
36
 
27
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/translation.proto
3
4
 
@@ -6,25 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/cloud/automl/v1beta1/data_items_pb'
8
9
 
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"
10
+
11
+ descriptor_data = "\n-google/cloud/automl/v1beta1/translation.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a,google/cloud/automl/v1beta1/data_items.proto\"b\n\x1aTranslationDatasetMetadata\x12!\n\x14source_language_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14target_language_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"K\n\x1cTranslationEvaluationMetrics\x12\x12\n\nbleu_score\x18\x01 \x01(\x01\x12\x17\n\x0f\x62\x61se_bleu_score\x18\x02 \x01(\x01\"j\n\x18TranslationModelMetadata\x12\x12\n\nbase_model\x18\x01 \x01(\t\x12\x1c\n\x14source_language_code\x18\x02 \x01(\t\x12\x1c\n\x14target_language_code\x18\x03 \x01(\t\"]\n\x15TranslationAnnotation\x12\x44\n\x12translated_content\x18\x01 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TextSnippetB\xad\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x10TranslationProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.cloud.automl.v1beta1.TextSnippet", "google/cloud/automl/v1beta1/data_items.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
26
32
  end
27
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
28
36
  end
29
37
 
30
38
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AutoML
23
23
  module V1beta1
24
- VERSION = "0.6.1"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/automl/v1beta1/video.proto
3
4
 
@@ -5,17 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/automl/v1beta1/classification_pb'
7
8
 
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
9
+
10
+ descriptor_data = "\n\'google/cloud/automl/v1beta1/video.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x30google/cloud/automl/v1beta1/classification.proto\"$\n\"VideoClassificationDatasetMetadata\"$\n\"VideoObjectTrackingDatasetMetadata\"\"\n VideoClassificationModelMetadata\"\"\n VideoObjectTrackingModelMetadataB\xa7\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\nVideoProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
17
30
  end
18
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
19
34
  end
20
35
 
21
36
  module Google
@@ -31,6 +31,11 @@ module Google
31
31
  # require "google/cloud/automl/v1beta1"
32
32
  # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
33
33
  #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/automl/v1beta1"
37
+ # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Rest::Client.new
38
+ #
34
39
  module V1beta1
35
40
  end
36
41
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?