index.proto 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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/deployed_index_ref.proto";
  19. import "google/protobuf/struct.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 = "IndexProto";
  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. // A representation of a collection of database items organized in a way that
  30. // allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
  31. message Index {
  32. option (google.api.resource) = {
  33. type: "aiplatform.googleapis.com/Index"
  34. pattern: "projects/{project}/locations/{location}/indexes/{index}"
  35. };
  36. // Output only. The resource name of the Index.
  37. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  38. // Required. The display name of the Index.
  39. // The name can be up to 128 characters long and can be consist of any UTF-8
  40. // characters.
  41. string display_name = 2 [(google.api.field_behavior) = REQUIRED];
  42. // The description of the Index.
  43. string description = 3;
  44. // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional
  45. // information about the Index, that is specific to it. Unset if the Index
  46. // does not have any additional information.
  47. // The schema is defined as an OpenAPI 3.0.2 [Schema
  48. // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
  49. // Note: The URI given on output will be immutable and probably different,
  50. // including the URI scheme, than the one given on input. The output URI will
  51. // point to a location where the user only has a read access.
  52. string metadata_schema_uri = 4 [(google.api.field_behavior) = IMMUTABLE];
  53. // An additional information about the Index; the schema of the metadata can
  54. // be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
  55. google.protobuf.Value metadata = 6;
  56. // Output only. The pointers to DeployedIndexes created from this Index.
  57. // An Index can be only deleted if all its DeployedIndexes had been undeployed
  58. // first.
  59. repeated DeployedIndexRef deployed_indexes = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  60. // Used to perform consistent read-modify-write updates. If not set, a blind
  61. // "overwrite" update happens.
  62. string etag = 8;
  63. // The labels with user-defined metadata to organize your Indexes.
  64. //
  65. // Label keys and values can be no longer than 64 characters
  66. // (Unicode codepoints), can only contain lowercase letters, numeric
  67. // characters, underscores and dashes. International characters are allowed.
  68. //
  69. // See https://goo.gl/xmQnxf for more information and examples of labels.
  70. map<string, string> labels = 9;
  71. // Output only. Timestamp when this Index was created.
  72. google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // Output only. Timestamp when this Index was most recently updated.
  74. // This also includes any update to the contents of the Index.
  75. // Note that Operations working on this Index may have their
  76. // [Operations.metadata.generic_metadata.update_time]
  77. // [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this
  78. // timestamp, yet that does not mean their results are not already reflected
  79. // in the Index. Result of any successfully completed Operation on the Index
  80. // is reflected in it.
  81. google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. }