featurestore.proto 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // Copyright 2021 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. import "google/api/annotations.proto";
  21. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  22. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "FeaturestoreProto";
  25. option java_package = "com.google.cloud.aiplatform.v1beta1";
  26. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  27. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  28. // Featurestore configuration information on how the Featurestore is configured.
  29. message Featurestore {
  30. option (google.api.resource) = {
  31. type: "aiplatform.googleapis.com/Featurestore"
  32. pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}"
  33. };
  34. // OnlineServingConfig specifies the details for provisioning online serving
  35. // resources.
  36. message OnlineServingConfig {
  37. // Required. The number of nodes for each cluster. The number of nodes will not
  38. // scale automatically but can be scaled manually by providing different
  39. // values when updating.
  40. int32 fixed_node_count = 2 [(google.api.field_behavior) = REQUIRED];
  41. }
  42. // Possible states a Featurestore can have.
  43. enum State {
  44. // Default value. This value is unused.
  45. STATE_UNSPECIFIED = 0;
  46. // State when the Featurestore configuration is not being updated and the
  47. // fields reflect the current configuration of the Featurestore. The
  48. // Featurestore is usable in this state.
  49. STABLE = 1;
  50. // State when the Featurestore configuration is being updated and the fields
  51. // reflect the updated configuration of the Featurestore, not the current
  52. // one. For example, `online_serving_config.fixed_node_count` can take
  53. // minutes to update. While the update is in progress, the Featurestore
  54. // will be in the UPDATING state and the value of `fixed_node_count` will be
  55. // the updated value. Until the update completes, the actual number of nodes
  56. // can still be the original value of `fixed_node_count`. The Featurestore
  57. // is still usable in this state.
  58. UPDATING = 2;
  59. }
  60. // Output only. Name of the Featurestore. Format:
  61. // `projects/{project}/locations/{location}/featurestores/{featurestore}`
  62. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. // Output only. Timestamp when this Featurestore was created.
  64. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  65. // Output only. Timestamp when this Featurestore was last updated.
  66. google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. // Optional. Used to perform consistent read-modify-write updates. If not set, a blind
  68. // "overwrite" update happens.
  69. string etag = 5 [(google.api.field_behavior) = OPTIONAL];
  70. // Optional. The labels with user-defined metadata to organize your Featurestore.
  71. //
  72. // Label keys and values can be no longer than 64 characters
  73. // (Unicode codepoints), can only contain lowercase letters, numeric
  74. // characters, underscores and dashes. International characters are allowed.
  75. //
  76. // See https://goo.gl/xmQnxf for more information on and examples of labels.
  77. // No more than 64 user labels can be associated with one Featurestore(System
  78. // labels are excluded)."
  79. // System reserved label keys are prefixed with "aiplatform.googleapis.com/"
  80. // and are immutable.
  81. map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];
  82. // Required. Config for online serving resources.
  83. OnlineServingConfig online_serving_config = 7 [(google.api.field_behavior) = REQUIRED];
  84. // Output only. State of the featurestore.
  85. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. }