Debian Codegraph @

talent/apiv4beta1/talentpb/histogram.pb.go

raw
1 // Copyright 2025 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
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/talent/v4beta1/histogram.proto
20
21 package talentpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // The histogram request.
38 type HistogramQuery struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // An expression specifies a histogram request against matching resources
44 // (for example, jobs, profiles) for searches.
45 //
46 // See
47 // [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
48 // and
49 // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
50 // for details about syntax.
51 HistogramQuery string `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"`
52 }
53
54 func (x *HistogramQuery) Reset() {
55 *x = HistogramQuery{}
56 mi := &file_google_cloud_talent_v4beta1_histogram_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60
61 func (x *HistogramQuery) String() string {
62 return protoimpl.X.MessageStringOf(x)
63 }
64
65 func (*HistogramQuery) ProtoMessage() {}
66
67 func (x *HistogramQuery) ProtoReflect() protoreflect.Message {
68 mi := &file_google_cloud_talent_v4beta1_histogram_proto_msgTypes[0]
69 if x != nil {
70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 if ms.LoadMessageInfo() == nil {
72 ms.StoreMessageInfo(mi)
73 }
74 return ms
75 }
76 return mi.MessageOf(x)
77 }
78
79 // Deprecated: Use HistogramQuery.ProtoReflect.Descriptor instead.
80 func (*HistogramQuery) Descriptor() ([]byte, []int) {
81 return file_google_cloud_talent_v4beta1_histogram_proto_rawDescGZIP(), []int{0}
82 }
83
84 func (x *HistogramQuery) GetHistogramQuery() string {
85 if x != nil {
86 return x.HistogramQuery
87 }
88 return ""
89 }
90
91 // Histogram result that matches
92 // [HistogramQuery][google.cloud.talent.v4beta1.HistogramQuery] specified in
93 // searches.
94 type HistogramQueryResult struct {
95 state protoimpl.MessageState
96 sizeCache protoimpl.SizeCache
97 unknownFields protoimpl.UnknownFields
98
99 // Requested histogram expression.
100 HistogramQuery string `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"`
101 // A map from the values of the facet associated with distinct values to the
102 // number of matching entries with corresponding value.
103 //
104 // The key format is:
105 //
106 // - (for string histogram) string values stored in the field.
107 // - (for named numeric bucket) name specified in `bucket()` function, like
108 // for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
109 // - (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
110 // example, `0-1000`, `MIN-0`, and `0-MAX`.
111 Histogram map[string]int64 `protobuf:"bytes,2,rep,name=histogram,proto3" json:"histogram,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
112 }
113
114 func (x *HistogramQueryResult) Reset() {
115 *x = HistogramQueryResult{}
116 mi := &file_google_cloud_talent_v4beta1_histogram_proto_msgTypes[1]
117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118 ms.StoreMessageInfo(mi)
119 }
120
121 func (x *HistogramQueryResult) String() string {
122 return protoimpl.X.MessageStringOf(x)
123 }
124
125 func (*HistogramQueryResult) ProtoMessage() {}
126
127 func (x *HistogramQueryResult) ProtoReflect() protoreflect.Message {
128 mi := &file_google_cloud_talent_v4beta1_histogram_proto_msgTypes[1]
129 if x != nil {
130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
131 if ms.LoadMessageInfo() == nil {
132 ms.StoreMessageInfo(mi)
133 }
134 return ms
135 }
136 return mi.MessageOf(x)
137 }
138
139 // Deprecated: Use HistogramQueryResult.ProtoReflect.Descriptor instead.
140 func (*HistogramQueryResult) Descriptor() ([]byte, []int) {
141 return file_google_cloud_talent_v4beta1_histogram_proto_rawDescGZIP(), []int{1}
142 }
143
144 func (x *HistogramQueryResult) GetHistogramQuery() string {
145 if x != nil {
146 return x.HistogramQuery
147 }
148 return ""
149 }
150
151 func (x *HistogramQueryResult) GetHistogram() map[string]int64 {
152 if x != nil {
153 return x.Histogram
154 }
155 return nil
156 }
157
158 var File_google_cloud_talent_v4beta1_histogram_proto protoreflect.FileDescriptor
159
160 var file_google_cloud_talent_v4beta1_histogram_proto_rawDesc = []byte{
161 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
162 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x68, 0x69,
163 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67,
164 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65,
165 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x39, 0x0a, 0x0e, 0x48, 0x69,
166 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f,
167 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18,
168 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d,
169 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, 0xdd, 0x01, 0x0a, 0x14, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67,
170 0x72, 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x27,
171 0x0a, 0x0f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72,
172 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72,
173 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x5e, 0x0a, 0x09, 0x68, 0x69, 0x73, 0x74, 0x6f,
174 0x67, 0x72, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f,
175 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74,
176 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72,
177 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x48, 0x69,
178 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x68, 0x69,
179 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x1a, 0x3c, 0x0a, 0x0e, 0x48, 0x69, 0x73, 0x74, 0x6f,
180 0x67, 0x72, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
181 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
182 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
183 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x72, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
184 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74,
185 0x2e, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67,
186 0x72, 0x61, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75,
187 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
188 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x34, 0x62, 0x65, 0x74, 0x61,
189 0x31, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x74, 0x61, 0x6c, 0x65, 0x6e,
190 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
191 0x33,
192 }
193
194 var (
195 file_google_cloud_talent_v4beta1_histogram_proto_rawDescOnce sync.Once
196 file_google_cloud_talent_v4beta1_histogram_proto_rawDescData = file_google_cloud_talent_v4beta1_histogram_proto_rawDesc
197 )
198
199 func file_google_cloud_talent_v4beta1_histogram_proto_rawDescGZIP() []byte {
200 file_google_cloud_talent_v4beta1_histogram_proto_rawDescOnce.Do(func() {
201 file_google_cloud_talent_v4beta1_histogram_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_talent_v4beta1_histogram_proto_rawDescData)
202 })
203 return file_google_cloud_talent_v4beta1_histogram_proto_rawDescData
204 }
205
206 var file_google_cloud_talent_v4beta1_histogram_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
207 var file_google_cloud_talent_v4beta1_histogram_proto_goTypes = []any{
208 (*HistogramQuery)(nil), // 0: google.cloud.talent.v4beta1.HistogramQuery
209 (*HistogramQueryResult)(nil), // 1: google.cloud.talent.v4beta1.HistogramQueryResult
210 nil, // 2: google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry
211 }
212 var file_google_cloud_talent_v4beta1_histogram_proto_depIdxs = []int32{
213 2, // 0: google.cloud.talent.v4beta1.HistogramQueryResult.histogram:type_name -> google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry
214 1, // [1:1] is the sub-list for method output_type
215 1, // [1:1] is the sub-list for method input_type
216 1, // [1:1] is the sub-list for extension type_name
217 1, // [1:1] is the sub-list for extension extendee
218 0, // [0:1] is the sub-list for field type_name
219 }
220
221 func init() { file_google_cloud_talent_v4beta1_histogram_proto_init() }
222 func file_google_cloud_talent_v4beta1_histogram_proto_init() {
223 if File_google_cloud_talent_v4beta1_histogram_proto != nil {
224 return
225 }
226 type x struct{}
227 out := protoimpl.TypeBuilder{
228 File: protoimpl.DescBuilder{
229 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
230 RawDescriptor: file_google_cloud_talent_v4beta1_histogram_proto_rawDesc,
231 NumEnums: 0,
232 NumMessages: 3,
233 NumExtensions: 0,
234 NumServices: 0,
235 },
236 GoTypes: file_google_cloud_talent_v4beta1_histogram_proto_goTypes,
237 DependencyIndexes: file_google_cloud_talent_v4beta1_histogram_proto_depIdxs,
238 MessageInfos: file_google_cloud_talent_v4beta1_histogram_proto_msgTypes,
239 }.Build()
240 File_google_cloud_talent_v4beta1_histogram_proto = out.File
241 file_google_cloud_talent_v4beta1_histogram_proto_rawDesc = nil
242 file_google_cloud_talent_v4beta1_histogram_proto_goTypes = nil
243 file_google_cloud_talent_v4beta1_histogram_proto_depIdxs = nil
244 }