google-cloud-ai_platform-v1 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) 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 +4 -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 +32 -137
  94. data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +29 -84
  95. data/lib/google/cloud/aiplatform/v1/operation_pb.rb +26 -9
  96. data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +24 -6
  97. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +32 -91
  98. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +27 -51
  99. data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +24 -12
  100. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +27 -29
  101. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +1 -2
  102. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +57 -0
  103. data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +26 -13
  104. data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +24 -5
  105. data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +24 -9
  106. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +27 -33
  107. data/lib/google/cloud/aiplatform/v1/study_pb.rb +27 -157
  108. data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +25 -29
  109. data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +25 -11
  110. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +26 -14
  111. data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +25 -10
  112. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +31 -186
  113. data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +25 -24
  114. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +30 -63
  115. data/lib/google/cloud/aiplatform/v1/types_pb.rb +24 -13
  116. data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +25 -6
  117. data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +24 -8
  118. data/lib/google/cloud/aiplatform/v1/value_pb.rb +24 -8
  119. data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +27 -88
  120. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +2 -1
  121. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  122. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +6 -2
  123. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +7 -8
  124. data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +12 -3
  125. data/proto_docs/google/cloud/aiplatform/v1/model.rb +14 -0
  126. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +3 -2
  127. data/proto_docs/google/cloud/aiplatform/v1/model_garden_service.rb +61 -0
  128. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +235 -0
  129. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +2 -1
  130. data/proto_docs/google/protobuf/any.rb +7 -4
  131. data/proto_docs/google/protobuf/struct.rb +1 -1
  132. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  133. metadata +13 -4
@@ -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/index_endpoint.proto
3
4
 
@@ -9,49 +10,34 @@ require 'google/cloud/aiplatform/v1/machine_resources_pb'
9
10
  require 'google/cloud/aiplatform/v1/service_networking_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/index_endpoint.proto", :syntax => :proto3) do
