search.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Copyright 2020 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.datacatalog.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/cloud/datacatalog/v1beta1/common.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option cc_enable_arenas = true;
  20. option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog";
  22. option java_multiple_files = true;
  23. option java_package = "com.google.cloud.datacatalog.v1beta1";
  24. option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1";
  25. option ruby_package = "Google::Cloud::DataCatalog::V1beta1";
  26. // A result that appears in the response of a search request. Each result
  27. // captures details of one entry that matches the search.
  28. message SearchCatalogResult {
  29. // Type of the search result. This field can be used to determine which Get
  30. // method to call to fetch the full resource.
  31. SearchResultType search_result_type = 1;
  32. // Sub-type of the search result. This is a dot-delimited description of the
  33. // resource's full type, and is the same as the value callers would provide in
  34. // the "type" search facet. Examples: `entry.table`, `entry.dataStream`,
  35. // `tagTemplate`.
  36. string search_result_subtype = 2;
  37. // The relative resource name of the resource in URL format.
  38. // Examples:
  39. //
  40. // * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
  41. // * `projects/{project_id}/tagTemplates/{tag_template_id}`
  42. string relative_resource_name = 3;
  43. // The full name of the cloud resource the entry belongs to. See:
  44. // https://cloud.google.com/apis/design/resource_names#full_resource_name.
  45. // Example:
  46. //
  47. // * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
  48. string linked_resource = 4;
  49. }
  50. // The different types of resources that can be returned in search.
  51. enum SearchResultType {
  52. // Default unknown type.
  53. SEARCH_RESULT_TYPE_UNSPECIFIED = 0;
  54. // An [Entry][google.cloud.datacatalog.v1beta1.Entry].
  55. ENTRY = 1;
  56. // A [TagTemplate][google.cloud.datacatalog.v1beta1.TagTemplate].
  57. TAG_TEMPLATE = 2;
  58. // An [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
  59. ENTRY_GROUP = 3;
  60. }