feature.proto 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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/feature_monitoring_stats.proto";
  19. import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto";
  20. import "google/protobuf/timestamp.proto";
  21. import "google/api/annotations.proto";
  22. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
  23. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "FeatureProto";
  26. option java_package = "com.google.cloud.aiplatform.v1beta1";
  27. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
  28. option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
  29. // Feature Metadata information that describes an attribute of an entity type.
  30. // For example, apple is an entity type, and color is a feature that describes
  31. // apple.
  32. message Feature {
  33. option (google.api.resource) = {
  34. type: "aiplatform.googleapis.com/Feature"
  35. pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}"
  36. };
  37. // An enum representing the value type of a feature.
  38. enum ValueType {
  39. // The value type is unspecified.
  40. VALUE_TYPE_UNSPECIFIED = 0;
  41. // Used for Feature that is a boolean.
  42. BOOL = 1;
  43. // Used for Feature that is a list of boolean.
  44. BOOL_ARRAY = 2;
  45. // Used for Feature that is double.
  46. DOUBLE = 3;
  47. // Used for Feature that is a list of double.
  48. DOUBLE_ARRAY = 4;
  49. // Used for Feature that is INT64.
  50. INT64 = 9;
  51. // Used for Feature that is a list of INT64.
  52. INT64_ARRAY = 10;
  53. // Used for Feature that is string.
  54. STRING = 11;
  55. // Used for Feature that is a list of String.
  56. STRING_ARRAY = 12;
  57. // Used for Feature that is bytes.
  58. BYTES = 13;
  59. }
  60. // Immutable. Name of the Feature.
  61. // Format:
  62. // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
  63. //
  64. // The last part feature is assigned by the client. The feature can be up to
  65. // 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
  66. // underscore(_), and ASCII digits 0-9 starting with a letter. The value will
  67. // be unique given an entity type.
  68. string name = 1 [(google.api.field_behavior) = IMMUTABLE];
  69. // Description of the Feature.
  70. string description = 2;
  71. // Required. Immutable. Type of Feature value.
  72. ValueType value_type = 3 [
  73. (google.api.field_behavior) = REQUIRED,
  74. (google.api.field_behavior) = IMMUTABLE
  75. ];
  76. // Output only. Timestamp when this EntityType was created.
  77. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. // Output only. Timestamp when this EntityType was most recently updated.
  79. google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Optional. The labels with user-defined metadata to organize your Features.
  81. //
  82. // Label keys and values can be no longer than 64 characters
  83. // (Unicode codepoints), can only contain lowercase letters, numeric
  84. // characters, underscores and dashes. International characters are allowed.
  85. //
  86. // See https://goo.gl/xmQnxf for more information on and examples of labels.
  87. // No more than 64 user labels can be associated with one Feature (System
  88. // labels are excluded)."
  89. // System reserved label keys are prefixed with "aiplatform.googleapis.com/"
  90. // and are immutable.
  91. map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];
  92. // Used to perform a consistent read-modify-write updates. If not set, a blind
  93. // "overwrite" update happens.
  94. string etag = 7;
  95. // Optional. The custom monitoring configuration for this Feature, if not set, use the
  96. // monitoring_config defined for the EntityType this Feature belongs to.
  97. //
  98. // If this is populated with
  99. // [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis
  100. // monitoring is disabled; if
  101. // [FeaturestoreMonitoringConfig.monitoring_interval][] specified, snapshot
  102. // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring
  103. // config is same as the EntityType's this Feature belongs to.
  104. FeaturestoreMonitoringConfig monitoring_config = 9 [(google.api.field_behavior) = OPTIONAL];
  105. // Output only. A list of historical [Snapshot
  106. // Analysis][google.cloud.aiplatform.master.FeaturestoreMonitoringConfig.SnapshotAnalysis]
  107. // stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time]
  108. // descending.
  109. repeated FeatureStatsAnomaly monitoring_stats = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  110. }