google-cloud-automl-v1beta1 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  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 +16 -5
  6. data/lib/google/cloud/automl/v1beta1/automl/operations.rb +15 -4
  7. data/lib/google/cloud/automl/v1beta1/automl/rest/client.rb +473 -4
  8. data/lib/google/cloud/automl/v1beta1/automl/rest/operations.rb +108 -8
  9. data/lib/google/cloud/automl/v1beta1/automl/rest/service_stub.rb +24 -24
  10. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +25 -47
  11. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +26 -13
  12. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +28 -61
  13. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +24 -54
  14. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +24 -22
  15. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +30 -20
  16. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +26 -33
  17. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +24 -8
  18. data/lib/google/cloud/automl/v1beta1/image_pb.rb +24 -29
  19. data/lib/google/cloud/automl/v1beta1/io_pb.rb +24 -57
  20. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +31 -17
  21. data/lib/google/cloud/automl/v1beta1/model_pb.rb +30 -25
  22. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +27 -59
  23. data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +16 -5
  24. data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +15 -4
  25. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/client.rb +45 -4
  26. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/operations.rb +108 -8
  27. data/lib/google/cloud/automl/v1beta1/prediction_service/rest/service_stub.rb +2 -2
  28. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +27 -20
  29. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -5
  30. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +24 -8
  31. data/lib/google/cloud/automl/v1beta1/service_pb.rb +32 -125
  32. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +25 -10
  33. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +29 -34
  34. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -5
  35. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +25 -17
  36. data/lib/google/cloud/automl/v1beta1/text_pb.rb +24 -17
  37. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +24 -6
  38. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +25 -15
  39. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +25 -17
  40. data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
  41. data/lib/google/cloud/automl/v1beta1/video_pb.rb +24 -9
  42. data/proto_docs/google/api/client.rb +67 -4
  43. data/proto_docs/google/api/field_behavior.rb +14 -0
  44. data/proto_docs/google/protobuf/any.rb +7 -4
  45. data/proto_docs/google/protobuf/struct.rb +1 -1
  46. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  47. metadata +5 -5
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_predict_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_predict_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  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/prediction_service.proto
3
4
 
@@ -13,28 +14,34 @@ require 'google/cloud/automl/v1beta1/io_pb'
13
14
  require 'google/cloud/automl/v1beta1/operations_pb'
14
15
  require 'google/longrunning/operations_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/cloud/automl/v1beta1/prediction_service.proto", :syntax => :proto3) do
