google-cloud-ai_platform-v1 0.24.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +4 -2
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +3 -1
  4. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +4 -2
  5. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +3 -1
  6. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +4 -2
  7. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +5 -3
  8. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +3 -1
  9. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +4 -2
  10. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +3 -1
  11. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +4 -2
  12. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +3 -1
  13. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +4 -2
  14. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +3 -1
  15. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +4 -2
  16. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +16 -5
  17. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +3 -1
  18. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +4 -2
  19. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +3 -1
  20. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +424 -0
  21. data/lib/google/cloud/ai_platform/v1/model_garden_service/credentials.rb +47 -0
  22. data/lib/google/cloud/ai_platform/v1/model_garden_service/paths.rb +50 -0
  23. data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +49 -0
  24. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +107 -2
  25. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +3 -1
  26. data/lib/google/cloud/ai_platform/v1/model_service/paths.rb +19 -0
  27. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +4 -2
  28. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +3 -1
  29. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +5 -4
  30. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +4 -2
  31. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +3 -1
  32. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +4 -2
  33. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +3 -1
  34. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  35. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +6 -3
  36. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +3 -1
  37. data/lib/google/cloud/ai_platform/v1.rb +1 -0
  38. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +24 -14
  39. data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +27 -11
  40. data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +25 -8
  41. data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +26 -20
  42. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +34 -57
  43. data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +24 -7
  44. data/lib/google/cloud/aiplatform/v1/context_pb.rb +26 -14
  45. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +31 -55
  46. data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +26 -9
  47. data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +29 -45
  48. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +29 -37
  49. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +30 -121
  50. data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +24 -5
  51. data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +24 -5
  52. data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +24 -4
  53. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +29 -44
  54. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +27 -63
  55. data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +26 -11
  56. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +24 -5
  57. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +26 -36
  58. data/lib/google/cloud/aiplatform/v1/event_pb.rb +25 -13
  59. data/lib/google/cloud/aiplatform/v1/execution_pb.rb +26 -23
  60. data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +25 -78
  61. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +27 -125
  62. data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +25 -10
  63. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +26 -33
  64. data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +24 -7
  65. data/lib/google/cloud/aiplatform/v1/featurestore_monitoring_pb.rb +24 -33
  66. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +27 -62
  67. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +26 -26
  68. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +33 -249
  69. data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +29 -19
  70. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +27 -41
  71. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +27 -60
  72. data/lib/google/cloud/aiplatform/v1/index_pb.rb +27 -38
  73. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +27 -73
  74. data/lib/google/cloud/aiplatform/v1/io_pb.rb +24 -28
  75. data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +33 -186
  76. data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +24 -14
  77. data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +27 -6
  78. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +24 -37
  79. data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +24 -4
  80. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +25 -33
  81. data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +25 -15
  82. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +32 -203
  83. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +26 -12
  84. data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +25 -32
  85. data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +27 -66
  86. data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +32 -78
  87. data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +27 -18
  88. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -34
  89. data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +49 -0
  90. data/lib/google/cloud/aiplatform/v1/model_garden_service_services_pb.rb +45 -0
  91. data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +25 -63
  92. data/lib/google/cloud/aiplatform/v1/model_pb.rb +31 -78
  93. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +37 -137
  94. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +2 -0
  95. data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +29 -84
  96. data/lib/google/cloud/aiplatform/v1/operation_pb.rb +26 -9
  97. data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +24 -6
  98. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +32 -91
  99. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +27 -51
  100. data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +24 -12
  101. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +27 -29
  102. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +1 -2
  103. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +57 -0
  104. data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +26 -13
  105. data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +24 -5
  106. data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +24 -9
  107. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +27 -33
  108. data/lib/google/cloud/aiplatform/v1/study_pb.rb +27 -157
  109. data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +25 -29
  110. data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +25 -11
  111. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +26 -14
  112. data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +25 -10
  113. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +31 -186
  114. data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +25 -24
  115. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +30 -63
  116. data/lib/google/cloud/aiplatform/v1/types_pb.rb +24 -13
  117. data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +25 -6
  118. data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +24 -8
  119. data/lib/google/cloud/aiplatform/v1/value_pb.rb +24 -8
  120. data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +27 -88
  121. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +2 -1
  122. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  123. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +6 -2
  124. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +7 -8
  125. data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +12 -3
  126. data/proto_docs/google/cloud/aiplatform/v1/model.rb +14 -0
  127. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +3 -2
  128. data/proto_docs/google/cloud/aiplatform/v1/model_garden_service.rb +61 -0
  129. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +32 -0
  130. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +235 -0
  131. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +2 -1
  132. data/proto_docs/google/protobuf/any.rb +7 -4
  133. data/proto_docs/google/protobuf/struct.rb +1 -1
  134. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  135. metadata +13 -4
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/aiplatform/v1/publisher_model.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/aiplatform/v1/machine_resources_pb'
10
+ require 'google/cloud/aiplatform/v1/model_pb'
11
+
12
+
13
+ descriptor_data = "\n0google/cloud/aiplatform/v1/publisher_model.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/aiplatform/v1/machine_resources.proto\x1a&google/cloud/aiplatform/v1/model.proto\"\xef\x16\n\x0ePublisherModel\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\nversion_id\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12`\n\x14open_source_category\x18\x07 \x01(\x0e\x32=.google.cloud.aiplatform.v1.PublisherModel.OpenSourceCategoryB\x03\xe0\x41\x02\x12W\n\x11supported_actions\x18\x13 \x01(\x0b\x32\x37.google.cloud.aiplatform.v1.PublisherModel.CallToActionB\x03\xe0\x41\x01\x12\x17\n\nframeworks\x18\x17 \x03(\tB\x03\xe0\x41\x01\x12Q\n\x0claunch_stage\x18\x1d \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.PublisherModel.LaunchStageB\x03\xe0\x41\x01\x12(\n\x18publisher_model_template\x18\x1e \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12J\n\x10predict_schemata\x18\x1f \x01(\x0b\x32+.google.cloud.aiplatform.v1.PredictSchemataB\x03\xe0\x41\x01\x1aH\n\x11ResourceReference\x12\r\n\x03uri\x18\x01 \x01(\tH\x00\x12\x17\n\rresource_name\x18\x02 \x01(\tH\x00\x42\x0b\n\treference\x1a\x39\n\rDocumentation\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x63ontent\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\xe7\x0e\n\x0c\x43\x61llToAction\x12_\n\rview_rest_api\x18\x01 \x01(\x0b\x32\x43.google.cloud.aiplatform.v1.PublisherModel.CallToAction.ViewRestApiB\x03\xe0\x41\x01\x12n\n\ropen_notebook\x18\x02 \x01(\x0b\x32R.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesB\x03\xe0\x41\x01\x12s\n\x12\x63reate_application\x18\x03 \x01(\x0b\x32R.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesB\x03\xe0\x41\x01\x12z\n\x19open_fine_tuning_pipeline\x18\x04 \x01(\x0b\x32R.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesB\x03\xe0\x41\x01\x12|\n\x1bopen_prompt_tuning_pipeline\x18\x05 \x01(\x0b\x32R.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesB\x03\xe0\x41\x01\x12k\n\nopen_genie\x18\x06 \x01(\x0b\x32R.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesB\x03\xe0\x41\x01\x12S\n\x06\x64\x65ploy\x18\x07 \x01(\x0b\x32>.google.cloud.aiplatform.v1.PublisherModel.CallToAction.DeployB\x03\xe0\x41\x01\x12z\n\x19open_generation_ai_studio\x18\x08 \x01(\x0b\x32R.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesB\x03\xe0\x41\x01\x12o\n\x0erequest_access\x18\t \x01(\x0b\x32R.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesB\x03\xe0\x41\x01\x1a\x9e\x02\n\x1aRegionalResourceReferences\x12{\n\nreferences\x18\x01 \x03(\x0b\x32\x62.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences.ReferencesEntryB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1ao\n\x0fReferencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12K\n\x05value\x18\x02 \x01(\x0b\x32<.google.cloud.aiplatform.v1.PublisherModel.ResourceReference:\x02\x38\x01\x1ax\n\x0bViewRestApi\x12U\n\x0e\x64ocumentations\x18\x01 \x03(\x0b\x32\x38.google.cloud.aiplatform.v1.PublisherModel.DocumentationB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\xcc\x03\n\x06\x44\x65ploy\x12M\n\x13\x64\x65\x64icated_resources\x18\x05 \x01(\x0b\x32..google.cloud.aiplatform.v1.DedicatedResourcesH\x00\x12M\n\x13\x61utomatic_resources\x18\x06 \x01(\x0b\x32..google.cloud.aiplatform.v1.AutomaticResourcesH\x00\x12\x1a\n\x10shared_resources\x18\x07 \x01(\tH\x00\x12\x1f\n\x12model_display_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12S\n\x15large_model_reference\x18\x02 \x01(\x0b\x32/.google.cloud.aiplatform.v1.LargeModelReferenceB\x03\xe0\x41\x01\x12K\n\x0e\x63ontainer_spec\x18\x03 \x01(\x0b\x32..google.cloud.aiplatform.v1.ModelContainerSpecB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rtifact_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05title\x18\x08 \x01(\tB\x03\xe0\x41\x02\x42\x16\n\x14prediction_resources\"\xdb\x01\n\x12OpenSourceCategory\x12$\n OPEN_SOURCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPROPRIETARY\x10\x01\x12+\n\'GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT\x10\x02\x12\x30\n,THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT\x10\x03\x12\x14\n\x10GOOGLE_OWNED_OSS\x10\x04\x12\x19\n\x15THIRD_PARTY_OWNED_OSS\x10\x05\"n\n\x0bLaunchStage\x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x45XPERIMENTAL\x10\x01\x12\x13\n\x0fPRIVATE_PREVIEW\x10\x02\x12\x12\n\x0ePUBLIC_PREVIEW\x10\x03\x12\x06\n\x02GA\x10\x04:T\xea\x41Q\n(aiplatform.googleapis.com/PublisherModel\x12%publishers/{publisher}/models/{model}B\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13PublisherModelProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
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.cloud.aiplatform.v1.PredictSchemata", "google/cloud/aiplatform/v1/model.proto"],
29
+ ["google.cloud.aiplatform.v1.DedicatedResources", "google/cloud/aiplatform/v1/machine_resources.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 AIPlatform
44
+ module V1
45
+ PublisherModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel").msgclass
46
+ PublisherModel::ResourceReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.ResourceReference").msgclass
47
+ PublisherModel::Documentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.Documentation").msgclass
48
+ PublisherModel::CallToAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.CallToAction").msgclass
49
+ PublisherModel::CallToAction::RegionalResourceReferences = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences").msgclass
50
+ PublisherModel::CallToAction::ViewRestApi = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.CallToAction.ViewRestApi").msgclass
51
+ PublisherModel::CallToAction::Deploy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.CallToAction.Deploy").msgclass
52
+ PublisherModel::OpenSourceCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.OpenSourceCategory").enummodule
53
+ PublisherModel::LaunchStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PublisherModel.LaunchStage").enummodule
54
+ end
55
+ end
56
+ end
57
+ end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/saved_query.proto
3
4
 
@@ -8,21 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/protobuf/struct_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/aiplatform/v1/saved_query.proto", :syntax => :proto3) do
13
- add_message "google.cloud.aiplatform.v1.SavedQuery" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :metadata, :message, 12, "google.protobuf.Value"
17
- optional :create_time, :message, 3, "google.protobuf.Timestamp"
18
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
19
- optional :annotation_filter, :string, 5
20
- optional :problem_type, :string, 6
21
- optional :annotation_spec_count, :int32, 10
22
- optional :etag, :string, 8
23
- optional :support_automl_training, :bool, 9
12
+
13
+ descriptor_data = "\n,google/cloud/aiplatform/v1/saved_query.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe6\x03\n\nSavedQuery\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12(\n\x08metadata\x18\x0c \x01(\x0b\x32\x16.google.protobuf.Value\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11\x61nnotation_filter\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cproblem_type\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\"\n\x15\x61nnotation_spec_count\x18\n \x01(\x05\x42\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12$\n\x17support_automl_training\x18\t \x01(\x08\x42\x03\xe0\x41\x03:\x80\x01\xea\x41}\n$aiplatform.googleapis.com/SavedQuery\x12Uprojects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}B\xcd\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0fSavedQueryProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
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.Value", "google/protobuf/struct.proto"],
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
24
35
  end
25
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."
26
39
  end
27
40
 
28
41
  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/aiplatform/v1/service_networking.proto
3
4
 
@@ -5,13 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/field_behavior_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/aiplatform/v1/service_networking.proto", :syntax => :proto3) do
10
- add_message "google.cloud.aiplatform.v1.PrivateServiceConnectConfig" do
11
- optional :enable_private_service_connect, :bool, 1
12
- repeated :project_allowlist, :string, 2
9
+
10
+ descriptor_data = "\n3google/cloud/aiplatform/v1/service_networking.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\"e\n\x1bPrivateServiceConnectConfig\x12+\n\x1e\x65nable_private_service_connect\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12\x19\n\x11project_allowlist\x18\x02 \x03(\tB\xd4\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x16ServiceNetworkingProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
13
30
  end
14
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
15
34
  end
16
35
 
17
36
  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/aiplatform/v1/specialist_pool.proto
3
4
 
@@ -6,17 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/aiplatform/v1/specialist_pool.proto", :syntax => :proto3) do
11
- add_message "google.cloud.aiplatform.v1.SpecialistPool" do
12
- optional :name, :string, 1
13
- optional :display_name, :string, 2
14
- optional :specialist_managers_count, :int32, 3
15
- repeated :specialist_manager_emails, :string, 4
16
- repeated :pending_data_labeling_jobs, :string, 5
17
- repeated :specialist_worker_emails, :string, 7
10
+
11
+ descriptor_data = "\n0google/cloud/aiplatform/v1/specialist_pool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xce\x02\n\x0eSpecialistPool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12&\n\x19specialist_managers_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x19specialist_manager_emails\x18\x04 \x03(\t\x12\'\n\x1apending_data_labeling_jobs\x18\x05 \x03(\tB\x03\xe0\x41\x03\x12 \n\x18specialist_worker_emails\x18\x07 \x03(\t:x\xea\x41u\n(aiplatform.googleapis.com/SpecialistPool\x12Iprojects/{project}/locations/{location}/specialistPools/{specialist_pool}B\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13SpecialistPoolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\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}"
18
31
  end
19
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."
20
35
  end
21
36
 
22
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/specialist_pool_service.proto
3
4
 
@@ -13,41 +14,34 @@ require 'google/longrunning/operations_pb'
13
14
  require 'google/protobuf/empty_pb'
14
15
  require 'google/protobuf/field_mask_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/cloud/aiplatform/v1/specialist_pool_service.proto", :syntax => :proto3) do
18
- add_message "google.cloud.aiplatform.v1.CreateSpecialistPoolRequest" do
19
- optional :parent, :string, 1
20
- optional :specialist_pool, :message, 2, "google.cloud.aiplatform.v1.SpecialistPool"
21
- end
22
- add_message "google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata" do
23
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
24
- end
25
- add_message "google.cloud.aiplatform.v1.GetSpecialistPoolRequest" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.cloud.aiplatform.v1.ListSpecialistPoolsRequest" do
29
- optional :parent, :string, 1
30
- optional :page_size, :int32, 2
31
- optional :page_token, :string, 3
32
- optional :read_mask, :message, 4, "google.protobuf.FieldMask"
33
- end
34
- add_message "google.cloud.aiplatform.v1.ListSpecialistPoolsResponse" do
35
- repeated :specialist_pools, :message, 1, "google.cloud.aiplatform.v1.SpecialistPool"
36
- optional :next_page_token, :string, 2
37
- end
38
- add_message "google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest" do
39
- optional :name, :string, 1
40
- optional :force, :bool, 2
41
- end
42
- add_message "google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest" do
43
- optional :specialist_pool, :message, 1, "google.cloud.aiplatform.v1.SpecialistPool"
44
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
45
- end
46
- add_message "google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata" do
47
- optional :specialist_pool, :string, 1
48
- optional :generic_metadata, :message, 2, "google.cloud.aiplatform.v1.GenericOperationMetadata"
17
+
18
+ descriptor_data = "\n8google/cloud/aiplatform/v1/specialist_pool_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a\x30google/cloud/aiplatform/v1/specialist_pool.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa2\x01\n\x1b\x43reateSpecialistPoolRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12H\n\x0fspecialist_pool\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.SpecialistPoolB\x03\xe0\x41\x02\"w\n%CreateSpecialistPoolOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"Z\n\x18GetSpecialistPoolRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/SpecialistPool\"\xad\x01\n\x1aListSpecialistPoolsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12-\n\tread_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"|\n\x1bListSpecialistPoolsResponse\x12\x44\n\x10specialist_pools\x18\x01 \x03(\x0b\x32*.google.cloud.aiplatform.v1.SpecialistPool\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"l\n\x1b\x44\x65leteSpecialistPoolRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/SpecialistPool\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x9d\x01\n\x1bUpdateSpecialistPoolRequest\x12H\n\x0fspecialist_pool\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.SpecialistPoolB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xc2\x01\n%UpdateSpecialistPoolOperationMetadata\x12I\n\x0fspecialist_pool\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(aiplatform.googleapis.com/SpecialistPool\x12N\n\x10generic_metadata\x18\x02 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata2\x94\n\n\x15SpecialistPoolService\x12\x90\x02\n\x14\x43reateSpecialistPool\x12\x37.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02\x46\"3/v1/{parent=projects/*/locations/*}/specialistPools:\x0fspecialist_pool\xda\x41\x16parent,specialist_pool\xca\x41\x37\n\x0eSpecialistPool\x12%CreateSpecialistPoolOperationMetadata\x12\xb9\x01\n\x11GetSpecialistPool\x12\x34.google.cloud.aiplatform.v1.GetSpecialistPoolRequest\x1a*.google.cloud.aiplatform.v1.SpecialistPool\"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/specialistPools/*}\xda\x41\x04name\x12\xcc\x01\n\x13ListSpecialistPools\x12\x36.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest\x1a\x37.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse\"D\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*}/specialistPools\xda\x41\x06parent\x12\xe5\x01\n\x14\x44\x65leteSpecialistPool\x12\x37.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/specialistPools/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\xa5\x02\n\x14UpdateSpecialistPool\x12\x37.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\x82\xd3\xe4\x93\x02V2C/v1/{specialist_pool.name=projects/*/locations/*/specialistPools/*}:\x0fspecialist_pool\xda\x41\x1bspecialist_pool,update_mask\xca\x41\x37\n\x0eSpecialistPool\x12%UpdateSpecialistPoolOperationMetadata\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd8\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x1aSpecialistPoolServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.cloud.aiplatform.v1.SpecialistPool", "google/cloud/aiplatform/v1/specialist_pool.proto"],
34
+ ["google.cloud.aiplatform.v1.GenericOperationMetadata", "google/cloud/aiplatform/v1/operation.proto"],
35
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
36
+ ]
37
+ imports.each do |type_name, expected_filename|
38
+ import_file = pool.lookup(type_name).file_descriptor
39
+ if import_file.name != expected_filename
40
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
49
41
  end
