search.proto 2.7 KB

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