14
- add_message "google.cloud.aiplatform.v1.IndexEndpoint" do
15
- optional :name, :string, 1
16
- optional :display_name, :string, 2
17
- optional :description, :string, 3
18
- repeated :deployed_indexes, :message, 4, "google.cloud.aiplatform.v1.DeployedIndex"
19
- optional :etag, :string, 5
20
- map :labels, :string, :string, 6
21
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
22
- optional :update_time, :message, 8, "google.protobuf.Timestamp"
23
- optional :network, :string, 9
24
- optional :enable_private_service_connect, :bool, 10
25
- optional :private_service_connect_config, :message, 12, "google.cloud.aiplatform.v1.PrivateServiceConnectConfig"
26
- optional :public_endpoint_enabled, :bool, 13
27
- optional :public_endpoint_domain_name, :string, 14
28
- end
29
- add_message "google.cloud.aiplatform.v1.DeployedIndex" do
30
- optional :id, :string, 1
31
- optional :index, :string, 2
32
- optional :display_name, :string, 3
33
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
34
- optional :private_endpoints, :message, 5, "google.cloud.aiplatform.v1.IndexPrivateEndpoints"
35
- optional :index_sync_time, :message, 6, "google.protobuf.Timestamp"
36
- optional :automatic_resources, :message, 7, "google.cloud.aiplatform.v1.AutomaticResources"
37
- optional :dedicated_resources, :message, 16, "google.cloud.aiplatform.v1.DedicatedResources"
38
- optional :enable_access_logging, :bool, 8
39
- optional :deployed_index_auth_config, :message, 9, "google.cloud.aiplatform.v1.DeployedIndexAuthConfig"
40
- repeated :reserved_ip_ranges, :string, 10
41
- optional :deployment_group, :string, 11
42
- end
43
- add_message "google.cloud.aiplatform.v1.DeployedIndexAuthConfig" do
44
- optional :auth_provider, :message, 1, "google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider"
45
- end
46
- add_message "google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider" do
47
- repeated :audiences, :string, 1
48
- repeated :allowed_issuers, :string, 2
49
- end
50
- add_message "google.cloud.aiplatform.v1.IndexPrivateEndpoints" do
51
- optional :match_grpc_address, :string, 1
52
- optional :service_attachment, :string, 2
13
+
14
+ descriptor_data = "\n/google/cloud/aiplatform/v1/index_endpoint.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\x33google/cloud/aiplatform/v1/service_networking.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x05\n\rIndexEndpoint\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\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12H\n\x10\x64\x65ployed_indexes\x18\x04 \x03(\x0b\x32).google.cloud.aiplatform.v1.DeployedIndexB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x05 \x01(\t\x12\x45\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.cloud.aiplatform.v1.IndexEndpoint.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07network\x18\t \x01(\tB\x03\xe0\x41\x01\x12-\n\x1e\x65nable_private_service_connect\x18\n \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x12\x64\n\x1eprivate_service_connect_config\x18\x0c \x01(\x0b\x32\x37.google.cloud.aiplatform.v1.PrivateServiceConnectConfigB\x03\xe0\x41\x01\x12$\n\x17public_endpoint_enabled\x18\r \x01(\x08\x42\x03\xe0\x41\x01\x12(\n\x1bpublic_endpoint_domain_name\x18\x0e \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:u\xea\x41r\n\'aiplatform.googleapis.com/IndexEndpoint\x12Gprojects/{project}/locations/{location}/indexEndpoints/{index_endpoint}\"\x97\x05\n\rDeployedIndex\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x05index\x18\x02 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x11private_endpoints\x18\x05 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.IndexPrivateEndpointsB\x03\xe0\x41\x03\x12\x38\n\x0findex_sync_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12P\n\x13\x61utomatic_resources\x18\x07 \x01(\x0b\x32..google.cloud.aiplatform.v1.AutomaticResourcesB\x03\xe0\x41\x01\x12P\n\x13\x64\x65\x64icated_resources\x18\x10 \x01(\x0b\x32..google.cloud.aiplatform.v1.DedicatedResourcesB\x03\xe0\x41\x01\x12\"\n\x15\x65nable_access_logging\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\\\n\x1a\x64\x65ployed_index_auth_config\x18\t \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.DeployedIndexAuthConfigB\x03\xe0\x41\x01\x12\x1f\n\x12reserved_ip_ranges\x18\n \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65ployment_group\x18\x0b \x01(\tB\x03\xe0\x41\x01\"\xae\x01\n\x17\x44\x65ployedIndexAuthConfig\x12W\n\rauth_provider\x18\x01 \x01(\x0b\x32@.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider\x1a:\n\x0c\x41uthProvider\x12\x11\n\taudiences\x18\x01 \x03(\t\x12\x17\n\x0f\x61llowed_issuers\x18\x02 \x03(\t\"Y\n\x15IndexPrivateEndpoints\x12\x1f\n\x12match_grpc_address\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12service_attachment\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\xd0\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x12IndexEndpointProtoP\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.cloud.aiplatform.v1.PrivateServiceConnectConfig", "google/cloud/aiplatform/v1/service_networking.proto"],
31
+ ["google.cloud.aiplatform.v1.AutomaticResources", "google/cloud/aiplatform/v1/machine_resources.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}"
53
37
  end
54
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."
55
41
  end
56
42
 
57
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/index_endpoint_service.proto
3
4
 
@@ -13,68 +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/index_endpoint_service.proto", :syntax => :proto3) do
18
- add_message "google.cloud.aiplatform.v1.CreateIndexEndpointRequest" do
19
- optional :parent, :string, 1
20
- optional :index_endpoint, :message, 2, "google.cloud.aiplatform.v1.IndexEndpoint"
21
- end
22
- add_message "google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata" do
23
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
24
- end
25
- add_message "google.cloud.aiplatform.v1.GetIndexEndpointRequest" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.cloud.aiplatform.v1.ListIndexEndpointsRequest" do
29
- optional :parent, :string, 1
30
- optional :filter, :string, 2
31
- optional :page_size, :int32, 3
32
- optional :page_token, :string, 4
33
- optional :read_mask, :message, 5, "google.protobuf.FieldMask"
34
- end
35
- add_message "google.cloud.aiplatform.v1.ListIndexEndpointsResponse" do
36
- repeated :index_endpoints, :message, 1, "google.cloud.aiplatform.v1.IndexEndpoint"
37
- optional :next_page_token, :string, 2
38
- end
39
- add_message "google.cloud.aiplatform.v1.UpdateIndexEndpointRequest" do
40
- optional :index_endpoint, :message, 1, "google.cloud.aiplatform.v1.IndexEndpoint"
41
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
42
- end
43
- add_message "google.cloud.aiplatform.v1.DeleteIndexEndpointRequest" do
44
- optional :name, :string, 1
45
- end
46
- add_message "google.cloud.aiplatform.v1.DeployIndexRequest" do
47
- optional :index_endpoint, :string, 1
48
- optional :deployed_index, :message, 2, "google.cloud.aiplatform.v1.DeployedIndex"
49
- end
50
- add_message "google.cloud.aiplatform.v1.DeployIndexResponse" do
51
- optional :deployed_index, :message, 1, "google.cloud.aiplatform.v1.DeployedIndex"
52
- end
53
- add_message "google.cloud.aiplatform.v1.DeployIndexOperationMetadata" do
54
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
55
- optional :deployed_index_id, :string, 2
56
- end
57
- add_message "google.cloud.aiplatform.v1.UndeployIndexRequest" do
58
- optional :index_endpoint, :string, 1
59
- optional :deployed_index_id, :string, 2
60
- end
61
- add_message "google.cloud.aiplatform.v1.UndeployIndexResponse" do
62
- end
63
- add_message "google.cloud.aiplatform.v1.UndeployIndexOperationMetadata" do
64
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
65
- end
66
- add_message "google.cloud.aiplatform.v1.MutateDeployedIndexRequest" do
67
- optional :index_endpoint, :string, 1
68
- optional :deployed_index, :message, 2, "google.cloud.aiplatform.v1.DeployedIndex"
69
- end
70
- add_message "google.cloud.aiplatform.v1.MutateDeployedIndexResponse" do
71
- optional :deployed_index, :message, 1, "google.cloud.aiplatform.v1.DeployedIndex"
72
- end
73
- add_message "google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata" do
74
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
75
- optional :deployed_index_id, :string, 2
17
+
18
+ descriptor_data = "\n7google/cloud/aiplatform/v1/index_endpoint_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/index_endpoint.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9f\x01\n\x1a\x43reateIndexEndpointRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x46\n\x0eindex_endpoint\x18\x02 \x01(\x0b\x32).google.cloud.aiplatform.v1.IndexEndpointB\x03\xe0\x41\x02\"v\n$CreateIndexEndpointOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"X\n\x17GetIndexEndpointRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\"\xd0\x01\n\x19ListIndexEndpointsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"y\n\x1aListIndexEndpointsResponse\x12\x42\n\x0findex_endpoints\x18\x01 \x03(\x0b\x32).google.cloud.aiplatform.v1.IndexEndpoint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9a\x01\n\x1aUpdateIndexEndpointRequest\x12\x46\n\x0eindex_endpoint\x18\x01 \x01(\x0b\x32).google.cloud.aiplatform.v1.IndexEndpointB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"[\n\x1a\x44\x65leteIndexEndpointRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\"\xa5\x01\n\x12\x44\x65ployIndexRequest\x12G\n\x0eindex_endpoint\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\x12\x46\n\x0e\x64\x65ployed_index\x18\x02 \x01(\x0b\x32).google.cloud.aiplatform.v1.DeployedIndexB\x03\xe0\x41\x02\"X\n\x13\x44\x65ployIndexResponse\x12\x41\n\x0e\x64\x65ployed_index\x18\x01 \x01(\x0b\x32).google.cloud.aiplatform.v1.DeployedIndex\"\x89\x01\n\x1c\x44\x65ployIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x19\n\x11\x64\x65ployed_index_id\x18\x02 \x01(\t\"\x7f\n\x14UndeployIndexRequest\x12G\n\x0eindex_endpoint\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\x12\x1e\n\x11\x64\x65ployed_index_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15UndeployIndexResponse\"p\n\x1eUndeployIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"\xad\x01\n\x1aMutateDeployedIndexRequest\x12G\n\x0eindex_endpoint\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\x12\x46\n\x0e\x64\x65ployed_index\x18\x02 \x01(\x0b\x32).google.cloud.aiplatform.v1.DeployedIndexB\x03\xe0\x41\x02\"`\n\x1bMutateDeployedIndexResponse\x12\x41\n\x0e\x64\x65ployed_index\x18\x01 \x01(\x0b\x32).google.cloud.aiplatform.v1.DeployedIndex\"\x91\x01\n$MutateDeployedIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x19\n\x11\x64\x65ployed_index_id\x18\x02 \x01(\t2\xaf\x10\n\x14IndexEndpointService\x12\x89\x02\n\x13\x43reateIndexEndpoint\x12\x36.google.cloud.aiplatform.v1.CreateIndexEndpointRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\x82\xd3\xe4\x93\x02\x44\"2/v1/{parent=projects/*/locations/*}/indexEndpoints:\x0eindex_endpoint\xda\x41\x15parent,index_endpoint\xca\x41\x35\n\rIndexEndpoint\x12$CreateIndexEndpointOperationMetadata\x12\xb5\x01\n\x10GetIndexEndpoint\x12\x33.google.cloud.aiplatform.v1.GetIndexEndpointRequest\x1a).google.cloud.aiplatform.v1.IndexEndpoint\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/indexEndpoints/*}\xda\x41\x04name\x12\xc8\x01\n\x12ListIndexEndpoints\x12\x35.google.cloud.aiplatform.v1.ListIndexEndpointsRequest\x1a\x36.google.cloud.aiplatform.v1.ListIndexEndpointsResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/indexEndpoints\xda\x41\x06parent\x12\xf0\x01\n\x13UpdateIndexEndpoint\x12\x36.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest\x1a).google.cloud.aiplatform.v1.IndexEndpoint\"v\x82\xd3\xe4\x93\x02S2A/v1/{index_endpoint.name=projects/*/locations/*/indexEndpoints/*}:\x0eindex_endpoint\xda\x41\x1aindex_endpoint,update_mask\x12\xe2\x01\n\x13\x44\x65leteIndexEndpoint\x12\x36.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest\x1a\x1d.google.longrunning.Operation\"t\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/indexEndpoints/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\x88\x02\n\x0b\x44\x65ployIndex\x12..google.cloud.aiplatform.v1.DeployIndexRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\x82\xd3\xe4\x93\x02M\"H/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:deployIndex:\x01*\xda\x41\x1dindex_endpoint,deployed_index\xca\x41\x33\n\x13\x44\x65ployIndexResponse\x12\x1c\x44\x65ployIndexOperationMetadata\x12\x95\x02\n\rUndeployIndex\x12\x30.google.cloud.aiplatform.v1.UndeployIndexRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\x82\xd3\xe4\x93\x02O\"J/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:undeployIndex:\x01*\xda\x41 index_endpoint,deployed_index_id\xca\x41\x37\n\x15UndeployIndexResponse\x12\x1eUndeployIndexOperationMetadata\x12\xbd\x02\n\x13MutateDeployedIndex\x12\x36.google.cloud.aiplatform.v1.MutateDeployedIndexRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\x82\xd3\xe4\x93\x02\x62\"P/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:mutateDeployedIndex:\x0e\x64\x65ployed_index\xda\x41\x1dindex_endpoint,deployed_index\xca\x41\x43\n\x1bMutateDeployedIndexResponse\x12$MutateDeployedIndexOperationMetadata\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd7\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x19IndexEndpointServiceProtoP\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.IndexEndpoint", "google/cloud/aiplatform/v1/index_endpoint.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}"
76
41
  end
77
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."
78
45
  end
79
46
 
80
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/index.proto
3
4
 
@@ -9,46 +10,34 @@ require 'google/cloud/aiplatform/v1/deployed_index_ref_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/index.proto", :syntax => :proto3) do
14
- add_message "google.cloud.aiplatform.v1.Index" do
15
- optional :name, :string, 1
16
- optional :display_name, :string, 2
17
- optional :description, :string, 3
18
- optional :metadata_schema_uri, :string, 4
19
- optional :metadata, :message, 6, "google.protobuf.Value"
20
- repeated :deployed_indexes, :message, 7, "google.cloud.aiplatform.v1.DeployedIndexRef"
21
- optional :etag, :string, 8
22
- map :labels, :string, :string, 9
23
- optional :create_time, :message, 10, "google.protobuf.Timestamp"
24
- optional :update_time, :message, 11, "google.protobuf.Timestamp"
25
- optional :index_stats, :message, 14, "google.cloud.aiplatform.v1.IndexStats"
26
- optional :index_update_method, :enum, 16, "google.cloud.aiplatform.v1.Index.IndexUpdateMethod"
27
- end
28
- add_enum "google.cloud.aiplatform.v1.Index.IndexUpdateMethod" do
29
- value :INDEX_UPDATE_METHOD_UNSPECIFIED, 0
30
- value :BATCH_UPDATE, 1
31
- value :STREAM_UPDATE, 2
32
- end
33
- add_message "google.cloud.aiplatform.v1.IndexDatapoint" do
34
- optional :datapoint_id, :string, 1
35
- repeated :feature_vector, :float, 2
36
- repeated :restricts, :message, 4, "google.cloud.aiplatform.v1.IndexDatapoint.Restriction"
37
- optional :crowding_tag, :message, 5, "google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag"
38
- end
39
- add_message "google.cloud.aiplatform.v1.IndexDatapoint.Restriction" do
40
- optional :namespace, :string, 1
41
- repeated :allow_list, :string, 2
42
- repeated :deny_list, :string, 3
43
- end
44
- add_message "google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag" do
45
- optional :crowding_attribute, :string, 1
46
- end
47
- add_message "google.cloud.aiplatform.v1.IndexStats" do
48
- optional :vectors_count, :int64, 1
49
- optional :shards_count, :int32, 2
13
+
14
+ descriptor_data = "\n&google/cloud/aiplatform/v1/index.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/aiplatform/v1/deployed_index_ref.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa2\x06\n\x05Index\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\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12 \n\x13metadata_schema_uri\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12(\n\x08metadata\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12K\n\x10\x64\x65ployed_indexes\x18\x07 \x03(\x0b\x32,.google.cloud.aiplatform.v1.DeployedIndexRefB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12=\n\x06labels\x18\t \x03(\x0b\x32-.google.cloud.aiplatform.v1.Index.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x0bindex_stats\x18\x0e \x01(\x0b\x32&.google.cloud.aiplatform.v1.IndexStatsB\x03\xe0\x41\x03\x12U\n\x13index_update_method\x18\x10 \x01(\x0e\x32\x33.google.cloud.aiplatform.v1.Index.IndexUpdateMethodB\x03\xe0\x41\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x11IndexUpdateMethod\x12#\n\x1fINDEX_UPDATE_METHOD_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x42\x41TCH_UPDATE\x10\x01\x12\x11\n\rSTREAM_UPDATE\x10\x02:]\xea\x41Z\n\x1f\x61iplatform.googleapis.com/Index\x12\x37projects/{project}/locations/{location}/indexes/{index}\"\xdf\x02\n\x0eIndexDatapoint\x12\x19\n\x0c\x64\x61tapoint_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x66\x65\x61ture_vector\x18\x02 \x03(\x02\x42\x03\xe0\x41\x02\x12N\n\trestricts\x18\x04 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionB\x03\xe0\x41\x01\x12Q\n\x0c\x63rowding_tag\x18\x05 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagB\x03\xe0\x41\x01\x1aG\n\x0bRestriction\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nallow_list\x18\x02 \x03(\t\x12\x11\n\tdeny_list\x18\x03 \x03(\t\x1a)\n\x0b\x43rowdingTag\x12\x1a\n\x12\x63rowding_attribute\x18\x01 \x01(\t\"C\n\nIndexStats\x12\x1a\n\rvectors_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cshards_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x42\xc8\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\nIndexProtoP\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.Value", "google/protobuf/struct.proto"],
30
+ ["google.cloud.aiplatform.v1.DeployedIndexRef", "google/cloud/aiplatform/v1/deployed_index_ref.proto"],
31
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
50
37
  end
