1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/talent/v4beta1/histogram.proto
3
4package talent
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	_ "google.golang.org/genproto/googleapis/api/annotations"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25// Input Only.
26//
27// The histogram request.
28type HistogramQuery struct {
29	// An expression specifies a histogram request against matching resources
30	// (for example, jobs, profiles) for searches.
31	//
32	// See
33	// [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries]
34	// and
35	// [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]
36	// for details about syntax.
37	HistogramQuery       string   `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"`
38	XXX_NoUnkeyedLiteral struct{} `json:"-"`
39	XXX_unrecognized     []byte   `json:"-"`
40	XXX_sizecache        int32    `json:"-"`
41}
42
43func (m *HistogramQuery) Reset()         { *m = HistogramQuery{} }
44func (m *HistogramQuery) String() string { return proto.CompactTextString(m) }
45func (*HistogramQuery) ProtoMessage()    {}
46func (*HistogramQuery) Descriptor() ([]byte, []int) {
47	return fileDescriptor_faf41faeec04126e, []int{0}
48}
49
50func (m *HistogramQuery) XXX_Unmarshal(b []byte) error {
51	return xxx_messageInfo_HistogramQuery.Unmarshal(m, b)
52}
53func (m *HistogramQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
54	return xxx_messageInfo_HistogramQuery.Marshal(b, m, deterministic)
55}
56func (m *HistogramQuery) XXX_Merge(src proto.Message) {
57	xxx_messageInfo_HistogramQuery.Merge(m, src)
58}
59func (m *HistogramQuery) XXX_Size() int {
60	return xxx_messageInfo_HistogramQuery.Size(m)
61}
62func (m *HistogramQuery) XXX_DiscardUnknown() {
63	xxx_messageInfo_HistogramQuery.DiscardUnknown(m)
64}
65
66var xxx_messageInfo_HistogramQuery proto.InternalMessageInfo
67
68func (m *HistogramQuery) GetHistogramQuery() string {
69	if m != nil {
70		return m.HistogramQuery
71	}
72	return ""
73}
74
75// Output only.
76//
77// Histogram result that matches
78// [HistogramQuery][google.cloud.talent.v4beta1.HistogramQuery] specified in
79// searches.
80type HistogramQueryResult struct {
81	// Requested histogram expression.
82	HistogramQuery string `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"`
83	// A map from the values of the facet associated with distinct values to the
84	// number of matching entries with corresponding value.
85	//
86	// The key format is:
87	//
88	// * (for string histogram) string values stored in the field.
89	// * (for named numeric bucket) name specified in `bucket()` function, like
90	//   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
91	// * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
92	//   example, `0-1000`, `MIN-0`, and `0-MAX`.
93	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"`
94	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
95	XXX_unrecognized     []byte           `json:"-"`
96	XXX_sizecache        int32            `json:"-"`
97}
98
99func (m *HistogramQueryResult) Reset()         { *m = HistogramQueryResult{} }
100func (m *HistogramQueryResult) String() string { return proto.CompactTextString(m) }
101func (*HistogramQueryResult) ProtoMessage()    {}
102func (*HistogramQueryResult) Descriptor() ([]byte, []int) {
103	return fileDescriptor_faf41faeec04126e, []int{1}
104}
105
106func (m *HistogramQueryResult) XXX_Unmarshal(b []byte) error {
107	return xxx_messageInfo_HistogramQueryResult.Unmarshal(m, b)
108}
109func (m *HistogramQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
110	return xxx_messageInfo_HistogramQueryResult.Marshal(b, m, deterministic)
111}
112func (m *HistogramQueryResult) XXX_Merge(src proto.Message) {
113	xxx_messageInfo_HistogramQueryResult.Merge(m, src)
114}
115func (m *HistogramQueryResult) XXX_Size() int {
116	return xxx_messageInfo_HistogramQueryResult.Size(m)
117}
118func (m *HistogramQueryResult) XXX_DiscardUnknown() {
119	xxx_messageInfo_HistogramQueryResult.DiscardUnknown(m)
120}
121
122var xxx_messageInfo_HistogramQueryResult proto.InternalMessageInfo
123
124func (m *HistogramQueryResult) GetHistogramQuery() string {
125	if m != nil {
126		return m.HistogramQuery
127	}
128	return ""
129}
130
131func (m *HistogramQueryResult) GetHistogram() map[string]int64 {
132	if m != nil {
133		return m.Histogram
134	}
135	return nil
136}
137
138func init() {
139	proto.RegisterType((*HistogramQuery)(nil), "google.cloud.talent.v4beta1.HistogramQuery")
140	proto.RegisterType((*HistogramQueryResult)(nil), "google.cloud.talent.v4beta1.HistogramQueryResult")
141	proto.RegisterMapType((map[string]int64)(nil), "google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry")
142}
143
144func init() {
145	proto.RegisterFile("google/cloud/talent/v4beta1/histogram.proto", fileDescriptor_faf41faeec04126e)
146}
147
148var fileDescriptor_faf41faeec04126e = []byte{
149	// 283 bytes of a gzipped FileDescriptorProto
150	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4e, 0xcf, 0xcf, 0x4f,
151	0xcf, 0x49, 0xd5, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x2f, 0x49, 0xcc, 0x49, 0xcd, 0x2b, 0xd1,
152	0x2f, 0x33, 0x49, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0xcf, 0xc8, 0x2c, 0x2e, 0xc9, 0x4f, 0x2f, 0x4a,
153	0xcc, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x86, 0x28, 0xd6, 0x03, 0x2b, 0xd6, 0x83,
154	0x28, 0xd6, 0x83, 0x2a, 0x96, 0x92, 0x81, 0x9a, 0x94, 0x58, 0x90, 0xa9, 0x9f, 0x98, 0x97, 0x97,
155	0x5f, 0x92, 0x58, 0x92, 0x99, 0x9f, 0x57, 0x0c, 0xd1, 0xaa, 0x64, 0xc9, 0xc5, 0xe7, 0x01, 0x33,
156	0x2d, 0xb0, 0x34, 0xb5, 0xa8, 0x52, 0x48, 0x9d, 0x8b, 0x1f, 0x6e, 0x7e, 0x7c, 0x21, 0x48, 0x48,
157	0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x2f, 0x03, 0x45, 0xa1, 0xd2, 0x5d, 0x46, 0x2e, 0x11,
158	0x54, 0xbd, 0x41, 0xa9, 0xc5, 0xa5, 0x39, 0x25, 0x44, 0x9b, 0x20, 0x14, 0xc7, 0xc5, 0x09, 0x17,
159	0x91, 0x60, 0x52, 0x60, 0xd6, 0xe0, 0x36, 0x72, 0xd0, 0xc3, 0xe3, 0x17, 0x3d, 0x6c, 0xd6, 0x21,
160	0x04, 0x5d, 0xf3, 0x4a, 0x8a, 0x2a, 0x83, 0x10, 0x46, 0x4a, 0xd9, 0x20, 0x79, 0x0e, 0x2c, 0x29,
161	0x24, 0xc0, 0xc5, 0x9c, 0x9d, 0x0a, 0x73, 0x0e, 0x88, 0x29, 0x24, 0xc2, 0xc5, 0x5a, 0x96, 0x98,
162	0x53, 0x9a, 0x2a, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x1c, 0x04, 0xe1, 0x58, 0x31, 0x59, 0x30, 0x3a,
163	0xd5, 0x70, 0xc9, 0x27, 0xe7, 0xe7, 0xe2, 0x73, 0x8f, 0x13, 0xc2, 0xf8, 0x00, 0x50, 0x68, 0x06,
164	0x30, 0x46, 0x39, 0x42, 0x95, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0xe5, 0x17, 0xa5, 0xeb,
165	0xa7, 0xa7, 0xe6, 0x81, 0xc3, 0x5a, 0x1f, 0x22, 0x95, 0x58, 0x90, 0x59, 0x8c, 0x35, 0x5a, 0xad,
166	0x21, 0xdc, 0x45, 0x4c, 0xcc, 0xce, 0x21, 0xc1, 0x49, 0x6c, 0x60, 0x3d, 0xc6, 0x80, 0x00, 0x00,
167	0x00, 0xff, 0xff, 0xf7, 0x89, 0x18, 0x14, 0x09, 0x02, 0x00, 0x00,
168}
169