// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.33.0
// source: weather.proto

package weather_system

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

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 AlertMessage_AlertType int32

const (
	AlertMessage_UNKNOWN          AlertMessage_AlertType = 0
	AlertMessage_HIGH_TEMPERATURE AlertMessage_AlertType = 1
	AlertMessage_LOW_PRESSURE     AlertMessage_AlertType = 2
	AlertMessage_HIGH_HUMIDITY    AlertMessage_AlertType = 3
	AlertMessage_NORMAL           AlertMessage_AlertType = 4
)

// Enum value maps for AlertMessage_AlertType.
var (
	AlertMessage_AlertType_name = map[int32]string{
		0: "UNKNOWN",
		1: "HIGH_TEMPERATURE",
		2: "LOW_PRESSURE",
		3: "HIGH_HUMIDITY",
		4: "NORMAL",
	}
	AlertMessage_AlertType_value = map[string]int32{
		"UNKNOWN":          0,
		"HIGH_TEMPERATURE": 1,
		"LOW_PRESSURE":     2,
		"HIGH_HUMIDITY":    3,
		"NORMAL":           4,
	}
)

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

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

func (AlertMessage_AlertType) Descriptor() protoreflect.EnumDescriptor {
	return file_weather_proto_enumTypes[0].Descriptor()
}

func (AlertMessage_AlertType) Type() protoreflect.EnumType {
	return &file_weather_proto_enumTypes[0]
}

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

// Deprecated: Use AlertMessage_AlertType.Descriptor instead.
func (AlertMessage_AlertType) EnumDescriptor() ([]byte, []int) {
	return file_weather_proto_rawDescGZIP(), []int{2, 0}
}

// 1. Weather Data sent from the sensor (WeatherData)
type WeatherData struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	TemperatureCelsius float64                `protobuf:"fixed64,1,opt,name=temperature_celsius,json=temperatureCelsius,proto3" json:"temperature_celsius,omitempty"` // Temperature in Celsius (e.g., 25.5)
	HumidityPercent    float64                `protobuf:"fixed64,2,opt,name=humidity_percent,json=humidityPercent,proto3" json:"humidity_percent,omitempty"`          // Humidity percentage (e.g., 60.0)
	PressureHpa        float64                `protobuf:"fixed64,3,opt,name=pressure_hpa,json=pressureHpa,proto3" json:"pressure_hpa,omitempty"`                      // Pressure in Hectopascals (e.g., 1012.3)
	Timestamp          int64                  `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`                                              // Unix timestamp of the reading
	StationId          string                 `protobuf:"bytes,5,opt,name=station_id,json=stationId,proto3" json:"station_id,omitempty"`                              // Identifier of the weather station
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *WeatherData) Reset() {
	*x = WeatherData{}
	mi := &file_weather_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*WeatherData) ProtoMessage() {}

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

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

func (x *WeatherData) GetTemperatureCelsius() float64 {
	if x != nil {
		return x.TemperatureCelsius
	}
	return 0
}

func (x *WeatherData) GetHumidityPercent() float64 {
	if x != nil {
		return x.HumidityPercent
	}
	return 0
}

func (x *WeatherData) GetPressureHpa() float64 {
	if x != nil {
		return x.PressureHpa
	}
	return 0
}

func (x *WeatherData) GetTimestamp() int64 {
	if x != nil {
		return x.Timestamp
	}
	return 0
}

func (x *WeatherData) GetStationId() string {
	if x != nil {
		return x.StationId
	}
	return ""
}

