home-services/gen/ha/v1/common.pb.go

231 lines
6.7 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: ha/v1/common.proto
package hav1
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 EntityState struct {
state protoimpl.MessageState `protogen:"open.v1"`
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
LastChanged string `protobuf:"bytes,4,opt,name=last_changed,json=lastChanged,proto3" json:"last_changed,omitempty"` // RFC3339
LastUpdated string `protobuf:"bytes,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` // RFC3339
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EntityState) Reset() {
*x = EntityState{}
mi := &file_ha_v1_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EntityState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EntityState) ProtoMessage() {}
func (x *EntityState) ProtoReflect() protoreflect.Message {
mi := &file_ha_v1_common_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 EntityState.ProtoReflect.Descriptor instead.
func (*EntityState) Descriptor() ([]byte, []int) {
return file_ha_v1_common_proto_rawDescGZIP(), []int{0}
}
func (x *EntityState) GetEntityId() string {
if x != nil {
return x.EntityId
}
return ""
}
func (x *EntityState) GetState() string {
if x != nil {
return x.State
}
return ""
}
func (x *EntityState) GetAttributes() map[string]string {
if x != nil {
return x.Attributes
}
return nil
}
func (x *EntityState) GetLastChanged() string {
if x != nil {
return x.LastChanged
}
return ""
}
func (x *EntityState) GetLastUpdated() string {
if x != nil {
return x.LastUpdated
}
return ""
}
type RGBColor struct {
state protoimpl.MessageState `protogen:"open.v1"`
R uint32 `protobuf:"varint,1,opt,name=r,proto3" json:"r,omitempty"`
G uint32 `protobuf:"varint,2,opt,name=g,proto3" json:"g,omitempty"`
B uint32 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RGBColor) Reset() {
*x = RGBColor{}
mi := &file_ha_v1_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RGBColor) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RGBColor) ProtoMessage() {}
func (x *RGBColor) ProtoReflect() protoreflect.Message {
mi := &file_ha_v1_common_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 RGBColor.ProtoReflect.Descriptor instead.
func (*RGBColor) Descriptor() ([]byte, []int) {
return file_ha_v1_common_proto_rawDescGZIP(), []int{1}
}
func (x *RGBColor) GetR() uint32 {
if x != nil {
return x.R
}
return 0
}
func (x *RGBColor) GetG() uint32 {
if x != nil {
return x.G
}
return 0
}
func (x *RGBColor) GetB() uint32 {
if x != nil {
return x.B
}
return 0
}
var File_ha_v1_common_proto protoreflect.FileDescriptor
const file_ha_v1_common_proto_rawDesc = "" +
"\n" +
"\x12ha/v1/common.proto\x12\x05ha.v1\"\x89\x02\n" +
"\vEntityState\x12\x1b\n" +
"\tentity_id\x18\x01 \x01(\tR\bentityId\x12\x14\n" +
"\x05state\x18\x02 \x01(\tR\x05state\x12B\n" +
"\n" +
"attributes\x18\x03 \x03(\v2\".ha.v1.EntityState.AttributesEntryR\n" +
"attributes\x12!\n" +
"\flast_changed\x18\x04 \x01(\tR\vlastChanged\x12!\n" +
"\flast_updated\x18\x05 \x01(\tR\vlastUpdated\x1a=\n" +
"\x0fAttributesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"4\n" +
"\bRGBColor\x12\f\n" +
"\x01r\x18\x01 \x01(\rR\x01r\x12\f\n" +
"\x01g\x18\x02 \x01(\rR\x01g\x12\f\n" +
"\x01b\x18\x03 \x01(\rR\x01bB4Z2gitea.nik4nao.com/nik/home-services/gen/ha/v1;hav1b\x06proto3"
var (
file_ha_v1_common_proto_rawDescOnce sync.Once
file_ha_v1_common_proto_rawDescData []byte
)
func file_ha_v1_common_proto_rawDescGZIP() []byte {
file_ha_v1_common_proto_rawDescOnce.Do(func() {
file_ha_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ha_v1_common_proto_rawDesc), len(file_ha_v1_common_proto_rawDesc)))
})
return file_ha_v1_common_proto_rawDescData
}
var file_ha_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_ha_v1_common_proto_goTypes = []any{
(*EntityState)(nil), // 0: ha.v1.EntityState
(*RGBColor)(nil), // 1: ha.v1.RGBColor
nil, // 2: ha.v1.EntityState.AttributesEntry
}
var file_ha_v1_common_proto_depIdxs = []int32{
2, // 0: ha.v1.EntityState.attributes:type_name -> ha.v1.EntityState.AttributesEntry
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_ha_v1_common_proto_init() }
func file_ha_v1_common_proto_init() {
if File_ha_v1_common_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ha_v1_common_proto_rawDesc), len(file_ha_v1_common_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_ha_v1_common_proto_goTypes,
DependencyIndexes: file_ha_v1_common_proto_depIdxs,
MessageInfos: file_ha_v1_common_proto_msgTypes,
}.Build()
File_ha_v1_common_proto = out.File
file_ha_v1_common_proto_goTypes = nil
file_ha_v1_common_proto_depIdxs = nil
}