// Copyright 2025 The Bucketeer Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
// 	protoc        v4.23.4
// source: proto/eventcounter/timeseries.proto

package eventcounter

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type Timeseries_Unit int32

const (
	Timeseries_HOUR Timeseries_Unit = 0
	Timeseries_DAY  Timeseries_Unit = 1
)

// Enum value maps for Timeseries_Unit.
var (
	Timeseries_Unit_name = map[int32]string{
		0: "HOUR",
		1: "DAY",
	}
	Timeseries_Unit_value = map[string]int32{
		"HOUR": 0,
		"DAY":  1,
	}
)

func (x Timeseries_Unit) Enum() *Timeseries_Unit {
	p := new(Timeseries_Unit)
	*p = x
	return p
}

func (x Timeseries_Unit) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Timeseries_Unit) Descriptor() protoreflect.EnumDescriptor {
	return file_proto_eventcounter_timeseries_proto_enumTypes[0].Descriptor()
}

func (Timeseries_Unit) Type() protoreflect.EnumType {
	return &file_proto_eventcounter_timeseries_proto_enumTypes[0]
}

func (x Timeseries_Unit) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Timeseries_Unit.Descriptor instead.
func (Timeseries_Unit) EnumDescriptor() ([]byte, []int) {
	return file_proto_eventcounter_timeseries_proto_rawDescGZIP(), []int{1, 0}
}

type VariationTimeseries struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	VariationId string      `protobuf:"bytes,1,opt,name=variation_id,json=variationId,proto3" json:"variation_id"`
	Timeseries  *Timeseries `protobuf:"bytes,2,opt,name=timeseries,proto3" json:"timeseries"`
}

func (x *VariationTimeseries) Reset() {
	*x = VariationTimeseries{}
	if protoimpl.UnsafeEnabled {
		mi := &file_proto_eventcounter_timeseries_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *VariationTimeseries) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*VariationTimeseries) ProtoMessage() {}

func (x *VariationTimeseries) ProtoReflect() protoreflect.Message {
	mi := &file_proto_eventcounter_timeseries_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use VariationTimeseries.ProtoReflect.Descriptor instead.
func (*VariationTimeseries) Descriptor() ([]byte, []int) {
	return file_proto_eventcounter_timeseries_proto_rawDescGZIP(), []int{0}
}

func (x *VariationTimeseries) GetVariationId() string {
	if x != nil {
		return x.VariationId
	}
	return ""
}

func (x *VariationTimeseries) GetTimeseries() *Timeseries {
	if x != nil {
		return x.Timeseries
	}
	return nil
}

type Timeseries struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Timestamps  []int64         `protobuf:"varint,1,rep,packed,name=timestamps,proto3" json:"timestamps"`
	Values      []float64       `protobuf:"fixed64,2,rep,packed,name=values,proto3" json:"values"`
	Unit        Timeseries_Unit `protobuf:"varint,3,opt,name=unit,proto3,enum=bucketeer.eventcounter.Timeseries_Unit" json:"unit"`
	TotalCounts int64           `protobuf:"varint,4,opt,name=total_counts,json=totalCounts,proto3" json:"total_counts"`
}

func (x *Timeseries) Reset() {
	*x = Timeseries{}
	if protoimpl.UnsafeEnabled {
		mi := &file_proto_eventcounter_timeseries_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Timeseries) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Timeseries) ProtoMessage() {}