// 2. Calculated Weather Statistics (WeatherStats)
type WeatherStats struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	AvgTemperature float64                `protobuf:"fixed64,1,opt,name=avg_temperature,json=avgTemperature,proto3" json:"avg_temperature,omitempty"`
	AvgHumidity    float64                `protobuf:"fixed64,2,opt,name=avg_humidity,json=avgHumidity,proto3" json:"avg_humidity,omitempty"`
	AvgPressure    float64                `protobuf:"fixed64,3,opt,name=avg_pressure,json=avgPressure,proto3" json:"avg_pressure,omitempty"`
	ReportTime     int64                  `protobuf:"varint,4,opt,name=report_time,json=reportTime,proto3" json:"report_time,omitempty"`
	// Optional field to send alerts within the data stream
	CurrentAlert  *AlertMessage `protobuf:"bytes,5,opt,name=current_alert,json=currentAlert,proto3" json:"current_alert,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WeatherStats) Reset() {
	*x = WeatherStats{}
	mi := &file_weather_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*WeatherStats) ProtoMessage() {}

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

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

func (x *WeatherStats) GetAvgTemperature() float64 {
	if x != nil {
		return x.AvgTemperature
	}
	return 0
}

func (x *WeatherStats) GetAvgHumidity() float64 {
	if x != nil {
		return x.AvgHumidity
	}
	return 0
}

func (x *WeatherStats) GetAvgPressure() float64 {
	if x != nil {
		return x.AvgPressure
	}
	return 0
}

func (x *WeatherStats) GetReportTime() int64 {
	if x != nil {
		return x.ReportTime
	}
	return 0
}

func (x *WeatherStats) GetCurrentAlert() *AlertMessage {
	if x != nil {
		return x.CurrentAlert
	}
	return nil
}

// 3. Alert Message (AlertMessage)
type AlertMessage struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Type          AlertMessage_AlertType `protobuf:"varint,1,opt,name=type,proto3,enum=weather_system.AlertMessage_AlertType" json:"type,omitempty"`
	Message       string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Value         float64                `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp     int64                  `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AlertMessage) Reset() {
	*x = AlertMessage{}
	mi := &file_weather_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AlertMessage) ProtoMessage() {}

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

// Deprecated: Use AlertMessage.ProtoReflect.Descriptor instead.
func (*AlertMessage) Descriptor() ([]byte, []int) {
	return file_weather_proto_rawDescGZIP(), []int{2}
}

func (x *AlertMessage) GetType() AlertMessage_AlertType {
	if x != nil {
		return x.Type
	}
	return AlertMessage_UNKNOWN
}

func (x *AlertMessage) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

func (x *AlertMessage) GetValue() float64 {
	if x != nil {
		return x.Value
	}
	return 0
}

func (x *AlertMessage) GetTimestamp() int64 {
	if x != nil {
		return x.Timestamp
	}
	return 0
}

// 4. Authentication Metadata (AuthMetadata)
// *Note: Token is typically sent via gRPC Metadata, but defined here for completeness*
type AuthMetadata struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ApiToken      string                 `protobuf:"bytes,1,opt,name=api_token,json=apiToken,proto3" json:"api_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AuthMetadata) Reset() {
	*x = AuthMetadata{}
	mi := &file_weather_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AuthMetadata) ProtoMessage() {}

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

// Deprecated: Use AuthMetadata.ProtoReflect.Descriptor instead.
func (*AuthMetadata) Descriptor() ([]byte, []int) {
	return file_weather_proto_rawDescGZIP(), []int{3}
}

func (x *AuthMetadata) GetApiToken() string {
	if x != nil {
		return x.ApiToken
	}
	return ""
}

// Empty message
type Empty struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Empty) Reset() {
	*x = Empty{}
	mi := &file_weather_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Empty) ProtoMessage() {}

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

// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
func (*Empty) Descriptor() ([]byte, []int) {
	return file_weather_proto_rawDescGZIP(), []int{4}
}

var File_weather_proto protoreflect.FileDescriptor

