// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v6.33.2 // source: proto/victron.proto package pb 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 VictronRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ProductId string `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"` VrmId string `protobuf:"bytes,2,opt,name=vrmId,proto3" json:"vrmId,omitempty"` Serial string `protobuf:"bytes,3,opt,name=serial,proto3" json:"serial,omitempty"` Board string `protobuf:"bytes,4,opt,name=board,proto3" json:"board,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *VictronRequest) Reset() { *x = VictronRequest{} mi := &file_proto_victron_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *VictronRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*VictronRequest) ProtoMessage() {} func (x *VictronRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_victron_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 VictronRequest.ProtoReflect.Descriptor instead. func (*VictronRequest) Descriptor() ([]byte, []int) { return file_proto_victron_proto_rawDescGZIP(), []int{0} } func (x *VictronRequest) GetProductId() string { if x != nil { return x.ProductId } return "" } func (x *VictronRequest) GetVrmId() string { if x != nil { return x.VrmId } return "" } func (x *VictronRequest) GetSerial() string { if x != nil { return x.Serial } return "" } func (x *VictronRequest) GetBoard() string { if x != nil { return x.Board } return "" } type VictronReply struct { state protoimpl.MessageState `protogen:"open.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *VictronReply) Reset() { *x = VictronReply{} mi := &file_proto_victron_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *VictronReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*VictronReply) ProtoMessage() {} func (x *VictronReply) ProtoReflect() protoreflect.Message { mi := &file_proto_victron_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 VictronReply.ProtoReflect.Descriptor instead. func (*VictronReply) Descriptor() ([]byte, []int) { return file_proto_victron_proto_rawDescGZIP(), []int{1} } func (x *VictronReply) GetAuthorized() bool { if x != nil { return x.Authorized } return false } func (x *VictronReply) GetSubject() string { if x != nil { return x.Subject } return "" } var File_proto_victron_proto protoreflect.FileDescriptor const file_proto_victron_proto_rawDesc = "" + "\n" + "\x13proto/victron.proto\"r\n" + "\x0eVictronRequest\x12\x1c\n" + "\tproductId\x18\x01 \x01(\tR\tproductId\x12\x14\n" + "\x05vrmId\x18\x02 \x01(\tR\x05vrmId\x12\x16\n" + "\x06serial\x18\x03 \x01(\tR\x06serial\x12\x14\n" + "\x05board\x18\x04 \x01(\tR\x05board\"H\n" + "\fVictronReply\x12\x1e\n" + "\n" + "authorized\x18\x01 \x01(\bR\n" + "authorized\x12\x18\n" + "\asubject\x18\x02 \x01(\tR\asubject2<\n" + "\aVictron\x121\n" + "\rIsValidDevice\x12\x0f.VictronRequest\x1a\r.VictronReply\"\x00B\n" + "Z\bproto/pbb\x06proto3" var ( file_proto_victron_proto_rawDescOnce sync.Once file_proto_victron_proto_rawDescData []byte ) func file_proto_victron_proto_rawDescGZIP() []byte { file_proto_victron_proto_rawDescOnce.Do(func() { file_proto_victron_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_victron_proto_rawDesc), len(file_proto_victron_proto_rawDesc))) }) return file_proto_victron_proto_rawDescData } var file_proto_victron_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_proto_victron_proto_goTypes = []any{ (*VictronRequest)(nil), // 0: VictronRequest (*VictronReply)(nil), // 1: VictronReply } var file_proto_victron_proto_depIdxs = []int32{ 0, // 0: Victron.IsValidDevice:input_type -> VictronRequest 1, // 1: Victron.IsValidDevice:output_type -> VictronReply 1, // [1:2] is the sub-list for method output_type 0, // [0:1] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_proto_victron_proto_init() } func file_proto_victron_proto_init() { if File_proto_victron_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_victron_proto_rawDesc), len(file_proto_victron_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, GoTypes: file_proto_victron_proto_goTypes, DependencyIndexes: file_proto_victron_proto_depIdxs, MessageInfos: file_proto_victron_proto_msgTypes, }.Build() File_proto_victron_proto = out.File file_proto_victron_proto_goTypes = nil file_proto_victron_proto_depIdxs = nil }