xref: /aosp_15_r20/external/googleapis/google/cloud/talent/v4beta1/histogram.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.talent.v4beta1;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb";
20*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
21*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "HistogramProto";
22*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.talent.v4beta1";
23*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "CTS";
24*d5c09012SAndroid Build Coastguard Worker
25*d5c09012SAndroid Build Coastguard Worker// The histogram request.
26*d5c09012SAndroid Build Coastguard Workermessage HistogramQuery {
27*d5c09012SAndroid Build Coastguard Worker  // An expression specifies a histogram request against matching resources
28*d5c09012SAndroid Build Coastguard Worker  // (for example, jobs, profiles) for searches.
29*d5c09012SAndroid Build Coastguard Worker  //
30*d5c09012SAndroid Build Coastguard Worker  // See
31*d5c09012SAndroid Build Coastguard Worker  // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
32*d5c09012SAndroid Build Coastguard Worker  // and
33*d5c09012SAndroid Build Coastguard Worker  // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
34*d5c09012SAndroid Build Coastguard Worker  // for details about syntax.
35*d5c09012SAndroid Build Coastguard Worker  string histogram_query = 1;
36*d5c09012SAndroid Build Coastguard Worker}
37*d5c09012SAndroid Build Coastguard Worker
38*d5c09012SAndroid Build Coastguard Worker// Histogram result that matches
39*d5c09012SAndroid Build Coastguard Worker// [HistogramQuery][google.cloud.talent.v4beta1.HistogramQuery] specified in
40*d5c09012SAndroid Build Coastguard Worker// searches.
41*d5c09012SAndroid Build Coastguard Workermessage HistogramQueryResult {
42*d5c09012SAndroid Build Coastguard Worker  // Requested histogram expression.
43*d5c09012SAndroid Build Coastguard Worker  string histogram_query = 1;
44*d5c09012SAndroid Build Coastguard Worker
45*d5c09012SAndroid Build Coastguard Worker  // A map from the values of the facet associated with distinct values to the
46*d5c09012SAndroid Build Coastguard Worker  // number of matching entries with corresponding value.
47*d5c09012SAndroid Build Coastguard Worker  //
48*d5c09012SAndroid Build Coastguard Worker  // The key format is:
49*d5c09012SAndroid Build Coastguard Worker  //
50*d5c09012SAndroid Build Coastguard Worker  // * (for string histogram) string values stored in the field.
51*d5c09012SAndroid Build Coastguard Worker  // * (for named numeric bucket) name specified in `bucket()` function, like
52*d5c09012SAndroid Build Coastguard Worker  //   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
53*d5c09012SAndroid Build Coastguard Worker  // * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
54*d5c09012SAndroid Build Coastguard Worker  //   example, `0-1000`, `MIN-0`, and `0-MAX`.
55*d5c09012SAndroid Build Coastguard Worker  map<string, int64> histogram = 2;
56*d5c09012SAndroid Build Coastguard Worker}
57