const file_weather_proto_rawDesc = "" +
	"\n" +
	"\rweather.proto\x12\x0eweather_system\"\xc9\x01\n" +
	"\vWeatherData\x12/\n" +
	"\x13temperature_celsius\x18\x01 \x01(\x01R\x12temperatureCelsius\x12)\n" +
	"\x10humidity_percent\x18\x02 \x01(\x01R\x0fhumidityPercent\x12!\n" +
	"\fpressure_hpa\x18\x03 \x01(\x01R\vpressureHpa\x12\x1c\n" +
	"\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12\x1d\n" +
	"\n" +
	"station_id\x18\x05 \x01(\tR\tstationId\"\xe1\x01\n" +
	"\fWeatherStats\x12'\n" +
	"\x0favg_temperature\x18\x01 \x01(\x01R\x0eavgTemperature\x12!\n" +
	"\favg_humidity\x18\x02 \x01(\x01R\vavgHumidity\x12!\n" +
	"\favg_pressure\x18\x03 \x01(\x01R\vavgPressure\x12\x1f\n" +
	"\vreport_time\x18\x04 \x01(\x03R\n" +
	"reportTime\x12A\n" +
	"\rcurrent_alert\x18\x05 \x01(\v2\x1c.weather_system.AlertMessageR\fcurrentAlert\"\xf9\x01\n" +
	"\fAlertMessage\x12:\n" +
	"\x04type\x18\x01 \x01(\x0e2&.weather_system.AlertMessage.AlertTypeR\x04type\x12\x18\n" +
	"\amessage\x18\x02 \x01(\tR\amessage\x12\x14\n" +
	"\x05value\x18\x03 \x01(\x01R\x05value\x12\x1c\n" +
	"\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\"_\n" +
	"\tAlertType\x12\v\n" +
	"\aUNKNOWN\x10\x00\x12\x14\n" +
	"\x10HIGH_TEMPERATURE\x10\x01\x12\x10\n" +
	"\fLOW_PRESSURE\x10\x02\x12\x11\n" +
	"\rHIGH_HUMIDITY\x10\x03\x12\n" +
	"\n" +
	"\x06NORMAL\x10\x04\"+\n" +
	"\fAuthMetadata\x12\x1b\n" +
	"\tapi_token\x18\x01 \x01(\tR\bapiToken\"\a\n" +
	"\x05Empty2\xcb\x02\n" +
	"\x17WeatherAnalyticsService\x12P\n" +
	"\x11StreamWeatherData\x12\x1b.weather_system.WeatherData\x1a\x1c.weather_system.WeatherStats(\x01\x12H\n" +
	"\x0fStreamAnalytics\x12\x15.weather_system.Empty\x1a\x1c.weather_system.WeatherStats0\x01\x12D\n" +
	"\rGetLastReport\x12\x15.weather_system.Empty\x1a\x1c.weather_system.WeatherStats\x12N\n" +
	"\rControlSensor\x12\x1c.weather_system.AlertMessage\x1a\x1b.weather_system.WeatherData(\x010\x01B\x1aZ\x18sensor_go/weather_systemb\x06proto3"

var (
	file_weather_proto_rawDescOnce sync.Once
	file_weather_proto_rawDescData []byte
)

func file_weather_proto_rawDescGZIP() []byte {
	file_weather_proto_rawDescOnce.Do(func() {
		file_weather_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_weather_proto_rawDesc), len(file_weather_proto_rawDesc)))
	})
	return file_weather_proto_rawDescData
}

var file_weather_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_weather_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_weather_proto_goTypes = []any{
	(AlertMessage_AlertType)(0), // 0: weather_system.AlertMessage.AlertType
	(*WeatherData)(nil),         // 1: weather_system.WeatherData
	(*WeatherStats)(nil),        // 2: weather_system.WeatherStats
	(*AlertMessage)(nil),        // 3: weather_system.AlertMessage
	(*AuthMetadata)(nil),        // 4: weather_system.AuthMetadata
	(*Empty)(nil),               // 5: weather_system.Empty
}
var file_weather_proto_depIdxs = []int32{
	3, // 0: weather_system.WeatherStats.current_alert:type_name -> weather_system.AlertMessage
	0, // 1: weather_system.AlertMessage.type:type_name -> weather_system.AlertMessage.AlertType
	1, // 2: weather_system.WeatherAnalyticsService.StreamWeatherData:input_type -> weather_system.WeatherData
	5, // 3: weather_system.WeatherAnalyticsService.StreamAnalytics:input_type -> weather_system.Empty
	5, // 4: weather_system.WeatherAnalyticsService.GetLastReport:input_type -> weather_system.Empty
	3, // 5: weather_system.WeatherAnalyticsService.ControlSensor:input_type -> weather_system.AlertMessage
	2, // 6: weather_system.WeatherAnalyticsService.StreamWeatherData:output_type -> weather_system.WeatherStats
	2, // 7: weather_system.WeatherAnalyticsService.StreamAnalytics:output_type -> weather_system.WeatherStats
	2, // 8: weather_system.WeatherAnalyticsService.GetLastReport:output_type -> weather_system.WeatherStats
	1, // 9: weather_system.WeatherAnalyticsService.ControlSensor:output_type -> weather_system.WeatherData
	6, // [6:10] is the sub-list for method output_type
	2, // [2:6] 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_weather_proto_init() }
func file_weather_proto_init() {
	if File_weather_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_weather_proto_rawDesc), len(file_weather_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_weather_proto_goTypes,
		DependencyIndexes: file_weather_proto_depIdxs,
		EnumInfos:         file_weather_proto_enumTypes,
		MessageInfos:      file_weather_proto_msgTypes,
	}.Build()
	File_weather_proto = out.File
	file_weather_proto_goTypes = nil
	file_weather_proto_depIdxs = nil
}