func (x *Timeseries) ProtoReflect() protoreflect.Message {
	mi := &file_proto_eventcounter_timeseries_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Timeseries.ProtoReflect.Descriptor instead.
func (*Timeseries) Descriptor() ([]byte, []int) {
	return file_proto_eventcounter_timeseries_proto_rawDescGZIP(), []int{1}
}

func (x *Timeseries) GetTimestamps() []int64 {
	if x != nil {
		return x.Timestamps
	}
	return nil
}

func (x *Timeseries) GetValues() []float64 {
	if x != nil {
		return x.Values
	}
	return nil
}

func (x *Timeseries) GetUnit() Timeseries_Unit {
	if x != nil {
		return x.Unit
	}
	return Timeseries_HOUR
}

func (x *Timeseries) GetTotalCounts() int64 {
	if x != nil {
		return x.TotalCounts
	}
	return 0
}

var File_proto_eventcounter_timeseries_proto protoreflect.FileDescriptor

var file_proto_eventcounter_timeseries_proto_rawDesc = []byte{
	0x0a, 0x23, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x63, 0x6f, 0x75,
	0x6e, 0x74, 0x65, 0x72, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2e,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x65, 0x65, 0x72,
	0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x7c, 0x0a,
	0x13, 0x56, 0x61, 0x72, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x65,
	0x72, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x61, 0x72, 0x69, 0x61, 0x74, 0x69, 0x6f,
	0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x61, 0x72, 0x69,
	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73,
	0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75,
	0x63, 0x6b, 0x65, 0x74, 0x65, 0x65, 0x72, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x63, 0x6f, 0x75,
	0x6e, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52,
	0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xbf, 0x01, 0x0a, 0x0a,
	0x54, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x69,
	0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a,
	0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61,
	0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x01, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75,
	0x65, 0x73, 0x12, 0x3b, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e,
	0x32, 0x27, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x65, 0x65, 0x72, 0x2e, 0x65, 0x76, 0x65,
	0x6e, 0x74, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x65,
	0x72, 0x69, 0x65, 0x73, 0x2e, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x12,
	0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18,
	0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e,
	0x74, 0x73, 0x22, 0x19, 0x0a, 0x04, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f,
	0x55, 0x52, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x41, 0x59, 0x10, 0x01, 0x42, 0x39, 0x5a,
	0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x63, 0x6b,
	0x65, 0x74, 0x65, 0x65, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x65,
	0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x76, 0x65, 0x6e,
	0x74, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_proto_eventcounter_timeseries_proto_rawDescOnce sync.Once
	file_proto_eventcounter_timeseries_proto_rawDescData = file_proto_eventcounter_timeseries_proto_rawDesc
)

func file_proto_eventcounter_timeseries_proto_rawDescGZIP() []byte {
	file_proto_eventcounter_timeseries_proto_rawDescOnce.Do(func() {
		file_proto_eventcounter_timeseries_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_eventcounter_timeseries_proto_rawDescData)
	})
	return file_proto_eventcounter_timeseries_proto_rawDescData
}

var file_proto_eventcounter_timeseries_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_proto_eventcounter_timeseries_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_proto_eventcounter_timeseries_proto_goTypes = []interface{}{
	(Timeseries_Unit)(0),        // 0: bucketeer.eventcounter.Timeseries.Unit
	(*VariationTimeseries)(nil), // 1: bucketeer.eventcounter.VariationTimeseries
	(*Timeseries)(nil),          // 2: bucketeer.eventcounter.Timeseries
}
var file_proto_eventcounter_timeseries_proto_depIdxs = []int32{
	2, // 0: bucketeer.eventcounter.VariationTimeseries.timeseries:type_name -> bucketeer.eventcounter.Timeseries
	0, // 1: bucketeer.eventcounter.Timeseries.unit:type_name -> bucketeer.eventcounter.Timeseries.Unit
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_proto_eventcounter_timeseries_proto_init() }
func file_proto_eventcounter_timeseries_proto_init() {
	if File_proto_eventcounter_timeseries_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_proto_eventcounter_timeseries_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*VariationTimeseries); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_proto_eventcounter_timeseries_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Timeseries); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_proto_eventcounter_timeseries_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_proto_eventcounter_timeseries_proto_goTypes,
		DependencyIndexes: file_proto_eventcounter_timeseries_proto_depIdxs,
		EnumInfos:         file_proto_eventcounter_timeseries_proto_enumTypes,
		MessageInfos:      file_proto_eventcounter_timeseries_proto_msgTypes,
	}.Build()
	File_proto_eventcounter_timeseries_proto = out.File
	file_proto_eventcounter_timeseries_proto_rawDesc = nil
	file_proto_eventcounter_timeseries_proto_goTypes = nil
	file_proto_eventcounter_timeseries_proto_depIdxs = nil
}