50
42
  end
43
+ warn "Each proto file must use a consistent fully-qualified name."
44
+ warn "This will become an error in the next major version."
51
45
  end
52
46
 
53
47
  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/aiplatform/v1/study.proto
3
4
 
@@ -9,165 +10,34 @@ require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/struct_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/aiplatform/v1/study.proto", :syntax => :proto3) do
14
- add_message "google.cloud.aiplatform.v1.Study" do
15
- optional :name, :string, 1
16
- optional :display_name, :string, 2
17
- optional :study_spec, :message, 3, "google.cloud.aiplatform.v1.StudySpec"
18
- optional :state, :enum, 4, "google.cloud.aiplatform.v1.Study.State"
19
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
20
- optional :inactive_reason, :string, 6
21
- end
22
- add_enum "google.cloud.aiplatform.v1.Study.State" do
23
- value :STATE_UNSPECIFIED, 0
24
- value :ACTIVE, 1
25
- value :INACTIVE, 2
26
- value :COMPLETED, 3
27
- end
28
- add_message "google.cloud.aiplatform.v1.Trial" do
29
- optional :name, :string, 1
30
- optional :id, :string, 2
31
- optional :state, :enum, 3, "google.cloud.aiplatform.v1.Trial.State"
32
- repeated :parameters, :message, 4, "google.cloud.aiplatform.v1.Trial.Parameter"
33
- optional :final_measurement, :message, 5, "google.cloud.aiplatform.v1.Measurement"
34
- repeated :measurements, :message, 6, "google.cloud.aiplatform.v1.Measurement"
35
- optional :start_time, :message, 7, "google.protobuf.Timestamp"
36
- optional :end_time, :message, 8, "google.protobuf.Timestamp"
37
- optional :client_id, :string, 9
38
- optional :infeasible_reason, :string, 10
39
- optional :custom_job, :string, 11
40
- map :web_access_uris, :string, :string, 12
41
- end
42
- add_message "google.cloud.aiplatform.v1.Trial.Parameter" do
43
- optional :parameter_id, :string, 1
44
- optional :value, :message, 2, "google.protobuf.Value"
45
- end
46
- add_enum "google.cloud.aiplatform.v1.Trial.State" do
47
- value :STATE_UNSPECIFIED, 0
48
- value :REQUESTED, 1
49
- value :ACTIVE, 2
50
- value :STOPPING, 3
51
- value :SUCCEEDED, 4
52
- value :INFEASIBLE, 5
53
- end
54
- add_message "google.cloud.aiplatform.v1.StudySpec" do
55
- repeated :metrics, :message, 1, "google.cloud.aiplatform.v1.StudySpec.MetricSpec"
56
- repeated :parameters, :message, 2, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec"
57
- optional :algorithm, :enum, 3, "google.cloud.aiplatform.v1.StudySpec.Algorithm"
58
- optional :observation_noise, :enum, 6, "google.cloud.aiplatform.v1.StudySpec.ObservationNoise"
59
- optional :measurement_selection_type, :enum, 7, "google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType"
60
- oneof :automated_stopping_spec do
61
- optional :decay_curve_stopping_spec, :message, 4, "google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec"
62
- optional :median_automated_stopping_spec, :message, 5, "google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec"
63
- optional :convex_automated_stopping_spec, :message, 9, "google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec"
64
- end
65
- end
66
- add_message "google.cloud.aiplatform.v1.StudySpec.MetricSpec" do
67
- optional :metric_id, :string, 1
68
- optional :goal, :enum, 2, "google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType"
69
- proto3_optional :safety_config, :message, 3, "google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig"
70
- end
71
- add_message "google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig" do
72
- optional :safety_threshold, :double, 1
73
- proto3_optional :desired_min_safe_trials_fraction, :double, 2
74
- end
75
- add_enum "google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType" do
76
- value :GOAL_TYPE_UNSPECIFIED, 0
77
- value :MAXIMIZE, 1
78
- value :MINIMIZE, 2
79
- end
80
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec" do
81
- optional :parameter_id, :string, 1
82
- optional :scale_type, :enum, 6, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType"
83
- repeated :conditional_parameter_specs, :message, 10, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec"
84
- oneof :parameter_value_spec do
85
- optional :double_value_spec, :message, 2, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec"
86
- optional :integer_value_spec, :message, 3, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec"
87
- optional :categorical_value_spec, :message, 4, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec"
88
- optional :discrete_value_spec, :message, 5, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec"
89
- end
90
- end
91
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec" do
92
- optional :min_value, :double, 1
93
- optional :max_value, :double, 2
94
- proto3_optional :default_value, :double, 4
95
- end
96
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec" do
97
- optional :min_value, :int64, 1
98
- optional :max_value, :int64, 2
99
- proto3_optional :default_value, :int64, 4
100
- end
101
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec" do
102
- repeated :values, :string, 1
103
- proto3_optional :default_value, :string, 3
104
- end
105
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec" do
106
- repeated :values, :double, 1
107
- proto3_optional :default_value, :double, 3
108
- end
109
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec" do
110
- optional :parameter_spec, :message, 1, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec"
111
- oneof :parent_value_condition do
112
- optional :parent_discrete_values, :message, 2, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition"
113
- optional :parent_int_values, :message, 3, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition"
114
- optional :parent_categorical_values, :message, 4, "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition"
115
- end
116
- end
117
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition" do
118
- repeated :values, :double, 1
119
- end
120
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition" do
121
- repeated :values, :int64, 1
122
- end
123
- add_message "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition" do
124
- repeated :values, :string, 1
125
- end
126
- add_enum "google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType" do
127
- value :SCALE_TYPE_UNSPECIFIED, 0
128
- value :UNIT_LINEAR_SCALE, 1
129
- value :UNIT_LOG_SCALE, 2
130
- value :UNIT_REVERSE_LOG_SCALE, 3
131
- end
132
- add_message "google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec" do
133
- optional :use_elapsed_duration, :bool, 1
134
- end
135
- add_message "google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec" do
136
- optional :use_elapsed_duration, :bool, 1
137
- end
138
- add_message "google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec" do
139
- optional :max_step_count, :int64, 1
140
- optional :min_step_count, :int64, 2
141
- optional :min_measurement_count, :int64, 3
142
- optional :learning_rate_parameter_name, :string, 4
143
- optional :use_elapsed_duration, :bool, 5
144
- proto3_optional :update_all_stopped_trials, :bool, 6
145
- end
146
- add_enum "google.cloud.aiplatform.v1.StudySpec.Algorithm" do
147
- value :ALGORITHM_UNSPECIFIED, 0
148
- value :GRID_SEARCH, 2
149
- value :RANDOM_SEARCH, 3
150
- end
151
- add_enum "google.cloud.aiplatform.v1.StudySpec.ObservationNoise" do
152
- value :OBSERVATION_NOISE_UNSPECIFIED, 0
153
- value :LOW, 1
154
- value :HIGH, 2
155
- end
156
- add_enum "google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType" do
157
- value :MEASUREMENT_SELECTION_TYPE_UNSPECIFIED, 0
158
- value :LAST_MEASUREMENT, 1
159
- value :BEST_MEASUREMENT, 2
160
- end
161
- add_message "google.cloud.aiplatform.v1.Measurement" do
162
- optional :elapsed_duration, :message, 1, "google.protobuf.Duration"
163
- optional :step_count, :int64, 2
164
- repeated :metrics, :message, 3, "google.cloud.aiplatform.v1.Measurement.Metric"
165
- end
166
- add_message "google.cloud.aiplatform.v1.Measurement.Metric" do
167
- optional :metric_id, :string, 1
168
- optional :value, :double, 2
13
+
14
+ descriptor_data = "\n&google/cloud/aiplatform/v1/study.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x03\n\x05Study\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\nstudy_spec\x18\x03 \x01(\x0b\x32%.google.cloud.aiplatform.v1.StudySpecB\x03\xe0\x41\x02\x12;\n\x05state\x18\x04 \x01(\x0e\x32\'.google.cloud.aiplatform.v1.Study.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0finactive_reason\x18\x06 \x01(\tB\x03\xe0\x41\x03\"G\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\r\n\tCOMPLETED\x10\x03:]\xea\x41Z\n\x1f\x61iplatform.googleapis.com/Study\x12\x37projects/{project}/locations/{location}/studies/{study}\"\xd0\x07\n\x05Trial\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.cloud.aiplatform.v1.Trial.StateB\x03\xe0\x41\x03\x12\x44\n\nparameters\x18\x04 \x03(\x0b\x32+.google.cloud.aiplatform.v1.Trial.ParameterB\x03\xe0\x41\x03\x12G\n\x11\x66inal_measurement\x18\x05 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x03\x12\x42\n\x0cmeasurements\x18\x06 \x03(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tclient_id\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11infeasible_reason\x18\n \x01(\tB\x03\xe0\x41\x03\x12?\n\ncustom_job\x18\x0b \x01(\tB+\xe0\x41\x03\xfa\x41%\n#aiplatform.googleapis.com/CustomJob\x12R\n\x0fweb_access_uris\x18\x0c \x03(\x0b\x32\x34.google.cloud.aiplatform.v1.Trial.WebAccessUrisEntryB\x03\xe0\x41\x03\x1aR\n\tParameter\x12\x19\n\x0cparameter_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\x1a\x34\n\x12WebAccessUrisEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tREQUESTED\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x0e\n\nINFEASIBLE\x10\x05:l\xea\x41i\n\x1f\x61iplatform.googleapis.com/Trial\x12\x46projects/{project}/locations/{location}/studies/{study}/trials/{trial}\"\xfe\x1c\n\tStudySpec\x12j\n\x19\x64\x65\x63\x61y_curve_stopping_spec\x18\x04 \x01(\x0b\x32\x45.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpecH\x00\x12k\n\x1emedian_automated_stopping_spec\x18\x05 \x01(\x0b\x32\x41.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpecH\x00\x12k\n\x1e\x63onvex_automated_stopping_spec\x18\t \x01(\x0b\x32\x41.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpecH\x00\x12\x46\n\x07metrics\x18\x01 \x03(\x0b\x32\x30.google.cloud.aiplatform.v1.StudySpec.MetricSpecB\x03\xe0\x41\x02\x12L\n\nparameters\x18\x02 \x03(\x0b\x32\x33.google.cloud.aiplatform.v1.StudySpec.ParameterSpecB\x03\xe0\x41\x02\x12\x42\n\talgorithm\x18\x03 \x01(\x0e\x32/.google.cloud.aiplatform.v1.StudySpec.Algorithm\x12Q\n\x11observation_noise\x18\x06 \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.StudySpec.ObservationNoise\x12\x62\n\x1ameasurement_selection_type\x18\x07 \x01(\x0e\x32>.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType\x1a\xad\x03\n\nMetricSpec\x12\x16\n\tmetric_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x04goal\x18\x02 \x01(\x0e\x32\x39.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalTypeB\x03\xe0\x41\x02\x12_\n\rsafety_config\x18\x03 \x01(\x0b\x32\x43.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfigH\x00\x88\x01\x01\x1a\x82\x01\n\x12SafetyMetricConfig\x12\x18\n\x10safety_threshold\x18\x01 \x01(\x01\x12-\n desired_min_safe_trials_fraction\x18\x02 \x01(\x01H\x00\x88\x01\x01\x42#\n!_desired_min_safe_trials_fraction\"A\n\x08GoalType\x12\x19\n\x15GOAL_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\x12\x0c\n\x08MINIMIZE\x10\x02\x42\x10\n\x0e_safety_config\x1a\xcd\x0e\n\rParameterSpec\x12`\n\x11\x64ouble_value_spec\x18\x02 \x01(\x0b\x32\x43.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpecH\x00\x12\x62\n\x12integer_value_spec\x18\x03 \x01(\x0b\x32\x44.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpecH\x00\x12j\n\x16\x63\x61tegorical_value_spec\x18\x04 \x01(\x0b\x32H.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpecH\x00\x12\x64\n\x13\x64iscrete_value_spec\x18\x05 \x01(\x0b\x32\x45.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpecH\x00\x12\x19\n\x0cparameter_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\nscale_type\x18\x06 \x01(\x0e\x32=.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType\x12q\n\x1b\x63onditional_parameter_specs\x18\n \x03(\x0b\x32L.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec\x1ao\n\x0f\x44oubleValueSpec\x12\x16\n\tmin_value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x16\n\tmax_value\x18\x02 \x01(\x01\x42\x03\xe0\x41\x02\x12\x1a\n\rdefault_value\x18\x04 \x01(\x01H\x00\x88\x01\x01\x42\x10\n\x0e_default_value\x1ap\n\x10IntegerValueSpec\x12\x16\n\tmin_value\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x16\n\tmax_value\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12\x1a\n\rdefault_value\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\x10\n\x0e_default_value\x1aY\n\x14\x43\x61tegoricalValueSpec\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x1a\n\rdefault_value\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x10\n\x0e_default_value\x1aV\n\x11\x44iscreteValueSpec\x12\x13\n\x06values\x18\x01 \x03(\x01\x42\x03\xe0\x41\x02\x12\x1a\n\rdefault_value\x18\x03 \x01(\x01H\x00\x88\x01\x01\x42\x10\n\x0e_default_value\x1a\xa4\x05\n\x18\x43onditionalParameterSpec\x12\x85\x01\n\x16parent_discrete_values\x18\x02 \x01(\x0b\x32\x63.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueConditionH\x00\x12{\n\x11parent_int_values\x18\x03 \x01(\x0b\x32^.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueConditionH\x00\x12\x8b\x01\n\x19parent_categorical_values\x18\x04 \x01(\x0b\x32\x66.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueConditionH\x00\x12P\n\x0eparameter_spec\x18\x01 \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.StudySpec.ParameterSpecB\x03\xe0\x41\x02\x1a-\n\x16\x44iscreteValueCondition\x12\x13\n\x06values\x18\x01 \x03(\x01\x42\x03\xe0\x41\x02\x1a(\n\x11IntValueCondition\x12\x13\n\x06values\x18\x01 \x03(\x03\x42\x03\xe0\x41\x02\x1a\x30\n\x19\x43\x61tegoricalValueCondition\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\x18\n\x16parent_value_condition\"n\n\tScaleType\x12\x1a\n\x16SCALE_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11UNIT_LINEAR_SCALE\x10\x01\x12\x12\n\x0eUNIT_LOG_SCALE\x10\x02\x12\x1a\n\x16UNIT_REVERSE_LOG_SCALE\x10\x03\x42\x16\n\x14parameter_value_spec\x1a?\n\x1f\x44\x65\x63\x61yCurveAutomatedStoppingSpec\x12\x1c\n\x14use_elapsed_duration\x18\x01 \x01(\x08\x1a;\n\x1bMedianAutomatedStoppingSpec\x12\x1c\n\x14use_elapsed_duration\x18\x01 \x01(\x08\x1a\xf6\x01\n\x1b\x43onvexAutomatedStoppingSpec\x12\x16\n\x0emax_step_count\x18\x01 \x01(\x03\x12\x16\n\x0emin_step_count\x18\x02 \x01(\x03\x12\x1d\n\x15min_measurement_count\x18\x03 \x01(\x03\x12$\n\x1clearning_rate_parameter_name\x18\x04 \x01(\t\x12\x1c\n\x14use_elapsed_duration\x18\x05 \x01(\x08\x12&\n\x19update_all_stopped_trials\x18\x06 \x01(\x08H\x00\x88\x01\x01\x42\x1c\n\x1a_update_all_stopped_trials\"J\n\tAlgorithm\x12\x19\n\x15\x41LGORITHM_UNSPECIFIED\x10\x00\x12\x0f\n\x0bGRID_SEARCH\x10\x02\x12\x11\n\rRANDOM_SEARCH\x10\x03\"H\n\x10ObservationNoise\x12!\n\x1dOBSERVATION_NOISE_UNSPECIFIED\x10\x00\x12\x07\n\x03LOW\x10\x01\x12\x08\n\x04HIGH\x10\x02\"r\n\x18MeasurementSelectionType\x12*\n&MEASUREMENT_SELECTION_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LAST_MEASUREMENT\x10\x01\x12\x14\n\x10\x42\x45ST_MEASUREMENT\x10\x02\x42\x19\n\x17\x61utomated_stopping_spec\"\xdc\x01\n\x0bMeasurement\x12\x38\n\x10\x65lapsed_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x17\n\nstep_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x44\n\x07metrics\x18\x03 \x03(\x0b\x32..google.cloud.aiplatform.v1.Measurement.MetricB\x03\xe0\x41\x03\x1a\x34\n\x06Metric\x12\x16\n\tmetric_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05value\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03\x42\xc8\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\nStudyProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ["google.protobuf.Value", "google/protobuf/struct.proto"],
31
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
169
37
  end
