google-cloud-automl-v1beta1 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -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/data_items.proto
3
4
 
@@ -9,69 +10,35 @@ require 'google/cloud/automl/v1beta1/temporal_pb'
9
10
  require 'google/cloud/automl/v1beta1/text_segment_pb'
10
11
  require 'google/protobuf/struct_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/automl/v1beta1/data_items.proto", :syntax => :proto3) do
14
- add_message "google.cloud.automl.v1beta1.Image" do
15
- optional :thumbnail_uri, :string, 4
16
- oneof :data do
17
- optional :image_bytes, :bytes, 1
18
- optional :input_config, :message, 6, "google.cloud.automl.v1beta1.InputConfig"
19
- end
20
- end
21
- add_message "google.cloud.automl.v1beta1.TextSnippet" do
22
- optional :content, :string, 1
23
- optional :mime_type, :string, 2
24
- optional :content_uri, :string, 4
25
- end
26
- add_message "google.cloud.automl.v1beta1.DocumentDimensions" do
27
- optional :unit, :enum, 1, "google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit"
28
- optional :width, :float, 2
29
- optional :height, :float, 3
30
- end
31
- add_enum "google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit" do
32
- value :DOCUMENT_DIMENSION_UNIT_UNSPECIFIED, 0
33
- value :INCH, 1
34
- value :CENTIMETER, 2
35
- value :POINT, 3
36
- end
37
- add_message "google.cloud.automl.v1beta1.Document" do
38
- optional :input_config, :message, 1, "google.cloud.automl.v1beta1.DocumentInputConfig"
39
- optional :document_text, :message, 2, "google.cloud.automl.v1beta1.TextSnippet"
40
- repeated :layout, :message, 3, "google.cloud.automl.v1beta1.Document.Layout"
41
- optional :document_dimensions, :message, 4, "google.cloud.automl.v1beta1.DocumentDimensions"
42
- optional :page_count, :int32, 5
43
- end
44
- add_message "google.cloud.automl.v1beta1.Document.Layout" do
45
- optional :text_segment, :message, 1, "google.cloud.automl.v1beta1.TextSegment"
46
- optional :page_number, :int32, 2
47
- optional :bounding_poly, :message, 3, "google.cloud.automl.v1beta1.BoundingPoly"
48
- optional :text_segment_type, :enum, 4, "google.cloud.automl.v1beta1.Document.Layout.TextSegmentType"
49
- end
50
- add_enum "google.cloud.automl.v1beta1.Document.Layout.TextSegmentType" do
51
- value :TEXT_SEGMENT_TYPE_UNSPECIFIED, 0
52
- value :TOKEN, 1
53
- value :PARAGRAPH, 2
54
- value :FORM_FIELD, 3
55
- value :FORM_FIELD_NAME, 4
56
- value :FORM_FIELD_CONTENTS, 5
57
- value :TABLE, 6
58
- value :TABLE_HEADER, 7
59
- value :TABLE_ROW, 8
60
- value :TABLE_CELL, 9
61
- end
62
- add_message "google.cloud.automl.v1beta1.Row" do
63
- repeated :column_spec_ids, :string, 2
64
- repeated :values, :message, 3, "google.protobuf.Value"
65
- end
66
- add_message "google.cloud.automl.v1beta1.ExamplePayload" do
67
- oneof :payload do
68
- optional :image, :message, 1, "google.cloud.automl.v1beta1.Image"
69
- optional :text_snippet, :message, 2, "google.cloud.automl.v1beta1.TextSnippet"
70
- optional :document, :message, 4, "google.cloud.automl.v1beta1.Document"
71
- optional :row, :message, 3, "google.cloud.automl.v1beta1.Row"
72
- end
13
+
14
+ descriptor_data = "\n,google/cloud/automl/v1beta1/data_items.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a*google/cloud/automl/v1beta1/geometry.proto\x1a$google/cloud/automl/v1beta1/io.proto\x1a*google/cloud/automl/v1beta1/temporal.proto\x1a.google/cloud/automl/v1beta1/text_segment.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x7f\n\x05Image\x12\x15\n\x0bimage_bytes\x18\x01 \x01(\x0cH\x00\x12@\n\x0cinput_config\x18\x06 \x01(\x0b\x32(.google.cloud.automl.v1beta1.InputConfigH\x00\x12\x15\n\rthumbnail_uri\x18\x04 \x01(\tB\x06\n\x04\x64\x61ta\"F\n\x0bTextSnippet\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\x13\n\x0b\x63ontent_uri\x18\x04 \x01(\t\"\xef\x01\n\x12\x44ocumentDimensions\x12S\n\x04unit\x18\x01 \x01(\x0e\x32\x45.google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit\x12\r\n\x05width\x18\x02 \x01(\x02\x12\x0e\n\x06height\x18\x03 \x01(\x02\"e\n\x15\x44ocumentDimensionUnit\x12\'\n#DOCUMENT_DIMENSION_UNIT_UNSPECIFIED\x10\x00\x12\x08\n\x04INCH\x10\x01\x12\x0e\n\nCENTIMETER\x10\x02\x12\t\n\x05POINT\x10\x03\"\xf9\x05\n\x08\x44ocument\x12\x46\n\x0cinput_config\x18\x01 \x01(\x0b\x32\x30.google.cloud.automl.v1beta1.DocumentInputConfig\x12?\n\rdocument_text\x18\x02 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TextSnippet\x12<\n\x06layout\x18\x03 \x03(\x0b\x32,.google.cloud.automl.v1beta1.Document.Layout\x12L\n\x13\x64ocument_dimensions\x18\x04 \x01(\x0b\x32/.google.cloud.automl.v1beta1.DocumentDimensions\x12\x12\n\npage_count\x18\x05 \x01(\x05\x1a\xc3\x03\n\x06Layout\x12>\n\x0ctext_segment\x18\x01 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TextSegment\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05\x12@\n\rbounding_poly\x18\x03 \x01(\x0b\x32).google.cloud.automl.v1beta1.BoundingPoly\x12W\n\x11text_segment_type\x18\x04 \x01(\x0e\x32<.google.cloud.automl.v1beta1.Document.Layout.TextSegmentType\"\xc8\x01\n\x0fTextSegmentType\x12!\n\x1dTEXT_SEGMENT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TOKEN\x10\x01\x12\r\n\tPARAGRAPH\x10\x02\x12\x0e\n\nFORM_FIELD\x10\x03\x12\x13\n\x0f\x46ORM_FIELD_NAME\x10\x04\x12\x17\n\x13\x46ORM_FIELD_CONTENTS\x10\x05\x12\t\n\x05TABLE\x10\x06\x12\x10\n\x0cTABLE_HEADER\x10\x07\x12\r\n\tTABLE_ROW\x10\x08\x12\x0e\n\nTABLE_CELL\x10\t\"F\n\x03Row\x12\x17\n\x0f\x63olumn_spec_ids\x18\x02 \x03(\t\x12&\n\x06values\x18\x03 \x03(\x0b\x32\x16.google.protobuf.Value\"\xfe\x01\n\x0e\x45xamplePayload\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32\".google.cloud.automl.v1beta1.ImageH\x00\x12@\n\x0ctext_snippet\x18\x02 \x01(\x0b\x32(.google.cloud.automl.v1beta1.TextSnippetH\x00\x12\x39\n\x08\x64ocument\x18\x04 \x01(\x0b\x32%.google.cloud.automl.v1beta1.DocumentH\x00\x12/\n\x03row\x18\x03 \x01(\x0b\x32 .google.cloud.automl.v1beta1.RowH\x00\x42\t\n\x07payloadB\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"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.automl.v1beta1.InputConfig", "google/cloud/automl/v1beta1/io.proto"],
30
+ ["google.cloud.automl.v1beta1.TextSegment", "google/cloud/automl/v1beta1/text_segment.proto"],
31
+ ["google.cloud.automl.v1beta1.BoundingPoly", "google/cloud/automl/v1beta1/geometry.proto"],
32
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
33
+ ]
34
+ imports.each do |type_name, expected_filename|
35
+ import_file = pool.lookup(type_name).file_descriptor
36
+ if import_file.name != expected_filename
37
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
73
38
  end