18
- add_message "google.cloud.automl.v1beta1.PredictRequest" do
19
- optional :name, :string, 1
20
- optional :payload, :message, 2, "google.cloud.automl.v1beta1.ExamplePayload"
21
- map :params, :string, :string, 3
22
- end
23
- add_message "google.cloud.automl.v1beta1.PredictResponse" do
24
- repeated :payload, :message, 1, "google.cloud.automl.v1beta1.AnnotationPayload"
25
- optional :preprocessed_input, :message, 3, "google.cloud.automl.v1beta1.ExamplePayload"
26
- map :metadata, :string, :string, 2
27
- end
28
- add_message "google.cloud.automl.v1beta1.BatchPredictRequest" do
29
- optional :name, :string, 1
30
- optional :input_config, :message, 3, "google.cloud.automl.v1beta1.BatchPredictInputConfig"
31
- optional :output_config, :message, 4, "google.cloud.automl.v1beta1.BatchPredictOutputConfig"
32
- map :params, :string, :string, 5
33
- end
34
- add_message "google.cloud.automl.v1beta1.BatchPredictResult" do
35
- map :metadata, :string, :string, 1
17
+
18
+ descriptor_data = "\n4google/cloud/automl/v1beta1/prediction_service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/automl/v1beta1/annotation_payload.proto\x1a,google/cloud/automl/v1beta1/data_items.proto\x1a$google/cloud/automl/v1beta1/io.proto\x1a,google/cloud/automl/v1beta1/operations.proto\x1a#google/longrunning/operations.proto\"\xfe\x01\n\x0ePredictRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\x41\n\x07payload\x18\x02 \x01(\x0b\x32+.google.cloud.automl.v1beta1.ExamplePayloadB\x03\xe0\x41\x02\x12G\n\x06params\x18\x03 \x03(\x0b\x32\x37.google.cloud.automl.v1beta1.PredictRequest.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9a\x02\n\x0fPredictResponse\x12?\n\x07payload\x18\x01 \x03(\x0b\x32..google.cloud.automl.v1beta1.AnnotationPayload\x12G\n\x12preprocessed_input\x18\x03 \x01(\x0b\x32+.google.cloud.automl.v1beta1.ExamplePayload\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.google.cloud.automl.v1beta1.PredictResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xee\x02\n\x13\x42\x61tchPredictRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12O\n\x0cinput_config\x18\x03 \x01(\x0b\x32\x34.google.cloud.automl.v1beta1.BatchPredictInputConfigB\x03\xe0\x41\x02\x12Q\n\routput_config\x18\x04 \x01(\x0b\x32\x35.google.cloud.automl.v1beta1.BatchPredictOutputConfigB\x03\xe0\x41\x02\x12Q\n\x06params\x18\x05 \x03(\x0b\x32<.google.cloud.automl.v1beta1.BatchPredictRequest.ParamsEntryB\x03\xe0\x41\x02\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x96\x01\n\x12\x42\x61tchPredictResult\x12O\n\x08metadata\x18\x01 \x03(\x0b\x32=.google.cloud.automl.v1beta1.BatchPredictResult.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\x9e\x04\n\x11PredictionService\x12\xbe\x01\n\x07Predict\x12+.google.cloud.automl.v1beta1.PredictRequest\x1a,.google.cloud.automl.v1beta1.PredictResponse\"X\x82\xd3\xe4\x93\x02<\"7/v1beta1/{name=projects/*/locations/*/models/*}:predict:\x01*\xda\x41\x13name,payload,params\x12\xfc\x01\n\x0c\x42\x61tchPredict\x12\x30.google.cloud.automl.v1beta1.BatchPredictRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\x82\xd3\xe4\x93\x02\x41\"</v1beta1/{name=projects/*/locations/*/models/*}:batchPredict:\x01*\xda\x41&name,input_config,output_config,params\xca\x41\'\n\x12\x42\x61tchPredictResult\x12\x11OperationMetadata\x1aI\xca\x41\x15\x61utoml.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb3\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x16PredictionServiceProtoP\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.cloud.automl.v1beta1.ExamplePayload", "google/cloud/automl/v1beta1/data_items.proto"],
34
+ ["google.cloud.automl.v1beta1.AnnotationPayload", "google/cloud/automl/v1beta1/annotation_payload.proto"],
35
+ ["google.cloud.automl.v1beta1.BatchPredictInputConfig", "google/cloud/automl/v1beta1/io.proto"],
36
+ ]
37
+ imports.each do |type_name, expected_filename|
38
+ import_file = pool.lookup(type_name).file_descriptor
39
+ if import_file.name != expected_filename
40
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
41
  end
37
42
  end
43
+ warn "Each proto file must use a consistent fully-qualified name."
44
+ warn "This will become an error in the next major version."
38
45
  end
39
46
 
40
47
  module Google
@@ -1,15 +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/ranges.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/ranges.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.DoubleRange" do
9
- optional :start, :double, 1
10
- optional :end, :double, 2
7
+
8
+ descriptor_data = "\n(google/cloud/automl/v1beta1/ranges.proto\x12\x1bgoogle.cloud.automl.v1beta1\")\n\x0b\x44oubleRange\x12\r\n\x05start\x18\x01 \x01(\x01\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x01\x42\xa8\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x0bRangesProtoP\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}"
11
28
  end
12
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."
13
32
  end
14
33
 
15
34
  module Google
@@ -1,18 +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/regression.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/regression.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.RegressionEvaluationMetrics" do
9
- optional :root_mean_squared_error, :float, 1
10
- optional :mean_absolute_error, :float, 2
11
- optional :mean_absolute_percentage_error, :float, 3
12
- optional :r_squared, :float, 4
13
- optional :root_mean_squared_log_error, :float, 5
7
+
8
+ descriptor_data = "\n,google/cloud/automl/v1beta1/regression.proto\x12\x1bgoogle.cloud.automl.v1beta1\"\xbb\x01\n\x1bRegressionEvaluationMetrics\x12\x1f\n\x17root_mean_squared_error\x18\x01 \x01(\x02\x12\x1b\n\x13mean_absolute_error\x18\x02 \x01(\x02\x12&\n\x1emean_absolute_percentage_error\x18\x03 \x01(\x02\x12\x11\n\tr_squared\x18\x04 \x01(\x02\x12#\n\x1broot_mean_squared_log_error\x18\x05 \x01(\x02\x42\xaa\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x0fRegressionProtoZ7cloud.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}"
14
28
  end