51
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."
52
41
  end
53
42
 
54
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/index_service.proto
3
4
 
@@ -13,81 +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/index_service.proto", :syntax => :proto3) do
18
- add_message "google.cloud.aiplatform.v1.CreateIndexRequest" do
19
- optional :parent, :string, 1
20
- optional :index, :message, 2, "google.cloud.aiplatform.v1.Index"
21
- end
22
- add_message "google.cloud.aiplatform.v1.CreateIndexOperationMetadata" do
23
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
24
- optional :nearest_neighbor_search_operation_metadata, :message, 2, "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata"
25
- end
26
- add_message "google.cloud.aiplatform.v1.GetIndexRequest" do
27
- optional :name, :string, 1
28
- end
29
- add_message "google.cloud.aiplatform.v1.ListIndexesRequest" do
30
- optional :parent, :string, 1
31
- optional :filter, :string, 2
32
- optional :page_size, :int32, 3
33
- optional :page_token, :string, 4
34
- optional :read_mask, :message, 5, "google.protobuf.FieldMask"
35
- end
36
- add_message "google.cloud.aiplatform.v1.ListIndexesResponse" do
37
- repeated :indexes, :message, 1, "google.cloud.aiplatform.v1.Index"
38
- optional :next_page_token, :string, 2
39
- end
40
- add_message "google.cloud.aiplatform.v1.UpdateIndexRequest" do
41
- optional :index, :message, 1, "google.cloud.aiplatform.v1.Index"
42
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
43
- end
44
- add_message "google.cloud.aiplatform.v1.UpdateIndexOperationMetadata" do
45
- optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
46
- optional :nearest_neighbor_search_operation_metadata, :message, 2, "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata"
47
- end
48
- add_message "google.cloud.aiplatform.v1.DeleteIndexRequest" do
49
- optional :name, :string, 1
50
- end
51
- add_message "google.cloud.aiplatform.v1.UpsertDatapointsRequest" do
52
- optional :index, :string, 1
53
- repeated :datapoints, :message, 2, "google.cloud.aiplatform.v1.IndexDatapoint"
54
- end
55
- add_message "google.cloud.aiplatform.v1.UpsertDatapointsResponse" do
56
- end
57
- add_message "google.cloud.aiplatform.v1.RemoveDatapointsRequest" do
58
- optional :index, :string, 1
59
- repeated :datapoint_ids, :string, 2
60
- end
61
- add_message "google.cloud.aiplatform.v1.RemoveDatapointsResponse" do
62
- end
63
- add_message "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata" do
64
- repeated :content_validation_stats, :message, 1, "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats"
65
- optional :data_bytes_count, :int64, 2
66
- end
67
- add_message "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError" do
68
- optional :error_type, :enum, 1, "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType"
69
- optional :error_message, :string, 2
70
- optional :source_gcs_uri, :string, 3
71
- optional :embedding_id, :string, 4
72
- optional :raw_record, :string, 5
73
- end
74
- add_enum "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType" do
75
- value :ERROR_TYPE_UNSPECIFIED, 0
76
- value :EMPTY_LINE, 1
77
- value :INVALID_JSON_SYNTAX, 2
78
- value :INVALID_CSV_SYNTAX, 3
79
- value :INVALID_AVRO_SYNTAX, 4
80
- value :INVALID_EMBEDDING_ID, 5
81
- value :EMBEDDING_SIZE_MISMATCH, 6
82
- value :NAMESPACE_MISSING, 7
83
- end
84
- add_message "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats" do
85
- optional :source_gcs_uri, :string, 1
86
- optional :valid_record_count, :int64, 2
87
- optional :invalid_record_count, :int64, 3
88
- repeated :partial_errors, :message, 4, "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError"
17
+
18
+ descriptor_data = "\n.google/cloud/aiplatform/v1/index_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/index.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x86\x01\n\x12\x43reateIndexRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x05index\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.IndexB\x03\xe0\x41\x02\"\xe6\x01\n\x1c\x43reateIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12v\n*nearest_neighbor_search_operation_metadata\x18\x02 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata\"H\n\x0fGetIndexRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\"\xb5\x01\n\x12ListIndexesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"b\n\x13ListIndexesResponse\x12\x32\n\x07indexes\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\x12UpdateIndexRequest\x12\x35\n\x05index\x18\x01 \x01(\x0b\x32!.google.cloud.aiplatform.v1.IndexB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xe6\x01\n\x1cUpdateIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12v\n*nearest_neighbor_search_operation_metadata\x18\x02 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata\"K\n\x12\x44\x65leteIndexRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\"\x91\x01\n\x17UpsertDatapointsRequest\x12\x36\n\x05index\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\x12>\n\ndatapoints\x18\x02 \x03(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapoint\"\x1a\n\x18UpsertDatapointsResponse\"h\n\x17RemoveDatapointsRequest\x12\x36\n\x05index\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\x12\x15\n\rdatapoint_ids\x18\x02 \x03(\t\"\x1a\n\x18RemoveDatapointsResponse\"\xc9\x06\n&NearestNeighborSearchOperationMetadata\x12{\n\x18\x63ontent_validation_stats\x18\x01 \x03(\x0b\x32Y.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats\x12\x18\n\x10\x64\x61ta_bytes_count\x18\x02 \x01(\x03\x1a\xb2\x03\n\x0bRecordError\x12r\n\nerror_type\x18\x01 \x01(\x0e\x32^.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12\x16\n\x0esource_gcs_uri\x18\x03 \x01(\t\x12\x14\n\x0c\x65mbedding_id\x18\x04 \x01(\t\x12\x12\n\nraw_record\x18\x05 \x01(\t\"\xd5\x01\n\x0fRecordErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nEMPTY_LINE\x10\x01\x12\x17\n\x13INVALID_JSON_SYNTAX\x10\x02\x12\x16\n\x12INVALID_CSV_SYNTAX\x10\x03\x12\x17\n\x13INVALID_AVRO_SYNTAX\x10\x04\x12\x18\n\x14INVALID_EMBEDDING_ID\x10\x05\x12\x1b\n\x17\x45MBEDDING_SIZE_MISMATCH\x10\x06\x12\x15\n\x11NAMESPACE_MISSING\x10\x07\x1a\xd2\x01\n\x16\x43ontentValidationStats\x12\x16\n\x0esource_gcs_uri\x18\x01 \x01(\t\x12\x1a\n\x12valid_record_count\x18\x02 \x01(\x03\x12\x1c\n\x14invalid_record_count\x18\x03 \x01(\x03\x12\x66\n\x0epartial_errors\x18\x04 \x03(\x0b\x32N.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError2\xb6\x0b\n\x0cIndexService\x12\xcf\x01\n\x0b\x43reateIndex\x12..google.cloud.aiplatform.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"q\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/indexes:\x05index\xda\x41\x0cparent,index\xca\x41%\n\x05Index\x12\x1c\x43reateIndexOperationMetadata\x12\x96\x01\n\x08GetIndex\x12+.google.cloud.aiplatform.v1.GetIndexRequest\x1a!.google.cloud.aiplatform.v1.Index\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/indexes/*}\xda\x41\x04name\x12\xac\x01\n\x0bListIndexes\x12..google.cloud.aiplatform.v1.ListIndexesRequest\x1a/.google.cloud.aiplatform.v1.ListIndexesResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/indexes\xda\x41\x06parent\x12\xda\x01\n\x0bUpdateIndex\x12..google.cloud.aiplatform.v1.UpdateIndexRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02:21/v1/{index.name=projects/*/locations/*/indexes/*}:\x05index\xda\x41\x11index,update_mask\xca\x41%\n\x05Index\x12\x1cUpdateIndexOperationMetadata\x12\xcb\x01\n\x0b\x44\x65leteIndex\x12..google.cloud.aiplatform.v1.DeleteIndexRequest\x1a\x1d.google.longrunning.Operation\"m\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/indexes/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\xc7\x01\n\x10UpsertDatapoints\x12\x33.google.cloud.aiplatform.v1.UpsertDatapointsRequest\x1a\x34.google.cloud.aiplatform.v1.UpsertDatapointsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints:\x01*\x12\xc7\x01\n\x10RemoveDatapoints\x12\x33.google.cloud.aiplatform.v1.RemoveDatapointsRequest\x1a\x34.google.cloud.aiplatform.v1.RemoveDatapointsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{index=projects/*/locations/*/indexes/*}:removeDatapoints:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcf\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x11IndexServiceProtoP\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.Index", "google/cloud/aiplatform/v1/index.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}"
89
41
  end
90
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."
91
45
  end
92
46
 
93
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/io.proto
3
4
 
@@ -5,36 +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/io.proto", :syntax => :proto3) do
10
- add_message "google.cloud.aiplatform.v1.AvroSource" do
11
- optional :gcs_source, :message, 1, "google.cloud.aiplatform.v1.GcsSource"
12
- end
13
- add_message "google.cloud.aiplatform.v1.CsvSource" do
14
- optional :gcs_source, :message, 1, "google.cloud.aiplatform.v1.GcsSource"
15
- end
16
- add_message "google.cloud.aiplatform.v1.GcsSource" do
17
- repeated :uris, :string, 1
18
- end
19
- add_message "google.cloud.aiplatform.v1.GcsDestination" do
20
- optional :output_uri_prefix, :string, 1
21
- end
22
- add_message "google.cloud.aiplatform.v1.BigQuerySource" do
23
- optional :input_uri, :string, 1
24
- end
25
- add_message "google.cloud.aiplatform.v1.BigQueryDestination" do
26
- optional :output_uri, :string, 1
27
- end
28
- add_message "google.cloud.aiplatform.v1.CsvDestination" do
29
- optional :gcs_destination, :message, 1, "google.cloud.aiplatform.v1.GcsDestination"
30
- end
31
- add_message "google.cloud.aiplatform.v1.TFRecordDestination" do
32
- optional :gcs_destination, :message, 1, "google.cloud.aiplatform.v1.GcsDestination"
33
- end
34
- add_message "google.cloud.aiplatform.v1.ContainerRegistryDestination" do
35
- optional :output_uri, :string, 1
9
+
10
+ descriptor_data = "\n#google/cloud/aiplatform/v1/io.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\"L\n\nAvroSource\x12>\n\ngcs_source\x18\x01 \x01(\x0b\x32%.google.cloud.aiplatform.v1.GcsSourceB\x03\xe0\x41\x02\"K\n\tCsvSource\x12>\n\ngcs_source\x18\x01 \x01(\x0b\x32%.google.cloud.aiplatform.v1.GcsSourceB\x03\xe0\x41\x02\"\x1e\n\tGcsSource\x12\x11\n\x04uris\x18\x01 \x03(\tB\x03\xe0\x41\x02\"0\n\x0eGcsDestination\x12\x1e\n\x11output_uri_prefix\x18\x01 \x01(\tB\x03\xe0\x41\x02\"(\n\x0e\x42igQuerySource\x12\x16\n\tinput_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\".\n\x13\x42igQueryDestination\x12\x17\n\noutput_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"Z\n\x0e\x43svDestination\x12H\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.GcsDestinationB\x03\xe0\x41\x02\"_\n\x13TFRecordDestination\x12H\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.GcsDestinationB\x03\xe0\x41\x02\"7\n\x1c\x43ontainerRegistryDestination\x12\x17\n\noutput_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\xc5\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x07IoProtoP\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}"
36
30
  end
37
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."
38
34
  end
39
35
 
40
36
  module Google