google-cloud-vision_ai-v1 0.a → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/vision_ai/v1/app_platform/client.rb +3318 -0
  6. data/lib/google/cloud/vision_ai/v1/app_platform/credentials.rb +47 -0
  7. data/lib/google/cloud/vision_ai/v1/app_platform/operations.rb +809 -0
  8. data/lib/google/cloud/vision_ai/v1/app_platform/paths.rb +151 -0
  9. data/lib/google/cloud/vision_ai/v1/app_platform/rest/client.rb +3106 -0
  10. data/lib/google/cloud/vision_ai/v1/app_platform/rest/operations.rb +951 -0
  11. data/lib/google/cloud/vision_ai/v1/app_platform/rest/service_stub.rb +1618 -0
  12. data/lib/google/cloud/vision_ai/v1/app_platform/rest.rb +53 -0
  13. data/lib/google/cloud/vision_ai/v1/app_platform.rb +56 -0
  14. data/lib/google/cloud/vision_ai/v1/health_check_service/client.rb +456 -0
  15. data/lib/google/cloud/vision_ai/v1/health_check_service/credentials.rb +47 -0
  16. data/lib/google/cloud/vision_ai/v1/health_check_service/paths.rb +52 -0
  17. data/lib/google/cloud/vision_ai/v1/health_check_service/rest/client.rb +423 -0
  18. data/lib/google/cloud/vision_ai/v1/health_check_service/rest/service_stub.rb +128 -0
  19. data/lib/google/cloud/vision_ai/v1/health_check_service/rest.rb +53 -0
  20. data/lib/google/cloud/vision_ai/v1/health_check_service.rb +56 -0
  21. data/lib/google/cloud/vision_ai/v1/live_video_analytics/client.rb +2375 -0
  22. data/lib/google/cloud/vision_ai/v1/live_video_analytics/credentials.rb +47 -0
  23. data/lib/google/cloud/vision_ai/v1/live_video_analytics/operations.rb +809 -0
  24. data/lib/google/cloud/vision_ai/v1/live_video_analytics/paths.rb +130 -0
  25. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/client.rb +2220 -0
  26. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/operations.rb +951 -0
  27. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest/service_stub.rb +1139 -0
  28. data/lib/google/cloud/vision_ai/v1/live_video_analytics/rest.rb +54 -0
  29. data/lib/google/cloud/vision_ai/v1/live_video_analytics.rb +57 -0
  30. data/lib/google/cloud/vision_ai/v1/rest.rb +42 -0
  31. data/lib/google/cloud/vision_ai/v1/streaming_service/client.rb +915 -0
  32. data/lib/google/cloud/vision_ai/v1/streaming_service/credentials.rb +47 -0
  33. data/lib/google/cloud/vision_ai/v1/streaming_service/paths.rb +54 -0
  34. data/lib/google/cloud/vision_ai/v1/streaming_service/rest/client.rb +610 -0
  35. data/lib/google/cloud/vision_ai/v1/streaming_service/rest/service_stub.rb +249 -0
  36. data/lib/google/cloud/vision_ai/v1/streaming_service/rest.rb +52 -0
  37. data/lib/google/cloud/vision_ai/v1/streaming_service.rb +55 -0
  38. data/lib/google/cloud/vision_ai/v1/streams_service/client.rb +2931 -0
  39. data/lib/google/cloud/vision_ai/v1/streams_service/credentials.rb +47 -0
  40. data/lib/google/cloud/vision_ai/v1/streams_service/operations.rb +809 -0
  41. data/lib/google/cloud/vision_ai/v1/streams_service/paths.rb +153 -0
  42. data/lib/google/cloud/vision_ai/v1/streams_service/rest/client.rb +2740 -0
  43. data/lib/google/cloud/vision_ai/v1/streams_service/rest/operations.rb +951 -0
  44. data/lib/google/cloud/vision_ai/v1/streams_service/rest/service_stub.rb +1437 -0
  45. data/lib/google/cloud/vision_ai/v1/streams_service/rest.rb +56 -0
  46. data/lib/google/cloud/vision_ai/v1/streams_service.rb +59 -0
  47. data/lib/google/cloud/vision_ai/v1/version.rb +8 -3
  48. data/lib/google/cloud/vision_ai/v1/warehouse/client.rb +6958 -0
  49. data/lib/google/cloud/vision_ai/v1/warehouse/credentials.rb +47 -0
  50. data/lib/google/cloud/vision_ai/v1/warehouse/operations.rb +809 -0
  51. data/lib/google/cloud/vision_ai/v1/warehouse/paths.rb +237 -0
  52. data/lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb +6403 -0
  53. data/lib/google/cloud/vision_ai/v1/warehouse/rest/operations.rb +951 -0
  54. data/lib/google/cloud/vision_ai/v1/warehouse/rest/service_stub.rb +3760 -0
  55. data/lib/google/cloud/vision_ai/v1/warehouse/rest.rb +53 -0
  56. data/lib/google/cloud/vision_ai/v1/warehouse.rb +56 -0
  57. data/lib/google/cloud/vision_ai/v1.rb +50 -0
  58. data/lib/google/cloud/visionai/v1/annotations_pb.rb +90 -0
  59. data/lib/google/cloud/visionai/v1/common_pb.rb +50 -0
  60. data/lib/google/cloud/visionai/v1/health_service_pb.rb +48 -0
  61. data/lib/google/cloud/visionai/v1/health_service_services_pb.rb +46 -0
  62. data/lib/google/cloud/visionai/v1/lva_pb.rb +54 -0
  63. data/lib/google/cloud/visionai/v1/lva_resources_pb.rb +51 -0
  64. data/lib/google/cloud/visionai/v1/lva_service_pb.rb +80 -0
  65. data/lib/google/cloud/visionai/v1/lva_service_services_pb.rb +81 -0
  66. data/lib/google/cloud/visionai/v1/platform_pb.rb +162 -0
  67. data/lib/google/cloud/visionai/v1/platform_services_pb.rb +111 -0
  68. data/lib/google/cloud/visionai/v1/streaming_resources_pb.rb +58 -0
  69. data/lib/google/cloud/visionai/v1/streaming_service_pb.rb +71 -0
  70. data/lib/google/cloud/visionai/v1/streaming_service_services_pb.rb +55 -0
  71. data/lib/google/cloud/visionai/v1/streams_resources_pb.rb +53 -0
  72. data/lib/google/cloud/visionai/v1/streams_service_pb.rb +85 -0
  73. data/lib/google/cloud/visionai/v1/streams_service_services_pb.rb +92 -0
  74. data/lib/google/cloud/visionai/v1/warehouse_pb.rb +251 -0
  75. data/lib/google/cloud/visionai/v1/warehouse_services_pb.rb +228 -0
  76. data/lib/google-cloud-vision_ai-v1.rb +21 -0
  77. data/proto_docs/README.md +4 -0
  78. data/proto_docs/google/api/client.rb +420 -0
  79. data/proto_docs/google/api/field_behavior.rb +85 -0
  80. data/proto_docs/google/api/launch_stage.rb +71 -0
  81. data/proto_docs/google/api/resource.rb +227 -0
  82. data/proto_docs/google/cloud/visionai/v1/annotations.rb +787 -0
  83. data/proto_docs/google/cloud/visionai/v1/common.rb +134 -0
  84. data/proto_docs/google/cloud/visionai/v1/health_service.rb +61 -0
  85. data/proto_docs/google/cloud/visionai/v1/lva.rb +345 -0
  86. data/proto_docs/google/cloud/visionai/v1/lva_resources.rb +167 -0
  87. data/proto_docs/google/cloud/visionai/v1/lva_service.rb +543 -0
  88. data/proto_docs/google/cloud/visionai/v1/platform.rb +2228 -0
  89. data/proto_docs/google/cloud/visionai/v1/streaming_resources.rb +178 -0
  90. data/proto_docs/google/cloud/visionai/v1/streaming_service.rb +393 -0
  91. data/proto_docs/google/cloud/visionai/v1/streams_resources.rb +229 -0
  92. data/proto_docs/google/cloud/visionai/v1/streams_service.rb +644 -0
  93. data/proto_docs/google/cloud/visionai/v1/warehouse.rb +3055 -0
  94. data/proto_docs/google/longrunning/operations.rb +164 -0
  95. data/proto_docs/google/protobuf/any.rb +145 -0
  96. data/proto_docs/google/protobuf/duration.rb +98 -0
  97. data/proto_docs/google/protobuf/empty.rb +34 -0
  98. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  99. data/proto_docs/google/protobuf/struct.rb +96 -0
  100. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  101. data/proto_docs/google/rpc/status.rb +48 -0
  102. data/proto_docs/google/type/datetime.rb +99 -0
  103. data/proto_docs/google/type/expr.rb +75 -0
  104. metadata +183 -10
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/vision_ai/v1/version"
24
+
25
+ require "google/cloud/vision_ai/v1/warehouse/credentials"
26
+ require "google/cloud/vision_ai/v1/warehouse/paths"
27
+ require "google/cloud/vision_ai/v1/warehouse/rest/operations"
28
+ require "google/cloud/vision_ai/v1/warehouse/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module VisionAI
33
+ module V1
34
+ ##
35
+ # Service that manages media content + metadata for streaming.
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/cloud/vision_ai/v1/warehouse/rest"
40
+ # client = ::Google::Cloud::VisionAI::V1::Warehouse::Rest::Client.new
41
+ #
42
+ module Warehouse
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
53
+ require "google/cloud/vision_ai/v1/warehouse/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/vision_ai/v1/version"
24
+
25
+ require "google/cloud/vision_ai/v1/warehouse/credentials"
26
+ require "google/cloud/vision_ai/v1/warehouse/paths"
27
+ require "google/cloud/vision_ai/v1/warehouse/operations"
28
+ require "google/cloud/vision_ai/v1/warehouse/client"
29
+ require "google/cloud/vision_ai/v1/warehouse/rest"
30
+
31
+ module Google
32
+ module Cloud
33
+ module VisionAI
34
+ module V1
35
+ ##
36
+ # Service that manages media content + metadata for streaming.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/cloud/vision_ai/v1/warehouse"
41
+ # client = ::Google::Cloud::VisionAI::V1::Warehouse::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/vision_ai/v1/warehouse/rest"
46
+ # client = ::Google::Cloud::VisionAI::V1::Warehouse::Rest::Client.new
47
+ #
48
+ module Warehouse
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ helper_path = ::File.join __dir__, "warehouse", "helpers.rb"
56
+ require "google/cloud/vision_ai/v1/warehouse/helpers" if ::File.file? helper_path
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/vision_ai/v1/live_video_analytics"
20
+ require "google/cloud/vision_ai/v1/app_platform"
21
+ require "google/cloud/vision_ai/v1/streaming_service"
22
+ require "google/cloud/vision_ai/v1/streams_service"
23
+ require "google/cloud/vision_ai/v1/warehouse"
24
+ require "google/cloud/vision_ai/v1/health_check_service"
25
+ require "google/cloud/vision_ai/v1/version"
26
+
27
+ module Google
28
+ module Cloud
29
+ module VisionAI
30
+ ##
31
+ # API client module.
32
+ #
33
+ # @example Load this package, including all its services, and instantiate a gRPC client
34
+ #
35
+ # require "google/cloud/vision_ai/v1"
36
+ # client = ::Google::Cloud::VisionAI::V1::LiveVideoAnalytics::Client.new
37
+ #
38
+ # @example Load this package, including all its services, and instantiate a REST client
39
+ #
40
+ # require "google/cloud/vision_ai/v1"
41
+ # client = ::Google::Cloud::VisionAI::V1::LiveVideoAnalytics::Rest::Client.new
42
+ #
43
+ module V1
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
50
+ require "google/cloud/vision_ai/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/visionai/v1/annotations.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/struct_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n*google/cloud/visionai/v1/annotations.proto\x12\x18google.cloud.visionai.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x95\r\n*PersonalProtectiveEquipmentDetectionOutput\x12\x30\n\x0c\x63urrent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12m\n\x10\x64\x65tected_persons\x18\x02 \x03(\x0b\x32S.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson\x1a(\n\x0cPersonEntity\x12\x18\n\x10person_entity_id\x18\x01 \x01(\x03\x1az\n\tPPEEntity\x12\x14\n\x0cppe_label_id\x18\x01 \x01(\x03\x12\x18\n\x10ppe_label_string\x18\x02 \x01(\t\x12&\n\x1eppe_supercategory_label_string\x18\x03 \x01(\t\x12\x15\n\rppe_entity_id\x18\x04 \x01(\x03\x1aR\n\x15NormalizedBoundingBox\x12\x0c\n\x04xmin\x18\x01 \x01(\x02\x12\x0c\n\x04ymin\x18\x02 \x01(\x02\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x0e\n\x06height\x18\x04 \x01(\x02\x1a\xa6\x02\n\x13PersonIdentifiedBox\x12\x0e\n\x06\x62ox_id\x18\x01 \x01(\x03\x12{\n\x17normalized_bounding_box\x18\x02 \x01(\x0b\x32Z.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox\x12\x18\n\x10\x63onfidence_score\x18\x03 \x01(\x02\x12h\n\rperson_entity\x18\x04 \x01(\x0b\x32Q.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity\x1a\x9d\x02\n\x10PPEIdentifiedBox\x12\x0e\n\x06\x62ox_id\x18\x01 \x01(\x03\x12{\n\x17normalized_bounding_box\x18\x02 \x01(\x0b\x32Z.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox\x12\x18\n\x10\x63onfidence_score\x18\x03 \x01(\x02\x12\x62\n\nppe_entity\x18\x04 \x01(\x0b\x32N.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity\x1a\x82\x05\n\x0e\x44\x65tectedPerson\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x80\x01\n\x1e\x64\x65tected_person_identified_box\x18\x02 \x01(\x0b\x32X.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox\x12|\n\x1d\x64\x65tected_ppe_identified_boxes\x18\x03 \x03(\x0b\x32U.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox\x12 \n\x13\x66\x61\x63\x65_coverage_score\x18\x04 \x01(\x02H\x00\x88\x01\x01\x12 \n\x13\x65yes_coverage_score\x18\x05 \x01(\x02H\x01\x88\x01\x01\x12 \n\x13head_coverage_score\x18\x06 \x01(\x02H\x02\x88\x01\x01\x12!\n\x14hands_coverage_score\x18\x07 \x01(\x02H\x03\x88\x01\x01\x12 \n\x13\x62ody_coverage_score\x18\x08 \x01(\x02H\x04\x88\x01\x01\x12 \n\x13\x66\x65\x65t_coverage_score\x18\t \x01(\x02H\x05\x88\x01\x01\x42\x16\n\x14_face_coverage_scoreB\x16\n\x14_eyes_coverage_scoreB\x16\n\x14_head_coverage_scoreB\x17\n\x15_hands_coverage_scoreB\x16\n\x14_body_coverage_scoreB\x16\n\x14_feet_coverage_score\"\xca\x04\n\x1fObjectDetectionPredictionResult\x12\x30\n\x0c\x63urrent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x61\n\x10identified_boxes\x18\x02 \x03(\x0b\x32G.google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox\x1a\x30\n\x06\x45ntity\x12\x10\n\x08label_id\x18\x01 \x01(\x03\x12\x14\n\x0clabel_string\x18\x02 \x01(\t\x1a\xdf\x02\n\rIdentifiedBox\x12\x0e\n\x06\x62ox_id\x18\x01 \x01(\x03\x12~\n\x17normalized_bounding_box\x18\x02 \x01(\x0b\x32].google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox\x12\x18\n\x10\x63onfidence_score\x18\x03 \x01(\x02\x12P\n\x06\x65ntity\x18\x04 \x01(\x0b\x32@.google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity\x1aR\n\x15NormalizedBoundingBox\x12\x0c\n\x04xmin\x18\x01 \x01(\x02\x12\x0c\n\x04ymin\x18\x02 \x01(\x02\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x0e\n\x06height\x18\x04 \x01(\x02\"\x8b\x01\n$ImageObjectDetectionPredictionResult\x12\x0b\n\x03ids\x18\x01 \x03(\x03\x12\x15\n\rdisplay_names\x18\x02 \x03(\t\x12\x13\n\x0b\x63onfidences\x18\x03 \x03(\x02\x12*\n\x06\x62\x62oxes\x18\x04 \x03(\x0b\x32\x1a.google.protobuf.ListValue\"Y\n\x1e\x43lassificationPredictionResult\x12\x0b\n\x03ids\x18\x01 \x03(\x03\x12\x15\n\rdisplay_names\x18\x02 \x03(\t\x12\x13\n\x0b\x63onfidences\x18\x03 \x03(\x02\"S\n!ImageSegmentationPredictionResult\x12\x15\n\rcategory_mask\x18\x01 \x01(\t\x12\x17\n\x0f\x63onfidence_mask\x18\x02 \x01(\t\"\xc4\x02\n&VideoActionRecognitionPredictionResult\x12\x36\n\x12segment_start_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10segment_end_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x62\n\x07\x61\x63tions\x18\x03 \x03(\x0b\x32Q.google.cloud.visionai.v1.VideoActionRecognitionPredictionResult.IdentifiedAction\x1aH\n\x10IdentifiedAction\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\nconfidence\x18\x03 \x01(\x02\"\xf9\x03\n#VideoObjectTrackingPredictionResult\x12\x36\n\x12segment_start_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10segment_end_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12]\n\x07objects\x18\x03 \x03(\x0b\x32L.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject\x1aI\n\x0b\x42oundingBox\x12\r\n\x05x_min\x18\x01 \x01(\x02\x12\r\n\x05x_max\x18\x02 \x01(\x02\x12\r\n\x05y_min\x18\x03 \x01(\x02\x12\r\n\x05y_max\x18\x04 \x01(\x02\x1a\xb9\x01\n\x0e\x44\x65tectedObject\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12_\n\x0c\x62ounding_box\x18\x03 \x01(\x0b\x32I.google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x10\n\x08track_id\x18\x05 \x01(\x03\"\xd6\x02\n#VideoClassificationPredictionResult\x12\x36\n\x12segment_start_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10segment_end_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12o\n\x0f\x63lassifications\x18\x03 \x03(\x0b\x32V.google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification\x1aP\n\x18IdentifiedClassification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x12\n\nconfidence\x18\x03 \x01(\x02\"\xeb\x13\n!OccupancyCountingPredictionResult\x12\x30\n\x0c\x63urrent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x63\n\x10identified_boxes\x18\x02 \x03(\x0b\x32I.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox\x12P\n\x05stats\x18\x03 \x01(\x0b\x32\x41.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats\x12Y\n\ntrack_info\x18\x04 \x03(\x0b\x32\x45.google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo\x12\x62\n\x0f\x64well_time_info\x18\x05 \x03(\x0b\x32I.google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo\x12\x10\n\x03pts\x18\x06 \x01(\x03H\x00\x88\x01\x01\x1a\x30\n\x06\x45ntity\x12\x10\n\x08label_id\x18\x01 \x01(\x03\x12\x14\n\x0clabel_string\x18\x02 \x01(\t\x1a\xeb\x02\n\rIdentifiedBox\x12\x0e\n\x06\x62ox_id\x18\x01 \x01(\x03\x12\x80\x01\n\x17normalized_bounding_box\x18\x02 \x01(\x0b\x32_.google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox\x12\r\n\x05score\x18\x03 \x01(\x02\x12R\n\x06\x65ntity\x18\x04 \x01(\x0b\x32\x42.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity\x12\x10\n\x08track_id\x18\x05 \x01(\x03\x1aR\n\x15NormalizedBoundingBox\x12\x0c\n\x04xmin\x18\x01 \x01(\x02\x12\x0c\n\x04ymin\x18\x02 \x01(\x02\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x0e\n\x06height\x18\x04 \x01(\x02\x1a\xf5\n\n\x05Stats\x12g\n\x10\x66ull_frame_count\x18\x01 \x03(\x0b\x32M.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount\x12q\n\x14\x63rossing_line_counts\x18\x02 \x03(\x0b\x32S.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount\x12m\n\x12\x61\x63tive_zone_counts\x18\x03 \x03(\x0b\x32Q.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount\x1ap\n\x0bObjectCount\x12R\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x42.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\x1a\xad\x01\n\x16\x41\x63\x63umulatedObjectCount\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x63\n\x0cobject_count\x18\x02 \x01(\x0b\x32M.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount\x1a\xcb\x04\n\x11\x43rossingLineCount\x12>\n\nannotation\x18\x01 \x01(\x0b\x32*.google.cloud.visionai.v1.StreamAnnotation\x12p\n\x19positive_direction_counts\x18\x02 \x03(\x0b\x32M.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount\x12p\n\x19negative_direction_counts\x18\x03 \x03(\x0b\x32M.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount\x12\x87\x01\n%accumulated_positive_direction_counts\x18\x04 \x03(\x0b\x32X.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount\x12\x87\x01\n%accumulated_negative_direction_counts\x18\x05 \x03(\x0b\x32X.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount\x1a\xb0\x01\n\x0f\x41\x63tiveZoneCount\x12>\n\nannotation\x18\x01 \x01(\x0b\x32*.google.cloud.visionai.v1.StreamAnnotation\x12]\n\x06\x63ounts\x18\x02 \x03(\x0b\x32M.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount\x1aM\n\tTrackInfo\x12\x10\n\x08track_id\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x9c\x01\n\rDwellTimeInfo\x12\x10\n\x08track_id\x18\x01 \x01(\t\x12\x0f\n\x07zone_id\x18\x02 \x01(\t\x12\x34\n\x10\x64well_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0e\x64well_end_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\n\x04_pts\"\xaa\x02\n\x10StreamAnnotation\x12\x42\n\x0b\x61\x63tive_zone\x18\x05 \x01(\x0b\x32+.google.cloud.visionai.v1.NormalizedPolygonH\x00\x12\x45\n\rcrossing_line\x18\x06 \x01(\x0b\x32,.google.cloud.visionai.v1.NormalizedPolylineH\x00\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x15\n\rsource_stream\x18\x03 \x01(\t\x12<\n\x04type\x18\x04 \x01(\x0e\x32..google.cloud.visionai.v1.StreamAnnotationTypeB\x14\n\x12\x61nnotation_payload\"[\n\x11StreamAnnotations\x12\x46\n\x12stream_annotations\x18\x01 \x03(\x0b\x32*.google.cloud.visionai.v1.StreamAnnotation\"\\\n\x11NormalizedPolygon\x12G\n\x13normalized_vertices\x18\x01 \x03(\x0b\x32*.google.cloud.visionai.v1.NormalizedVertex\"]\n\x12NormalizedPolyline\x12G\n\x13normalized_vertices\x18\x01 \x03(\x0b\x32*.google.cloud.visionai.v1.NormalizedVertex\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"`\n\x13\x41ppPlatformMetadata\x12\x13\n\x0b\x61pplication\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x0c\n\x04node\x18\x03 \x01(\t\x12\x11\n\tprocessor\x18\x04 \x01(\t\"\xbe\x02\n\x1f\x41ppPlatformCloudFunctionRequest\x12L\n\x15\x61pp_platform_metadata\x18\x01 \x01(\x0b\x32-.google.cloud.visionai.v1.AppPlatformMetadata\x12\x66\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32Q.google.cloud.visionai.v1.AppPlatformCloudFunctionRequest.StructedInputAnnotation\x1a\x65\n\x17StructedInputAnnotation\x12\x1d\n\x15ingestion_time_micros\x18\x01 \x01(\x03\x12+\n\nannotation\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xb5\x02\n AppPlatformCloudFunctionResponse\x12h\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32S.google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation\x12\x1e\n\x16\x61nnotation_passthrough\x18\x03 \x01(\x08\x12>\n\x06\x65vents\x18\x04 \x03(\x0b\x32..google.cloud.visionai.v1.AppPlatformEventBody\x1aG\n\x18StructedOutputAnnotation\x12+\n\nannotation\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"i\n\x14\x41ppPlatformEventBody\x12\x15\n\revent_message\x18\x01 \x01(\t\x12(\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08\x65vent_id\x18\x03 \x01(\t*\x90\x01\n\x14StreamAnnotationType\x12&\n\"STREAM_ANNOTATION_TYPE_UNSPECIFIED\x10\x00\x12&\n\"STREAM_ANNOTATION_TYPE_ACTIVE_ZONE\x10\x01\x12(\n$STREAM_ANNOTATION_TYPE_CROSSING_LINE\x10\x02\x42\xc0\x01\n\x1c\x63om.google.cloud.visionai.v1B\x10\x41nnotationsProtoP\x01Z8cloud.google.com/go/visionai/apiv1/visionaipb;visionaipb\xaa\x02\x18Google.Cloud.VisionAI.V1\xca\x02\x18Google\\Cloud\\VisionAI\\V1\xea\x02\x1bGoogle::Cloud::VisionAI::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError
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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["google.protobuf.ListValue", "google/protobuf/struct.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}"
33
+ end
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."
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module VisionAI
42
+ module V1
43
+ PersonalProtectiveEquipmentDetectionOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput").msgclass
44
+ PersonalProtectiveEquipmentDetectionOutput::PersonEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonEntity").msgclass
45
+ PersonalProtectiveEquipmentDetectionOutput::PPEEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity").msgclass
46
+ PersonalProtectiveEquipmentDetectionOutput::NormalizedBoundingBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.NormalizedBoundingBox").msgclass
47
+ PersonalProtectiveEquipmentDetectionOutput::PersonIdentifiedBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox").msgclass
48
+ PersonalProtectiveEquipmentDetectionOutput::PPEIdentifiedBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEIdentifiedBox").msgclass
49
+ PersonalProtectiveEquipmentDetectionOutput::DetectedPerson = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson").msgclass
50
+ ObjectDetectionPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ObjectDetectionPredictionResult").msgclass
51
+ ObjectDetectionPredictionResult::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ObjectDetectionPredictionResult.Entity").msgclass
52
+ ObjectDetectionPredictionResult::IdentifiedBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox").msgclass
53
+ ObjectDetectionPredictionResult::IdentifiedBox::NormalizedBoundingBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox.NormalizedBoundingBox").msgclass
54
+ ImageObjectDetectionPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ImageObjectDetectionPredictionResult").msgclass
55
+ ClassificationPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ClassificationPredictionResult").msgclass
56
+ ImageSegmentationPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ImageSegmentationPredictionResult").msgclass
57
+ VideoActionRecognitionPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.VideoActionRecognitionPredictionResult").msgclass
58
+ VideoActionRecognitionPredictionResult::IdentifiedAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.VideoActionRecognitionPredictionResult.IdentifiedAction").msgclass
59
+ VideoObjectTrackingPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.VideoObjectTrackingPredictionResult").msgclass
60
+ VideoObjectTrackingPredictionResult::BoundingBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox").msgclass
61
+ VideoObjectTrackingPredictionResult::DetectedObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.DetectedObject").msgclass
62
+ VideoClassificationPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.VideoClassificationPredictionResult").msgclass
63
+ VideoClassificationPredictionResult::IdentifiedClassification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.VideoClassificationPredictionResult.IdentifiedClassification").msgclass
64
+ OccupancyCountingPredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult").msgclass
65
+ OccupancyCountingPredictionResult::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.Entity").msgclass
66
+ OccupancyCountingPredictionResult::IdentifiedBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox").msgclass
67
+ OccupancyCountingPredictionResult::IdentifiedBox::NormalizedBoundingBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.IdentifiedBox.NormalizedBoundingBox").msgclass
68
+ OccupancyCountingPredictionResult::Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats").msgclass
69
+ OccupancyCountingPredictionResult::Stats::ObjectCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount").msgclass
70
+ OccupancyCountingPredictionResult::Stats::AccumulatedObjectCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount").msgclass
71
+ OccupancyCountingPredictionResult::Stats::CrossingLineCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.CrossingLineCount").msgclass
72
+ OccupancyCountingPredictionResult::Stats::ActiveZoneCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount").msgclass
73
+ OccupancyCountingPredictionResult::TrackInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.TrackInfo").msgclass
74
+ OccupancyCountingPredictionResult::DwellTimeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OccupancyCountingPredictionResult.DwellTimeInfo").msgclass
75
+ StreamAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.StreamAnnotation").msgclass
76
+ StreamAnnotations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.StreamAnnotations").msgclass
77
+ NormalizedPolygon = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.NormalizedPolygon").msgclass
78
+ NormalizedPolyline = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.NormalizedPolyline").msgclass
79
+ NormalizedVertex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.NormalizedVertex").msgclass
80
+ AppPlatformMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AppPlatformMetadata").msgclass
81
+ AppPlatformCloudFunctionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AppPlatformCloudFunctionRequest").msgclass
82
+ AppPlatformCloudFunctionRequest::StructedInputAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AppPlatformCloudFunctionRequest.StructedInputAnnotation").msgclass
83
+ AppPlatformCloudFunctionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AppPlatformCloudFunctionResponse").msgclass
84
+ AppPlatformCloudFunctionResponse::StructedOutputAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AppPlatformCloudFunctionResponse.StructedOutputAnnotation").msgclass
85
+ AppPlatformEventBody = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AppPlatformEventBody").msgclass
86
+ StreamAnnotationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.StreamAnnotationType").enummodule
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/visionai/v1/common.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+
11
+
12
+ descriptor_data = "\n%google/cloud/visionai/v1/common.proto\x12\x18google.cloud.visionai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x05\n\x07\x43luster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x04 \x03(\x0b\x32-.google.cloud.visionai.v1.Cluster.LabelsEntry\x12G\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32\x32.google.cloud.visionai.v1.Cluster.AnnotationsEntry\x12\'\n\x1a\x64\x61taplane_service_endpoint\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12;\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.visionai.v1.Cluster.StateB\x03\xe0\x41\x03\x12\x17\n\npsc_target\x18\x08 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\t\n\x05\x45RROR\x10\x04:`\xea\x41]\n\x1fvisionai.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\x1e\n\tGcsSource\x12\x11\n\x04uris\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\xbb\x01\n\x1c\x63om.google.cloud.visionai.v1B\x0b\x43ommonProtoP\x01Z8cloud.google.com/go/visionai/apiv1/visionaipb;visionaipb\xaa\x02\x18Google.Cloud.VisionAI.V1\xca\x02\x18Google\\Cloud\\VisionAI\\V1\xea\x02\x1bGoogle::Cloud::VisionAI::V1b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
33
+ end
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."
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module VisionAI
42
+ module V1
43
+ Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.Cluster").msgclass
44
+ Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.Cluster.State").enummodule
45
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OperationMetadata").msgclass
46
+ GcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.GcsSource").msgclass
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/visionai/v1/health_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/resource_pb'
10
+
11
+
12
+ descriptor_data = "\n-google/cloud/visionai/v1/health_service.proto\x12\x18google.cloud.visionai.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\"K\n\x12HealthCheckRequest\x12\x35\n\x07\x63luster\x18\x01 \x01(\tB$\xfa\x41!\n\x1fvisionai.googleapis.com/Cluster\"s\n\x13HealthCheckResponse\x12\x0f\n\x07healthy\x18\x01 \x01(\x08\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12;\n\x0c\x63luster_info\x18\x03 \x01(\x0b\x32%.google.cloud.visionai.v1.ClusterInfo\"=\n\x0b\x43lusterInfo\x12\x15\n\rstreams_count\x18\x01 \x01(\x05\x12\x17\n\x0fprocesses_count\x18\x02 \x01(\x05\x32\x93\x02\n\x12HealthCheckService\x12\xaf\x01\n\x0bHealthCheck\x12,.google.cloud.visionai.v1.HealthCheckRequest\x1a-.google.cloud.visionai.v1.HealthCheckResponse\"C\x82\xd3\xe4\x93\x02=\x12;/v1/{cluster=projects/*/locations/*/clusters/*}:healthCheck\x1aK\xca\x41\x17visionai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc7\x01\n\x1c\x63om.google.cloud.visionai.v1B\x17HealthCheckServiceProtoP\x01Z8cloud.google.com/go/visionai/apiv1/visionaipb;visionaipb\xaa\x02\x18Google.Cloud.VisionAI.V1\xca\x02\x18Google\\Cloud\\VisionAI\\V1\xea\x02\x1bGoogle::Cloud::VisionAI::V1b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
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}"
32
+ end
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."
36
+ end
37
+
38
+ module Google
39
+ module Cloud
40
+ module VisionAI
41
+ module V1
42
+ HealthCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.HealthCheckRequest").msgclass
43
+ HealthCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.HealthCheckResponse").msgclass
44
+ ClusterInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ClusterInfo").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,46 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/visionai/v1/health_service.proto for package 'Google.Cloud.VisionAI.V1'
3
+ # Original file comments:
4
+ # Copyright 2024 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/visionai/v1/health_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module VisionAI
25
+ module V1
26
+ module HealthCheckService
27
+ # HealthCheckService provides an interface for Vertex AI Vision Cluster Health
28
+ # Check.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.visionai.v1.HealthCheckService'
36
+
37
+ # HealthCheck method checks the health status of the cluster.
38
+ rpc :HealthCheck, ::Google::Cloud::VisionAI::V1::HealthCheckRequest, ::Google::Cloud::VisionAI::V1::HealthCheckResponse
39
+ end
40
+
41
+ Stub = Service.rpc_stub_class
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/visionai/v1/lva.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\"google/cloud/visionai/v1/lva.proto\x12\x18google.cloud.visionai.v1\"\xca\x04\n\x12OperatorDefinition\x12\x10\n\x08operator\x18\x01 \x01(\t\x12S\n\ninput_args\x18\x02 \x03(\x0b\x32?.google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition\x12T\n\x0boutput_args\x18\x03 \x03(\x0b\x32?.google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition\x12T\n\nattributes\x18\x04 \x03(\x0b\x32@.google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition\x12\x42\n\tresources\x18\x05 \x01(\x0b\x32/.google.cloud.visionai.v1.ResourceSpecification\x12\x19\n\x11short_description\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x1a\x34\n\x12\x41rgumentDefinition\x12\x10\n\x08\x61rgument\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x1aw\n\x13\x41ttributeDefinition\x12\x11\n\tattribute\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12?\n\rdefault_value\x18\x03 \x01(\x0b\x32(.google.cloud.visionai.v1.AttributeValue\"\x88\x01\n\x15ResourceSpecification\x12\x0b\n\x03\x63pu\x18\x01 \x01(\t\x12\x12\n\ncpu_limits\x18\x05 \x01(\t\x12\x0e\n\x06memory\x18\x02 \x01(\t\x12\x15\n\rmemory_limits\x18\x06 \x01(\t\x12\x0c\n\x04gpus\x18\x03 \x01(\x05\x12\x19\n\x11latency_budget_ms\x18\x04 \x01(\x05\"M\n\x0e\x41ttributeValue\x12\x0b\n\x01i\x18\x01 \x01(\x03H\x00\x12\x0b\n\x01\x66\x18\x02 \x01(\x02H\x00\x12\x0b\n\x01\x62\x18\x03 \x01(\x08H\x00\x12\x0b\n\x01s\x18\x04 \x01(\x0cH\x00\x42\x07\n\x05value\"\xdb\x05\n\x12\x41nalyzerDefinition\x12\x10\n\x08\x61nalyzer\x18\x01 \x01(\t\x12\x10\n\x08operator\x18\x02 \x01(\t\x12H\n\x06inputs\x18\x03 \x03(\x0b\x32\x38.google.cloud.visionai.v1.AnalyzerDefinition.StreamInput\x12\x46\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x37.google.cloud.visionai.v1.AnalyzerDefinition.AttrsEntry\x12P\n\rdebug_options\x18\x05 \x01(\x0b\x32\x39.google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions\x12T\n\x0foperator_option\x18\x06 \x01(\x0b\x32;.google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption\x1a\x1c\n\x0bStreamInput\x12\r\n\x05input\x18\x01 \x01(\t\x1a\xbf\x01\n\x0c\x44\x65\x62ugOptions\x12r\n\x15\x65nvironment_variables\x18\x01 \x03(\x0b\x32S.google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions.EnvironmentVariablesEntry\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a/\n\x0eOperatorOption\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x10\n\x08registry\x18\x02 \x01(\t\x1aV\n\nAttrsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.google.cloud.visionai.v1.AttributeValue:\x02\x38\x01\"U\n\x12\x41nalysisDefinition\x12?\n\tanalyzers\x18\x01 \x03(\x0b\x32,.google.cloud.visionai.v1.AnalyzerDefinition\"\xbc\x01\n\tRunStatus\x12\x38\n\x05state\x18\x01 \x01(\x0e\x32).google.cloud.visionai.v1.RunStatus.State\x12\x0e\n\x06reason\x18\x02 \x01(\t\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCOMPLETED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07PENDING\x10\x05*=\n\x07RunMode\x12\x18\n\x14RUN_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04LIVE\x10\x01\x12\x0e\n\nSUBMISSION\x10\x02\x42\xb8\x01\n\x1c\x63om.google.cloud.visionai.v1B\x08LvaProtoP\x01Z8cloud.google.com/go/visionai/apiv1/visionaipb;visionaipb\xaa\x02\x18Google.Cloud.VisionAI.V1\xca\x02\x18Google\\Cloud\\VisionAI\\V1\xea\x02\x1bGoogle::Cloud::VisionAI::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
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
+ end
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."
32
+ end
33
+
34
+ module Google
35
+ module Cloud
36
+ module VisionAI
37
+ module V1
38
+ OperatorDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OperatorDefinition").msgclass
39
+ OperatorDefinition::ArgumentDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OperatorDefinition.ArgumentDefinition").msgclass
40
+ OperatorDefinition::AttributeDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition").msgclass
41
+ ResourceSpecification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.ResourceSpecification").msgclass
42
+ AttributeValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AttributeValue").msgclass
43
+ AnalyzerDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AnalyzerDefinition").msgclass
44
+ AnalyzerDefinition::StreamInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AnalyzerDefinition.StreamInput").msgclass
45
+ AnalyzerDefinition::DebugOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AnalyzerDefinition.DebugOptions").msgclass
46
+ AnalyzerDefinition::OperatorOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AnalyzerDefinition.OperatorOption").msgclass
47
+ AnalysisDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.AnalysisDefinition").msgclass
48
+ RunStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.RunStatus").msgclass
49
+ RunStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.RunStatus.State").enummodule
50
+ RunMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.RunMode").enummodule
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/visionai/v1/lva_resources.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/visionai/v1/lva_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+
12
+
13
+ descriptor_data = "\n,google/cloud/visionai/v1/lva_resources.proto\x12\x18google.cloud.visionai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/cloud/visionai/v1/lva.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb9\x03\n\x08Operator\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x06labels\x18\x04 \x03(\x0b\x32..google.cloud.visionai.v1.Operator.LabelsEntry\x12I\n\x13operator_definition\x18\x05 \x01(\x0b\x32,.google.cloud.visionai.v1.OperatorDefinition\x12\x14\n\x0c\x64ocker_image\x18\x06 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:c\xea\x41`\n visionai.googleapis.com/Operator\x12<projects/{project}/locations/{location}/operators/{operator}\"\x85\x06\n\x08\x41nalysis\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x06labels\x18\x04 \x03(\x0b\x32..google.cloud.visionai.v1.Analysis.LabelsEntry\x12I\n\x13\x61nalysis_definition\x18\x05 \x01(\x0b\x32,.google.cloud.visionai.v1.AnalysisDefinition\x12Z\n\x15input_streams_mapping\x18\x06 \x03(\x0b\x32;.google.cloud.visionai.v1.Analysis.InputStreamsMappingEntry\x12\\\n\x16output_streams_mapping\x18\x07 \x03(\x0b\x32<.google.cloud.visionai.v1.Analysis.OutputStreamsMappingEntry\x12\x1b\n\x13\x64isable_event_watch\x18\x08 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a:\n\x18InputStreamsMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19OutputStreamsMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:u\xea\x41r\n visionai.googleapis.com/Analysis\x12Nprojects/{project}/locations/{location}/clusters/{cluster}/analyses/{analysis}\"\x97\x04\n\x07Process\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x08\x61nalysis\x18\x04 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n visionai.googleapis.com/Analysis\x12 \n\x13\x61ttribute_overrides\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12<\n\nrun_status\x18\x06 \x01(\x0b\x32#.google.cloud.visionai.v1.RunStatusB\x03\xe0\x41\x01\x12\x38\n\x08run_mode\x18\x07 \x01(\x0e\x32!.google.cloud.visionai.v1.RunModeB\x03\xe0\x41\x01\x12\x15\n\x08\x65vent_id\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x62\x61tch_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bretry_count\x18\n \x01(\x05\x42\x03\xe0\x41\x01:t\xea\x41q\n\x1fvisionai.googleapis.com/Process\x12Nprojects/{project}/locations/{location}/clusters/{cluster}/processes/{process}B\xc1\x01\n\x1c\x63om.google.cloud.visionai.v1B\x11LvaResourcesProtoP\x01Z8cloud.google.com/go/visionai/apiv1/visionaipb;visionaipb\xaa\x02\x18Google.Cloud.VisionAI.V1\xca\x02\x18Google\\Cloud\\VisionAI\\V1\xea\x02\x1bGoogle::Cloud::VisionAI::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.visionai.v1.OperatorDefinition", "google/cloud/visionai/v1/lva.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Cloud
43
+ module VisionAI
44
+ module V1
45
+ Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.Operator").msgclass
46
+ Analysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.Analysis").msgclass
47
+ Process = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.visionai.v1.Process").msgclass
48
+ end
49
+ end
50
+ end
51
+ end