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
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -752,6 +752,102 @@ module Google
752
752
  raise ::Google::Cloud::Error.from_error(e)
753
753
  end
754
754
 
755
+ ##
756
+ # Incrementally update the dataset used for an examples model.
757
+ #
758
+ # @overload update_explanation_dataset(request, options = nil)
759
+ # Pass arguments to `update_explanation_dataset` via a request object, either of type
760
+ # {::Google::Cloud::AIPlatform::V1::UpdateExplanationDatasetRequest} or an equivalent Hash.
761
+ #
762
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateExplanationDatasetRequest, ::Hash]
763
+ # A request object representing the call parameters. Required. To specify no
764
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
765
+ # @param options [::Gapic::CallOptions, ::Hash]
766
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
767
+ #
768
+ # @overload update_explanation_dataset(model: nil, examples: nil)
769
+ # Pass arguments to `update_explanation_dataset` via keyword arguments. Note that at
770
+ # least one keyword argument is required. To specify no parameters, or to keep all
771
+ # the default parameter values, pass an empty Hash as a request object (see above).
772
+ #
773
+ # @param model [::String]
774
+ # Required. The resource name of the Model to update.
775
+ # Format: `projects/{project}/locations/{location}/models/{model}`
776
+ # @param examples [::Google::Cloud::AIPlatform::V1::Examples, ::Hash]
777
+ # The example config containing the location of the dataset.
778
+ #
779
+ # @yield [response, operation] Access the result along with the RPC operation
780
+ # @yieldparam response [::Gapic::Operation]
781
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
782
+ #
783
+ # @return [::Gapic::Operation]
784
+ #
785
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
786
+ #
787
+ # @example Basic example
788
+ # require "google/cloud/ai_platform/v1"
789
+ #
790
+ # # Create a client object. The client can be reused for multiple calls.
791
+ # client = Google::Cloud::AIPlatform::V1::ModelService::Client.new
792
+ #
793
+ # # Create a request. To set request fields, pass in keyword arguments.
794
+ # request = Google::Cloud::AIPlatform::V1::UpdateExplanationDatasetRequest.new
795
+ #
796
+ # # Call the update_explanation_dataset method.
797
+ # result = client.update_explanation_dataset request
798
+ #
799
+ # # The returned object is of type Gapic::Operation. You can use it to
800
+ # # check the status of an operation, cancel it, or wait for results.
801
+ # # Here is how to wait for a response.
802
+ # result.wait_until_done! timeout: 60
803
+ # if result.response?
804
+ # p result.response
805
+ # else
806
+ # puts "No response received."
807
+ # end
808
+ #
809
+ def update_explanation_dataset request, options = nil
810
+ raise ::ArgumentError, "request must be provided" if request.nil?
811
+
812
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateExplanationDatasetRequest
813
+
814
+ # Converts hash and nil to an options object
815
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
816
+
817
+ # Customize the options with defaults
818
+ metadata = @config.rpcs.update_explanation_dataset.metadata.to_h
819
+
820
+ # Set x-goog-api-client and x-goog-user-project headers
821
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
822
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
823
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
824
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
825
+
826
+ header_params = {}
827
+ if request.model
828
+ header_params["model"] = request.model
829
+ end
830
+
831
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
832
+ metadata[:"x-goog-request-params"] ||= request_params_header
833
+
834
+ options.apply_defaults timeout: @config.rpcs.update_explanation_dataset.timeout,
835
+ metadata: metadata,
836
+ retry_policy: @config.rpcs.update_explanation_dataset.retry_policy
837
+
838
+ options.apply_defaults timeout: @config.timeout,
839
+ metadata: @config.metadata,
840
+ retry_policy: @config.retry_policy
841
+
842
+ @model_service_stub.call_rpc :update_explanation_dataset, request, options: options do |response, operation|
843
+ response = ::Gapic::Operation.new response, @operations_client, options: options
844
+ yield response, operation if block_given?
845
+ return response
846
+ end
847
+ rescue ::GRPC::BadStatus => e
848
+ raise ::Google::Cloud::Error.from_error(e)
849
+ end
850
+
755
851
  ##
756
852
  # Deletes a Model.
757
853
  #
@@ -2005,7 +2101,9 @@ module Google
2005
2101
  class Configuration
2006
2102
  extend ::Gapic::Config
2007
2103
 
2008
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
2104
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
2105
+
2106
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2009
2107
  config_attr :credentials, nil do |value|
2010
2108
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2011
2109
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -2084,6 +2182,11 @@ module Google
2084
2182
  #
2085
2183
  attr_reader :update_model
2086
2184
  ##
