505 lines
17 KiB
Go
505 lines
17 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: polestar.proto
|
|
|
|
// Polestar gRPC API (PCCS vehicle battery service).
|
|
//
|
|
// Polestar removed the chargingStatus field from the GraphQL carTelematicsV2
|
|
// API. The gRPC battery service still exposes the charger connection and
|
|
// charging status. Protocol reconstructed by the pypolestar project from the
|
|
// Polestar Android app, see https://github.com/pypolestar/pypolestar.
|
|
//
|
|
// The proto package name is significant: it forms the gRPC method path
|
|
// (/services.vehiclestates.battery.BatteryService/GetLatestBattery) expected
|
|
// by the server.
|
|
//
|
|
// Regenerate with:
|
|
// protoc --go_out=. --go_opt=paths=source_relative \
|
|
// --go-grpc_out=. --go-grpc_opt=paths=source_relative polestar.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 ChargerConnectionStatus int32
|
|
|
|
const (
|
|
ChargerConnectionStatus_CHARGER_CONNECTION_STATUS_UNSPECIFIED ChargerConnectionStatus = 0
|
|
ChargerConnectionStatus_CHARGER_CONNECTION_STATUS_CONNECTED ChargerConnectionStatus = 1
|
|
ChargerConnectionStatus_CHARGER_CONNECTION_STATUS_DISCONNECTED ChargerConnectionStatus = 2
|
|
ChargerConnectionStatus_CHARGER_CONNECTION_STATUS_FAULT ChargerConnectionStatus = 3
|
|
)
|
|
|
|
// Enum value maps for ChargerConnectionStatus.
|
|
var (
|
|
ChargerConnectionStatus_name = map[int32]string{
|
|
0: "CHARGER_CONNECTION_STATUS_UNSPECIFIED",
|
|
1: "CHARGER_CONNECTION_STATUS_CONNECTED",
|
|
2: "CHARGER_CONNECTION_STATUS_DISCONNECTED",
|
|
3: "CHARGER_CONNECTION_STATUS_FAULT",
|
|
}
|
|
ChargerConnectionStatus_value = map[string]int32{
|
|
"CHARGER_CONNECTION_STATUS_UNSPECIFIED": 0,
|
|
"CHARGER_CONNECTION_STATUS_CONNECTED": 1,
|
|
"CHARGER_CONNECTION_STATUS_DISCONNECTED": 2,
|
|
"CHARGER_CONNECTION_STATUS_FAULT": 3,
|
|
}
|
|
)
|
|
|
|
func (x ChargerConnectionStatus) Enum() *ChargerConnectionStatus {
|
|
p := new(ChargerConnectionStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ChargerConnectionStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ChargerConnectionStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_polestar_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ChargerConnectionStatus) Type() protoreflect.EnumType {
|
|
return &file_polestar_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x ChargerConnectionStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ChargerConnectionStatus.Descriptor instead.
|
|
func (ChargerConnectionStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_polestar_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ChargingStatus int32
|
|
|
|
const (
|
|
ChargingStatus_CHARGING_STATUS_UNSPECIFIED ChargingStatus = 0
|
|
ChargingStatus_CHARGING_STATUS_CHARGING ChargingStatus = 1
|
|
ChargingStatus_CHARGING_STATUS_IDLE ChargingStatus = 2
|
|
ChargingStatus_CHARGING_STATUS_DONE ChargingStatus = 3
|
|
ChargingStatus_CHARGING_STATUS_FAULT ChargingStatus = 4
|
|
ChargingStatus_CHARGING_STATUS_SCHEDULED ChargingStatus = 5
|
|
ChargingStatus_CHARGING_STATUS_DISCHARGING ChargingStatus = 6
|
|
ChargingStatus_CHARGING_STATUS_ERROR ChargingStatus = 7
|
|
ChargingStatus_CHARGING_STATUS_SMART_CHARGING ChargingStatus = 8
|
|
)
|
|
|
|
// Enum value maps for ChargingStatus.
|
|
var (
|
|
ChargingStatus_name = map[int32]string{
|
|
0: "CHARGING_STATUS_UNSPECIFIED",
|
|
1: "CHARGING_STATUS_CHARGING",
|
|
2: "CHARGING_STATUS_IDLE",
|
|
3: "CHARGING_STATUS_DONE",
|
|
4: "CHARGING_STATUS_FAULT",
|
|
5: "CHARGING_STATUS_SCHEDULED",
|
|
6: "CHARGING_STATUS_DISCHARGING",
|
|
7: "CHARGING_STATUS_ERROR",
|
|
8: "CHARGING_STATUS_SMART_CHARGING",
|
|
}
|
|
ChargingStatus_value = map[string]int32{
|
|
"CHARGING_STATUS_UNSPECIFIED": 0,
|
|
"CHARGING_STATUS_CHARGING": 1,
|
|
"CHARGING_STATUS_IDLE": 2,
|
|
"CHARGING_STATUS_DONE": 3,
|
|
"CHARGING_STATUS_FAULT": 4,
|
|
"CHARGING_STATUS_SCHEDULED": 5,
|
|
"CHARGING_STATUS_DISCHARGING": 6,
|
|
"CHARGING_STATUS_ERROR": 7,
|
|
"CHARGING_STATUS_SMART_CHARGING": 8,
|
|
}
|
|
)
|
|
|
|
func (x ChargingStatus) Enum() *ChargingStatus {
|
|
p := new(ChargingStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ChargingStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ChargingStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_polestar_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (ChargingStatus) Type() protoreflect.EnumType {
|
|
return &file_polestar_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x ChargingStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ChargingStatus.Descriptor instead.
|
|
func (ChargingStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_polestar_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type Timestamp struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
|
|
Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Timestamp) Reset() {
|
|
*x = Timestamp{}
|
|
mi := &file_polestar_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Timestamp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Timestamp) ProtoMessage() {}
|
|
|
|
func (x *Timestamp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_polestar_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 Timestamp.ProtoReflect.Descriptor instead.
|
|
func (*Timestamp) Descriptor() ([]byte, []int) {
|
|
return file_polestar_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Timestamp) GetSeconds() int64 {
|
|
if x != nil {
|
|
return x.Seconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Timestamp) GetNanos() int32 {
|
|
if x != nil {
|
|
return x.Nanos
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Battery struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Timestamp *Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
BatteryChargeLevelPercentage float64 `protobuf:"fixed64,2,opt,name=battery_charge_level_percentage,json=batteryChargeLevelPercentage,proto3" json:"battery_charge_level_percentage,omitempty"`
|
|
EstimatedDistanceToEmptyKm int32 `protobuf:"varint,4,opt,name=estimated_distance_to_empty_km,json=estimatedDistanceToEmptyKm,proto3" json:"estimated_distance_to_empty_km,omitempty"`
|
|
EstimatedChargingTimeToFullMinutes int32 `protobuf:"varint,5,opt,name=estimated_charging_time_to_full_minutes,json=estimatedChargingTimeToFullMinutes,proto3" json:"estimated_charging_time_to_full_minutes,omitempty"`
|
|
ChargerConnectionStatus ChargerConnectionStatus `protobuf:"varint,6,opt,name=charger_connection_status,json=chargerConnectionStatus,proto3,enum=services.vehiclestates.battery.ChargerConnectionStatus" json:"charger_connection_status,omitempty"`
|
|
ChargingStatus ChargingStatus `protobuf:"varint,7,opt,name=charging_status,json=chargingStatus,proto3,enum=services.vehiclestates.battery.ChargingStatus" json:"charging_status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Battery) Reset() {
|
|
*x = Battery{}
|
|
mi := &file_polestar_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Battery) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Battery) ProtoMessage() {}
|
|
|
|
func (x *Battery) ProtoReflect() protoreflect.Message {
|
|
mi := &file_polestar_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 Battery.ProtoReflect.Descriptor instead.
|
|
func (*Battery) Descriptor() ([]byte, []int) {
|
|
return file_polestar_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Battery) GetTimestamp() *Timestamp {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Battery) GetBatteryChargeLevelPercentage() float64 {
|
|
if x != nil {
|
|
return x.BatteryChargeLevelPercentage
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Battery) GetEstimatedDistanceToEmptyKm() int32 {
|
|
if x != nil {
|
|
return x.EstimatedDistanceToEmptyKm
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Battery) GetEstimatedChargingTimeToFullMinutes() int32 {
|
|
if x != nil {
|
|
return x.EstimatedChargingTimeToFullMinutes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Battery) GetChargerConnectionStatus() ChargerConnectionStatus {
|
|
if x != nil {
|
|
return x.ChargerConnectionStatus
|
|
}
|
|
return ChargerConnectionStatus_CHARGER_CONNECTION_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Battery) GetChargingStatus() ChargingStatus {
|
|
if x != nil {
|
|
return x.ChargingStatus
|
|
}
|
|
return ChargingStatus_CHARGING_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
type GetBatteryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Vin string `protobuf:"bytes,2,opt,name=vin,proto3" json:"vin,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetBatteryRequest) Reset() {
|
|
*x = GetBatteryRequest{}
|
|
mi := &file_polestar_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetBatteryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetBatteryRequest) ProtoMessage() {}
|
|
|
|
func (x *GetBatteryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_polestar_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 GetBatteryRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetBatteryRequest) Descriptor() ([]byte, []int) {
|
|
return file_polestar_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetBatteryRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetBatteryRequest) GetVin() string {
|
|
if x != nil {
|
|
return x.Vin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetBatteryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Vin string `protobuf:"bytes,2,opt,name=vin,proto3" json:"vin,omitempty"`
|
|
Battery *Battery `protobuf:"bytes,3,opt,name=battery,proto3" json:"battery,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetBatteryResponse) Reset() {
|
|
*x = GetBatteryResponse{}
|
|
mi := &file_polestar_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetBatteryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetBatteryResponse) ProtoMessage() {}
|
|
|
|
func (x *GetBatteryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_polestar_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 GetBatteryResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetBatteryResponse) Descriptor() ([]byte, []int) {
|
|
return file_polestar_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetBatteryResponse) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetBatteryResponse) GetVin() string {
|
|
if x != nil {
|
|
return x.Vin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetBatteryResponse) GetBattery() *Battery {
|
|
if x != nil {
|
|
return x.Battery
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_polestar_proto protoreflect.FileDescriptor
|
|
|
|
const file_polestar_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0epolestar.proto\x12\x1eservices.vehiclestates.battery\";\n" +
|
|
"\tTimestamp\x12\x18\n" +
|
|
"\aseconds\x18\x01 \x01(\x03R\aseconds\x12\x14\n" +
|
|
"\x05nanos\x18\x02 \x01(\x05R\x05nanos\"\x80\x04\n" +
|
|
"\aBattery\x12G\n" +
|
|
"\ttimestamp\x18\x01 \x01(\v2).services.vehiclestates.battery.TimestampR\ttimestamp\x12E\n" +
|
|
"\x1fbattery_charge_level_percentage\x18\x02 \x01(\x01R\x1cbatteryChargeLevelPercentage\x12B\n" +
|
|
"\x1eestimated_distance_to_empty_km\x18\x04 \x01(\x05R\x1aestimatedDistanceToEmptyKm\x12S\n" +
|
|
"'estimated_charging_time_to_full_minutes\x18\x05 \x01(\x05R\"estimatedChargingTimeToFullMinutes\x12s\n" +
|
|
"\x19charger_connection_status\x18\x06 \x01(\x0e27.services.vehiclestates.battery.ChargerConnectionStatusR\x17chargerConnectionStatus\x12W\n" +
|
|
"\x0fcharging_status\x18\a \x01(\x0e2..services.vehiclestates.battery.ChargingStatusR\x0echargingStatus\"5\n" +
|
|
"\x11GetBatteryRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n" +
|
|
"\x03vin\x18\x02 \x01(\tR\x03vin\"y\n" +
|
|
"\x12GetBatteryResponse\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n" +
|
|
"\x03vin\x18\x02 \x01(\tR\x03vin\x12A\n" +
|
|
"\abattery\x18\x03 \x01(\v2'.services.vehiclestates.battery.BatteryR\abattery*\xbe\x01\n" +
|
|
"\x17ChargerConnectionStatus\x12)\n" +
|
|
"%CHARGER_CONNECTION_STATUS_UNSPECIFIED\x10\x00\x12'\n" +
|
|
"#CHARGER_CONNECTION_STATUS_CONNECTED\x10\x01\x12*\n" +
|
|
"&CHARGER_CONNECTION_STATUS_DISCONNECTED\x10\x02\x12#\n" +
|
|
"\x1fCHARGER_CONNECTION_STATUS_FAULT\x10\x03*\x9d\x02\n" +
|
|
"\x0eChargingStatus\x12\x1f\n" +
|
|
"\x1bCHARGING_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n" +
|
|
"\x18CHARGING_STATUS_CHARGING\x10\x01\x12\x18\n" +
|
|
"\x14CHARGING_STATUS_IDLE\x10\x02\x12\x18\n" +
|
|
"\x14CHARGING_STATUS_DONE\x10\x03\x12\x19\n" +
|
|
"\x15CHARGING_STATUS_FAULT\x10\x04\x12\x1d\n" +
|
|
"\x19CHARGING_STATUS_SCHEDULED\x10\x05\x12\x1f\n" +
|
|
"\x1bCHARGING_STATUS_DISCHARGING\x10\x06\x12\x19\n" +
|
|
"\x15CHARGING_STATUS_ERROR\x10\a\x12\"\n" +
|
|
"\x1eCHARGING_STATUS_SMART_CHARGING\x10\b2\x8b\x01\n" +
|
|
"\x0eBatteryService\x12y\n" +
|
|
"\x10GetLatestBattery\x121.services.vehiclestates.battery.GetBatteryRequest\x1a2.services.vehiclestates.battery.GetBatteryResponseB-Z+github.com/evcc-io/evcc/vehicle/polestar/pbb\x06proto3"
|
|
|
|
var (
|
|
file_polestar_proto_rawDescOnce sync.Once
|
|
file_polestar_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_polestar_proto_rawDescGZIP() []byte {
|
|
file_polestar_proto_rawDescOnce.Do(func() {
|
|
file_polestar_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_polestar_proto_rawDesc), len(file_polestar_proto_rawDesc)))
|
|
})
|
|
return file_polestar_proto_rawDescData
|
|
}
|
|
|
|
var file_polestar_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_polestar_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_polestar_proto_goTypes = []any{
|
|
(ChargerConnectionStatus)(0), // 0: services.vehiclestates.battery.ChargerConnectionStatus
|
|
(ChargingStatus)(0), // 1: services.vehiclestates.battery.ChargingStatus
|
|
(*Timestamp)(nil), // 2: services.vehiclestates.battery.Timestamp
|
|
(*Battery)(nil), // 3: services.vehiclestates.battery.Battery
|
|
(*GetBatteryRequest)(nil), // 4: services.vehiclestates.battery.GetBatteryRequest
|
|
(*GetBatteryResponse)(nil), // 5: services.vehiclestates.battery.GetBatteryResponse
|
|
}
|
|
var file_polestar_proto_depIdxs = []int32{
|
|
2, // 0: services.vehiclestates.battery.Battery.timestamp:type_name -> services.vehiclestates.battery.Timestamp
|
|
0, // 1: services.vehiclestates.battery.Battery.charger_connection_status:type_name -> services.vehiclestates.battery.ChargerConnectionStatus
|
|
1, // 2: services.vehiclestates.battery.Battery.charging_status:type_name -> services.vehiclestates.battery.ChargingStatus
|
|
3, // 3: services.vehiclestates.battery.GetBatteryResponse.battery:type_name -> services.vehiclestates.battery.Battery
|
|
4, // 4: services.vehiclestates.battery.BatteryService.GetLatestBattery:input_type -> services.vehiclestates.battery.GetBatteryRequest
|
|
5, // 5: services.vehiclestates.battery.BatteryService.GetLatestBattery:output_type -> services.vehiclestates.battery.GetBatteryResponse
|
|
5, // [5:6] is the sub-list for method output_type
|
|
4, // [4:5] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_polestar_proto_init() }
|
|
func file_polestar_proto_init() {
|
|
if File_polestar_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_polestar_proto_rawDesc), len(file_polestar_proto_rawDesc)),
|
|
NumEnums: 2,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_polestar_proto_goTypes,
|
|
DependencyIndexes: file_polestar_proto_depIdxs,
|
|
EnumInfos: file_polestar_proto_enumTypes,
|
|
MessageInfos: file_polestar_proto_msgTypes,
|
|
}.Build()
|
|
File_polestar_proto = out.File
|
|
file_polestar_proto_goTypes = nil
|
|
file_polestar_proto_depIdxs = nil
|
|
}
|