featurestore.proto 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/cloud/aiplatform/v1beta1/encryption_spec.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "FeaturestoreProto";
  24. option java_package = "com.google.cloud.aiplatform.v1beta1";
  25. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  26. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  27. // Vertex AI Feature Store provides a centralized repository for organizing,
  28. // storing, and serving ML features. The Featurestore is a top-level container
  29. // for your features and their values.
  30. message Featurestore {
  31. option (google.api.resource) = {
  32. type: "aiplatform.googleapis.com/Featurestore"
  33. pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}"
  34. };
  35. // OnlineServingConfig specifies the details for provisioning online serving
  36. // resources.
  37. message OnlineServingConfig {
  38. // Online serving scaling configuration. If min_node_count and
  39. // max_node_count are set to the same value, the cluster will be configured
  40. // with the fixed number of node (no auto-scaling).
  41. message Scaling {
  42. // Required. The minimum number of nodes to scale down to. Must be greater than or
  43. // equal to 1.
  44. int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED];
  45. // The maximum number of nodes to scale up to. Must be greater than
  46. // min_node_count, and less than or equal to 10 times of 'min_node_count'.
  47. int32 max_node_count = 2;
  48. }
  49. // The number of nodes for the online store. The number of nodes doesn't
  50. // scale automatically, but you can manually update the number of
  51. // nodes. If set to 0, the featurestore will not have an
  52. // online store and cannot be used for online serving.
  53. int32 fixed_node_count = 2;
  54. // Online serving scaling configuration.
  55. // Only one of `fixed_node_count` and `scaling` can be set. Setting one will
  56. // reset the other.
  57. Scaling scaling = 4;
  58. }
  59. // Possible states a featurestore can have.
  60. enum State {
  61. // Default value. This value is unused.
  62. STATE_UNSPECIFIED = 0;
  63. // State when the featurestore configuration is not being updated and the
  64. // fields reflect the current configuration of the featurestore. The
  65. // featurestore is usable in this state.
  66. STABLE = 1;
  67. // The state of the featurestore configuration when it is being updated.
  68. // During an update, the fields reflect either the original configuration
  69. // or the updated configuration of the featurestore. For example,
  70. // `online_serving_config.fixed_node_count` can take minutes to update.
  71. // While the update is in progress, the featurestore is in the UPDATING
  72. // state, and the value of `fixed_node_count` can be the original value or
  73. // the updated value, depending on the progress of the operation. Until the
  74. // update completes, the actual number of nodes can still be the original
  75. // value of `fixed_node_count`. The featurestore is still usable in this
  76. // state.
  77. UPDATING = 2;
  78. }
  79. // Output only. Name of the Featurestore. Format:
  80. // `projects/{project}/locations/{location}/featurestores/{featurestore}`
  81. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Output only. Timestamp when this Featurestore was created.
  83. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  84. // Output only. Timestamp when this Featurestore was last updated.
  85. google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. // Optional. Used to perform consistent read-modify-write updates. If not set, a blind
  87. // "overwrite" update happens.
  88. string etag = 5 [(google.api.field_behavior) = OPTIONAL];
  89. // Optional. The labels with user-defined metadata to organize your Featurestore.
  90. //
  91. // Label keys and values can be no longer than 64 characters
  92. // (Unicode codepoints), can only contain lowercase letters, numeric
  93. // characters, underscores and dashes. International characters are allowed.
  94. //
  95. // See https://goo.gl/xmQnxf for more information on and examples of labels.
  96. // No more than 64 user labels can be associated with one Featurestore(System
  97. // labels are excluded)."
  98. // System reserved label keys are prefixed with "aiplatform.googleapis.com/"
  99. // and are immutable.
  100. map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];
  101. // Optional. Config for online storage resources. The field should not co-exist with the
  102. // field of `OnlineStoreReplicationConfig`. If both of it and
  103. // OnlineStoreReplicationConfig are unset, the feature store will not have an
  104. // online store and cannot be used for online serving.
  105. OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = OPTIONAL];
  106. // Output only. State of the featurestore.
  107. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  108. // Optional. Customer-managed encryption key spec for data storage. If set, both of the
  109. // online and offline data storage will be secured by this key.
  110. EncryptionSpec encryption_spec = 10 [(google.api.field_behavior) = OPTIONAL];
  111. }