| 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/v4/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 jobs for |
| 44 |
// searches. |
| 45 |
// |
| 46 |
// See |
| 47 |
// [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries] |
| 48 |
// for details about syntax. |
| 49 |
HistogramQuery string `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"` |
| 50 |
} |
| 51 |
|
| 52 |
func (x *HistogramQuery) Reset() { |
| 53 |
*x = HistogramQuery{} |
| 54 |
mi := &file_google_cloud_talent_v4_histogram_proto_msgTypes[0] |
| 55 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 56 |
ms.StoreMessageInfo(mi) |
| 57 |
} |
| 58 |
|
| 59 |
func (x *HistogramQuery) String() string { |
| 60 |
return protoimpl.X.MessageStringOf(x) |
| 61 |
} |
| 62 |
|
| 63 |
func (*HistogramQuery) ProtoMessage() {} |
| 64 |
|
| 65 |
func (x *HistogramQuery) ProtoReflect() protoreflect.Message { |
| 66 |
mi := &file_google_cloud_talent_v4_histogram_proto_msgTypes[0] |
| 67 |
if x != nil { |
| 68 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 69 |
if ms.LoadMessageInfo() == nil { |
| 70 |
ms.StoreMessageInfo(mi) |
| 71 |
} |
| 72 |
return ms |
| 73 |
} |
| 74 |
return mi.MessageOf(x) |
| 75 |
} |
| 76 |
|
| 77 |
// Deprecated: Use HistogramQuery.ProtoReflect.Descriptor instead. |
| 78 |
func (*HistogramQuery) Descriptor() ([]byte, []int) { |
| 79 |
return file_google_cloud_talent_v4_histogram_proto_rawDescGZIP(), []int{0} |
| 80 |
} |
| 81 |
|
| 82 |
func (x *HistogramQuery) GetHistogramQuery() string { |
| 83 |
if x != nil { |
| 84 |
return x.HistogramQuery |
| 85 |
} |
| 86 |
return "" |
| 87 |
} |
| 88 |
|
| 89 |
// Histogram result that matches |
| 90 |
// [HistogramQuery][google.cloud.talent.v4.HistogramQuery] specified in |
| 91 |
// searches. |
| 92 |
type HistogramQueryResult struct { |
| 93 |
state protoimpl.MessageState |
| 94 |
sizeCache protoimpl.SizeCache |
| 95 |
unknownFields protoimpl.UnknownFields |
| 96 |
|
| 97 |
// Requested histogram expression. |
| 98 |
HistogramQuery string `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"` |
| 99 |
// A map from the values of the facet associated with distinct values to the |
| 100 |
// number of matching entries with corresponding value. |
| 101 |
// |
| 102 |
// The key format is: |
| 103 |
// |
| 104 |
// - (for string histogram) string values stored in the field. |
| 105 |
// - (for named numeric bucket) name specified in `bucket()` function, like |
| 106 |
// for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. |
| 107 |
// - (for anonymous numeric bucket) range formatted as `<low>-<high>`, for |
| 108 |
// example, `0-1000`, `MIN-0`, and `0-MAX`. |
| 109 |
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"` |
| 110 |
} |
| 111 |
|
| 112 |
func (x *HistogramQueryResult) Reset() { |
| 113 |
*x = HistogramQueryResult{} |
| 114 |
mi := &file_google_cloud_talent_v4_histogram_proto_msgTypes[1] |
| 115 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 116 |
ms.StoreMessageInfo(mi) |
| 117 |
} |
| 118 |
|
| 119 |
func (x *HistogramQueryResult) String() string { |
| 120 |
return protoimpl.X.MessageStringOf(x) |
| 121 |
} |
| 122 |
|
| 123 |
func (*HistogramQueryResult) ProtoMessage() {} |
| 124 |
|
| 125 |
func (x *HistogramQueryResult) ProtoReflect() protoreflect.Message { |
| 126 |
mi := &file_google_cloud_talent_v4_histogram_proto_msgTypes[1] |
| 127 |
if x != nil { |
| 128 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 129 |
if ms.LoadMessageInfo() == nil { |
| 130 |
ms.StoreMessageInfo(mi) |
| 131 |
} |
| 132 |
return ms |
| 133 |
} |
| 134 |
return mi.MessageOf(x) |
| 135 |
} |
| 136 |
|
| 137 |
// Deprecated: Use HistogramQueryResult.ProtoReflect.Descriptor instead. |
| 138 |
func (*HistogramQueryResult) Descriptor() ([]byte, []int) { |
| 139 |
return file_google_cloud_talent_v4_histogram_proto_rawDescGZIP(), []int{1} |
| 140 |
} |
| 141 |
|
| 142 |
func (x *HistogramQueryResult) GetHistogramQuery() string { |
| 143 |
if x != nil { |
| 144 |
return x.HistogramQuery |
| 145 |
} |
| 146 |
return "" |
| 147 |
} |
| 148 |
|
| 149 |
func (x *HistogramQueryResult) GetHistogram() map[string]int64 { |
| 150 |
if x != nil { |
| 151 |
return x.Histogram |
| 152 |
} |
| 153 |
return nil |
| 154 |
} |
| 155 |
|
| 156 |
var File_google_cloud_talent_v4_histogram_proto protoreflect.FileDescriptor |
| 157 |
|
| 158 |
var file_google_cloud_talent_v4_histogram_proto_rawDesc = []byte{ |
| 159 |
0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, |
| 160 |
0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x34, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, |
| 161 |
0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 162 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, |
| 163 |
0x22, 0x39, 0x0a, 0x0e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x51, 0x75, 0x65, |
| 164 |
0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x5f, |
| 165 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x68, 0x69, 0x73, |
| 166 |
0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, 0xd8, 0x01, 0x0a, 0x14, |
| 167 |
0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, |
| 168 |
0x73, 0x75, 0x6c, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, |
| 169 |
0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x68, |
| 170 |
0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x59, 0x0a, |
| 171 |
0x09, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, |
| 172 |
0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 173 |
0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x34, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, |
| 174 |
0x72, 0x61, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x48, |
| 175 |
0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x68, |
| 176 |
0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x1a, 0x3c, 0x0a, 0x0e, 0x48, 0x69, 0x73, 0x74, |
| 177 |
0x6f, 0x67, 0x72, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, |
| 178 |
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, |
| 179 |
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, |
| 180 |
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x68, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, |
| 181 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x6c, 0x65, 0x6e, |
| 182 |
0x74, 0x2e, 0x76, 0x34, 0x42, 0x0e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x50, |
| 183 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, |
| 184 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x61, 0x6c, 0x65, |
| 185 |
0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x34, 0x2f, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, |
| 186 |
0x62, 0x3b, 0x74, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x43, 0x54, 0x53, |
| 187 |
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 188 |
} |
| 189 |
|
| 190 |
var ( |
| 191 |
file_google_cloud_talent_v4_histogram_proto_rawDescOnce sync.Once |
| 192 |
file_google_cloud_talent_v4_histogram_proto_rawDescData = file_google_cloud_talent_v4_histogram_proto_rawDesc |
| 193 |
) |
| 194 |
|
| 195 |
func file_google_cloud_talent_v4_histogram_proto_rawDescGZIP() []byte { |
| 196 |
file_google_cloud_talent_v4_histogram_proto_rawDescOnce.Do(func() { |
| 197 |
file_google_cloud_talent_v4_histogram_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_talent_v4_histogram_proto_rawDescData) |
| 198 |
}) |
| 199 |
return file_google_cloud_talent_v4_histogram_proto_rawDescData |
| 200 |
} |
| 201 |
|
| 202 |
var file_google_cloud_talent_v4_histogram_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 203 |
var file_google_cloud_talent_v4_histogram_proto_goTypes = []any{ |
| 204 |
(*HistogramQuery)(nil), // 0: google.cloud.talent.v4.HistogramQuery |
| 205 |
(*HistogramQueryResult)(nil), // 1: google.cloud.talent.v4.HistogramQueryResult |
| 206 |
nil, // 2: google.cloud.talent.v4.HistogramQueryResult.HistogramEntry |
| 207 |
} |
| 208 |
var file_google_cloud_talent_v4_histogram_proto_depIdxs = []int32{ |
| 209 |
2, // 0: google.cloud.talent.v4.HistogramQueryResult.histogram:type_name -> google.cloud.talent.v4.HistogramQueryResult.HistogramEntry |
| 210 |
1, // [1:1] is the sub-list for method output_type |
| 211 |
1, // [1:1] is the sub-list for method input_type |
| 212 |
1, // [1:1] is the sub-list for extension type_name |
| 213 |
1, // [1:1] is the sub-list for extension extendee |
| 214 |
0, // [0:1] is the sub-list for field type_name |
| 215 |
} |
| 216 |
|
| 217 |
func init() { file_google_cloud_talent_v4_histogram_proto_init() } |
| 218 |
func file_google_cloud_talent_v4_histogram_proto_init() { |
| 219 |
if File_google_cloud_talent_v4_histogram_proto != nil { |
| 220 |
return |
| 221 |
} |
| 222 |
type x struct{} |
| 223 |
out := protoimpl.TypeBuilder{ |
| 224 |
File: protoimpl.DescBuilder{ |
| 225 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 226 |
RawDescriptor: file_google_cloud_talent_v4_histogram_proto_rawDesc, |
| 227 |
NumEnums: 0, |
| 228 |
NumMessages: 3, |
| 229 |
NumExtensions: 0, |
| 230 |
NumServices: 0, |
| 231 |
}, |
| 232 |
GoTypes: file_google_cloud_talent_v4_histogram_proto_goTypes, |
| 233 |
DependencyIndexes: file_google_cloud_talent_v4_histogram_proto_depIdxs, |
| 234 |
MessageInfos: file_google_cloud_talent_v4_histogram_proto_msgTypes, |
| 235 |
}.Build() |
| 236 |
File_google_cloud_talent_v4_histogram_proto = out.File |
| 237 |
file_google_cloud_talent_v4_histogram_proto_rawDesc = nil |
| 238 |
file_google_cloud_talent_v4_histogram_proto_goTypes = nil |
| 239 |
file_google_cloud_talent_v4_histogram_proto_depIdxs = nil |
| 240 |
} |