74
39
  end
40
+ warn "Each proto file must use a consistent fully-qualified name."
41
+ warn "This will become an error in the next major version."
75
42
  end
76
43
 
77
44
  module Google
@@ -1,64 +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/data_stats.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/data_stats.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.DataStats" do
9
- optional :distinct_value_count, :int64, 1
10
- optional :null_value_count, :int64, 2
11
- optional :valid_value_count, :int64, 9
12
- oneof :stats do
13
- optional :float64_stats, :message, 3, "google.cloud.automl.v1beta1.Float64Stats"
14
- optional :string_stats, :message, 4, "google.cloud.automl.v1beta1.StringStats"
15
- optional :timestamp_stats, :message, 5, "google.cloud.automl.v1beta1.TimestampStats"
16
- optional :array_stats, :message, 6, "google.cloud.automl.v1beta1.ArrayStats"
17
- optional :struct_stats, :message, 7, "google.cloud.automl.v1beta1.StructStats"
18
- optional :category_stats, :message, 8, "google.cloud.automl.v1beta1.CategoryStats"
19
- end
20
- end
21
- add_message "google.cloud.automl.v1beta1.Float64Stats" do
22
- optional :mean, :double, 1
23
- optional :standard_deviation, :double, 2
24
- repeated :quantiles, :double, 3
25
- repeated :histogram_buckets, :message, 4, "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket"
26
- end
27
- add_message "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket" do
28
- optional :min, :double, 1
29
- optional :max, :double, 2
30
- optional :count, :int64, 3
31
- end
32
- add_message "google.cloud.automl.v1beta1.StringStats" do
33
- repeated :top_unigram_stats, :message, 1, "google.cloud.automl.v1beta1.StringStats.UnigramStats"
34
- end
35
- add_message "google.cloud.automl.v1beta1.StringStats.UnigramStats" do
36
- optional :value, :string, 1
37
- optional :count, :int64, 2
38
- end
39
- add_message "google.cloud.automl.v1beta1.TimestampStats" do
40
- map :granular_stats, :string, :message, 1, "google.cloud.automl.v1beta1.TimestampStats.GranularStats"
41
- end
42
- add_message "google.cloud.automl.v1beta1.TimestampStats.GranularStats" do
43
- map :buckets, :int32, :int64, 1
44
- end
45
- add_message "google.cloud.automl.v1beta1.ArrayStats" do
46
- optional :member_stats, :message, 2, "google.cloud.automl.v1beta1.DataStats"
47
- end
48
- add_message "google.cloud.automl.v1beta1.StructStats" do
49
- map :field_stats, :string, :message, 1, "google.cloud.automl.v1beta1.DataStats"
50
- end
51
- add_message "google.cloud.automl.v1beta1.CategoryStats" do
52
- repeated :top_category_stats, :message, 1, "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats"
53
- end
54
- add_message "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats" do
55
- optional :value, :string, 1
56
- optional :count, :int64, 2
57
- end
58
- add_message "google.cloud.automl.v1beta1.CorrelationStats" do
59
- optional :cramers_v, :double, 1
7
+
8
+ descriptor_data = "\n,google/cloud/automl/v1beta1/data_stats.proto\x12\x1bgoogle.cloud.automl.v1beta1\"\xfd\x03\n\tDataStats\x12\x42\n\rfloat64_stats\x18\x03 \x01(\x0b\x32).google.cloud.automl.v1beta1.Float64StatsH\x00\x12@\n\x0cstring_stats\x18\x04 \x01(\x0b\x32(.google.cloud.automl.v1beta1.StringStatsH\x00\x12\x46\n\x0ftimestamp_stats\x18\x05 \x01(\x0b\x32+.google.cloud.automl.v1beta1.TimestampStatsH\x00\x12>\n\x0b\x61rray_stats\x18\x06 \x01(\x0b\x32\'.google.cloud.automl.v1beta1.ArrayStatsH\x00\x12@\n\x0cstruct_stats\x18\x07 \x01(\x0b\x32(.google.cloud.automl.v1beta1.StructStatsH\x00\x12\x44\n\x0e\x63\x61tegory_stats\x18\x08 \x01(\x0b\x32*.google.cloud.automl.v1beta1.CategoryStatsH\x00\x12\x1c\n\x14\x64istinct_value_count\x18\x01 \x01(\x03\x12\x18\n\x10null_value_count\x18\x02 \x01(\x03\x12\x19\n\x11valid_value_count\x18\t \x01(\x03\x42\x07\n\x05stats\"\xdd\x01\n\x0c\x46loat64Stats\x12\x0c\n\x04mean\x18\x01 \x01(\x01\x12\x1a\n\x12standard_deviation\x18\x02 \x01(\x01\x12\x11\n\tquantiles\x18\x03 \x03(\x01\x12T\n\x11histogram_buckets\x18\x04 \x03(\x0b\x32\x39.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket\x1a:\n\x0fHistogramBucket\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01\x12\r\n\x05\x63ount\x18\x03 \x01(\x03\"\x8d\x01\n\x0bStringStats\x12P\n\x11top_unigram_stats\x18\x01 \x03(\x0b\x32\x35.google.cloud.automl.v1beta1.StringStats.UnigramStats\x1a,\n\x0cUnigramStats\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xf4\x02\n\x0eTimestampStats\x12V\n\x0egranular_stats\x18\x01 \x03(\x0b\x32>.google.cloud.automl.v1beta1.TimestampStats.GranularStatsEntry\x1a\x98\x01\n\rGranularStats\x12W\n\x07\x62uckets\x18\x01 \x03(\x0b\x32\x46.google.cloud.automl.v1beta1.TimestampStats.GranularStats.BucketsEntry\x1a.\n\x0c\x42ucketsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1ao\n\x12GranularStatsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0b\x32\x39.google.cloud.automl.v1beta1.TimestampStats.GranularStats:\x02\x38\x01\"J\n\nArrayStats\x12<\n\x0cmember_stats\x18\x02 \x01(\x0b\x32&.google.cloud.automl.v1beta1.DataStats\"\xb7\x01\n\x0bStructStats\x12M\n\x0b\x66ield_stats\x18\x01 \x03(\x0b\x32\x38.google.cloud.automl.v1beta1.StructStats.FieldStatsEntry\x1aY\n\x0f\x46ieldStatsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.cloud.automl.v1beta1.DataStats:\x02\x38\x01\"\xa0\x01\n\rCategoryStats\x12Z\n\x12top_category_stats\x18\x01 \x03(\x0b\x32>.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats\x1a\x33\n\x13SingleCategoryStats\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"%\n\x10\x43orrelationStats\x12\x11\n\tcramers_v\x18\x01 \x01(\x01\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"
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}"
60
28
  end