2185
+ # RPC-specific configuration for `update_explanation_dataset`
2186
+ # @return [::Gapic::Config::Method]
2187
+ #
2188
+ attr_reader :update_explanation_dataset
2189
+ ##
2087
2190
  # RPC-specific configuration for `delete_model`
2088
2191
  # @return [::Gapic::Config::Method]
2089
2192
  #
@@ -2156,6 +2259,8 @@ module Google
2156
2259
  @list_model_versions = ::Gapic::Config::Method.new list_model_versions_config
2157
2260
  update_model_config = parent_rpcs.update_model if parent_rpcs.respond_to? :update_model
2158
2261
  @update_model = ::Gapic::Config::Method.new update_model_config
2262
+ update_explanation_dataset_config = parent_rpcs.update_explanation_dataset if parent_rpcs.respond_to? :update_explanation_dataset
2263
+ @update_explanation_dataset = ::Gapic::Config::Method.new update_explanation_dataset_config
2159
2264
  delete_model_config = parent_rpcs.delete_model if parent_rpcs.respond_to? :delete_model
2160
2265
  @delete_model = ::Gapic::Config::Method.new delete_model_config
2161
2266
  delete_model_version_config = parent_rpcs.delete_model_version if parent_rpcs.respond_to? :delete_model_version
@@ -672,7 +672,9 @@ module Google
672
672
  class Configuration
673
673
  extend ::Gapic::Config
674
674
 
675
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
675
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
676
+
677
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
676
678
  config_attr :credentials, nil do |value|
677
679
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
678
680
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -149,6 +149,25 @@ module Google
149
149
  "projects/#{project}/locations/#{location}/models/#{model}/evaluations/#{evaluation}/slices/#{slice}"
150
150
  end
151
151
 
152
+ ##
153
+ # Create a fully-qualified PipelineJob resource string.
154
+ #
155
+ # The resource will be in the following format:
156
+ #
157
+ # `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
158
+ #
159
+ # @param project [String]
160
+ # @param location [String]
161
+ # @param pipeline_job [String]
162
+ #
163
+ # @return [::String]
164
+ def pipeline_job_path project:, location:, pipeline_job:
165
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
166
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
167
+
168
+ "projects/#{project}/locations/#{location}/pipelineJobs/#{pipeline_job}"
169
+ end
170
+
152
171
  ##
153
172
  # Create a fully-qualified TrainingPipeline resource string.
154
173
  #
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1290,7 +1290,9 @@ module Google
1290
1290
  class Configuration
1291
1291
  extend ::Gapic::Config
1292
1292
 
1293
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
1293
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
1294
+
1295
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1294
1296
  config_attr :credentials, nil do |value|
1295
1297
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1296
1298
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -672,7 +672,9 @@ module Google
672
672
  class Configuration
673
673
  extend ::Gapic::Config
674
674
 
675
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
675
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
676
+
677
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
676
678
  config_attr :credentials, nil do |value|
677
679
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
678
680
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -399,8 +399,7 @@ module Google
399
399
  # {::Google::Cloud::AIPlatform::V1::ExplainRequest#deployed_model_id deployed_model_id}
400
400
  # is not specified, all DeployedModels must have
401
401
  # {::Google::Cloud::AIPlatform::V1::DeployedModel#explanation_spec explanation_spec}
402
- # populated. Only deployed AutoML tabular Models have
403
- # explanation_spec.
402
+ # populated.
404
403
  #
405
404
  # @overload explain(request, options = nil)
406
405
  # Pass arguments to `explain` via a request object, either of type
@@ -597,7 +596,9 @@ module Google
597
596
  class Configuration
598
597
  extend ::Gapic::Config
599
598
 
600
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
599
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
600
+
601
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
601
602
  config_attr :credentials, nil do |value|
602
603
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
603
604
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -130,7 +130,7 @@ module Google
130
130
  credentials = @config.credentials
131
131
  # Use self-signed JWT if the endpoint is unchanged from default,
132
132
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
134
134
  !@config.endpoint.split(".").first.include?("-")
135
135
  credentials ||= Credentials.default scope: @config.scope,
136
136
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -750,7 +750,9 @@ module Google
750
750
  class Configuration
751
751
  extend ::Gapic::Config
752
752
 
753
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
753
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
754
+
755
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
754
756
  config_attr :credentials, nil do |value|
755
757
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
756
758
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -672,7 +672,9 @@ module Google
672
672
  class Configuration
673
673
  extend ::Gapic::Config
674
674
 
675
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
675
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
676
+
677
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
676
678
  config_attr :credentials, nil do |value|
677
679
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
678
680
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -3064,7 +3064,9 @@ module Google
3064
3064
  class Configuration
3065
3065
  extend ::Gapic::Config
3066
3066
 
