context.proto 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/struct.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "ContextProto";
  24. option java_package = "com.google.cloud.aiplatform.v1";
  25. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  26. option ruby_package = "Google::Cloud::AIPlatform::V1";
  27. // Instance of a general context.
  28. message Context {
  29. option (google.api.resource) = {
  30. type: "aiplatform.googleapis.com/Context"
  31. pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}"
  32. };
  33. // Output only. The resource name of the Context.
  34. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  35. // User provided display name of the Context.
  36. // May be up to 128 Unicode characters.
  37. string display_name = 2;
  38. // An eTag used to perform consistent read-modify-write updates. If not set, a
  39. // blind "overwrite" update happens.
  40. string etag = 8;
  41. // The labels with user-defined metadata to organize your Contexts.
  42. //
  43. // Label keys and values can be no longer than 64 characters
  44. // (Unicode codepoints), can only contain lowercase letters, numeric
  45. // characters, underscores and dashes. International characters are allowed.
  46. // No more than 64 user labels can be associated with one Context (System
  47. // labels are excluded).
  48. map<string, string> labels = 9;
  49. // Output only. Timestamp when this Context was created.
  50. google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  51. // Output only. Timestamp when this Context was last updated.
  52. google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Output only. A list of resource names of Contexts that are parents of this Context.
  54. // A Context may have at most 10 parent_contexts.
  55. repeated string parent_contexts = 12 [
  56. (google.api.field_behavior) = OUTPUT_ONLY,
  57. (google.api.resource_reference) = {
  58. type: "aiplatform.googleapis.com/Context"
  59. }
  60. ];
  61. // The title of the schema describing the metadata.
  62. //
  63. // Schema title and version is expected to be registered in earlier Create
  64. // Schema calls. And both are used together as unique identifiers to identify
  65. // schemas within the local metadata store.
  66. string schema_title = 13;
  67. // The version of the schema in schema_name to use.
  68. //
  69. // Schema title and version is expected to be registered in earlier Create
  70. // Schema calls. And both are used together as unique identifiers to identify
  71. // schemas within the local metadata store.
  72. string schema_version = 14;
  73. // Properties of the Context.
  74. // Top level metadata keys' heading and trailing spaces will be trimmed.
  75. // The size of this field should not exceed 200KB.
  76. google.protobuf.Struct metadata = 15;
  77. // Description of the Context
  78. string description = 16;
  79. }