61
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."
62
32
  end
63
33
 
64
34
  module Google
@@ -1,32 +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/data_types.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/data_types.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.DataType" do
9
- optional :type_code, :enum, 1, "google.cloud.automl.v1beta1.TypeCode"
10
- optional :nullable, :bool, 4
11
- oneof :details do
12
- optional :list_element_type, :message, 2, "google.cloud.automl.v1beta1.DataType"
13
- optional :struct_type, :message, 3, "google.cloud.automl.v1beta1.StructType"
14
- optional :time_format, :string, 5
15
- end
16
- end
17
- add_message "google.cloud.automl.v1beta1.StructType" do
18
- map :fields, :string, :message, 1, "google.cloud.automl.v1beta1.DataType"
19
- end
20
- add_enum "google.cloud.automl.v1beta1.TypeCode" do
21
- value :TYPE_CODE_UNSPECIFIED, 0
22
- value :FLOAT64, 3
23
- value :TIMESTAMP, 4
24
- value :STRING, 6
25
- value :ARRAY, 8
26
- value :STRUCT, 9
27
- value :CATEGORY, 10
7
+
8
+ descriptor_data = "\n,google/cloud/automl/v1beta1/data_types.proto\x12\x1bgoogle.cloud.automl.v1beta1\"\xfc\x01\n\x08\x44\x61taType\x12\x42\n\x11list_element_type\x18\x02 \x01(\x0b\x32%.google.cloud.automl.v1beta1.DataTypeH\x00\x12>\n\x0bstruct_type\x18\x03 \x01(\x0b\x32\'.google.cloud.automl.v1beta1.StructTypeH\x00\x12\x15\n\x0btime_format\x18\x05 \x01(\tH\x00\x12\x38\n\ttype_code\x18\x01 \x01(\x0e\x32%.google.cloud.automl.v1beta1.TypeCode\x12\x10\n\x08nullable\x18\x04 \x01(\x08\x42\t\n\x07\x64\x65tails\"\xa7\x01\n\nStructType\x12\x43\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x33.google.cloud.automl.v1beta1.StructType.FieldsEntry\x1aT\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.google.cloud.automl.v1beta1.DataType:\x02\x38\x01*r\n\x08TypeCode\x12\x19\n\x15TYPE_CODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x46LOAT64\x10\x03\x12\r\n\tTIMESTAMP\x10\x04\x12\n\n\x06STRING\x10\x06\x12\t\n\x05\x41RRAY\x10\x08\x12\n\n\x06STRUCT\x10\t\x12\x0c\n\x08\x43\x41TEGORY\x10\nB\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"
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}"
28
28
  end