15
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."
16
32
  end
17
33
 
18
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/service.proto
3
4
 
@@ -20,133 +21,39 @@ require 'google/cloud/automl/v1beta1/table_spec_pb'
20
21
  require 'google/longrunning/operations_pb'
21
22
  require 'google/protobuf/field_mask_pb'
22
23
 
23
- Google::Protobuf::DescriptorPool.generated_pool.build do
24
- add_file("google/cloud/automl/v1beta1/service.proto", :syntax => :proto3) do
25
- add_message "google.cloud.automl.v1beta1.CreateDatasetRequest" do
26
- optional :parent, :string, 1
27
- optional :dataset, :message, 2, "google.cloud.automl.v1beta1.Dataset"
28
- end
29
- add_message "google.cloud.automl.v1beta1.GetDatasetRequest" do
30
- optional :name, :string, 1
31
- end
32
- add_message "google.cloud.automl.v1beta1.ListDatasetsRequest" do
33
- optional :parent, :string, 1
34
- optional :filter, :string, 3
35
- optional :page_size, :int32, 4
36
- optional :page_token, :string, 6
37
- end
38
- add_message "google.cloud.automl.v1beta1.ListDatasetsResponse" do
39
- repeated :datasets, :message, 1, "google.cloud.automl.v1beta1.Dataset"
40
- optional :next_page_token, :string, 2
41
- end
42
- add_message "google.cloud.automl.v1beta1.UpdateDatasetRequest" do
43
- optional :dataset, :message, 1, "google.cloud.automl.v1beta1.Dataset"
44
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
45
- end
46
- add_message "google.cloud.automl.v1beta1.DeleteDatasetRequest" do
47
- optional :name, :string, 1
48
- end
49
- add_message "google.cloud.automl.v1beta1.ImportDataRequest" do
50
- optional :name, :string, 1
51
- optional :input_config, :message, 3, "google.cloud.automl.v1beta1.InputConfig"
52
- end
53
- add_message "google.cloud.automl.v1beta1.ExportDataRequest" do
54
- optional :name, :string, 1
55
- optional :output_config, :message, 3, "google.cloud.automl.v1beta1.OutputConfig"
56
- end
57
- add_message "google.cloud.automl.v1beta1.GetAnnotationSpecRequest" do
58
- optional :name, :string, 1
59
- end
60
- add_message "google.cloud.automl.v1beta1.GetTableSpecRequest" do
61
- optional :name, :string, 1
62
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
63
- end
64
- add_message "google.cloud.automl.v1beta1.ListTableSpecsRequest" do
65
- optional :parent, :string, 1
66
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
67
- optional :filter, :string, 3
68
- optional :page_size, :int32, 4
69
- optional :page_token, :string, 6
70
- end
71
- add_message "google.cloud.automl.v1beta1.ListTableSpecsResponse" do
72
- repeated :table_specs, :message, 1, "google.cloud.automl.v1beta1.TableSpec"
73
- optional :next_page_token, :string, 2
74
- end
75
- add_message "google.cloud.automl.v1beta1.UpdateTableSpecRequest" do
76
- optional :table_spec, :message, 1, "google.cloud.automl.v1beta1.TableSpec"
77
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
78
- end
79
- add_message "google.cloud.automl.v1beta1.GetColumnSpecRequest" do
80
- optional :name, :string, 1
81
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
82
- end
83
- add_message "google.cloud.automl.v1beta1.ListColumnSpecsRequest" do
84
- optional :parent, :string, 1
85
- optional :field_mask, :message, 2, "google.protobuf.FieldMask"
86
- optional :filter, :string, 3
87
- optional :page_size, :int32, 4
88
- optional :page_token, :string, 6
89
- end
90
- add_message "google.cloud.automl.v1beta1.ListColumnSpecsResponse" do
91
- repeated :column_specs, :message, 1, "google.cloud.automl.v1beta1.ColumnSpec"
92
- optional :next_page_token, :string, 2
93
- end
94
- add_message "google.cloud.automl.v1beta1.UpdateColumnSpecRequest" do
95
- optional :column_spec, :message, 1, "google.cloud.automl.v1beta1.ColumnSpec"
96
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
97
- end
98
- add_message "google.cloud.automl.v1beta1.CreateModelRequest" do
99
- optional :parent, :string, 1
100
- optional :model, :message, 4, "google.cloud.automl.v1beta1.Model"
101
- end
102
- add_message "google.cloud.automl.v1beta1.GetModelRequest" do
103
- optional :name, :string, 1
104
- end
105
- add_message "google.cloud.automl.v1beta1.ListModelsRequest" do
106
- optional :parent, :string, 1
107
- optional :filter, :string, 3
108
- optional :page_size, :int32, 4
109
- optional :page_token, :string, 6
110
- end
111
- add_message "google.cloud.automl.v1beta1.ListModelsResponse" do
112
- repeated :model, :message, 1, "google.cloud.automl.v1beta1.Model"
113
- optional :next_page_token, :string, 2
114
- end
115
- add_message "google.cloud.automl.v1beta1.DeleteModelRequest" do
116
- optional :name, :string, 1
117
- end
118
- add_message "google.cloud.automl.v1beta1.DeployModelRequest" do
119
- optional :name, :string, 1
120
- oneof :model_deployment_metadata do
121
- optional :image_object_detection_model_deployment_metadata, :message, 2, "google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata"
122
- optional :image_classification_model_deployment_metadata, :message, 4, "google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata"
123
- end
124
- end
125
- add_message "google.cloud.automl.v1beta1.UndeployModelRequest" do
126
- optional :name, :string, 1
127
- end
128
- add_message "google.cloud.automl.v1beta1.ExportModelRequest" do
129
- optional :name, :string, 1
130
- optional :output_config, :message, 3, "google.cloud.automl.v1beta1.ModelExportOutputConfig"
131
- end
132
- add_message "google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest" do
133
- optional :name, :string, 1
134
- optional :output_config, :message, 3, "google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig"
135
- end
136
- add_message "google.cloud.automl.v1beta1.GetModelEvaluationRequest" do
137
- optional :name, :string, 1
138
- end
139
- add_message "google.cloud.automl.v1beta1.ListModelEvaluationsRequest" do
140
- optional :parent, :string, 1
141
- optional :filter, :string, 3
142
- optional :page_size, :int32, 4
143
- optional :page_token, :string, 6
144
- end
145
- add_message "google.cloud.automl.v1beta1.ListModelEvaluationsResponse" do
146
- repeated :model_evaluation, :message, 1, "google.cloud.automl.v1beta1.ModelEvaluation"
147
- optional :next_page_token, :string, 2
24
+
25
+ descriptor_data = "\n)google/cloud/automl/v1beta1/service.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/automl/v1beta1/annotation_payload.proto\x1a\x31google/cloud/automl/v1beta1/annotation_spec.proto\x1a-google/cloud/automl/v1beta1/column_spec.proto\x1a)google/cloud/automl/v1beta1/dataset.proto\x1a\'google/cloud/automl/v1beta1/image.proto\x1a$google/cloud/automl/v1beta1/io.proto\x1a\'google/cloud/automl/v1beta1/model.proto\x1a\x32google/cloud/automl/v1beta1/model_evaluation.proto\x1a,google/cloud/automl/v1beta1/operations.proto\x1a,google/cloud/automl/v1beta1/table_spec.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\"\x8d\x01\n\x14\x43reateDatasetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32$.google.cloud.automl.v1beta1.DatasetB\x03\xe0\x41\x02\"H\n\x11GetDatasetRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\"\x87\x01\n\x13ListDatasetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"g\n\x14ListDatasetsResponse\x12\x36\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32$.google.cloud.automl.v1beta1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x14UpdateDatasetRequest\x12:\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32$.google.cloud.automl.v1beta1.DatasetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x14\x44\x65leteDatasetRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\"\x8d\x01\n\x11ImportDataRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\x12\x43\n\x0cinput_config\x18\x03 \x01(\x0b\x32(.google.cloud.automl.v1beta1.InputConfigB\x03\xe0\x41\x02\"\x8f\x01\n\x11\x45xportDataRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\x12\x45\n\routput_config\x18\x03 \x01(\x0b\x32).google.cloud.automl.v1beta1.OutputConfigB\x03\xe0\x41\x02\"V\n\x18GetAnnotationSpecRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$automl.googleapis.com/AnnotationSpec\"|\n\x13GetTableSpecRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61utoml.googleapis.com/TableSpec\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb5\x01\n\x15ListTableSpecsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61utoml.googleapis.com/Dataset\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"n\n\x16ListTableSpecsResponse\x12;\n\x0btable_specs\x18\x01 \x03(\x0b\x32&.google.cloud.automl.v1beta1.TableSpec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x16UpdateTableSpecRequest\x12?\n\ntable_spec\x18\x01 \x01(\x0b\x32&.google.cloud.automl.v1beta1.TableSpecB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"~\n\x14GetColumnSpecRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n automl.googleapis.com/ColumnSpec\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb8\x01\n\x16ListColumnSpecsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61utoml.googleapis.com/TableSpec\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"q\n\x17ListColumnSpecsResponse\x12=\n\x0c\x63olumn_specs\x18\x01 \x03(\x0b\x32\'.google.cloud.automl.v1beta1.ColumnSpec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8d\x01\n\x17UpdateColumnSpecRequest\x12\x41\n\x0b\x63olumn_spec\x18\x01 \x01(\x0b\x32\'.google.cloud.automl.v1beta1.ColumnSpecB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x87\x01\n\x12\x43reateModelRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x36\n\x05model\x18\x04 \x01(\x0b\x32\".google.cloud.automl.v1beta1.ModelB\x03\xe0\x41\x02\"D\n\x0fGetModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\"\x85\x01\n\x11ListModelsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"`\n\x12ListModelsResponse\x12\x31\n\x05model\x18\x01 \x03(\x0b\x32\".google.cloud.automl.v1beta1.Model\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"G\n\x12\x44\x65leteModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\"\xef\x02\n\x12\x44\x65ployModelRequest\x12\x84\x01\n0image_object_detection_model_deployment_metadata\x18\x02 \x01(\x0b\x32H.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataH\x00\x12\x81\x01\n.image_classification_model_deployment_metadata\x18\x04 \x01(\x0b\x32G.google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadataH\x00\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/ModelB\x1b\n\x19model_deployment_metadata\"I\n\x14UndeployModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\"\x99\x01\n\x12\x45xportModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12P\n\routput_config\x18\x03 \x01(\x0b\x32\x34.google.cloud.automl.v1beta1.ModelExportOutputConfigB\x03\xe0\x41\x02\"\xb1\x01\n\x1e\x45xportEvaluatedExamplesRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\\\n\routput_config\x18\x03 \x01(\x0b\x32@.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigB\x03\xe0\x41\x02\"X\n\x19GetModelEvaluationRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%automl.googleapis.com/ModelEvaluation\"\x89\x01\n\x1bListModelEvaluationsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"\x7f\n\x1cListModelEvaluationsResponse\x12\x46\n\x10model_evaluation\x18\x01 \x03(\x0b\x32,.google.cloud.automl.v1beta1.ModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xed\'\n\x06\x41utoMl\x12\xbd\x01\n\rCreateDataset\x12\x31.google.cloud.automl.v1beta1.CreateDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"S\x82\xd3\xe4\x93\x02<\"1/v1beta1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\xda\x41\x0eparent,dataset\x12\xa4\x01\n\nGetDataset\x12..google.cloud.automl.v1beta1.GetDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\x12\xb7\x01\n\x0cListDatasets\x12\x30.google.cloud.automl.v1beta1.ListDatasetsRequest\x1a\x31.google.cloud.automl.v1beta1.ListDatasetsResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/locations/*}/datasets\xda\x41\x06parent\x12\xbe\x01\n\rUpdateDataset\x12\x31.google.cloud.automl.v1beta1.UpdateDatasetRequest\x1a$.google.cloud.automl.v1beta1.Dataset\"T\x82\xd3\xe4\x93\x02\x44\x32\x39/v1beta1/{dataset.name=projects/*/locations/*/datasets/*}:\x07\x64\x61taset\xda\x41\x07\x64\x61taset\x12\xd0\x01\n\rDeleteDataset\x12\x31.google.cloud.automl.v1beta1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation\"m\x82\xd3\xe4\x93\x02\x33*1/v1beta1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe6\x01\n\nImportData\x12..google.cloud.automl.v1beta1.ImportDataRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\x82\xd3\xe4\x93\x02\x41\"</v1beta1/{name=projects/*/locations/*/datasets/*}:importData:\x01*\xda\x41\x11name,input_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe7\x01\n\nExportData\x12..google.cloud.automl.v1beta1.ExportDataRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02\x41\"</v1beta1/{name=projects/*/locations/*/datasets/*}:exportData:\x01*\xda\x41\x12name,output_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xcb\x01\n\x11GetAnnotationSpec\x12\x35.google.cloud.automl.v1beta1.GetAnnotationSpecRequest\x1a+.google.cloud.automl.v1beta1.AnnotationSpec\"R\x82\xd3\xe4\x93\x02\x45\x12\x43/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}\xda\x41\x04name\x12\xb7\x01\n\x0cGetTableSpec\x12\x30.google.cloud.automl.v1beta1.GetTableSpecRequest\x1a&.google.cloud.automl.v1beta1.TableSpec\"M\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*}\xda\x41\x04name\x12\xca\x01\n\x0eListTableSpecs\x12\x32.google.cloud.automl.v1beta1.ListTableSpecsRequest\x1a\x33.google.cloud.automl.v1beta1.ListTableSpecsResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{parent=projects/*/locations/*/datasets/*}/tableSpecs\xda\x41\x06parent\x12\xda\x01\n\x0fUpdateTableSpec\x12\x33.google.cloud.automl.v1beta1.UpdateTableSpecRequest\x1a&.google.cloud.automl.v1beta1.TableSpec\"j\x82\xd3\xe4\x93\x02W2I/v1beta1/{table_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*}:\ntable_spec\xda\x41\ntable_spec\x12\xc8\x01\n\rGetColumnSpec\x12\x31.google.cloud.automl.v1beta1.GetColumnSpecRequest\x1a\'.google.cloud.automl.v1beta1.ColumnSpec\"[\x82\xd3\xe4\x93\x02N\x12L/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}\xda\x41\x04name\x12\xdb\x01\n\x0fListColumnSpecs\x12\x33.google.cloud.automl.v1beta1.ListColumnSpecsRequest\x1a\x34.google.cloud.automl.v1beta1.ListColumnSpecsResponse\"]\x82\xd3\xe4\x93\x02N\x12L/v1beta1/{parent=projects/*/locations/*/datasets/*/tableSpecs/*}/columnSpecs\xda\x41\x06parent\x12\xee\x01\n\x10UpdateColumnSpec\x12\x34.google.cloud.automl.v1beta1.UpdateColumnSpecRequest\x1a\'.google.cloud.automl.v1beta1.ColumnSpec\"{\x82\xd3\xe4\x93\x02g2X/v1beta1/{column_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}:\x0b\x63olumn_spec\xda\x41\x0b\x63olumn_spec\x12\xc9\x01\n\x0b\x43reateModel\x12/.google.cloud.automl.v1beta1.CreateModelRequest\x1a\x1d.google.longrunning.Operation\"j\x82\xd3\xe4\x93\x02\x38\"//v1beta1/{parent=projects/*/locations/*}/models:\x05model\xda\x41\x0cparent,model\xca\x41\x1a\n\x05Model\x12\x11OperationMetadata\x12\x9c\x01\n\x08GetModel\x12,.google.cloud.automl.v1beta1.GetModelRequest\x1a\".google.cloud.automl.v1beta1.Model\">\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{name=projects/*/locations/*/models/*}\xda\x41\x04name\x12\xaf\x01\n\nListModels\x12..google.cloud.automl.v1beta1.ListModelsRequest\x1a/.google.cloud.automl.v1beta1.ListModelsResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*/locations/*}/models\xda\x41\x06parent\x12\xca\x01\n\x0b\x44\x65leteModel\x12/.google.cloud.automl.v1beta1.DeleteModelRequest\x1a\x1d.google.longrunning.Operation\"k\x82\xd3\xe4\x93\x02\x31*//v1beta1/{name=projects/*/locations/*/models/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xd4\x01\n\x0b\x44\x65ployModel\x12/.google.cloud.automl.v1beta1.DeployModelRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02;\"6/v1beta1/{name=projects/*/locations/*/models/*}:deploy:\x01*\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xda\x01\n\rUndeployModel\x12\x31.google.cloud.automl.v1beta1.UndeployModelRequest\x1a\x1d.google.longrunning.Operation\"w\x82\xd3\xe4\x93\x02=\"8/v1beta1/{name=projects/*/locations/*/models/*}:undeploy:\x01*\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe3\x01\n\x0b\x45xportModel\x12/.google.cloud.automl.v1beta1.ExportModelRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\x82\xd3\xe4\x93\x02;\"6/v1beta1/{name=projects/*/locations/*/models/*}:export:\x01*\xda\x41\x12name,output_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\x8c\x02\n\x17\x45xportEvaluatedExamples\x12;.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest\x1a\x1d.google.longrunning.Operation\"\x94\x01\x82\xd3\xe4\x93\x02L\"G/v1beta1/{name=projects/*/locations/*/models/*}:exportEvaluatedExamples:\x01*\xda\x41\x12name,output_config\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xcd\x01\n\x12GetModelEvaluation\x12\x36.google.cloud.automl.v1beta1.GetModelEvaluationRequest\x1a,.google.cloud.automl.v1beta1.ModelEvaluation\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{name=projects/*/locations/*/models/*/modelEvaluations/*}\xda\x41\x04name\x12\xe0\x01\n\x14ListModelEvaluations\x12\x38.google.cloud.automl.v1beta1.ListModelEvaluationsRequest\x1a\x39.google.cloud.automl.v1beta1.ListModelEvaluationsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1beta1/{parent=projects/*/locations/*/models/*}/modelEvaluations\xda\x41\x06parent\x1aI\xca\x41\x15\x61utoml.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa8\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\x0b\x41utoMlProtoP\x01Z7cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb\xca\x02\x1bGoogle\\Cloud\\AutoMl\\V1beta1\xea\x02\x1eGoogle::Cloud::AutoML::V1beta1b\x06proto3"
26
+
27
+ pool = Google::Protobuf::DescriptorPool.generated_pool
28
+
29
+ begin
30
+ pool.add_serialized_file(descriptor_data)
31
+ rescue TypeError => e
32
+ # Compatibility code: will be removed in the next major version.
33
+ require 'google/protobuf/descriptor_pb'
34
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
35
+ parsed.clear_dependency
36
+ serialized = parsed.class.encode(parsed)
37
+ file = pool.add_serialized_file(serialized)
38
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
39
+ imports = [
40
+ ["google.cloud.automl.v1beta1.Dataset", "google/cloud/automl/v1beta1/dataset.proto"],
41
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
42
+ ["google.cloud.automl.v1beta1.InputConfig", "google/cloud/automl/v1beta1/io.proto"],
43
+ ["google.cloud.automl.v1beta1.TableSpec", "google/cloud/automl/v1beta1/table_spec.proto"],
44
+ ["google.cloud.automl.v1beta1.ColumnSpec", "google/cloud/automl/v1beta1/column_spec.proto"],
45
+ ["google.cloud.automl.v1beta1.Model", "google/cloud/automl/v1beta1/model.proto"],
46
+ ["google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata", "google/cloud/automl/v1beta1/image.proto"],
47
+ ["google.cloud.automl.v1beta1.ModelEvaluation", "google/cloud/automl/v1beta1/model_evaluation.proto"],
48
+ ]
49
+ imports.each do |type_name, expected_filename|
50
+ import_file = pool.lookup(type_name).file_descriptor
51
+ if import_file.name != expected_filename
52
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
148
53
  end
149
54
  end
55
+ warn "Each proto file must use a consistent fully-qualified name."
56
+ warn "This will become an error in the next major version."
150
57
  end
151
58
 
152
59
  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/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