170
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
171
41
  end
172
42
 
173
43
  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/aiplatform/v1/tensorboard_data.proto
3
4
 
@@ -7,37 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/cloud/aiplatform/v1/tensorboard_time_series_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/aiplatform/v1/tensorboard_data.proto", :syntax => :proto3) do
12
- add_message "google.cloud.aiplatform.v1.TimeSeriesData" do
13
- optional :tensorboard_time_series_id, :string, 1
14
- optional :value_type, :enum, 2, "google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType"
15
- repeated :values, :message, 3, "google.cloud.aiplatform.v1.TimeSeriesDataPoint"
16
- end
17
- add_message "google.cloud.aiplatform.v1.TimeSeriesDataPoint" do
18
- optional :wall_time, :message, 1, "google.protobuf.Timestamp"
19
- optional :step, :int64, 2
20
- oneof :value do
21
- optional :scalar, :message, 3, "google.cloud.aiplatform.v1.Scalar"
22
- optional :tensor, :message, 4, "google.cloud.aiplatform.v1.TensorboardTensor"
23
- optional :blobs, :message, 5, "google.cloud.aiplatform.v1.TensorboardBlobSequence"
24
- end
25
- end
26
- add_message "google.cloud.aiplatform.v1.Scalar" do
27
- optional :value, :double, 1
28
- end
29
- add_message "google.cloud.aiplatform.v1.TensorboardTensor" do
30
- optional :value, :bytes, 1
31
- optional :version_number, :int32, 2
32
- end
33
- add_message "google.cloud.aiplatform.v1.TensorboardBlobSequence" do
34
- repeated :values, :message, 1, "google.cloud.aiplatform.v1.TensorboardBlob"
35
- end
36
- add_message "google.cloud.aiplatform.v1.TensorboardBlob" do
37
- optional :id, :string, 1
38
- optional :data, :bytes, 2
11
+
12
+ descriptor_data = "\n1google/cloud/aiplatform/v1/tensorboard_data.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x38google/cloud/aiplatform/v1/tensorboard_time_series.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd8\x01\n\x0eTimeSeriesData\x12\'\n\x1atensorboard_time_series_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\nvalue_type\x18\x02 \x01(\x0e\x32;.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x44\n\x06values\x18\x03 \x03(\x0b\x32/.google.cloud.aiplatform.v1.TimeSeriesDataPointB\x03\xe0\x41\x02\"\x98\x02\n\x13TimeSeriesDataPoint\x12\x34\n\x06scalar\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.ScalarH\x00\x12?\n\x06tensor\x18\x04 \x01(\x0b\x32-.google.cloud.aiplatform.v1.TensorboardTensorH\x00\x12\x44\n\x05\x62lobs\x18\x05 \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.TensorboardBlobSequenceH\x00\x12-\n\twall_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04step\x18\x02 \x01(\x03\x42\x07\n\x05value\"\x17\n\x06Scalar\x12\r\n\x05value\x18\x01 \x01(\x01\"D\n\x11TensorboardTensor\x12\x12\n\x05value\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x1b\n\x0eversion_number\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"V\n\x17TensorboardBlobSequence\x12;\n\x06values\x18\x01 \x03(\x0b\x32+.google.cloud.aiplatform.v1.TensorboardBlob\"5\n\x0fTensorboardBlob\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01\x42\xd2\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x14TensorboardDataProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
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}"
39
33
  end
40
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."
41
37
  end
42
38
 
43
39
  module Google