29
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."
30
32
  end
31
33
 
32
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/dataset.proto
3
4
 
@@ -11,28 +12,37 @@ require 'google/cloud/automl/v1beta1/translation_pb'
11
12
  require 'google/cloud/automl/v1beta1/video_pb'
12
13
  require 'google/protobuf/timestamp_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/automl/v1beta1/dataset.proto", :syntax => :proto3) do
16
- add_message "google.cloud.automl.v1beta1.Dataset" do
17
- optional :name, :string, 1
18
- optional :display_name, :string, 2
19
- optional :description, :string, 3
20
- optional :example_count, :int32, 21
21
- optional :create_time, :message, 14, "google.protobuf.Timestamp"
22
- optional :etag, :string, 17
23
- oneof :dataset_metadata do
24
- optional :translation_dataset_metadata, :message, 23, "google.cloud.automl.v1beta1.TranslationDatasetMetadata"
25
- optional :image_classification_dataset_metadata, :message, 24, "google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata"
26
- optional :text_classification_dataset_metadata, :message, 25, "google.cloud.automl.v1beta1.TextClassificationDatasetMetadata"
27
- optional :image_object_detection_dataset_metadata, :message, 26, "google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata"
28
- optional :video_classification_dataset_metadata, :message, 31, "google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata"
29
- optional :video_object_tracking_dataset_metadata, :message, 29, "google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata"
30
- optional :text_extraction_dataset_metadata, :message, 28, "google.cloud.automl.v1beta1.TextExtractionDatasetMetadata"
31
- optional :text_sentiment_dataset_metadata, :message, 30, "google.cloud.automl.v1beta1.TextSentimentDatasetMetadata"
32
- optional :tables_dataset_metadata, :message, 33, "google.cloud.automl.v1beta1.TablesDatasetMetadata"
33
- end
15
+
16
+ descriptor_data = "\n)google/cloud/automl/v1beta1/dataset.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x19google/api/resource.proto\x1a\'google/cloud/automl/v1beta1/image.proto\x1a(google/cloud/automl/v1beta1/tables.proto\x1a&google/cloud/automl/v1beta1/text.proto\x1a-google/cloud/automl/v1beta1/translation.proto\x1a\'google/cloud/automl/v1beta1/video.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xce\t\n\x07\x44\x61taset\x12_\n\x1ctranslation_dataset_metadata\x18\x17 \x01(\x0b\x32\x37.google.cloud.automl.v1beta1.TranslationDatasetMetadataH\x00\x12p\n%image_classification_dataset_metadata\x18\x18 \x01(\x0b\x32?.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadataH\x00\x12n\n$text_classification_dataset_metadata\x18\x19 \x01(\x0b\x32>.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataH\x00\x12s\n\'image_object_detection_dataset_metadata\x18\x1a \x01(\x0b\x32@.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataH\x00\x12p\n%video_classification_dataset_metadata\x18\x1f \x01(\x0b\x32?.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataH\x00\x12q\n&video_object_tracking_dataset_metadata\x18\x1d \x01(\x0b\x32?.google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadataH\x00\x12\x66\n text_extraction_dataset_metadata\x18\x1c \x01(\x0b\x32:.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataH\x00\x12\x64\n\x1ftext_sentiment_dataset_metadata\x18\x1e \x01(\x0b\x32\x39.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataH\x00\x12U\n\x17tables_dataset_metadata\x18! \x01(\x0b\x32\x32.google.cloud.automl.v1beta1.TablesDatasetMetadataH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x15\n\rexample_count\x18\x15 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04\x65tag\x18\x11 \x01(\t:^\xea\x41[\n\x1d\x61utoml.googleapis.com/Dataset\x12:projects/{project}/locations/{location}/datasets/{dataset}B\x12\n\x10\x64\x61taset_metadataB\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"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.cloud.automl.v1beta1.TranslationDatasetMetadata", "google/cloud/automl/v1beta1/translation.proto"],
32
+ ["google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata", "google/cloud/automl/v1beta1/image.proto"],
33
+ ["google.cloud.automl.v1beta1.TextClassificationDatasetMetadata", "google/cloud/automl/v1beta1/text.proto"],
34
+ ["google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata", "google/cloud/automl/v1beta1/video.proto"],
35
+ ["google.cloud.automl.v1beta1.TablesDatasetMetadata", "google/cloud/automl/v1beta1/tables.proto"],
36
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
37
+ ]
38
+ imports.each do |type_name, expected_filename|
39
+ import_file = pool.lookup(type_name).file_descriptor
40
+ if import_file.name != expected_filename
41
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
42
  end
