// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/talent/v4beta1/histogram.proto

package talent

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	_ "github.com/golang/protobuf/ptypes/wrappers"
	_ "google.golang.org/genproto/googleapis/api/annotations"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// Input Only.
//
// The histogram request.
type HistogramQuery struct {
	// An expression specifies a histogram request against matching resources
	// (for example, jobs, profiles) for searches.
	//
	// See [SearchJobsRequest.histogram_queries][google.cloud.talent.v4beta1.SearchJobsRequest.histogram_queries] and
	// [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries] for details about syntax.
	HistogramQuery       string   `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *HistogramQuery) Reset()         { *m = HistogramQuery{} }
func (m *HistogramQuery) String() string { return proto.CompactTextString(m) }
func (*HistogramQuery) ProtoMessage()    {}
func (*HistogramQuery) Descriptor() ([]byte, []int) {
	return fileDescriptor_faf41faeec04126e, []int{0}
}

func (m *HistogramQuery) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HistogramQuery.Unmarshal(m, b)
}
func (m *HistogramQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HistogramQuery.Marshal(b, m, deterministic)
}
func (m *HistogramQuery) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HistogramQuery.Merge(m, src)
}
func (m *HistogramQuery) XXX_Size() int {
	return xxx_messageInfo_HistogramQuery.Size(m)
}
func (m *HistogramQuery) XXX_DiscardUnknown() {
	xxx_messageInfo_HistogramQuery.DiscardUnknown(m)
}

var xxx_messageInfo_HistogramQuery proto.InternalMessageInfo

func (m *HistogramQuery) GetHistogramQuery() string {
	if m != nil {
		return m.HistogramQuery
	}
	return ""
}

// Output only.
//
// Histogram result that matches [HistogramSpec][] specified in searches.
type HistogramQueryResult struct {
	// Requested histogram expression.
	HistogramQuery string `protobuf:"bytes,1,opt,name=histogram_query,json=histogramQuery,proto3" json:"histogram_query,omitempty"`
	// A map from the values of the facet associated with distinct values to the
	// number of matching entries with corresponding value.
	//
	// The key format is:
	// * (for string histogram) string values stored in the field.
	// * (for named numeric bucket) name specified in `bucket()` function, like
	//   for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`.
	// * (for anonymous numeric bucket) range formatted as `<low>-<high>`, for
	// example, `0-1000`, `MIN-0`, and `0-MAX`.
	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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (m *HistogramQueryResult) Reset()         { *m = HistogramQueryResult{} }
func (m *HistogramQueryResult) String() string { return proto.CompactTextString(m) }
func (*HistogramQueryResult) ProtoMessage()    {}
func (*HistogramQueryResult) Descriptor() ([]byte, []int) {
	return fileDescriptor_faf41faeec04126e, []int{1}
}

func (m *HistogramQueryResult) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HistogramQueryResult.Unmarshal(m, b)
}
func (m *HistogramQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HistogramQueryResult.Marshal(b, m, deterministic)
}
func (m *HistogramQueryResult) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HistogramQueryResult.Merge(m, src)
}
func (m *HistogramQueryResult) XXX_Size() int {
	return xxx_messageInfo_HistogramQueryResult.Size(m)
}
func (m *HistogramQueryResult) XXX_DiscardUnknown() {
	xxx_messageInfo_HistogramQueryResult.DiscardUnknown(m)
}

var xxx_messageInfo_HistogramQueryResult proto.InternalMessageInfo

func (m *HistogramQueryResult) GetHistogramQuery() string {
	if m != nil {
		return m.HistogramQuery
	}
	return ""
}

func (m *HistogramQueryResult) GetHistogram() map[string]int64 {
	if m != nil {
		return m.Histogram
	}
	return nil
}

func init() {
	proto.RegisterType((*HistogramQuery)(nil), "google.cloud.talent.v4beta1.HistogramQuery")
	proto.RegisterType((*HistogramQueryResult)(nil), "google.cloud.talent.v4beta1.HistogramQueryResult")
	proto.RegisterMapType((map[string]int64)(nil), "google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry")
}

func init() {
	proto.RegisterFile("google/cloud/talent/v4beta1/histogram.proto", fileDescriptor_faf41faeec04126e)
}

var fileDescriptor_faf41faeec04126e = []byte{
	// 301 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4e, 0xcf, 0xcf, 0x4f,
	0xcf, 0x49, 0xd5, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x2f, 0x49, 0xcc, 0x49, 0xcd, 0x2b, 0xd1,
	0x2f, 0x33, 0x49, 0x4a, 0x2d, 0x49, 0x34, 0xd4, 0xcf, 0xc8, 0x2c, 0x2e, 0xc9, 0x4f, 0x2f, 0x4a,
	0xcc, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x86, 0x28, 0xd6, 0x03, 0x2b, 0xd6, 0x83,
	0x28, 0xd6, 0x83, 0x2a, 0x96, 0x92, 0x83, 0x9a, 0x04, 0x56, 0x9a, 0x54, 0x9a, 0xa6, 0x5f, 0x5e,
	0x94, 0x58, 0x50, 0x90, 0x5a, 0x54, 0x0c, 0xd1, 0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x8d, 0x76, 0x6b, 0x08, 0x77, 0x11, 0x13, 0xb3, 0x73, 0x48, 0x70, 0x12, 0x1b, 0x58, 0x8f, 0x31,
	0x20, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x60, 0x65, 0xa2, 0x29, 0x02, 0x00, 0x00,
}