3067
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
3067
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
3068
+
3069
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3068
3070
  config_attr :credentials, nil do |value|
3069
3071
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3070
3072
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -672,7 +672,9 @@ module Google
672
672
  class Configuration
673
673
  extend ::Gapic::Config
674
674
 
675
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
675
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
676
+
677
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
676
678
  config_attr :credentials, nil do |value|
677
679
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
678
680
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AIPlatform
23
23
  module V1
24
- VERSION = "0.24.0"
24
+ VERSION = "0.26.0"
25
25
  end
26
26
  end
27
27
  end
@@ -129,7 +129,7 @@ module Google
129
129
  credentials = @config.credentials
130
130
  # Use self-signed JWT if the endpoint is unchanged from default,
131
131
  # but only if the default endpoint does not have a region prefix.
132
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
132
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
133
133
  !@config.endpoint.split(".").first.include?("-")
134
134
  credentials ||= Credentials.default scope: @config.scope,
135
135
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -641,7 +641,8 @@ module Google
641
641
  # suggested by Vertex AI Vizier. Returns a long-running
642
642
  # operation associated with the generation of Trial suggestions.
643
643
  # When this long-running operation succeeds, it will contain
644
- # a [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse].
644
+ # a
645
+ # {::Google::Cloud::AIPlatform::V1::SuggestTrialsResponse SuggestTrialsResponse}.
645
646
  #
646
647
  # @overload suggest_trials(request, options = nil)
647
648
  # Pass arguments to `suggest_trials` via a request object, either of type
@@ -1643,7 +1644,9 @@ module Google
1643
1644
  class Configuration
1644
1645
  extend ::Gapic::Config
1645
1646
 
1646
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
1647
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
1648
+
1649
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1647
1650
  config_attr :credentials, nil do |value|
1648
1651
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1649
1652
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -672,7 +672,9 @@ module Google
672
672
  class Configuration
673
673
  extend ::Gapic::Config
674
674
 
675
- config_attr :endpoint, "aiplatform.googleapis.com", ::String
675
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
676
+
677
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
676
678
  config_attr :credentials, nil do |value|
677
679
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
678
680
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -27,6 +27,7 @@ require "google/cloud/ai_platform/v1/match_service"
27
27
  require "google/cloud/ai_platform/v1/metadata_service"
28
28
  require "google/cloud/ai_platform/v1/migration_service"
29
29
  require "google/cloud/ai_platform/v1/model_service"
30
+ require "google/cloud/ai_platform/v1/model_garden_service"
30
31
  require "google/cloud/ai_platform/v1/pipeline_service"
31
32
  require "google/cloud/ai_platform/v1/prediction_service"
32
33
  require "google/cloud/ai_platform/v1/specialist_pool_service"
@@ -1,24 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/accelerator_type.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/aiplatform/v1/accelerator_type.proto", :syntax => :proto3) do
8
- add_enum "google.cloud.aiplatform.v1.AcceleratorType" do
9
- value :ACCELERATOR_TYPE_UNSPECIFIED, 0
10
- value :NVIDIA_TESLA_K80, 1
11
- value :NVIDIA_TESLA_P100, 2
12
- value :NVIDIA_TESLA_V100, 3
13
- value :NVIDIA_TESLA_P4, 4
14
- value :NVIDIA_TESLA_T4, 5
15
- value :NVIDIA_TESLA_A100, 8
16
- value :NVIDIA_L4, 11
17
- value :TPU_V2, 6
18
- value :TPU_V3, 7
19
- value :TPU_V4_POD, 10
7
+
8
+ descriptor_data = "\n1google/cloud/aiplatform/v1/accelerator_type.proto\x12\x1agoogle.cloud.aiplatform.v1*\x85\x02\n\x0f\x41\x63\x63\x65leratorType\x12 \n\x1c\x41\x43\x43\x45LERATOR_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10NVIDIA_TESLA_K80\x10\x01\x12\x15\n\x11NVIDIA_TESLA_P100\x10\x02\x12\x15\n\x11NVIDIA_TESLA_V100\x10\x03\x12\x13\n\x0fNVIDIA_TESLA_P4\x10\x04\x12\x13\n\x0fNVIDIA_TESLA_T4\x10\x05\x12\x15\n\x11NVIDIA_TESLA_A100\x10\x08\x12\x14\n\x10NVIDIA_A100_80GB\x10\t\x12\r\n\tNVIDIA_L4\x10\x0b\x12\n\n\x06TPU_V2\x10\x06\x12\n\n\x06TPU_V3\x10\x07\x12\x0e\n\nTPU_V4_POD\x10\nB\xd2\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x14\x41\x63\x63\x65leratorTypeProtoP\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"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
20
28
  end
21
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
22
32
  end