35
43
  end
44
+ warn "Each proto file must use a consistent fully-qualified name."
45
+ warn "This will become an error in the next major version."
36
46
  end
37
47
 
38
48
  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/detection.proto
3
4
 
@@ -6,41 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/cloud/automl/v1beta1/geometry_pb'
7
8
  require 'google/protobuf/duration_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/automl/v1beta1/detection.proto", :syntax => :proto3) do
11
- add_message "google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation" do
12
- optional :bounding_box, :message, 1, "google.cloud.automl.v1beta1.BoundingPoly"
13
- optional :score, :float, 2
14
- end
15
- add_message "google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation" do
16
- optional :instance_id, :string, 1
17
- optional :time_offset, :message, 2, "google.protobuf.Duration"
18
- optional :bounding_box, :message, 3, "google.cloud.automl.v1beta1.BoundingPoly"
19
- optional :score, :float, 4
20
- end
21
- add_message "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry" do
22
- optional :iou_threshold, :float, 1
23
- optional :mean_average_precision, :float, 2
24
- repeated :confidence_metrics_entries, :message, 3, "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry"
25
- end
26
- add_message "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry" do
27
- optional :confidence_threshold, :float, 1
28
- optional :recall, :float, 2
29
- optional :precision, :float, 3
30
- optional :f1_score, :float, 4
31
- end
32
- add_message "google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics" do
33
- optional :evaluated_bounding_box_count, :int32, 1
34
- repeated :bounding_box_metrics_entries, :message, 2, "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry"
35
- optional :bounding_box_mean_average_precision, :float, 3
36
- end
37
- add_message "google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics" do
38
- optional :evaluated_frame_count, :int32, 1
39
- optional :evaluated_bounding_box_count, :int32, 2
40
- repeated :bounding_box_metrics_entries, :message, 4, "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry"
41
- optional :bounding_box_mean_average_precision, :float, 6
10
+
11
+ descriptor_data = "\n+google/cloud/automl/v1beta1/detection.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a*google/cloud/automl/v1beta1/geometry.proto\x1a\x1egoogle/protobuf/duration.proto\"p\n\x1eImageObjectDetectionAnnotation\x12?\n\x0c\x62ounding_box\x18\x01 \x01(\x0b\x32).google.cloud.automl.v1beta1.BoundingPoly\x12\r\n\x05score\x18\x02 \x01(\x02\"\xb4\x01\n\x1dVideoObjectTrackingAnnotation\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12?\n\x0c\x62ounding_box\x18\x03 \x01(\x0b\x32).google.cloud.automl.v1beta1.BoundingPoly\x12\r\n\x05score\x18\x04 \x01(\x02\"\xae\x02\n\x17\x42oundingBoxMetricsEntry\x12\x15\n\riou_threshold\x18\x01 \x01(\x02\x12\x1e\n\x16mean_average_precision\x18\x02 \x01(\x02\x12o\n\x1a\x63onfidence_metrics_entries\x18\x03 \x03(\x0b\x32K.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry\x1ak\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x11\n\tprecision\x18\x03 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x04 \x01(\x02\"\xd6\x01\n%ImageObjectDetectionEvaluationMetrics\x12$\n\x1c\x65valuated_bounding_box_count\x18\x01 \x01(\x05\x12Z\n\x1c\x62ounding_box_metrics_entries\x18\x02 \x03(\x0b\x32\x34.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry\x12+\n#bounding_box_mean_average_precision\x18\x03 \x01(\x02\"\xf4\x01\n$VideoObjectTrackingEvaluationMetrics\x12\x1d\n\x15\x65valuated_frame_count\x18\x01 \x01(\x05\x12$\n\x1c\x65valuated_bounding_box_count\x18\x02 \x01(\x05\x12Z\n\x1c\x62ounding_box_metrics_entries\x18\x04 \x03(\x0b\x32\x34.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry\x12+\n#bounding_box_mean_average_precision\x18\x06 \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"
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.BoundingPoly", "google/cloud/automl/v1beta1/geometry.proto"],
27
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
42
33
  end
