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