23
33
 
24
34
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/aiplatform/v1/annotation.proto
3
4
 
@@ -9,19 +10,34 @@ require 'google/cloud/aiplatform/v1/user_action_reference_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/annotation.proto", :syntax => :proto3) do
14
- add_message "google.cloud.aiplatform.v1.Annotation" do
15
- optional :name, :string, 1
16
- optional :payload_schema_uri, :string, 2
17
- optional :payload, :message, 3, "google.protobuf.Value"
18
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
19
- optional :update_time, :message, 7, "google.protobuf.Timestamp"
20
- optional :etag, :string, 8
21
- optional :annotation_source, :message, 5, "google.cloud.aiplatform.v1.UserActionReference"
22
- map :labels, :string, :string, 6
13
+
14
+ descriptor_data = "\n+google/cloud/aiplatform/v1/annotation.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/cloud/aiplatform/v1/user_action_reference.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xce\x04\n\nAnnotation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12payload_schema_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12,\n\x07payload\x18\x03 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12O\n\x11\x61nnotation_source\x18\x05 \x01(\x0b\x32/.google.cloud.aiplatform.v1.UserActionReferenceB\x03\xe0\x41\x03\x12G\n\x06labels\x18\x06 \x03(\x0b\x32\x32.google.cloud.aiplatform.v1.Annotation.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x95\x01\xea\x41\x91\x01\n$aiplatform.googleapis.com/Annotation\x12iprojects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}B\xcd\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0f\x41nnotationProtoP\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ["google.cloud.aiplatform.v1.UserActionReference", "google/cloud/aiplatform/v1/user_action_reference.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}"
23
37
  end
24
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."
25
41
  end
26
42
 
27
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/annotation_spec.proto
3
4
 
@@ -7,16 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_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/annotation_spec.proto", :syntax => :proto3) do
12
- add_message "google.cloud.aiplatform.v1.AnnotationSpec" do
13
- optional :name, :string, 1
14
- optional :display_name, :string, 2
15
- optional :create_time, :message, 3, "google.protobuf.Timestamp"
16
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
17
- optional :etag, :string, 5
11
+
12
+ descriptor_data = "\n0google/cloud/aiplatform/v1/annotation_spec.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcc\x02\n\x0e\x41nnotationSpec\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\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\x11\n\x04\x65tag\x18\x05 \x01(\tB\x03\xe0\x41\x01:\x8c\x01\xea\x41\x88\x01\n(aiplatform.googleapis.com/AnnotationSpec\x12\\projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}B\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13\x41nnotationSpecProtoP\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}"
18
33
  end
19
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."
20
37
  end
21
38
 
22
39
  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/artifact.proto
3
4
 
@@ -8,28 +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/artifact.proto", :syntax => :proto3) do
13
- add_message "google.cloud.aiplatform.v1.Artifact" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :uri, :string, 6
17
- optional :etag, :string, 9
18
- map :labels, :string, :string, 10
19
- optional :create_time, :message, 11, "google.protobuf.Timestamp"
20
- optional :update_time, :message, 12, "google.protobuf.Timestamp"
21
- optional :state, :enum, 13, "google.cloud.aiplatform.v1.Artifact.State"
22
- optional :schema_title, :string, 14
23
- optional :schema_version, :string, 15
24
- optional :metadata, :message, 16, "google.protobuf.Struct"
25
- optional :description, :string, 17
26
- end
27
- add_enum "google.cloud.aiplatform.v1.Artifact.State" do
28
- value :STATE_UNSPECIFIED, 0
29
- value :PENDING, 1
30
- value :LIVE, 2
12
+
13
+ descriptor_data = "\n)google/cloud/aiplatform/v1/artifact.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\"\x94\x05\n\x08\x41rtifact\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0b\n\x03uri\x18\x06 \x01(\t\x12\x0c\n\x04\x65tag\x18\t \x01(\t\x12@\n\x06labels\x18\n \x03(\x0b\x32\x30.google.cloud.aiplatform.v1.Artifact.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\r \x01(\x0e\x32*.google.cloud.aiplatform.v1.Artifact.State\x12\x14\n\x0cschema_title\x18\x0e \x01(\t\x12\x16\n\x0eschema_version\x18\x0f \x01(\t\x12)\n\x08metadata\x18\x10 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x13\n\x0b\x64\x65scription\x18\x11 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x08\n\x04LIVE\x10\x02:\x86\x01\xea\x41\x82\x01\n\"aiplatform.googleapis.com/Artifact\x12\\projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}B\xcb\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\rArtifactProtoP\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.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.protobuf.Struct", "google/protobuf/struct.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}"
31
35
  end
32
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."
33
39
  end
34
40
 
35
41
  module Google