43
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
44
37
  end
45
38
 
46
39
  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/geometry.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/geometry.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.NormalizedVertex" do
9
- optional :x, :float, 1
10
- optional :y, :float, 2
11
- end
12
- add_message "google.cloud.automl.v1beta1.BoundingPoly" do
13
- repeated :normalized_vertices, :message, 2, "google.cloud.automl.v1beta1.NormalizedVertex"
7
+
8
+ descriptor_data = "\n*google/cloud/automl/v1beta1/geometry.proto\x12\x1bgoogle.cloud.automl.v1beta1\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"Z\n\x0c\x42oundingPoly\x12J\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32-.google.cloud.automl.v1beta1.NormalizedVertexB\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"
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/image.proto
3
4
 
@@ -6,37 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/cloud/automl/v1beta1/annotation_spec_pb'
7
8
  require 'google/cloud/automl/v1beta1/classification_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/automl/v1beta1/image.proto", :syntax => :proto3) do
11
- add_message "google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata" do
12
- optional :classification_type, :enum, 1, "google.cloud.automl.v1beta1.ClassificationType"
13
- end
14
- add_message "google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata" do
15
- end
16
- add_message "google.cloud.automl.v1beta1.ImageClassificationModelMetadata" do
17
- optional :base_model_id, :string, 1
18
- optional :train_budget, :int64, 2
19
- optional :train_cost, :int64, 3
20
- optional :stop_reason, :string, 5
21
- optional :model_type, :string, 7
22
- optional :node_qps, :double, 13
23
- optional :node_count, :int64, 14
24
- end
25
- add_message "google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata" do
26
- optional :model_type, :string, 1
27
- optional :node_count, :int64, 3
28
- optional :node_qps, :double, 4
29
- optional :stop_reason, :string, 5
30
- optional :train_budget_milli_node_hours, :int64, 6
31
- optional :train_cost_milli_node_hours, :int64, 7
32
- end
33
- add_message "google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata" do
34
- optional :node_count, :int64, 1
35
- end
36
- add_message "google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata" do
37
- optional :node_count, :int64, 1
10
+
11
+ descriptor_data = "\n\'google/cloud/automl/v1beta1/image.proto\x12\x1bgoogle.cloud.automl.v1beta1\x1a\x31google/cloud/automl/v1beta1/annotation_spec.proto\x1a\x30google/cloud/automl/v1beta1/classification.proto\"r\n\"ImageClassificationDatasetMetadata\x12L\n\x13\x63lassification_type\x18\x01 \x01(\x0e\x32/.google.cloud.automl.v1beta1.ClassificationType\"%\n#ImageObjectDetectionDatasetMetadata\"\xb2\x01\n ImageClassificationModelMetadata\x12\x15\n\rbase_model_id\x18\x01 \x01(\t\x12\x14\n\x0ctrain_budget\x18\x02 \x01(\x03\x12\x12\n\ntrain_cost\x18\x03 \x01(\x03\x12\x13\n\x0bstop_reason\x18\x05 \x01(\t\x12\x12\n\nmodel_type\x18\x07 \x01(\t\x12\x10\n\x08node_qps\x18\r \x01(\x01\x12\x12\n\nnode_count\x18\x0e \x01(\x03\"\xbe\x01\n!ImageObjectDetectionModelMetadata\x12\x12\n\nmodel_type\x18\x01 \x01(\t\x12\x12\n\nnode_count\x18\x03 \x01(\x03\x12\x10\n\x08node_qps\x18\x04 \x01(\x01\x12\x13\n\x0bstop_reason\x18\x05 \x01(\t\x12%\n\x1dtrain_budget_milli_node_hours\x18\x06 \x01(\x03\x12#\n\x1btrain_cost_milli_node_hours\x18\x07 \x01(\x03\"@\n*ImageClassificationModelDeploymentMetadata\x12\x12\n\nnode_count\x18\x01 \x01(\x03\"A\n+ImageObjectDetectionModelDeploymentMetadata\x12\x12\n\nnode_count\x18\x01 \x01(\x03\x42\xa7\x01\n\x1f\x63om.google.cloud.automl.v1beta1B\nImageProtoP\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
+ ]
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}"
38
31
  end
39
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."
40
35
  end
41
36
 
42
37
  module Google
@@ -1,67 +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/io.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/io.proto", :syntax => :proto3) do
8
- add_message "google.cloud.automl.v1beta1.InputConfig" do
9
- map :params, :string, :string, 2
10
- oneof :source do
11
- optional :gcs_source, :message, 1, "google.cloud.automl.v1beta1.GcsSource"
12
- optional :bigquery_source, :message, 3, "google.cloud.automl.v1beta1.BigQuerySource"
13
- end
14
- end
15
- add_message "google.cloud.automl.v1beta1.BatchPredictInputConfig" do
16
- oneof :source do
17
- optional :gcs_source, :message, 1, "google.cloud.automl.v1beta1.GcsSource"
18
- optional :bigquery_source, :message, 2, "google.cloud.automl.v1beta1.BigQuerySource"
19
- end
20
- end
21
- add_message "google.cloud.automl.v1beta1.DocumentInputConfig" do
22
- optional :gcs_source, :message, 1, "google.cloud.automl.v1beta1.GcsSource"
23
- end
24
- add_message "google.cloud.automl.v1beta1.OutputConfig" do
25
- oneof :destination do
26
- optional :gcs_destination, :message, 1, "google.cloud.automl.v1beta1.GcsDestination"
27
- optional :bigquery_destination, :message, 2, "google.cloud.automl.v1beta1.BigQueryDestination"
28
- end
29
- end
30
- add_message "google.cloud.automl.v1beta1.BatchPredictOutputConfig" do
31
- oneof :destination do
32
- optional :gcs_destination, :message, 1, "google.cloud.automl.v1beta1.GcsDestination"
33
- optional :bigquery_destination, :message, 2, "google.cloud.automl.v1beta1.BigQueryDestination"
34
- end
35
- end
36
- add_message "google.cloud.automl.v1beta1.ModelExportOutputConfig" do
37
- optional :model_format, :string, 4
38
- map :params, :string, :string, 2
39
- oneof :destination do
40
- optional :gcs_destination, :message, 1, "google.cloud.automl.v1beta1.GcsDestination"
41
- optional :gcr_destination, :message, 3, "google.cloud.automl.v1beta1.GcrDestination"
42
- end
43
- end
44
- add_message "google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig" do
45
- oneof :destination do
46
- optional :bigquery_destination, :message, 2, "google.cloud.automl.v1beta1.BigQueryDestination"
47
- end
48
- end
49
- add_message "google.cloud.automl.v1beta1.GcsSource" do
50
- repeated :input_uris, :string, 1
51
- end
52
- add_message "google.cloud.automl.v1beta1.BigQuerySource" do
53
- optional :input_uri, :string, 1
54
- end
55
- add_message "google.cloud.automl.v1beta1.GcsDestination" do
56
- optional :output_uri_prefix, :string, 1
57
- end
58
- add_message "google.cloud.automl.v1beta1.BigQueryDestination" do
59
- optional :output_uri, :string, 1
60
- end
61
- add_message "google.cloud.automl.v1beta1.GcrDestination" do
62
- optional :output_uri, :string, 1
7
+
8
+ descriptor_data = "\n$google/cloud/automl/v1beta1/io.proto\x12\x1bgoogle.cloud.automl.v1beta1\"\x92\x02\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32&.google.cloud.automl.v1beta1.GcsSourceH\x00\x12\x46\n\x0f\x62igquery_source\x18\x03 \x01(\x0b\x32+.google.cloud.automl.v1beta1.BigQuerySourceH\x00\x12\x44\n\x06params\x18\x02 \x03(\x0b\x32\x34.google.cloud.automl.v1beta1.InputConfig.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xa9\x01\n\x17\x42\x61tchPredictInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32&.google.cloud.automl.v1beta1.GcsSourceH\x00\x12\x46\n\x0f\x62igquery_source\x18\x02 \x01(\x0b\x32+.google.cloud.automl.v1beta1.BigQuerySourceH\x00\x42\x08\n\x06source\"Q\n\x13\x44ocumentInputConfig\x12:\n\ngcs_source\x18\x01 \x01(\x0b\x32&.google.cloud.automl.v1beta1.GcsSource\"\xb7\x01\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32+.google.cloud.automl.v1beta1.GcsDestinationH\x00\x12P\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32\x30.google.cloud.automl.v1beta1.BigQueryDestinationH\x00\x42\r\n\x0b\x64\x65stination\"\xc3\x01\n\x18\x42\x61tchPredictOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32+.google.cloud.automl.v1beta1.GcsDestinationH\x00\x12P\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32\x30.google.cloud.automl.v1beta1.BigQueryDestinationH\x00\x42\r\n\x0b\x64\x65stination\"\xcf\x02\n\x17ModelExportOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32+.google.cloud.automl.v1beta1.GcsDestinationH\x00\x12\x46\n\x0fgcr_destination\x18\x03 \x01(\x0b\x32+.google.cloud.automl.v1beta1.GcrDestinationH\x00\x12\x14\n\x0cmodel_format\x18\x04 \x01(\t\x12P\n\x06params\x18\x02 \x03(\x0b\x32@.google.cloud.automl.v1beta1.ModelExportOutputConfig.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\r\n\x0b\x64\x65stination\"\x86\x01\n#ExportEvaluatedExamplesOutputConfig\x12P\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32\x30.google.cloud.automl.v1beta1.BigQueryDestinationH\x00\x42\r\n\x0b\x64\x65stination\"\x1f\n\tGcsSource\x12\x12\n\ninput_uris\x18\x01 \x03(\t\"#\n\x0e\x42igQuerySource\x12\x11\n\tinput_uri\x18\x01 \x01(\t\"+\n\x0eGcsDestination\x12\x19\n\x11output_uri_prefix\x18\x01 \x01(\t\")\n\x13\x42igQueryDestination\x12\x12\n\noutput_uri\x18\x01 \x01(\t\"$\n\x0eGcrDestination\x12\x12\n\noutput_uri\x18\x01 \x01(\tB\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"
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}"
63
28
  end
64
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."
65
32
  end
66
33
 
67
34
  module Google