@teslemetry/tesla-protocol 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charging/charging.cjs +550 -0
- package/dist/charging/charging.d.cts +75 -0
- package/dist/charging/charging.d.mts +75 -0
- package/dist/charging/charging.mjs +543 -0
- package/dist/command/universal_message.cjs +5 -0
- package/dist/command/universal_message.d.cts +2 -0
- package/dist/command/universal_message.d.mts +2 -0
- package/dist/command/universal_message.mjs +5 -0
- package/dist/command/vcsec.cjs +87 -2
- package/dist/command/vcsec.d.cts +11 -1
- package/dist/command/vcsec.d.mts +11 -1
- package/dist/command/vcsec.mjs +86 -3
- package/dist/command/vehicle.cjs +27 -0
- package/dist/command/vehicle.d.cts +4 -0
- package/dist/command/vehicle.d.mts +4 -0
- package/dist/command/vehicle.mjs +27 -0
- package/dist/dashcam/dashcam_sei.cjs +263 -0
- package/dist/dashcam/dashcam_sei.d.cts +60 -0
- package/dist/dashcam/dashcam_sei.d.mts +60 -0
- package/dist/dashcam/dashcam_sei.mjs +255 -0
- package/dist/energy_device/common_api.cjs +604 -11
- package/dist/energy_device/common_api.d.cts +60 -3
- package/dist/energy_device/common_api.d.mts +60 -3
- package/dist/energy_device/common_api.mjs +596 -12
- package/dist/energy_device/device.cjs +129 -0
- package/dist/energy_device/device.d.cts +13 -1
- package/dist/energy_device/device.d.mts +13 -1
- package/dist/energy_device/device.mjs +127 -1
- package/dist/energy_device/energy_site_net.cjs +747 -0
- package/dist/energy_device/energy_site_net.d.cts +84 -1
- package/dist/energy_device/energy_site_net.d.mts +84 -1
- package/dist/energy_device/energy_site_net.mjs +736 -1
- package/dist/energy_device/filestore_api.cjs +575 -0
- package/dist/energy_device/filestore_api.d.cts +81 -0
- package/dist/energy_device/filestore_api.d.mts +81 -0
- package/dist/energy_device/filestore_api.mjs +563 -0
- package/dist/energy_device/google/protobuf/duration.cjs +71 -0
- package/dist/energy_device/google/protobuf/duration.d.cts +95 -0
- package/dist/energy_device/google/protobuf/duration.d.mts +95 -0
- package/dist/energy_device/google/protobuf/duration.mjs +69 -0
- package/dist/energy_device/graphql_api.cjs +449 -0
- package/dist/energy_device/graphql_api.d.cts +78 -0
- package/dist/energy_device/graphql_api.d.mts +78 -0
- package/dist/energy_device/graphql_api.mjs +434 -0
- package/dist/energy_device/intra_site_api.cjs +1698 -0
- package/dist/energy_device/intra_site_api.d.cts +227 -0
- package/dist/energy_device/intra_site_api.d.mts +227 -0
- package/dist/energy_device/intra_site_api.mjs +1644 -0
- package/dist/energy_device/local_auth_api.cjs +505 -0
- package/dist/energy_device/local_auth_api.d.cts +73 -0
- package/dist/energy_device/local_auth_api.d.mts +73 -0
- package/dist/energy_device/local_auth_api.mjs +492 -0
- package/dist/energy_device/networking.cjs +20 -2
- package/dist/energy_device/networking.d.cts +2 -0
- package/dist/energy_device/networking.d.mts +2 -0
- package/dist/energy_device/networking.mjs +20 -2
- package/dist/energy_device/neurio_meter_api.cjs +1442 -0
- package/dist/energy_device/neurio_meter_api.d.cts +202 -0
- package/dist/energy_device/neurio_meter_api.d.mts +202 -0
- package/dist/energy_device/neurio_meter_api.mjs +1401 -0
- package/dist/energy_device/pvi_api.cjs +2954 -0
- package/dist/energy_device/pvi_api.d.cts +319 -0
- package/dist/energy_device/pvi_api.d.mts +319 -0
- package/dist/energy_device/pvi_api.mjs +2892 -0
- package/dist/energy_device/teg_api.cjs +5184 -147
- package/dist/energy_device/teg_api.d.cts +492 -77
- package/dist/energy_device/teg_api.d.mts +492 -77
- package/dist/energy_device/teg_api.mjs +5064 -148
- package/dist/energy_device/transport.cjs +82 -2
- package/dist/energy_device/transport.d.cts +16 -5
- package/dist/energy_device/transport.d.mts +16 -5
- package/dist/energy_device/transport.mjs +82 -2
- package/dist/energy_device/update.cjs +33 -6
- package/dist/energy_device/update.d.cts +3 -0
- package/dist/energy_device/update.d.mts +3 -0
- package/dist/energy_device/update.mjs +33 -6
- package/dist/energy_device/wall_connector.cjs +6729 -5
- package/dist/energy_device/wall_connector.d.cts +696 -2
- package/dist/energy_device/wall_connector.d.mts +696 -2
- package/dist/energy_device/wall_connector.mjs +6591 -6
- package/package.json +1 -1
|
@@ -0,0 +1,2892 @@
|
|
|
1
|
+
import { EcuId } from "./device.mjs";
|
|
2
|
+
import { FloatValue } from "./google/protobuf/wrappers.mjs";
|
|
3
|
+
import { NetworkInterface, NetworkInterfaceIPv4Config, WifiConfig } from "./networking.mjs";
|
|
4
|
+
import { FirmwareVersion } from "./update.mjs";
|
|
5
|
+
import { AccumulatedEnergy, GridComplianceStatus, InstACMeasurement, InstDCMeasurement } from "./energy.mjs";
|
|
6
|
+
import { NeurioMeterInterface } from "./neurio_meter_api.mjs";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
//#region src/energy_device/pvi_api.ts
|
|
9
|
+
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
10
|
+
/**
|
|
11
|
+
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
12
|
+
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
13
|
+
* observations and contributions from the community
|
|
14
|
+
*/
|
|
15
|
+
let PVInverterSolarInstallationType = /* @__PURE__ */ function(PVInverterSolarInstallationType) {
|
|
16
|
+
PVInverterSolarInstallationType[PVInverterSolarInstallationType["PV_INVERTER_SOLAR_INSTALLATION_TYPE_INVALID"] = 0] = "PV_INVERTER_SOLAR_INSTALLATION_TYPE_INVALID";
|
|
17
|
+
PVInverterSolarInstallationType[PVInverterSolarInstallationType["PV_INVERTER_SOLAR_INSTALLATION_TYPE_PV_PANEL"] = 1] = "PV_INVERTER_SOLAR_INSTALLATION_TYPE_PV_PANEL";
|
|
18
|
+
PVInverterSolarInstallationType[PVInverterSolarInstallationType["PV_INVERTER_SOLAR_INSTALLATION_TYPE_SOLARGLASS"] = 2] = "PV_INVERTER_SOLAR_INSTALLATION_TYPE_SOLARGLASS";
|
|
19
|
+
PVInverterSolarInstallationType[PVInverterSolarInstallationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
20
|
+
return PVInverterSolarInstallationType;
|
|
21
|
+
}({});
|
|
22
|
+
function pVInverterSolarInstallationTypeFromJSON(object) {
|
|
23
|
+
switch (object) {
|
|
24
|
+
case 0:
|
|
25
|
+
case "PV_INVERTER_SOLAR_INSTALLATION_TYPE_INVALID": return 0;
|
|
26
|
+
case 1:
|
|
27
|
+
case "PV_INVERTER_SOLAR_INSTALLATION_TYPE_PV_PANEL": return 1;
|
|
28
|
+
case 2:
|
|
29
|
+
case "PV_INVERTER_SOLAR_INSTALLATION_TYPE_SOLARGLASS": return 2;
|
|
30
|
+
default: return -1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function pVInverterSolarInstallationTypeToJSON(object) {
|
|
34
|
+
switch (object) {
|
|
35
|
+
case 0: return "PV_INVERTER_SOLAR_INSTALLATION_TYPE_INVALID";
|
|
36
|
+
case 1: return "PV_INVERTER_SOLAR_INSTALLATION_TYPE_PV_PANEL";
|
|
37
|
+
case 2: return "PV_INVERTER_SOLAR_INSTALLATION_TYPE_SOLARGLASS";
|
|
38
|
+
default: return "UNRECOGNIZED";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
let PVInverterPowerStatus = /* @__PURE__ */ function(PVInverterPowerStatus) {
|
|
42
|
+
PVInverterPowerStatus[PVInverterPowerStatus["PV_INVERTER_POWER_STATUS_INVALID"] = 0] = "PV_INVERTER_POWER_STATUS_INVALID";
|
|
43
|
+
PVInverterPowerStatus[PVInverterPowerStatus["PV_INVERTER_POWER_STATUS_OFF"] = 1] = "PV_INVERTER_POWER_STATUS_OFF";
|
|
44
|
+
PVInverterPowerStatus[PVInverterPowerStatus["PV_INVERTER_POWER_STATUS_DC_CONNECTED"] = 2] = "PV_INVERTER_POWER_STATUS_DC_CONNECTED";
|
|
45
|
+
PVInverterPowerStatus[PVInverterPowerStatus["PV_INVERTER_POWER_STATUS_AC_PRODUCING"] = 3] = "PV_INVERTER_POWER_STATUS_AC_PRODUCING";
|
|
46
|
+
PVInverterPowerStatus[PVInverterPowerStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
47
|
+
return PVInverterPowerStatus;
|
|
48
|
+
}({});
|
|
49
|
+
function pVInverterPowerStatusFromJSON(object) {
|
|
50
|
+
switch (object) {
|
|
51
|
+
case 0:
|
|
52
|
+
case "PV_INVERTER_POWER_STATUS_INVALID": return 0;
|
|
53
|
+
case 1:
|
|
54
|
+
case "PV_INVERTER_POWER_STATUS_OFF": return 1;
|
|
55
|
+
case 2:
|
|
56
|
+
case "PV_INVERTER_POWER_STATUS_DC_CONNECTED": return 2;
|
|
57
|
+
case 3:
|
|
58
|
+
case "PV_INVERTER_POWER_STATUS_AC_PRODUCING": return 3;
|
|
59
|
+
default: return -1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function pVInverterPowerStatusToJSON(object) {
|
|
63
|
+
switch (object) {
|
|
64
|
+
case 0: return "PV_INVERTER_POWER_STATUS_INVALID";
|
|
65
|
+
case 1: return "PV_INVERTER_POWER_STATUS_OFF";
|
|
66
|
+
case 2: return "PV_INVERTER_POWER_STATUS_DC_CONNECTED";
|
|
67
|
+
case 3: return "PV_INVERTER_POWER_STATUS_AC_PRODUCING";
|
|
68
|
+
default: return "UNRECOGNIZED";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
let PVInverterEcuResetStatus = /* @__PURE__ */ function(PVInverterEcuResetStatus) {
|
|
72
|
+
PVInverterEcuResetStatus[PVInverterEcuResetStatus["PV_INVERTER_ECU_RESET_STATUS_INVALID"] = 0] = "PV_INVERTER_ECU_RESET_STATUS_INVALID";
|
|
73
|
+
PVInverterEcuResetStatus[PVInverterEcuResetStatus["PV_INVERTER_ECU_RESET_STATUS_NONE"] = 1] = "PV_INVERTER_ECU_RESET_STATUS_NONE";
|
|
74
|
+
PVInverterEcuResetStatus[PVInverterEcuResetStatus["PV_INVERTER_ECU_RESET_STATUS_SUCCESS"] = 2] = "PV_INVERTER_ECU_RESET_STATUS_SUCCESS";
|
|
75
|
+
PVInverterEcuResetStatus[PVInverterEcuResetStatus["PV_INVERTER_ECU_RESET_STATUS_PROCESSING"] = 3] = "PV_INVERTER_ECU_RESET_STATUS_PROCESSING";
|
|
76
|
+
PVInverterEcuResetStatus[PVInverterEcuResetStatus["PV_INVERTER_ECU_RESET_STATUS_UNKNOWN_FAILURE"] = 4] = "PV_INVERTER_ECU_RESET_STATUS_UNKNOWN_FAILURE";
|
|
77
|
+
PVInverterEcuResetStatus[PVInverterEcuResetStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
78
|
+
return PVInverterEcuResetStatus;
|
|
79
|
+
}({});
|
|
80
|
+
function pVInverterEcuResetStatusFromJSON(object) {
|
|
81
|
+
switch (object) {
|
|
82
|
+
case 0:
|
|
83
|
+
case "PV_INVERTER_ECU_RESET_STATUS_INVALID": return 0;
|
|
84
|
+
case 1:
|
|
85
|
+
case "PV_INVERTER_ECU_RESET_STATUS_NONE": return 1;
|
|
86
|
+
case 2:
|
|
87
|
+
case "PV_INVERTER_ECU_RESET_STATUS_SUCCESS": return 2;
|
|
88
|
+
case 3:
|
|
89
|
+
case "PV_INVERTER_ECU_RESET_STATUS_PROCESSING": return 3;
|
|
90
|
+
case 4:
|
|
91
|
+
case "PV_INVERTER_ECU_RESET_STATUS_UNKNOWN_FAILURE": return 4;
|
|
92
|
+
default: return -1;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function pVInverterEcuResetStatusToJSON(object) {
|
|
96
|
+
switch (object) {
|
|
97
|
+
case 0: return "PV_INVERTER_ECU_RESET_STATUS_INVALID";
|
|
98
|
+
case 1: return "PV_INVERTER_ECU_RESET_STATUS_NONE";
|
|
99
|
+
case 2: return "PV_INVERTER_ECU_RESET_STATUS_SUCCESS";
|
|
100
|
+
case 3: return "PV_INVERTER_ECU_RESET_STATUS_PROCESSING";
|
|
101
|
+
case 4: return "PV_INVERTER_ECU_RESET_STATUS_UNKNOWN_FAILURE";
|
|
102
|
+
default: return "UNRECOGNIZED";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
let PVInverterEcu = /* @__PURE__ */ function(PVInverterEcu) {
|
|
106
|
+
PVInverterEcu[PVInverterEcu["PV_INVERTER_ECU_INVALID"] = 0] = "PV_INVERTER_ECU_INVALID";
|
|
107
|
+
PVInverterEcu[PVInverterEcu["PV_INVERTER_ECU_PVCOM"] = 1] = "PV_INVERTER_ECU_PVCOM";
|
|
108
|
+
PVInverterEcu[PVInverterEcu["PV_INVERTER_ECU_PVAC"] = 2] = "PV_INVERTER_ECU_PVAC";
|
|
109
|
+
PVInverterEcu[PVInverterEcu["PV_INVERTER_ECU_PVS"] = 3] = "PV_INVERTER_ECU_PVS";
|
|
110
|
+
PVInverterEcu[PVInverterEcu["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
111
|
+
return PVInverterEcu;
|
|
112
|
+
}({});
|
|
113
|
+
function pVInverterEcuFromJSON(object) {
|
|
114
|
+
switch (object) {
|
|
115
|
+
case 0:
|
|
116
|
+
case "PV_INVERTER_ECU_INVALID": return 0;
|
|
117
|
+
case 1:
|
|
118
|
+
case "PV_INVERTER_ECU_PVCOM": return 1;
|
|
119
|
+
case 2:
|
|
120
|
+
case "PV_INVERTER_ECU_PVAC": return 2;
|
|
121
|
+
case 3:
|
|
122
|
+
case "PV_INVERTER_ECU_PVS": return 3;
|
|
123
|
+
default: return -1;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function pVInverterEcuToJSON(object) {
|
|
127
|
+
switch (object) {
|
|
128
|
+
case 0: return "PV_INVERTER_ECU_INVALID";
|
|
129
|
+
case 1: return "PV_INVERTER_ECU_PVCOM";
|
|
130
|
+
case 2: return "PV_INVERTER_ECU_PVAC";
|
|
131
|
+
case 3: return "PV_INVERTER_ECU_PVS";
|
|
132
|
+
default: return "UNRECOGNIZED";
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
let PVInverterClearLogsStatus = /* @__PURE__ */ function(PVInverterClearLogsStatus) {
|
|
136
|
+
PVInverterClearLogsStatus[PVInverterClearLogsStatus["PV_INVERTER_CLEAR_LOGS_STATUS_INVALID"] = 0] = "PV_INVERTER_CLEAR_LOGS_STATUS_INVALID";
|
|
137
|
+
PVInverterClearLogsStatus[PVInverterClearLogsStatus["PV_INVERTER_CLEAR_LOGS_STATUS_NONE"] = 1] = "PV_INVERTER_CLEAR_LOGS_STATUS_NONE";
|
|
138
|
+
PVInverterClearLogsStatus[PVInverterClearLogsStatus["PV_INVERTER_CLEAR_LOGS_STATUS_FAILURE"] = 2] = "PV_INVERTER_CLEAR_LOGS_STATUS_FAILURE";
|
|
139
|
+
PVInverterClearLogsStatus[PVInverterClearLogsStatus["PV_INVERTER_CLEAR_LOGS_STATUS_SUCCESS"] = 3] = "PV_INVERTER_CLEAR_LOGS_STATUS_SUCCESS";
|
|
140
|
+
PVInverterClearLogsStatus[PVInverterClearLogsStatus["PV_INVERTER_CLEAR_LOGS_STATUS_ATTEMPTED"] = 4] = "PV_INVERTER_CLEAR_LOGS_STATUS_ATTEMPTED";
|
|
141
|
+
PVInverterClearLogsStatus[PVInverterClearLogsStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
142
|
+
return PVInverterClearLogsStatus;
|
|
143
|
+
}({});
|
|
144
|
+
function pVInverterClearLogsStatusFromJSON(object) {
|
|
145
|
+
switch (object) {
|
|
146
|
+
case 0:
|
|
147
|
+
case "PV_INVERTER_CLEAR_LOGS_STATUS_INVALID": return 0;
|
|
148
|
+
case 1:
|
|
149
|
+
case "PV_INVERTER_CLEAR_LOGS_STATUS_NONE": return 1;
|
|
150
|
+
case 2:
|
|
151
|
+
case "PV_INVERTER_CLEAR_LOGS_STATUS_FAILURE": return 2;
|
|
152
|
+
case 3:
|
|
153
|
+
case "PV_INVERTER_CLEAR_LOGS_STATUS_SUCCESS": return 3;
|
|
154
|
+
case 4:
|
|
155
|
+
case "PV_INVERTER_CLEAR_LOGS_STATUS_ATTEMPTED": return 4;
|
|
156
|
+
default: return -1;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function pVInverterClearLogsStatusToJSON(object) {
|
|
160
|
+
switch (object) {
|
|
161
|
+
case 0: return "PV_INVERTER_CLEAR_LOGS_STATUS_INVALID";
|
|
162
|
+
case 1: return "PV_INVERTER_CLEAR_LOGS_STATUS_NONE";
|
|
163
|
+
case 2: return "PV_INVERTER_CLEAR_LOGS_STATUS_FAILURE";
|
|
164
|
+
case 3: return "PV_INVERTER_CLEAR_LOGS_STATUS_SUCCESS";
|
|
165
|
+
case 4: return "PV_INVERTER_CLEAR_LOGS_STATUS_ATTEMPTED";
|
|
166
|
+
default: return "UNRECOGNIZED";
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function createBasePVStringVitals() {
|
|
170
|
+
return {
|
|
171
|
+
dcMeasurement: void 0,
|
|
172
|
+
stringId: 0,
|
|
173
|
+
connected: false,
|
|
174
|
+
lockedOut: false
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
const PVStringVitals = {
|
|
178
|
+
encode(message, writer = new BinaryWriter()) {
|
|
179
|
+
if (message.dcMeasurement !== void 0) InstDCMeasurement.encode(message.dcMeasurement, writer.uint32(10).fork()).join();
|
|
180
|
+
if (message.stringId !== 0) writer.uint32(16).uint32(message.stringId);
|
|
181
|
+
if (message.connected !== false) writer.uint32(24).bool(message.connected);
|
|
182
|
+
if (message.lockedOut !== false) writer.uint32(32).bool(message.lockedOut);
|
|
183
|
+
return writer;
|
|
184
|
+
},
|
|
185
|
+
decode(input, length) {
|
|
186
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
187
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBasePVStringVitals();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1:
|
|
193
|
+
if (tag !== 10) break;
|
|
194
|
+
message.dcMeasurement = InstDCMeasurement.decode(reader, reader.uint32());
|
|
195
|
+
continue;
|
|
196
|
+
case 2:
|
|
197
|
+
if (tag !== 16) break;
|
|
198
|
+
message.stringId = reader.uint32();
|
|
199
|
+
continue;
|
|
200
|
+
case 3:
|
|
201
|
+
if (tag !== 24) break;
|
|
202
|
+
message.connected = reader.bool();
|
|
203
|
+
continue;
|
|
204
|
+
case 4:
|
|
205
|
+
if (tag !== 32) break;
|
|
206
|
+
message.lockedOut = reader.bool();
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
210
|
+
reader.skip(tag & 7);
|
|
211
|
+
}
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
fromJSON(object) {
|
|
215
|
+
return {
|
|
216
|
+
dcMeasurement: isSet(object.dcMeasurement) ? InstDCMeasurement.fromJSON(object.dcMeasurement) : void 0,
|
|
217
|
+
stringId: isSet(object.stringId) ? globalThis.Number(object.stringId) : 0,
|
|
218
|
+
connected: isSet(object.connected) ? globalThis.Boolean(object.connected) : false,
|
|
219
|
+
lockedOut: isSet(object.lockedOut) ? globalThis.Boolean(object.lockedOut) : false
|
|
220
|
+
};
|
|
221
|
+
},
|
|
222
|
+
toJSON(message) {
|
|
223
|
+
const obj = {};
|
|
224
|
+
if (message.dcMeasurement !== void 0) obj.dcMeasurement = InstDCMeasurement.toJSON(message.dcMeasurement);
|
|
225
|
+
if (message.stringId !== void 0) obj.stringId = Math.round(message.stringId);
|
|
226
|
+
if (message.connected !== void 0) obj.connected = message.connected;
|
|
227
|
+
if (message.lockedOut !== void 0) obj.lockedOut = message.lockedOut;
|
|
228
|
+
return obj;
|
|
229
|
+
},
|
|
230
|
+
create(base) {
|
|
231
|
+
return PVStringVitals.fromPartial(base ?? {});
|
|
232
|
+
},
|
|
233
|
+
fromPartial(object) {
|
|
234
|
+
const message = createBasePVStringVitals();
|
|
235
|
+
message.dcMeasurement = object.dcMeasurement !== void 0 && object.dcMeasurement !== null ? InstDCMeasurement.fromPartial(object.dcMeasurement) : void 0;
|
|
236
|
+
message.stringId = object.stringId ?? 0;
|
|
237
|
+
message.connected = object.connected ?? false;
|
|
238
|
+
message.lockedOut = object.lockedOut ?? false;
|
|
239
|
+
return message;
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
function createBasePVInverterVitals() {
|
|
243
|
+
return {
|
|
244
|
+
uptimeS: 0,
|
|
245
|
+
pvacFaults: [],
|
|
246
|
+
pvsFaults: [],
|
|
247
|
+
acMeasurementPvac: void 0,
|
|
248
|
+
siteShutdownSwitchOpen: false,
|
|
249
|
+
energyToday: void 0,
|
|
250
|
+
pvStringVitals: [],
|
|
251
|
+
acMeasurementSite: void 0,
|
|
252
|
+
pvacInvState: 0,
|
|
253
|
+
pvacState: 0,
|
|
254
|
+
gridComplianceStatus: void 0,
|
|
255
|
+
pvacWarnings: [],
|
|
256
|
+
pvsWarnings: [],
|
|
257
|
+
pvsState: 0,
|
|
258
|
+
acMeasurementSolarRgm: void 0
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
const PVInverterVitals = {
|
|
262
|
+
encode(message, writer = new BinaryWriter()) {
|
|
263
|
+
if (message.uptimeS !== 0) writer.uint32(8).uint32(message.uptimeS);
|
|
264
|
+
writer.uint32(18).fork();
|
|
265
|
+
for (const v of message.pvacFaults) writer.uint32(v);
|
|
266
|
+
writer.join();
|
|
267
|
+
writer.uint32(26).fork();
|
|
268
|
+
for (const v of message.pvsFaults) writer.uint32(v);
|
|
269
|
+
writer.join();
|
|
270
|
+
if (message.acMeasurementPvac !== void 0) InstACMeasurement.encode(message.acMeasurementPvac, writer.uint32(34).fork()).join();
|
|
271
|
+
if (message.siteShutdownSwitchOpen !== false) writer.uint32(40).bool(message.siteShutdownSwitchOpen);
|
|
272
|
+
if (message.energyToday !== void 0) AccumulatedEnergy.encode(message.energyToday, writer.uint32(50).fork()).join();
|
|
273
|
+
for (const v of message.pvStringVitals) PVStringVitals.encode(v, writer.uint32(58).fork()).join();
|
|
274
|
+
if (message.acMeasurementSite !== void 0) InstACMeasurement.encode(message.acMeasurementSite, writer.uint32(66).fork()).join();
|
|
275
|
+
if (message.pvacInvState !== 0) writer.uint32(72).uint32(message.pvacInvState);
|
|
276
|
+
if (message.pvacState !== 0) writer.uint32(80).uint32(message.pvacState);
|
|
277
|
+
if (message.gridComplianceStatus !== void 0) GridComplianceStatus.encode(message.gridComplianceStatus, writer.uint32(90).fork()).join();
|
|
278
|
+
writer.uint32(98).fork();
|
|
279
|
+
for (const v of message.pvacWarnings) writer.uint32(v);
|
|
280
|
+
writer.join();
|
|
281
|
+
writer.uint32(106).fork();
|
|
282
|
+
for (const v of message.pvsWarnings) writer.uint32(v);
|
|
283
|
+
writer.join();
|
|
284
|
+
if (message.pvsState !== 0) writer.uint32(112).uint32(message.pvsState);
|
|
285
|
+
if (message.acMeasurementSolarRgm !== void 0) InstACMeasurement.encode(message.acMeasurementSolarRgm, writer.uint32(122).fork()).join();
|
|
286
|
+
return writer;
|
|
287
|
+
},
|
|
288
|
+
decode(input, length) {
|
|
289
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
290
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
291
|
+
const message = createBasePVInverterVitals();
|
|
292
|
+
while (reader.pos < end) {
|
|
293
|
+
const tag = reader.uint32();
|
|
294
|
+
switch (tag >>> 3) {
|
|
295
|
+
case 1:
|
|
296
|
+
if (tag !== 8) break;
|
|
297
|
+
message.uptimeS = reader.uint32();
|
|
298
|
+
continue;
|
|
299
|
+
case 2:
|
|
300
|
+
if (tag === 16) {
|
|
301
|
+
message.pvacFaults.push(reader.uint32());
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
if (tag === 18) {
|
|
305
|
+
const end2 = reader.uint32() + reader.pos;
|
|
306
|
+
while (reader.pos < end2) message.pvacFaults.push(reader.uint32());
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
break;
|
|
310
|
+
case 3:
|
|
311
|
+
if (tag === 24) {
|
|
312
|
+
message.pvsFaults.push(reader.uint32());
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
if (tag === 26) {
|
|
316
|
+
const end2 = reader.uint32() + reader.pos;
|
|
317
|
+
while (reader.pos < end2) message.pvsFaults.push(reader.uint32());
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
break;
|
|
321
|
+
case 4:
|
|
322
|
+
if (tag !== 34) break;
|
|
323
|
+
message.acMeasurementPvac = InstACMeasurement.decode(reader, reader.uint32());
|
|
324
|
+
continue;
|
|
325
|
+
case 5:
|
|
326
|
+
if (tag !== 40) break;
|
|
327
|
+
message.siteShutdownSwitchOpen = reader.bool();
|
|
328
|
+
continue;
|
|
329
|
+
case 6:
|
|
330
|
+
if (tag !== 50) break;
|
|
331
|
+
message.energyToday = AccumulatedEnergy.decode(reader, reader.uint32());
|
|
332
|
+
continue;
|
|
333
|
+
case 7:
|
|
334
|
+
if (tag !== 58) break;
|
|
335
|
+
message.pvStringVitals.push(PVStringVitals.decode(reader, reader.uint32()));
|
|
336
|
+
continue;
|
|
337
|
+
case 8:
|
|
338
|
+
if (tag !== 66) break;
|
|
339
|
+
message.acMeasurementSite = InstACMeasurement.decode(reader, reader.uint32());
|
|
340
|
+
continue;
|
|
341
|
+
case 9:
|
|
342
|
+
if (tag !== 72) break;
|
|
343
|
+
message.pvacInvState = reader.uint32();
|
|
344
|
+
continue;
|
|
345
|
+
case 10:
|
|
346
|
+
if (tag !== 80) break;
|
|
347
|
+
message.pvacState = reader.uint32();
|
|
348
|
+
continue;
|
|
349
|
+
case 11:
|
|
350
|
+
if (tag !== 90) break;
|
|
351
|
+
message.gridComplianceStatus = GridComplianceStatus.decode(reader, reader.uint32());
|
|
352
|
+
continue;
|
|
353
|
+
case 12:
|
|
354
|
+
if (tag === 96) {
|
|
355
|
+
message.pvacWarnings.push(reader.uint32());
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
if (tag === 98) {
|
|
359
|
+
const end2 = reader.uint32() + reader.pos;
|
|
360
|
+
while (reader.pos < end2) message.pvacWarnings.push(reader.uint32());
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
break;
|
|
364
|
+
case 13:
|
|
365
|
+
if (tag === 104) {
|
|
366
|
+
message.pvsWarnings.push(reader.uint32());
|
|
367
|
+
continue;
|
|
368
|
+
}
|
|
369
|
+
if (tag === 106) {
|
|
370
|
+
const end2 = reader.uint32() + reader.pos;
|
|
371
|
+
while (reader.pos < end2) message.pvsWarnings.push(reader.uint32());
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
break;
|
|
375
|
+
case 14:
|
|
376
|
+
if (tag !== 112) break;
|
|
377
|
+
message.pvsState = reader.uint32();
|
|
378
|
+
continue;
|
|
379
|
+
case 15:
|
|
380
|
+
if (tag !== 122) break;
|
|
381
|
+
message.acMeasurementSolarRgm = InstACMeasurement.decode(reader, reader.uint32());
|
|
382
|
+
continue;
|
|
383
|
+
}
|
|
384
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
385
|
+
reader.skip(tag & 7);
|
|
386
|
+
}
|
|
387
|
+
return message;
|
|
388
|
+
},
|
|
389
|
+
fromJSON(object) {
|
|
390
|
+
return {
|
|
391
|
+
uptimeS: isSet(object.uptimeS) ? globalThis.Number(object.uptimeS) : 0,
|
|
392
|
+
pvacFaults: globalThis.Array.isArray(object?.pvacFaults) ? object.pvacFaults.map((e) => globalThis.Number(e)) : [],
|
|
393
|
+
pvsFaults: globalThis.Array.isArray(object?.pvsFaults) ? object.pvsFaults.map((e) => globalThis.Number(e)) : [],
|
|
394
|
+
acMeasurementPvac: isSet(object.acMeasurementPvac) ? InstACMeasurement.fromJSON(object.acMeasurementPvac) : void 0,
|
|
395
|
+
siteShutdownSwitchOpen: isSet(object.siteShutdownSwitchOpen) ? globalThis.Boolean(object.siteShutdownSwitchOpen) : false,
|
|
396
|
+
energyToday: isSet(object.energyToday) ? AccumulatedEnergy.fromJSON(object.energyToday) : void 0,
|
|
397
|
+
pvStringVitals: globalThis.Array.isArray(object?.pvStringVitals) ? object.pvStringVitals.map((e) => PVStringVitals.fromJSON(e)) : [],
|
|
398
|
+
acMeasurementSite: isSet(object.acMeasurementSite) ? InstACMeasurement.fromJSON(object.acMeasurementSite) : void 0,
|
|
399
|
+
pvacInvState: isSet(object.pvacInvState) ? globalThis.Number(object.pvacInvState) : 0,
|
|
400
|
+
pvacState: isSet(object.pvacState) ? globalThis.Number(object.pvacState) : 0,
|
|
401
|
+
gridComplianceStatus: isSet(object.gridComplianceStatus) ? GridComplianceStatus.fromJSON(object.gridComplianceStatus) : void 0,
|
|
402
|
+
pvacWarnings: globalThis.Array.isArray(object?.pvacWarnings) ? object.pvacWarnings.map((e) => globalThis.Number(e)) : [],
|
|
403
|
+
pvsWarnings: globalThis.Array.isArray(object?.pvsWarnings) ? object.pvsWarnings.map((e) => globalThis.Number(e)) : [],
|
|
404
|
+
pvsState: isSet(object.pvsState) ? globalThis.Number(object.pvsState) : 0,
|
|
405
|
+
acMeasurementSolarRgm: isSet(object.acMeasurementSolarRgm) ? InstACMeasurement.fromJSON(object.acMeasurementSolarRgm) : void 0
|
|
406
|
+
};
|
|
407
|
+
},
|
|
408
|
+
toJSON(message) {
|
|
409
|
+
const obj = {};
|
|
410
|
+
if (message.uptimeS !== void 0) obj.uptimeS = Math.round(message.uptimeS);
|
|
411
|
+
if (message.pvacFaults?.length) obj.pvacFaults = message.pvacFaults.map((e) => Math.round(e));
|
|
412
|
+
if (message.pvsFaults?.length) obj.pvsFaults = message.pvsFaults.map((e) => Math.round(e));
|
|
413
|
+
if (message.acMeasurementPvac !== void 0) obj.acMeasurementPvac = InstACMeasurement.toJSON(message.acMeasurementPvac);
|
|
414
|
+
if (message.siteShutdownSwitchOpen !== void 0) obj.siteShutdownSwitchOpen = message.siteShutdownSwitchOpen;
|
|
415
|
+
if (message.energyToday !== void 0) obj.energyToday = AccumulatedEnergy.toJSON(message.energyToday);
|
|
416
|
+
if (message.pvStringVitals?.length) obj.pvStringVitals = message.pvStringVitals.map((e) => PVStringVitals.toJSON(e));
|
|
417
|
+
if (message.acMeasurementSite !== void 0) obj.acMeasurementSite = InstACMeasurement.toJSON(message.acMeasurementSite);
|
|
418
|
+
if (message.pvacInvState !== void 0) obj.pvacInvState = Math.round(message.pvacInvState);
|
|
419
|
+
if (message.pvacState !== void 0) obj.pvacState = Math.round(message.pvacState);
|
|
420
|
+
if (message.gridComplianceStatus !== void 0) obj.gridComplianceStatus = GridComplianceStatus.toJSON(message.gridComplianceStatus);
|
|
421
|
+
if (message.pvacWarnings?.length) obj.pvacWarnings = message.pvacWarnings.map((e) => Math.round(e));
|
|
422
|
+
if (message.pvsWarnings?.length) obj.pvsWarnings = message.pvsWarnings.map((e) => Math.round(e));
|
|
423
|
+
if (message.pvsState !== void 0) obj.pvsState = Math.round(message.pvsState);
|
|
424
|
+
if (message.acMeasurementSolarRgm !== void 0) obj.acMeasurementSolarRgm = InstACMeasurement.toJSON(message.acMeasurementSolarRgm);
|
|
425
|
+
return obj;
|
|
426
|
+
},
|
|
427
|
+
create(base) {
|
|
428
|
+
return PVInverterVitals.fromPartial(base ?? {});
|
|
429
|
+
},
|
|
430
|
+
fromPartial(object) {
|
|
431
|
+
const message = createBasePVInverterVitals();
|
|
432
|
+
message.uptimeS = object.uptimeS ?? 0;
|
|
433
|
+
message.pvacFaults = object.pvacFaults?.map((e) => e) || [];
|
|
434
|
+
message.pvsFaults = object.pvsFaults?.map((e) => e) || [];
|
|
435
|
+
message.acMeasurementPvac = object.acMeasurementPvac !== void 0 && object.acMeasurementPvac !== null ? InstACMeasurement.fromPartial(object.acMeasurementPvac) : void 0;
|
|
436
|
+
message.siteShutdownSwitchOpen = object.siteShutdownSwitchOpen ?? false;
|
|
437
|
+
message.energyToday = object.energyToday !== void 0 && object.energyToday !== null ? AccumulatedEnergy.fromPartial(object.energyToday) : void 0;
|
|
438
|
+
message.pvStringVitals = object.pvStringVitals?.map((e) => PVStringVitals.fromPartial(e)) || [];
|
|
439
|
+
message.acMeasurementSite = object.acMeasurementSite !== void 0 && object.acMeasurementSite !== null ? InstACMeasurement.fromPartial(object.acMeasurementSite) : void 0;
|
|
440
|
+
message.pvacInvState = object.pvacInvState ?? 0;
|
|
441
|
+
message.pvacState = object.pvacState ?? 0;
|
|
442
|
+
message.gridComplianceStatus = object.gridComplianceStatus !== void 0 && object.gridComplianceStatus !== null ? GridComplianceStatus.fromPartial(object.gridComplianceStatus) : void 0;
|
|
443
|
+
message.pvacWarnings = object.pvacWarnings?.map((e) => e) || [];
|
|
444
|
+
message.pvsWarnings = object.pvsWarnings?.map((e) => e) || [];
|
|
445
|
+
message.pvsState = object.pvsState ?? 0;
|
|
446
|
+
message.acMeasurementSolarRgm = object.acMeasurementSolarRgm !== void 0 && object.acMeasurementSolarRgm !== null ? InstACMeasurement.fromPartial(object.acMeasurementSolarRgm) : void 0;
|
|
447
|
+
return message;
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
function createBasePVInverterLifetimeStats() {
|
|
451
|
+
return {
|
|
452
|
+
uptimeS: 0,
|
|
453
|
+
alertCount: 0,
|
|
454
|
+
energyLifetime: void 0
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
const PVInverterLifetimeStats = {
|
|
458
|
+
encode(message, writer = new BinaryWriter()) {
|
|
459
|
+
if (message.uptimeS !== 0) writer.uint32(8).uint64(message.uptimeS);
|
|
460
|
+
if (message.alertCount !== 0) writer.uint32(16).uint32(message.alertCount);
|
|
461
|
+
if (message.energyLifetime !== void 0) AccumulatedEnergy.encode(message.energyLifetime, writer.uint32(26).fork()).join();
|
|
462
|
+
return writer;
|
|
463
|
+
},
|
|
464
|
+
decode(input, length) {
|
|
465
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
466
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
467
|
+
const message = createBasePVInverterLifetimeStats();
|
|
468
|
+
while (reader.pos < end) {
|
|
469
|
+
const tag = reader.uint32();
|
|
470
|
+
switch (tag >>> 3) {
|
|
471
|
+
case 1:
|
|
472
|
+
if (tag !== 8) break;
|
|
473
|
+
message.uptimeS = longToNumber(reader.uint64());
|
|
474
|
+
continue;
|
|
475
|
+
case 2:
|
|
476
|
+
if (tag !== 16) break;
|
|
477
|
+
message.alertCount = reader.uint32();
|
|
478
|
+
continue;
|
|
479
|
+
case 3:
|
|
480
|
+
if (tag !== 26) break;
|
|
481
|
+
message.energyLifetime = AccumulatedEnergy.decode(reader, reader.uint32());
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
485
|
+
reader.skip(tag & 7);
|
|
486
|
+
}
|
|
487
|
+
return message;
|
|
488
|
+
},
|
|
489
|
+
fromJSON(object) {
|
|
490
|
+
return {
|
|
491
|
+
uptimeS: isSet(object.uptimeS) ? globalThis.Number(object.uptimeS) : 0,
|
|
492
|
+
alertCount: isSet(object.alertCount) ? globalThis.Number(object.alertCount) : 0,
|
|
493
|
+
energyLifetime: isSet(object.energyLifetime) ? AccumulatedEnergy.fromJSON(object.energyLifetime) : void 0
|
|
494
|
+
};
|
|
495
|
+
},
|
|
496
|
+
toJSON(message) {
|
|
497
|
+
const obj = {};
|
|
498
|
+
if (message.uptimeS !== void 0) obj.uptimeS = Math.round(message.uptimeS);
|
|
499
|
+
if (message.alertCount !== void 0) obj.alertCount = Math.round(message.alertCount);
|
|
500
|
+
if (message.energyLifetime !== void 0) obj.energyLifetime = AccumulatedEnergy.toJSON(message.energyLifetime);
|
|
501
|
+
return obj;
|
|
502
|
+
},
|
|
503
|
+
create(base) {
|
|
504
|
+
return PVInverterLifetimeStats.fromPartial(base ?? {});
|
|
505
|
+
},
|
|
506
|
+
fromPartial(object) {
|
|
507
|
+
const message = createBasePVInverterLifetimeStats();
|
|
508
|
+
message.uptimeS = object.uptimeS ?? 0;
|
|
509
|
+
message.alertCount = object.alertCount ?? 0;
|
|
510
|
+
message.energyLifetime = object.energyLifetime !== void 0 && object.energyLifetime !== null ? AccumulatedEnergy.fromPartial(object.energyLifetime) : void 0;
|
|
511
|
+
return message;
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
function createBasePVMeterInterface() {
|
|
515
|
+
return { neurio: void 0 };
|
|
516
|
+
}
|
|
517
|
+
const PVMeterInterface = {
|
|
518
|
+
encode(message, writer = new BinaryWriter()) {
|
|
519
|
+
if (message.neurio !== void 0) NeurioMeterInterface.encode(message.neurio, writer.uint32(10).fork()).join();
|
|
520
|
+
return writer;
|
|
521
|
+
},
|
|
522
|
+
decode(input, length) {
|
|
523
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
524
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
525
|
+
const message = createBasePVMeterInterface();
|
|
526
|
+
while (reader.pos < end) {
|
|
527
|
+
const tag = reader.uint32();
|
|
528
|
+
switch (tag >>> 3) {
|
|
529
|
+
case 1:
|
|
530
|
+
if (tag !== 10) break;
|
|
531
|
+
message.neurio = NeurioMeterInterface.decode(reader, reader.uint32());
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
535
|
+
reader.skip(tag & 7);
|
|
536
|
+
}
|
|
537
|
+
return message;
|
|
538
|
+
},
|
|
539
|
+
fromJSON(object) {
|
|
540
|
+
return { neurio: isSet(object.neurio) ? NeurioMeterInterface.fromJSON(object.neurio) : void 0 };
|
|
541
|
+
},
|
|
542
|
+
toJSON(message) {
|
|
543
|
+
const obj = {};
|
|
544
|
+
if (message.neurio !== void 0) obj.neurio = NeurioMeterInterface.toJSON(message.neurio);
|
|
545
|
+
return obj;
|
|
546
|
+
},
|
|
547
|
+
create(base) {
|
|
548
|
+
return PVMeterInterface.fromPartial(base ?? {});
|
|
549
|
+
},
|
|
550
|
+
fromPartial(object) {
|
|
551
|
+
const message = createBasePVMeterInterface();
|
|
552
|
+
message.neurio = object.neurio !== void 0 && object.neurio !== null ? NeurioMeterInterface.fromPartial(object.neurio) : void 0;
|
|
553
|
+
return message;
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
function createBasePVGridCodeConfig() {
|
|
557
|
+
return {
|
|
558
|
+
gridCode: "",
|
|
559
|
+
regionInfo: ""
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
const PVGridCodeConfig = {
|
|
563
|
+
encode(message, writer = new BinaryWriter()) {
|
|
564
|
+
if (message.gridCode !== "") writer.uint32(10).string(message.gridCode);
|
|
565
|
+
if (message.regionInfo !== "") writer.uint32(18).string(message.regionInfo);
|
|
566
|
+
return writer;
|
|
567
|
+
},
|
|
568
|
+
decode(input, length) {
|
|
569
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
570
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
571
|
+
const message = createBasePVGridCodeConfig();
|
|
572
|
+
while (reader.pos < end) {
|
|
573
|
+
const tag = reader.uint32();
|
|
574
|
+
switch (tag >>> 3) {
|
|
575
|
+
case 1:
|
|
576
|
+
if (tag !== 10) break;
|
|
577
|
+
message.gridCode = reader.string();
|
|
578
|
+
continue;
|
|
579
|
+
case 2:
|
|
580
|
+
if (tag !== 18) break;
|
|
581
|
+
message.regionInfo = reader.string();
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
585
|
+
reader.skip(tag & 7);
|
|
586
|
+
}
|
|
587
|
+
return message;
|
|
588
|
+
},
|
|
589
|
+
fromJSON(object) {
|
|
590
|
+
return {
|
|
591
|
+
gridCode: isSet(object.gridCode) ? globalThis.String(object.gridCode) : "",
|
|
592
|
+
regionInfo: isSet(object.regionInfo) ? globalThis.String(object.regionInfo) : ""
|
|
593
|
+
};
|
|
594
|
+
},
|
|
595
|
+
toJSON(message) {
|
|
596
|
+
const obj = {};
|
|
597
|
+
if (message.gridCode !== void 0) obj.gridCode = message.gridCode;
|
|
598
|
+
if (message.regionInfo !== void 0) obj.regionInfo = message.regionInfo;
|
|
599
|
+
return obj;
|
|
600
|
+
},
|
|
601
|
+
create(base) {
|
|
602
|
+
return PVGridCodeConfig.fromPartial(base ?? {});
|
|
603
|
+
},
|
|
604
|
+
fromPartial(object) {
|
|
605
|
+
const message = createBasePVGridCodeConfig();
|
|
606
|
+
message.gridCode = object.gridCode ?? "";
|
|
607
|
+
message.regionInfo = object.regionInfo ?? "";
|
|
608
|
+
return message;
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
function createBasePVInverterSettings() {
|
|
612
|
+
return {
|
|
613
|
+
gridCode: void 0,
|
|
614
|
+
meters: [],
|
|
615
|
+
solarInstallationType: 0,
|
|
616
|
+
currentRatingOverrideA: void 0
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
const PVInverterSettings = {
|
|
620
|
+
encode(message, writer = new BinaryWriter()) {
|
|
621
|
+
if (message.gridCode !== void 0) PVGridCodeConfig.encode(message.gridCode, writer.uint32(10).fork()).join();
|
|
622
|
+
for (const v of message.meters) PVMeterInterface.encode(v, writer.uint32(18).fork()).join();
|
|
623
|
+
if (message.solarInstallationType !== 0) writer.uint32(24).int32(message.solarInstallationType);
|
|
624
|
+
if (message.currentRatingOverrideA !== void 0) FloatValue.encode({ value: message.currentRatingOverrideA }, writer.uint32(34).fork()).join();
|
|
625
|
+
return writer;
|
|
626
|
+
},
|
|
627
|
+
decode(input, length) {
|
|
628
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
629
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
630
|
+
const message = createBasePVInverterSettings();
|
|
631
|
+
while (reader.pos < end) {
|
|
632
|
+
const tag = reader.uint32();
|
|
633
|
+
switch (tag >>> 3) {
|
|
634
|
+
case 1:
|
|
635
|
+
if (tag !== 10) break;
|
|
636
|
+
message.gridCode = PVGridCodeConfig.decode(reader, reader.uint32());
|
|
637
|
+
continue;
|
|
638
|
+
case 2:
|
|
639
|
+
if (tag !== 18) break;
|
|
640
|
+
message.meters.push(PVMeterInterface.decode(reader, reader.uint32()));
|
|
641
|
+
continue;
|
|
642
|
+
case 3:
|
|
643
|
+
if (tag !== 24) break;
|
|
644
|
+
message.solarInstallationType = reader.int32();
|
|
645
|
+
continue;
|
|
646
|
+
case 4:
|
|
647
|
+
if (tag !== 34) break;
|
|
648
|
+
message.currentRatingOverrideA = FloatValue.decode(reader, reader.uint32()).value;
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
652
|
+
reader.skip(tag & 7);
|
|
653
|
+
}
|
|
654
|
+
return message;
|
|
655
|
+
},
|
|
656
|
+
fromJSON(object) {
|
|
657
|
+
return {
|
|
658
|
+
gridCode: isSet(object.gridCode) ? PVGridCodeConfig.fromJSON(object.gridCode) : void 0,
|
|
659
|
+
meters: globalThis.Array.isArray(object?.meters) ? object.meters.map((e) => PVMeterInterface.fromJSON(e)) : [],
|
|
660
|
+
solarInstallationType: isSet(object.solarInstallationType) ? pVInverterSolarInstallationTypeFromJSON(object.solarInstallationType) : 0,
|
|
661
|
+
currentRatingOverrideA: isSet(object.currentRatingOverrideA) ? Number(object.currentRatingOverrideA) : void 0
|
|
662
|
+
};
|
|
663
|
+
},
|
|
664
|
+
toJSON(message) {
|
|
665
|
+
const obj = {};
|
|
666
|
+
if (message.gridCode !== void 0) obj.gridCode = PVGridCodeConfig.toJSON(message.gridCode);
|
|
667
|
+
if (message.meters?.length) obj.meters = message.meters.map((e) => PVMeterInterface.toJSON(e));
|
|
668
|
+
if (message.solarInstallationType !== void 0) obj.solarInstallationType = pVInverterSolarInstallationTypeToJSON(message.solarInstallationType);
|
|
669
|
+
if (message.currentRatingOverrideA !== void 0) obj.currentRatingOverrideA = message.currentRatingOverrideA;
|
|
670
|
+
return obj;
|
|
671
|
+
},
|
|
672
|
+
create(base) {
|
|
673
|
+
return PVInverterSettings.fromPartial(base ?? {});
|
|
674
|
+
},
|
|
675
|
+
fromPartial(object) {
|
|
676
|
+
const message = createBasePVInverterSettings();
|
|
677
|
+
message.gridCode = object.gridCode !== void 0 && object.gridCode !== null ? PVGridCodeConfig.fromPartial(object.gridCode) : void 0;
|
|
678
|
+
message.meters = object.meters?.map((e) => PVMeterInterface.fromPartial(e)) || [];
|
|
679
|
+
message.solarInstallationType = object.solarInstallationType ?? 0;
|
|
680
|
+
message.currentRatingOverrideA = object.currentRatingOverrideA ?? void 0;
|
|
681
|
+
return message;
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
function createBasePVInverterCanMessage() {
|
|
685
|
+
return {
|
|
686
|
+
canId: 0,
|
|
687
|
+
canPayload: /* @__PURE__ */ new Uint8Array(0)
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
const PVInverterCanMessage = {
|
|
691
|
+
encode(message, writer = new BinaryWriter()) {
|
|
692
|
+
if (message.canId !== 0) writer.uint32(8).uint32(message.canId);
|
|
693
|
+
if (message.canPayload.length !== 0) writer.uint32(18).bytes(message.canPayload);
|
|
694
|
+
return writer;
|
|
695
|
+
},
|
|
696
|
+
decode(input, length) {
|
|
697
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
698
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
699
|
+
const message = createBasePVInverterCanMessage();
|
|
700
|
+
while (reader.pos < end) {
|
|
701
|
+
const tag = reader.uint32();
|
|
702
|
+
switch (tag >>> 3) {
|
|
703
|
+
case 1:
|
|
704
|
+
if (tag !== 8) break;
|
|
705
|
+
message.canId = reader.uint32();
|
|
706
|
+
continue;
|
|
707
|
+
case 2:
|
|
708
|
+
if (tag !== 18) break;
|
|
709
|
+
message.canPayload = reader.bytes();
|
|
710
|
+
continue;
|
|
711
|
+
}
|
|
712
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
713
|
+
reader.skip(tag & 7);
|
|
714
|
+
}
|
|
715
|
+
return message;
|
|
716
|
+
},
|
|
717
|
+
fromJSON(object) {
|
|
718
|
+
return {
|
|
719
|
+
canId: isSet(object.canId) ? globalThis.Number(object.canId) : 0,
|
|
720
|
+
canPayload: isSet(object.canPayload) ? bytesFromBase64(object.canPayload) : /* @__PURE__ */ new Uint8Array(0)
|
|
721
|
+
};
|
|
722
|
+
},
|
|
723
|
+
toJSON(message) {
|
|
724
|
+
const obj = {};
|
|
725
|
+
if (message.canId !== void 0) obj.canId = Math.round(message.canId);
|
|
726
|
+
if (message.canPayload !== void 0) obj.canPayload = base64FromBytes(message.canPayload);
|
|
727
|
+
return obj;
|
|
728
|
+
},
|
|
729
|
+
create(base) {
|
|
730
|
+
return PVInverterCanMessage.fromPartial(base ?? {});
|
|
731
|
+
},
|
|
732
|
+
fromPartial(object) {
|
|
733
|
+
const message = createBasePVInverterCanMessage();
|
|
734
|
+
message.canId = object.canId ?? 0;
|
|
735
|
+
message.canPayload = object.canPayload ?? /* @__PURE__ */ new Uint8Array(0);
|
|
736
|
+
return message;
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
function createBasePVIAPIGetSystemInfoRequest() {
|
|
740
|
+
return {};
|
|
741
|
+
}
|
|
742
|
+
const PVIAPIGetSystemInfoRequest = {
|
|
743
|
+
encode(_, writer = new BinaryWriter()) {
|
|
744
|
+
return writer;
|
|
745
|
+
},
|
|
746
|
+
decode(input, length) {
|
|
747
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
748
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
749
|
+
const message = createBasePVIAPIGetSystemInfoRequest();
|
|
750
|
+
while (reader.pos < end) {
|
|
751
|
+
const tag = reader.uint32();
|
|
752
|
+
switch (tag >>> 3) {}
|
|
753
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
754
|
+
reader.skip(tag & 7);
|
|
755
|
+
}
|
|
756
|
+
return message;
|
|
757
|
+
},
|
|
758
|
+
fromJSON(_) {
|
|
759
|
+
return {};
|
|
760
|
+
},
|
|
761
|
+
toJSON(_) {
|
|
762
|
+
return {};
|
|
763
|
+
},
|
|
764
|
+
create(base) {
|
|
765
|
+
return PVIAPIGetSystemInfoRequest.fromPartial(base ?? {});
|
|
766
|
+
},
|
|
767
|
+
fromPartial(_) {
|
|
768
|
+
return createBasePVIAPIGetSystemInfoRequest();
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
function createBasePVIAPIGetSystemInfoResponse() {
|
|
772
|
+
return {
|
|
773
|
+
pvcomId: void 0,
|
|
774
|
+
pvacId: void 0,
|
|
775
|
+
pvsId: void 0,
|
|
776
|
+
firmwareVersion: void 0,
|
|
777
|
+
nominalCurrentAmps: 0,
|
|
778
|
+
nominalApparentPowerVa: 0
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
const PVIAPIGetSystemInfoResponse = {
|
|
782
|
+
encode(message, writer = new BinaryWriter()) {
|
|
783
|
+
if (message.pvcomId !== void 0) EcuId.encode(message.pvcomId, writer.uint32(10).fork()).join();
|
|
784
|
+
if (message.pvacId !== void 0) EcuId.encode(message.pvacId, writer.uint32(18).fork()).join();
|
|
785
|
+
if (message.pvsId !== void 0) EcuId.encode(message.pvsId, writer.uint32(26).fork()).join();
|
|
786
|
+
if (message.firmwareVersion !== void 0) FirmwareVersion.encode(message.firmwareVersion, writer.uint32(34).fork()).join();
|
|
787
|
+
if (message.nominalCurrentAmps !== 0) writer.uint32(45).float(message.nominalCurrentAmps);
|
|
788
|
+
if (message.nominalApparentPowerVa !== 0) writer.uint32(53).float(message.nominalApparentPowerVa);
|
|
789
|
+
return writer;
|
|
790
|
+
},
|
|
791
|
+
decode(input, length) {
|
|
792
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
793
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
794
|
+
const message = createBasePVIAPIGetSystemInfoResponse();
|
|
795
|
+
while (reader.pos < end) {
|
|
796
|
+
const tag = reader.uint32();
|
|
797
|
+
switch (tag >>> 3) {
|
|
798
|
+
case 1:
|
|
799
|
+
if (tag !== 10) break;
|
|
800
|
+
message.pvcomId = EcuId.decode(reader, reader.uint32());
|
|
801
|
+
continue;
|
|
802
|
+
case 2:
|
|
803
|
+
if (tag !== 18) break;
|
|
804
|
+
message.pvacId = EcuId.decode(reader, reader.uint32());
|
|
805
|
+
continue;
|
|
806
|
+
case 3:
|
|
807
|
+
if (tag !== 26) break;
|
|
808
|
+
message.pvsId = EcuId.decode(reader, reader.uint32());
|
|
809
|
+
continue;
|
|
810
|
+
case 4:
|
|
811
|
+
if (tag !== 34) break;
|
|
812
|
+
message.firmwareVersion = FirmwareVersion.decode(reader, reader.uint32());
|
|
813
|
+
continue;
|
|
814
|
+
case 5:
|
|
815
|
+
if (tag !== 45) break;
|
|
816
|
+
message.nominalCurrentAmps = reader.float();
|
|
817
|
+
continue;
|
|
818
|
+
case 6:
|
|
819
|
+
if (tag !== 53) break;
|
|
820
|
+
message.nominalApparentPowerVa = reader.float();
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
824
|
+
reader.skip(tag & 7);
|
|
825
|
+
}
|
|
826
|
+
return message;
|
|
827
|
+
},
|
|
828
|
+
fromJSON(object) {
|
|
829
|
+
return {
|
|
830
|
+
pvcomId: isSet(object.pvcomId) ? EcuId.fromJSON(object.pvcomId) : void 0,
|
|
831
|
+
pvacId: isSet(object.pvacId) ? EcuId.fromJSON(object.pvacId) : void 0,
|
|
832
|
+
pvsId: isSet(object.pvsId) ? EcuId.fromJSON(object.pvsId) : void 0,
|
|
833
|
+
firmwareVersion: isSet(object.firmwareVersion) ? FirmwareVersion.fromJSON(object.firmwareVersion) : void 0,
|
|
834
|
+
nominalCurrentAmps: isSet(object.nominalCurrentAmps) ? globalThis.Number(object.nominalCurrentAmps) : 0,
|
|
835
|
+
nominalApparentPowerVa: isSet(object.nominalApparentPowerVa) ? globalThis.Number(object.nominalApparentPowerVa) : 0
|
|
836
|
+
};
|
|
837
|
+
},
|
|
838
|
+
toJSON(message) {
|
|
839
|
+
const obj = {};
|
|
840
|
+
if (message.pvcomId !== void 0) obj.pvcomId = EcuId.toJSON(message.pvcomId);
|
|
841
|
+
if (message.pvacId !== void 0) obj.pvacId = EcuId.toJSON(message.pvacId);
|
|
842
|
+
if (message.pvsId !== void 0) obj.pvsId = EcuId.toJSON(message.pvsId);
|
|
843
|
+
if (message.firmwareVersion !== void 0) obj.firmwareVersion = FirmwareVersion.toJSON(message.firmwareVersion);
|
|
844
|
+
if (message.nominalCurrentAmps !== void 0) obj.nominalCurrentAmps = message.nominalCurrentAmps;
|
|
845
|
+
if (message.nominalApparentPowerVa !== void 0) obj.nominalApparentPowerVa = message.nominalApparentPowerVa;
|
|
846
|
+
return obj;
|
|
847
|
+
},
|
|
848
|
+
create(base) {
|
|
849
|
+
return PVIAPIGetSystemInfoResponse.fromPartial(base ?? {});
|
|
850
|
+
},
|
|
851
|
+
fromPartial(object) {
|
|
852
|
+
const message = createBasePVIAPIGetSystemInfoResponse();
|
|
853
|
+
message.pvcomId = object.pvcomId !== void 0 && object.pvcomId !== null ? EcuId.fromPartial(object.pvcomId) : void 0;
|
|
854
|
+
message.pvacId = object.pvacId !== void 0 && object.pvacId !== null ? EcuId.fromPartial(object.pvacId) : void 0;
|
|
855
|
+
message.pvsId = object.pvsId !== void 0 && object.pvsId !== null ? EcuId.fromPartial(object.pvsId) : void 0;
|
|
856
|
+
message.firmwareVersion = object.firmwareVersion !== void 0 && object.firmwareVersion !== null ? FirmwareVersion.fromPartial(object.firmwareVersion) : void 0;
|
|
857
|
+
message.nominalCurrentAmps = object.nominalCurrentAmps ?? 0;
|
|
858
|
+
message.nominalApparentPowerVa = object.nominalApparentPowerVa ?? 0;
|
|
859
|
+
return message;
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
function createBasePVIAPIGetVitalsRequest() {
|
|
863
|
+
return {};
|
|
864
|
+
}
|
|
865
|
+
const PVIAPIGetVitalsRequest = {
|
|
866
|
+
encode(_, writer = new BinaryWriter()) {
|
|
867
|
+
return writer;
|
|
868
|
+
},
|
|
869
|
+
decode(input, length) {
|
|
870
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
871
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
872
|
+
const message = createBasePVIAPIGetVitalsRequest();
|
|
873
|
+
while (reader.pos < end) {
|
|
874
|
+
const tag = reader.uint32();
|
|
875
|
+
switch (tag >>> 3) {}
|
|
876
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
877
|
+
reader.skip(tag & 7);
|
|
878
|
+
}
|
|
879
|
+
return message;
|
|
880
|
+
},
|
|
881
|
+
fromJSON(_) {
|
|
882
|
+
return {};
|
|
883
|
+
},
|
|
884
|
+
toJSON(_) {
|
|
885
|
+
return {};
|
|
886
|
+
},
|
|
887
|
+
create(base) {
|
|
888
|
+
return PVIAPIGetVitalsRequest.fromPartial(base ?? {});
|
|
889
|
+
},
|
|
890
|
+
fromPartial(_) {
|
|
891
|
+
return createBasePVIAPIGetVitalsRequest();
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
function createBasePVIAPIGetVitalsResponse() {
|
|
895
|
+
return { vitals: void 0 };
|
|
896
|
+
}
|
|
897
|
+
const PVIAPIGetVitalsResponse = {
|
|
898
|
+
encode(message, writer = new BinaryWriter()) {
|
|
899
|
+
if (message.vitals !== void 0) PVInverterVitals.encode(message.vitals, writer.uint32(10).fork()).join();
|
|
900
|
+
return writer;
|
|
901
|
+
},
|
|
902
|
+
decode(input, length) {
|
|
903
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
904
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
905
|
+
const message = createBasePVIAPIGetVitalsResponse();
|
|
906
|
+
while (reader.pos < end) {
|
|
907
|
+
const tag = reader.uint32();
|
|
908
|
+
switch (tag >>> 3) {
|
|
909
|
+
case 1:
|
|
910
|
+
if (tag !== 10) break;
|
|
911
|
+
message.vitals = PVInverterVitals.decode(reader, reader.uint32());
|
|
912
|
+
continue;
|
|
913
|
+
}
|
|
914
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
915
|
+
reader.skip(tag & 7);
|
|
916
|
+
}
|
|
917
|
+
return message;
|
|
918
|
+
},
|
|
919
|
+
fromJSON(object) {
|
|
920
|
+
return { vitals: isSet(object.vitals) ? PVInverterVitals.fromJSON(object.vitals) : void 0 };
|
|
921
|
+
},
|
|
922
|
+
toJSON(message) {
|
|
923
|
+
const obj = {};
|
|
924
|
+
if (message.vitals !== void 0) obj.vitals = PVInverterVitals.toJSON(message.vitals);
|
|
925
|
+
return obj;
|
|
926
|
+
},
|
|
927
|
+
create(base) {
|
|
928
|
+
return PVIAPIGetVitalsResponse.fromPartial(base ?? {});
|
|
929
|
+
},
|
|
930
|
+
fromPartial(object) {
|
|
931
|
+
const message = createBasePVIAPIGetVitalsResponse();
|
|
932
|
+
message.vitals = object.vitals !== void 0 && object.vitals !== null ? PVInverterVitals.fromPartial(object.vitals) : void 0;
|
|
933
|
+
return message;
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
function createBasePVIAPIGetLifetimeStatsRequest() {
|
|
937
|
+
return {};
|
|
938
|
+
}
|
|
939
|
+
const PVIAPIGetLifetimeStatsRequest = {
|
|
940
|
+
encode(_, writer = new BinaryWriter()) {
|
|
941
|
+
return writer;
|
|
942
|
+
},
|
|
943
|
+
decode(input, length) {
|
|
944
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
945
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
946
|
+
const message = createBasePVIAPIGetLifetimeStatsRequest();
|
|
947
|
+
while (reader.pos < end) {
|
|
948
|
+
const tag = reader.uint32();
|
|
949
|
+
switch (tag >>> 3) {}
|
|
950
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
951
|
+
reader.skip(tag & 7);
|
|
952
|
+
}
|
|
953
|
+
return message;
|
|
954
|
+
},
|
|
955
|
+
fromJSON(_) {
|
|
956
|
+
return {};
|
|
957
|
+
},
|
|
958
|
+
toJSON(_) {
|
|
959
|
+
return {};
|
|
960
|
+
},
|
|
961
|
+
create(base) {
|
|
962
|
+
return PVIAPIGetLifetimeStatsRequest.fromPartial(base ?? {});
|
|
963
|
+
},
|
|
964
|
+
fromPartial(_) {
|
|
965
|
+
return createBasePVIAPIGetLifetimeStatsRequest();
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
function createBasePVIAPIGetLifetimeStatsResponse() {
|
|
969
|
+
return { lifetimeStats: void 0 };
|
|
970
|
+
}
|
|
971
|
+
const PVIAPIGetLifetimeStatsResponse = {
|
|
972
|
+
encode(message, writer = new BinaryWriter()) {
|
|
973
|
+
if (message.lifetimeStats !== void 0) PVInverterLifetimeStats.encode(message.lifetimeStats, writer.uint32(10).fork()).join();
|
|
974
|
+
return writer;
|
|
975
|
+
},
|
|
976
|
+
decode(input, length) {
|
|
977
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
978
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
979
|
+
const message = createBasePVIAPIGetLifetimeStatsResponse();
|
|
980
|
+
while (reader.pos < end) {
|
|
981
|
+
const tag = reader.uint32();
|
|
982
|
+
switch (tag >>> 3) {
|
|
983
|
+
case 1:
|
|
984
|
+
if (tag !== 10) break;
|
|
985
|
+
message.lifetimeStats = PVInverterLifetimeStats.decode(reader, reader.uint32());
|
|
986
|
+
continue;
|
|
987
|
+
}
|
|
988
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
989
|
+
reader.skip(tag & 7);
|
|
990
|
+
}
|
|
991
|
+
return message;
|
|
992
|
+
},
|
|
993
|
+
fromJSON(object) {
|
|
994
|
+
return { lifetimeStats: isSet(object.lifetimeStats) ? PVInverterLifetimeStats.fromJSON(object.lifetimeStats) : void 0 };
|
|
995
|
+
},
|
|
996
|
+
toJSON(message) {
|
|
997
|
+
const obj = {};
|
|
998
|
+
if (message.lifetimeStats !== void 0) obj.lifetimeStats = PVInverterLifetimeStats.toJSON(message.lifetimeStats);
|
|
999
|
+
return obj;
|
|
1000
|
+
},
|
|
1001
|
+
create(base) {
|
|
1002
|
+
return PVIAPIGetLifetimeStatsResponse.fromPartial(base ?? {});
|
|
1003
|
+
},
|
|
1004
|
+
fromPartial(object) {
|
|
1005
|
+
const message = createBasePVIAPIGetLifetimeStatsResponse();
|
|
1006
|
+
message.lifetimeStats = object.lifetimeStats !== void 0 && object.lifetimeStats !== null ? PVInverterLifetimeStats.fromPartial(object.lifetimeStats) : void 0;
|
|
1007
|
+
return message;
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
function createBasePVIAPIGetConfigRequest() {
|
|
1011
|
+
return {};
|
|
1012
|
+
}
|
|
1013
|
+
const PVIAPIGetConfigRequest = {
|
|
1014
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1015
|
+
return writer;
|
|
1016
|
+
},
|
|
1017
|
+
decode(input, length) {
|
|
1018
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1019
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1020
|
+
const message = createBasePVIAPIGetConfigRequest();
|
|
1021
|
+
while (reader.pos < end) {
|
|
1022
|
+
const tag = reader.uint32();
|
|
1023
|
+
switch (tag >>> 3) {}
|
|
1024
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1025
|
+
reader.skip(tag & 7);
|
|
1026
|
+
}
|
|
1027
|
+
return message;
|
|
1028
|
+
},
|
|
1029
|
+
fromJSON(_) {
|
|
1030
|
+
return {};
|
|
1031
|
+
},
|
|
1032
|
+
toJSON(_) {
|
|
1033
|
+
return {};
|
|
1034
|
+
},
|
|
1035
|
+
create(base) {
|
|
1036
|
+
return PVIAPIGetConfigRequest.fromPartial(base ?? {});
|
|
1037
|
+
},
|
|
1038
|
+
fromPartial(_) {
|
|
1039
|
+
return createBasePVIAPIGetConfigRequest();
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
function createBasePVIAPIGetConfigResponse() {
|
|
1043
|
+
return {
|
|
1044
|
+
settings: void 0,
|
|
1045
|
+
wifiConfig: void 0,
|
|
1046
|
+
wifi: void 0,
|
|
1047
|
+
eth: void 0,
|
|
1048
|
+
gsm: void 0,
|
|
1049
|
+
powerStatus: 0
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
const PVIAPIGetConfigResponse = {
|
|
1053
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1054
|
+
if (message.settings !== void 0) PVInverterSettings.encode(message.settings, writer.uint32(10).fork()).join();
|
|
1055
|
+
if (message.wifiConfig !== void 0) WifiConfig.encode(message.wifiConfig, writer.uint32(18).fork()).join();
|
|
1056
|
+
if (message.wifi !== void 0) NetworkInterface.encode(message.wifi, writer.uint32(26).fork()).join();
|
|
1057
|
+
if (message.eth !== void 0) NetworkInterface.encode(message.eth, writer.uint32(34).fork()).join();
|
|
1058
|
+
if (message.gsm !== void 0) NetworkInterface.encode(message.gsm, writer.uint32(42).fork()).join();
|
|
1059
|
+
if (message.powerStatus !== 0) writer.uint32(48).int32(message.powerStatus);
|
|
1060
|
+
return writer;
|
|
1061
|
+
},
|
|
1062
|
+
decode(input, length) {
|
|
1063
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1064
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1065
|
+
const message = createBasePVIAPIGetConfigResponse();
|
|
1066
|
+
while (reader.pos < end) {
|
|
1067
|
+
const tag = reader.uint32();
|
|
1068
|
+
switch (tag >>> 3) {
|
|
1069
|
+
case 1:
|
|
1070
|
+
if (tag !== 10) break;
|
|
1071
|
+
message.settings = PVInverterSettings.decode(reader, reader.uint32());
|
|
1072
|
+
continue;
|
|
1073
|
+
case 2:
|
|
1074
|
+
if (tag !== 18) break;
|
|
1075
|
+
message.wifiConfig = WifiConfig.decode(reader, reader.uint32());
|
|
1076
|
+
continue;
|
|
1077
|
+
case 3:
|
|
1078
|
+
if (tag !== 26) break;
|
|
1079
|
+
message.wifi = NetworkInterface.decode(reader, reader.uint32());
|
|
1080
|
+
continue;
|
|
1081
|
+
case 4:
|
|
1082
|
+
if (tag !== 34) break;
|
|
1083
|
+
message.eth = NetworkInterface.decode(reader, reader.uint32());
|
|
1084
|
+
continue;
|
|
1085
|
+
case 5:
|
|
1086
|
+
if (tag !== 42) break;
|
|
1087
|
+
message.gsm = NetworkInterface.decode(reader, reader.uint32());
|
|
1088
|
+
continue;
|
|
1089
|
+
case 6:
|
|
1090
|
+
if (tag !== 48) break;
|
|
1091
|
+
message.powerStatus = reader.int32();
|
|
1092
|
+
continue;
|
|
1093
|
+
}
|
|
1094
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1095
|
+
reader.skip(tag & 7);
|
|
1096
|
+
}
|
|
1097
|
+
return message;
|
|
1098
|
+
},
|
|
1099
|
+
fromJSON(object) {
|
|
1100
|
+
return {
|
|
1101
|
+
settings: isSet(object.settings) ? PVInverterSettings.fromJSON(object.settings) : void 0,
|
|
1102
|
+
wifiConfig: isSet(object.wifiConfig) ? WifiConfig.fromJSON(object.wifiConfig) : void 0,
|
|
1103
|
+
wifi: isSet(object.wifi) ? NetworkInterface.fromJSON(object.wifi) : void 0,
|
|
1104
|
+
eth: isSet(object.eth) ? NetworkInterface.fromJSON(object.eth) : void 0,
|
|
1105
|
+
gsm: isSet(object.gsm) ? NetworkInterface.fromJSON(object.gsm) : void 0,
|
|
1106
|
+
powerStatus: isSet(object.powerStatus) ? pVInverterPowerStatusFromJSON(object.powerStatus) : 0
|
|
1107
|
+
};
|
|
1108
|
+
},
|
|
1109
|
+
toJSON(message) {
|
|
1110
|
+
const obj = {};
|
|
1111
|
+
if (message.settings !== void 0) obj.settings = PVInverterSettings.toJSON(message.settings);
|
|
1112
|
+
if (message.wifiConfig !== void 0) obj.wifiConfig = WifiConfig.toJSON(message.wifiConfig);
|
|
1113
|
+
if (message.wifi !== void 0) obj.wifi = NetworkInterface.toJSON(message.wifi);
|
|
1114
|
+
if (message.eth !== void 0) obj.eth = NetworkInterface.toJSON(message.eth);
|
|
1115
|
+
if (message.gsm !== void 0) obj.gsm = NetworkInterface.toJSON(message.gsm);
|
|
1116
|
+
if (message.powerStatus !== void 0) obj.powerStatus = pVInverterPowerStatusToJSON(message.powerStatus);
|
|
1117
|
+
return obj;
|
|
1118
|
+
},
|
|
1119
|
+
create(base) {
|
|
1120
|
+
return PVIAPIGetConfigResponse.fromPartial(base ?? {});
|
|
1121
|
+
},
|
|
1122
|
+
fromPartial(object) {
|
|
1123
|
+
const message = createBasePVIAPIGetConfigResponse();
|
|
1124
|
+
message.settings = object.settings !== void 0 && object.settings !== null ? PVInverterSettings.fromPartial(object.settings) : void 0;
|
|
1125
|
+
message.wifiConfig = object.wifiConfig !== void 0 && object.wifiConfig !== null ? WifiConfig.fromPartial(object.wifiConfig) : void 0;
|
|
1126
|
+
message.wifi = object.wifi !== void 0 && object.wifi !== null ? NetworkInterface.fromPartial(object.wifi) : void 0;
|
|
1127
|
+
message.eth = object.eth !== void 0 && object.eth !== null ? NetworkInterface.fromPartial(object.eth) : void 0;
|
|
1128
|
+
message.gsm = object.gsm !== void 0 && object.gsm !== null ? NetworkInterface.fromPartial(object.gsm) : void 0;
|
|
1129
|
+
message.powerStatus = object.powerStatus ?? 0;
|
|
1130
|
+
return message;
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
function createBasePVIAPIConfigureSettingsRequest() {
|
|
1134
|
+
return { settings: void 0 };
|
|
1135
|
+
}
|
|
1136
|
+
const PVIAPIConfigureSettingsRequest = {
|
|
1137
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1138
|
+
if (message.settings !== void 0) PVInverterSettings.encode(message.settings, writer.uint32(10).fork()).join();
|
|
1139
|
+
return writer;
|
|
1140
|
+
},
|
|
1141
|
+
decode(input, length) {
|
|
1142
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1143
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1144
|
+
const message = createBasePVIAPIConfigureSettingsRequest();
|
|
1145
|
+
while (reader.pos < end) {
|
|
1146
|
+
const tag = reader.uint32();
|
|
1147
|
+
switch (tag >>> 3) {
|
|
1148
|
+
case 1:
|
|
1149
|
+
if (tag !== 10) break;
|
|
1150
|
+
message.settings = PVInverterSettings.decode(reader, reader.uint32());
|
|
1151
|
+
continue;
|
|
1152
|
+
}
|
|
1153
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1154
|
+
reader.skip(tag & 7);
|
|
1155
|
+
}
|
|
1156
|
+
return message;
|
|
1157
|
+
},
|
|
1158
|
+
fromJSON(object) {
|
|
1159
|
+
return { settings: isSet(object.settings) ? PVInverterSettings.fromJSON(object.settings) : void 0 };
|
|
1160
|
+
},
|
|
1161
|
+
toJSON(message) {
|
|
1162
|
+
const obj = {};
|
|
1163
|
+
if (message.settings !== void 0) obj.settings = PVInverterSettings.toJSON(message.settings);
|
|
1164
|
+
return obj;
|
|
1165
|
+
},
|
|
1166
|
+
create(base) {
|
|
1167
|
+
return PVIAPIConfigureSettingsRequest.fromPartial(base ?? {});
|
|
1168
|
+
},
|
|
1169
|
+
fromPartial(object) {
|
|
1170
|
+
const message = createBasePVIAPIConfigureSettingsRequest();
|
|
1171
|
+
message.settings = object.settings !== void 0 && object.settings !== null ? PVInverterSettings.fromPartial(object.settings) : void 0;
|
|
1172
|
+
return message;
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
function createBasePVIAPIConfigureSettingsResponse() {
|
|
1176
|
+
return { settings: void 0 };
|
|
1177
|
+
}
|
|
1178
|
+
const PVIAPIConfigureSettingsResponse = {
|
|
1179
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1180
|
+
if (message.settings !== void 0) PVInverterSettings.encode(message.settings, writer.uint32(10).fork()).join();
|
|
1181
|
+
return writer;
|
|
1182
|
+
},
|
|
1183
|
+
decode(input, length) {
|
|
1184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1185
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1186
|
+
const message = createBasePVIAPIConfigureSettingsResponse();
|
|
1187
|
+
while (reader.pos < end) {
|
|
1188
|
+
const tag = reader.uint32();
|
|
1189
|
+
switch (tag >>> 3) {
|
|
1190
|
+
case 1:
|
|
1191
|
+
if (tag !== 10) break;
|
|
1192
|
+
message.settings = PVInverterSettings.decode(reader, reader.uint32());
|
|
1193
|
+
continue;
|
|
1194
|
+
}
|
|
1195
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1196
|
+
reader.skip(tag & 7);
|
|
1197
|
+
}
|
|
1198
|
+
return message;
|
|
1199
|
+
},
|
|
1200
|
+
fromJSON(object) {
|
|
1201
|
+
return { settings: isSet(object.settings) ? PVInverterSettings.fromJSON(object.settings) : void 0 };
|
|
1202
|
+
},
|
|
1203
|
+
toJSON(message) {
|
|
1204
|
+
const obj = {};
|
|
1205
|
+
if (message.settings !== void 0) obj.settings = PVInverterSettings.toJSON(message.settings);
|
|
1206
|
+
return obj;
|
|
1207
|
+
},
|
|
1208
|
+
create(base) {
|
|
1209
|
+
return PVIAPIConfigureSettingsResponse.fromPartial(base ?? {});
|
|
1210
|
+
},
|
|
1211
|
+
fromPartial(object) {
|
|
1212
|
+
const message = createBasePVIAPIConfigureSettingsResponse();
|
|
1213
|
+
message.settings = object.settings !== void 0 && object.settings !== null ? PVInverterSettings.fromPartial(object.settings) : void 0;
|
|
1214
|
+
return message;
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
function createBasePVIAPIConfigureEthernetRequest() {
|
|
1218
|
+
return { ip4Config: void 0 };
|
|
1219
|
+
}
|
|
1220
|
+
const PVIAPIConfigureEthernetRequest = {
|
|
1221
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1222
|
+
if (message.ip4Config !== void 0) NetworkInterfaceIPv4Config.encode(message.ip4Config, writer.uint32(10).fork()).join();
|
|
1223
|
+
return writer;
|
|
1224
|
+
},
|
|
1225
|
+
decode(input, length) {
|
|
1226
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1227
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1228
|
+
const message = createBasePVIAPIConfigureEthernetRequest();
|
|
1229
|
+
while (reader.pos < end) {
|
|
1230
|
+
const tag = reader.uint32();
|
|
1231
|
+
switch (tag >>> 3) {
|
|
1232
|
+
case 1:
|
|
1233
|
+
if (tag !== 10) break;
|
|
1234
|
+
message.ip4Config = NetworkInterfaceIPv4Config.decode(reader, reader.uint32());
|
|
1235
|
+
continue;
|
|
1236
|
+
}
|
|
1237
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1238
|
+
reader.skip(tag & 7);
|
|
1239
|
+
}
|
|
1240
|
+
return message;
|
|
1241
|
+
},
|
|
1242
|
+
fromJSON(object) {
|
|
1243
|
+
return { ip4Config: isSet(object.ip4Config) ? NetworkInterfaceIPv4Config.fromJSON(object.ip4Config) : void 0 };
|
|
1244
|
+
},
|
|
1245
|
+
toJSON(message) {
|
|
1246
|
+
const obj = {};
|
|
1247
|
+
if (message.ip4Config !== void 0) obj.ip4Config = NetworkInterfaceIPv4Config.toJSON(message.ip4Config);
|
|
1248
|
+
return obj;
|
|
1249
|
+
},
|
|
1250
|
+
create(base) {
|
|
1251
|
+
return PVIAPIConfigureEthernetRequest.fromPartial(base ?? {});
|
|
1252
|
+
},
|
|
1253
|
+
fromPartial(object) {
|
|
1254
|
+
const message = createBasePVIAPIConfigureEthernetRequest();
|
|
1255
|
+
message.ip4Config = object.ip4Config !== void 0 && object.ip4Config !== null ? NetworkInterfaceIPv4Config.fromPartial(object.ip4Config) : void 0;
|
|
1256
|
+
return message;
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
function createBasePVIAPIConfigureEthernetResponse() {
|
|
1260
|
+
return { eth: void 0 };
|
|
1261
|
+
}
|
|
1262
|
+
const PVIAPIConfigureEthernetResponse = {
|
|
1263
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1264
|
+
if (message.eth !== void 0) NetworkInterface.encode(message.eth, writer.uint32(10).fork()).join();
|
|
1265
|
+
return writer;
|
|
1266
|
+
},
|
|
1267
|
+
decode(input, length) {
|
|
1268
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1269
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1270
|
+
const message = createBasePVIAPIConfigureEthernetResponse();
|
|
1271
|
+
while (reader.pos < end) {
|
|
1272
|
+
const tag = reader.uint32();
|
|
1273
|
+
switch (tag >>> 3) {
|
|
1274
|
+
case 1:
|
|
1275
|
+
if (tag !== 10) break;
|
|
1276
|
+
message.eth = NetworkInterface.decode(reader, reader.uint32());
|
|
1277
|
+
continue;
|
|
1278
|
+
}
|
|
1279
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1280
|
+
reader.skip(tag & 7);
|
|
1281
|
+
}
|
|
1282
|
+
return message;
|
|
1283
|
+
},
|
|
1284
|
+
fromJSON(object) {
|
|
1285
|
+
return { eth: isSet(object.eth) ? NetworkInterface.fromJSON(object.eth) : void 0 };
|
|
1286
|
+
},
|
|
1287
|
+
toJSON(message) {
|
|
1288
|
+
const obj = {};
|
|
1289
|
+
if (message.eth !== void 0) obj.eth = NetworkInterface.toJSON(message.eth);
|
|
1290
|
+
return obj;
|
|
1291
|
+
},
|
|
1292
|
+
create(base) {
|
|
1293
|
+
return PVIAPIConfigureEthernetResponse.fromPartial(base ?? {});
|
|
1294
|
+
},
|
|
1295
|
+
fromPartial(object) {
|
|
1296
|
+
const message = createBasePVIAPIConfigureEthernetResponse();
|
|
1297
|
+
message.eth = object.eth !== void 0 && object.eth !== null ? NetworkInterface.fromPartial(object.eth) : void 0;
|
|
1298
|
+
return message;
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
function createBasePVIAPIConfigureGsmRequest() {
|
|
1302
|
+
return { enabled: false };
|
|
1303
|
+
}
|
|
1304
|
+
const PVIAPIConfigureGsmRequest = {
|
|
1305
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1306
|
+
if (message.enabled !== false) writer.uint32(8).bool(message.enabled);
|
|
1307
|
+
return writer;
|
|
1308
|
+
},
|
|
1309
|
+
decode(input, length) {
|
|
1310
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1311
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1312
|
+
const message = createBasePVIAPIConfigureGsmRequest();
|
|
1313
|
+
while (reader.pos < end) {
|
|
1314
|
+
const tag = reader.uint32();
|
|
1315
|
+
switch (tag >>> 3) {
|
|
1316
|
+
case 1:
|
|
1317
|
+
if (tag !== 8) break;
|
|
1318
|
+
message.enabled = reader.bool();
|
|
1319
|
+
continue;
|
|
1320
|
+
}
|
|
1321
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1322
|
+
reader.skip(tag & 7);
|
|
1323
|
+
}
|
|
1324
|
+
return message;
|
|
1325
|
+
},
|
|
1326
|
+
fromJSON(object) {
|
|
1327
|
+
return { enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false };
|
|
1328
|
+
},
|
|
1329
|
+
toJSON(message) {
|
|
1330
|
+
const obj = {};
|
|
1331
|
+
if (message.enabled !== void 0) obj.enabled = message.enabled;
|
|
1332
|
+
return obj;
|
|
1333
|
+
},
|
|
1334
|
+
create(base) {
|
|
1335
|
+
return PVIAPIConfigureGsmRequest.fromPartial(base ?? {});
|
|
1336
|
+
},
|
|
1337
|
+
fromPartial(object) {
|
|
1338
|
+
const message = createBasePVIAPIConfigureGsmRequest();
|
|
1339
|
+
message.enabled = object.enabled ?? false;
|
|
1340
|
+
return message;
|
|
1341
|
+
}
|
|
1342
|
+
};
|
|
1343
|
+
function createBasePVIAPIConfigureGsmResponse() {
|
|
1344
|
+
return { gsm: void 0 };
|
|
1345
|
+
}
|
|
1346
|
+
const PVIAPIConfigureGsmResponse = {
|
|
1347
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1348
|
+
if (message.gsm !== void 0) NetworkInterface.encode(message.gsm, writer.uint32(10).fork()).join();
|
|
1349
|
+
return writer;
|
|
1350
|
+
},
|
|
1351
|
+
decode(input, length) {
|
|
1352
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1353
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1354
|
+
const message = createBasePVIAPIConfigureGsmResponse();
|
|
1355
|
+
while (reader.pos < end) {
|
|
1356
|
+
const tag = reader.uint32();
|
|
1357
|
+
switch (tag >>> 3) {
|
|
1358
|
+
case 1:
|
|
1359
|
+
if (tag !== 10) break;
|
|
1360
|
+
message.gsm = NetworkInterface.decode(reader, reader.uint32());
|
|
1361
|
+
continue;
|
|
1362
|
+
}
|
|
1363
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1364
|
+
reader.skip(tag & 7);
|
|
1365
|
+
}
|
|
1366
|
+
return message;
|
|
1367
|
+
},
|
|
1368
|
+
fromJSON(object) {
|
|
1369
|
+
return { gsm: isSet(object.gsm) ? NetworkInterface.fromJSON(object.gsm) : void 0 };
|
|
1370
|
+
},
|
|
1371
|
+
toJSON(message) {
|
|
1372
|
+
const obj = {};
|
|
1373
|
+
if (message.gsm !== void 0) obj.gsm = NetworkInterface.toJSON(message.gsm);
|
|
1374
|
+
return obj;
|
|
1375
|
+
},
|
|
1376
|
+
create(base) {
|
|
1377
|
+
return PVIAPIConfigureGsmResponse.fromPartial(base ?? {});
|
|
1378
|
+
},
|
|
1379
|
+
fromPartial(object) {
|
|
1380
|
+
const message = createBasePVIAPIConfigureGsmResponse();
|
|
1381
|
+
message.gsm = object.gsm !== void 0 && object.gsm !== null ? NetworkInterface.fromPartial(object.gsm) : void 0;
|
|
1382
|
+
return message;
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
function createBasePVIAPIInverterResetRequest() {
|
|
1386
|
+
return {
|
|
1387
|
+
resetPvcom: false,
|
|
1388
|
+
resetPvac: false,
|
|
1389
|
+
resetPvs: false
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
const PVIAPIInverterResetRequest = {
|
|
1393
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1394
|
+
if (message.resetPvcom !== false) writer.uint32(8).bool(message.resetPvcom);
|
|
1395
|
+
if (message.resetPvac !== false) writer.uint32(16).bool(message.resetPvac);
|
|
1396
|
+
if (message.resetPvs !== false) writer.uint32(24).bool(message.resetPvs);
|
|
1397
|
+
return writer;
|
|
1398
|
+
},
|
|
1399
|
+
decode(input, length) {
|
|
1400
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1401
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1402
|
+
const message = createBasePVIAPIInverterResetRequest();
|
|
1403
|
+
while (reader.pos < end) {
|
|
1404
|
+
const tag = reader.uint32();
|
|
1405
|
+
switch (tag >>> 3) {
|
|
1406
|
+
case 1:
|
|
1407
|
+
if (tag !== 8) break;
|
|
1408
|
+
message.resetPvcom = reader.bool();
|
|
1409
|
+
continue;
|
|
1410
|
+
case 2:
|
|
1411
|
+
if (tag !== 16) break;
|
|
1412
|
+
message.resetPvac = reader.bool();
|
|
1413
|
+
continue;
|
|
1414
|
+
case 3:
|
|
1415
|
+
if (tag !== 24) break;
|
|
1416
|
+
message.resetPvs = reader.bool();
|
|
1417
|
+
continue;
|
|
1418
|
+
}
|
|
1419
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1420
|
+
reader.skip(tag & 7);
|
|
1421
|
+
}
|
|
1422
|
+
return message;
|
|
1423
|
+
},
|
|
1424
|
+
fromJSON(object) {
|
|
1425
|
+
return {
|
|
1426
|
+
resetPvcom: isSet(object.resetPvcom) ? globalThis.Boolean(object.resetPvcom) : false,
|
|
1427
|
+
resetPvac: isSet(object.resetPvac) ? globalThis.Boolean(object.resetPvac) : false,
|
|
1428
|
+
resetPvs: isSet(object.resetPvs) ? globalThis.Boolean(object.resetPvs) : false
|
|
1429
|
+
};
|
|
1430
|
+
},
|
|
1431
|
+
toJSON(message) {
|
|
1432
|
+
const obj = {};
|
|
1433
|
+
if (message.resetPvcom !== void 0) obj.resetPvcom = message.resetPvcom;
|
|
1434
|
+
if (message.resetPvac !== void 0) obj.resetPvac = message.resetPvac;
|
|
1435
|
+
if (message.resetPvs !== void 0) obj.resetPvs = message.resetPvs;
|
|
1436
|
+
return obj;
|
|
1437
|
+
},
|
|
1438
|
+
create(base) {
|
|
1439
|
+
return PVIAPIInverterResetRequest.fromPartial(base ?? {});
|
|
1440
|
+
},
|
|
1441
|
+
fromPartial(object) {
|
|
1442
|
+
const message = createBasePVIAPIInverterResetRequest();
|
|
1443
|
+
message.resetPvcom = object.resetPvcom ?? false;
|
|
1444
|
+
message.resetPvac = object.resetPvac ?? false;
|
|
1445
|
+
message.resetPvs = object.resetPvs ?? false;
|
|
1446
|
+
return message;
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
function createBasePVIAPIInverterResetResponse() {
|
|
1450
|
+
return {
|
|
1451
|
+
pvcomStatus: 0,
|
|
1452
|
+
pvacStatus: 0,
|
|
1453
|
+
pvsStatus: 0
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1456
|
+
const PVIAPIInverterResetResponse = {
|
|
1457
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1458
|
+
if (message.pvcomStatus !== 0) writer.uint32(8).int32(message.pvcomStatus);
|
|
1459
|
+
if (message.pvacStatus !== 0) writer.uint32(16).int32(message.pvacStatus);
|
|
1460
|
+
if (message.pvsStatus !== 0) writer.uint32(24).int32(message.pvsStatus);
|
|
1461
|
+
return writer;
|
|
1462
|
+
},
|
|
1463
|
+
decode(input, length) {
|
|
1464
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1465
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1466
|
+
const message = createBasePVIAPIInverterResetResponse();
|
|
1467
|
+
while (reader.pos < end) {
|
|
1468
|
+
const tag = reader.uint32();
|
|
1469
|
+
switch (tag >>> 3) {
|
|
1470
|
+
case 1:
|
|
1471
|
+
if (tag !== 8) break;
|
|
1472
|
+
message.pvcomStatus = reader.int32();
|
|
1473
|
+
continue;
|
|
1474
|
+
case 2:
|
|
1475
|
+
if (tag !== 16) break;
|
|
1476
|
+
message.pvacStatus = reader.int32();
|
|
1477
|
+
continue;
|
|
1478
|
+
case 3:
|
|
1479
|
+
if (tag !== 24) break;
|
|
1480
|
+
message.pvsStatus = reader.int32();
|
|
1481
|
+
continue;
|
|
1482
|
+
}
|
|
1483
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1484
|
+
reader.skip(tag & 7);
|
|
1485
|
+
}
|
|
1486
|
+
return message;
|
|
1487
|
+
},
|
|
1488
|
+
fromJSON(object) {
|
|
1489
|
+
return {
|
|
1490
|
+
pvcomStatus: isSet(object.pvcomStatus) ? pVInverterEcuResetStatusFromJSON(object.pvcomStatus) : 0,
|
|
1491
|
+
pvacStatus: isSet(object.pvacStatus) ? pVInverterEcuResetStatusFromJSON(object.pvacStatus) : 0,
|
|
1492
|
+
pvsStatus: isSet(object.pvsStatus) ? pVInverterEcuResetStatusFromJSON(object.pvsStatus) : 0
|
|
1493
|
+
};
|
|
1494
|
+
},
|
|
1495
|
+
toJSON(message) {
|
|
1496
|
+
const obj = {};
|
|
1497
|
+
if (message.pvcomStatus !== void 0) obj.pvcomStatus = pVInverterEcuResetStatusToJSON(message.pvcomStatus);
|
|
1498
|
+
if (message.pvacStatus !== void 0) obj.pvacStatus = pVInverterEcuResetStatusToJSON(message.pvacStatus);
|
|
1499
|
+
if (message.pvsStatus !== void 0) obj.pvsStatus = pVInverterEcuResetStatusToJSON(message.pvsStatus);
|
|
1500
|
+
return obj;
|
|
1501
|
+
},
|
|
1502
|
+
create(base) {
|
|
1503
|
+
return PVIAPIInverterResetResponse.fromPartial(base ?? {});
|
|
1504
|
+
},
|
|
1505
|
+
fromPartial(object) {
|
|
1506
|
+
const message = createBasePVIAPIInverterResetResponse();
|
|
1507
|
+
message.pvcomStatus = object.pvcomStatus ?? 0;
|
|
1508
|
+
message.pvacStatus = object.pvacStatus ?? 0;
|
|
1509
|
+
message.pvsStatus = object.pvsStatus ?? 0;
|
|
1510
|
+
return message;
|
|
1511
|
+
}
|
|
1512
|
+
};
|
|
1513
|
+
function createBasePVIAPISetOperationParamsRequest() {
|
|
1514
|
+
return {
|
|
1515
|
+
powerStatus: 0,
|
|
1516
|
+
activePowerLimitW: void 0
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
const PVIAPISetOperationParamsRequest = {
|
|
1520
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1521
|
+
if (message.powerStatus !== 0) writer.uint32(8).int32(message.powerStatus);
|
|
1522
|
+
if (message.activePowerLimitW !== void 0) FloatValue.encode({ value: message.activePowerLimitW }, writer.uint32(18).fork()).join();
|
|
1523
|
+
return writer;
|
|
1524
|
+
},
|
|
1525
|
+
decode(input, length) {
|
|
1526
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1527
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1528
|
+
const message = createBasePVIAPISetOperationParamsRequest();
|
|
1529
|
+
while (reader.pos < end) {
|
|
1530
|
+
const tag = reader.uint32();
|
|
1531
|
+
switch (tag >>> 3) {
|
|
1532
|
+
case 1:
|
|
1533
|
+
if (tag !== 8) break;
|
|
1534
|
+
message.powerStatus = reader.int32();
|
|
1535
|
+
continue;
|
|
1536
|
+
case 2:
|
|
1537
|
+
if (tag !== 18) break;
|
|
1538
|
+
message.activePowerLimitW = FloatValue.decode(reader, reader.uint32()).value;
|
|
1539
|
+
continue;
|
|
1540
|
+
}
|
|
1541
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1542
|
+
reader.skip(tag & 7);
|
|
1543
|
+
}
|
|
1544
|
+
return message;
|
|
1545
|
+
},
|
|
1546
|
+
fromJSON(object) {
|
|
1547
|
+
return {
|
|
1548
|
+
powerStatus: isSet(object.powerStatus) ? pVInverterPowerStatusFromJSON(object.powerStatus) : 0,
|
|
1549
|
+
activePowerLimitW: isSet(object.activePowerLimitW) ? Number(object.activePowerLimitW) : void 0
|
|
1550
|
+
};
|
|
1551
|
+
},
|
|
1552
|
+
toJSON(message) {
|
|
1553
|
+
const obj = {};
|
|
1554
|
+
if (message.powerStatus !== void 0) obj.powerStatus = pVInverterPowerStatusToJSON(message.powerStatus);
|
|
1555
|
+
if (message.activePowerLimitW !== void 0) obj.activePowerLimitW = message.activePowerLimitW;
|
|
1556
|
+
return obj;
|
|
1557
|
+
},
|
|
1558
|
+
create(base) {
|
|
1559
|
+
return PVIAPISetOperationParamsRequest.fromPartial(base ?? {});
|
|
1560
|
+
},
|
|
1561
|
+
fromPartial(object) {
|
|
1562
|
+
const message = createBasePVIAPISetOperationParamsRequest();
|
|
1563
|
+
message.powerStatus = object.powerStatus ?? 0;
|
|
1564
|
+
message.activePowerLimitW = object.activePowerLimitW ?? void 0;
|
|
1565
|
+
return message;
|
|
1566
|
+
}
|
|
1567
|
+
};
|
|
1568
|
+
function createBasePVIAPISetOperationParamsResponse() {
|
|
1569
|
+
return {
|
|
1570
|
+
powerStatus: 0,
|
|
1571
|
+
activePowerLimitW: void 0
|
|
1572
|
+
};
|
|
1573
|
+
}
|
|
1574
|
+
const PVIAPISetOperationParamsResponse = {
|
|
1575
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1576
|
+
if (message.powerStatus !== 0) writer.uint32(8).int32(message.powerStatus);
|
|
1577
|
+
if (message.activePowerLimitW !== void 0) FloatValue.encode({ value: message.activePowerLimitW }, writer.uint32(18).fork()).join();
|
|
1578
|
+
return writer;
|
|
1579
|
+
},
|
|
1580
|
+
decode(input, length) {
|
|
1581
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1582
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1583
|
+
const message = createBasePVIAPISetOperationParamsResponse();
|
|
1584
|
+
while (reader.pos < end) {
|
|
1585
|
+
const tag = reader.uint32();
|
|
1586
|
+
switch (tag >>> 3) {
|
|
1587
|
+
case 1:
|
|
1588
|
+
if (tag !== 8) break;
|
|
1589
|
+
message.powerStatus = reader.int32();
|
|
1590
|
+
continue;
|
|
1591
|
+
case 2:
|
|
1592
|
+
if (tag !== 18) break;
|
|
1593
|
+
message.activePowerLimitW = FloatValue.decode(reader, reader.uint32()).value;
|
|
1594
|
+
continue;
|
|
1595
|
+
}
|
|
1596
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1597
|
+
reader.skip(tag & 7);
|
|
1598
|
+
}
|
|
1599
|
+
return message;
|
|
1600
|
+
},
|
|
1601
|
+
fromJSON(object) {
|
|
1602
|
+
return {
|
|
1603
|
+
powerStatus: isSet(object.powerStatus) ? pVInverterPowerStatusFromJSON(object.powerStatus) : 0,
|
|
1604
|
+
activePowerLimitW: isSet(object.activePowerLimitW) ? Number(object.activePowerLimitW) : void 0
|
|
1605
|
+
};
|
|
1606
|
+
},
|
|
1607
|
+
toJSON(message) {
|
|
1608
|
+
const obj = {};
|
|
1609
|
+
if (message.powerStatus !== void 0) obj.powerStatus = pVInverterPowerStatusToJSON(message.powerStatus);
|
|
1610
|
+
if (message.activePowerLimitW !== void 0) obj.activePowerLimitW = message.activePowerLimitW;
|
|
1611
|
+
return obj;
|
|
1612
|
+
},
|
|
1613
|
+
create(base) {
|
|
1614
|
+
return PVIAPISetOperationParamsResponse.fromPartial(base ?? {});
|
|
1615
|
+
},
|
|
1616
|
+
fromPartial(object) {
|
|
1617
|
+
const message = createBasePVIAPISetOperationParamsResponse();
|
|
1618
|
+
message.powerStatus = object.powerStatus ?? 0;
|
|
1619
|
+
message.activePowerLimitW = object.activePowerLimitW ?? void 0;
|
|
1620
|
+
return message;
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
function createBasePVIAPISendCanMessageRequest() {
|
|
1624
|
+
return { canMessage: void 0 };
|
|
1625
|
+
}
|
|
1626
|
+
const PVIAPISendCanMessageRequest = {
|
|
1627
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1628
|
+
if (message.canMessage !== void 0) PVInverterCanMessage.encode(message.canMessage, writer.uint32(10).fork()).join();
|
|
1629
|
+
return writer;
|
|
1630
|
+
},
|
|
1631
|
+
decode(input, length) {
|
|
1632
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1633
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1634
|
+
const message = createBasePVIAPISendCanMessageRequest();
|
|
1635
|
+
while (reader.pos < end) {
|
|
1636
|
+
const tag = reader.uint32();
|
|
1637
|
+
switch (tag >>> 3) {
|
|
1638
|
+
case 1:
|
|
1639
|
+
if (tag !== 10) break;
|
|
1640
|
+
message.canMessage = PVInverterCanMessage.decode(reader, reader.uint32());
|
|
1641
|
+
continue;
|
|
1642
|
+
}
|
|
1643
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1644
|
+
reader.skip(tag & 7);
|
|
1645
|
+
}
|
|
1646
|
+
return message;
|
|
1647
|
+
},
|
|
1648
|
+
fromJSON(object) {
|
|
1649
|
+
return { canMessage: isSet(object.canMessage) ? PVInverterCanMessage.fromJSON(object.canMessage) : void 0 };
|
|
1650
|
+
},
|
|
1651
|
+
toJSON(message) {
|
|
1652
|
+
const obj = {};
|
|
1653
|
+
if (message.canMessage !== void 0) obj.canMessage = PVInverterCanMessage.toJSON(message.canMessage);
|
|
1654
|
+
return obj;
|
|
1655
|
+
},
|
|
1656
|
+
create(base) {
|
|
1657
|
+
return PVIAPISendCanMessageRequest.fromPartial(base ?? {});
|
|
1658
|
+
},
|
|
1659
|
+
fromPartial(object) {
|
|
1660
|
+
const message = createBasePVIAPISendCanMessageRequest();
|
|
1661
|
+
message.canMessage = object.canMessage !== void 0 && object.canMessage !== null ? PVInverterCanMessage.fromPartial(object.canMessage) : void 0;
|
|
1662
|
+
return message;
|
|
1663
|
+
}
|
|
1664
|
+
};
|
|
1665
|
+
function createBasePVIAPISendCanMessageResponse() {
|
|
1666
|
+
return {};
|
|
1667
|
+
}
|
|
1668
|
+
const PVIAPISendCanMessageResponse = {
|
|
1669
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1670
|
+
return writer;
|
|
1671
|
+
},
|
|
1672
|
+
decode(input, length) {
|
|
1673
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1674
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1675
|
+
const message = createBasePVIAPISendCanMessageResponse();
|
|
1676
|
+
while (reader.pos < end) {
|
|
1677
|
+
const tag = reader.uint32();
|
|
1678
|
+
switch (tag >>> 3) {}
|
|
1679
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1680
|
+
reader.skip(tag & 7);
|
|
1681
|
+
}
|
|
1682
|
+
return message;
|
|
1683
|
+
},
|
|
1684
|
+
fromJSON(_) {
|
|
1685
|
+
return {};
|
|
1686
|
+
},
|
|
1687
|
+
toJSON(_) {
|
|
1688
|
+
return {};
|
|
1689
|
+
},
|
|
1690
|
+
create(base) {
|
|
1691
|
+
return PVIAPISendCanMessageResponse.fromPartial(base ?? {});
|
|
1692
|
+
},
|
|
1693
|
+
fromPartial(_) {
|
|
1694
|
+
return createBasePVIAPISendCanMessageResponse();
|
|
1695
|
+
}
|
|
1696
|
+
};
|
|
1697
|
+
function createBasePVIAPIUdsWriteDataByIdentifierRequest() {
|
|
1698
|
+
return {
|
|
1699
|
+
ecu: 0,
|
|
1700
|
+
did: 0,
|
|
1701
|
+
payload: /* @__PURE__ */ new Uint8Array(0)
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
const PVIAPIUdsWriteDataByIdentifierRequest = {
|
|
1705
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1706
|
+
if (message.ecu !== 0) writer.uint32(8).int32(message.ecu);
|
|
1707
|
+
if (message.did !== 0) writer.uint32(16).uint32(message.did);
|
|
1708
|
+
if (message.payload.length !== 0) writer.uint32(26).bytes(message.payload);
|
|
1709
|
+
return writer;
|
|
1710
|
+
},
|
|
1711
|
+
decode(input, length) {
|
|
1712
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1713
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1714
|
+
const message = createBasePVIAPIUdsWriteDataByIdentifierRequest();
|
|
1715
|
+
while (reader.pos < end) {
|
|
1716
|
+
const tag = reader.uint32();
|
|
1717
|
+
switch (tag >>> 3) {
|
|
1718
|
+
case 1:
|
|
1719
|
+
if (tag !== 8) break;
|
|
1720
|
+
message.ecu = reader.int32();
|
|
1721
|
+
continue;
|
|
1722
|
+
case 2:
|
|
1723
|
+
if (tag !== 16) break;
|
|
1724
|
+
message.did = reader.uint32();
|
|
1725
|
+
continue;
|
|
1726
|
+
case 3:
|
|
1727
|
+
if (tag !== 26) break;
|
|
1728
|
+
message.payload = reader.bytes();
|
|
1729
|
+
continue;
|
|
1730
|
+
}
|
|
1731
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1732
|
+
reader.skip(tag & 7);
|
|
1733
|
+
}
|
|
1734
|
+
return message;
|
|
1735
|
+
},
|
|
1736
|
+
fromJSON(object) {
|
|
1737
|
+
return {
|
|
1738
|
+
ecu: isSet(object.ecu) ? pVInverterEcuFromJSON(object.ecu) : 0,
|
|
1739
|
+
did: isSet(object.did) ? globalThis.Number(object.did) : 0,
|
|
1740
|
+
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : /* @__PURE__ */ new Uint8Array(0)
|
|
1741
|
+
};
|
|
1742
|
+
},
|
|
1743
|
+
toJSON(message) {
|
|
1744
|
+
const obj = {};
|
|
1745
|
+
if (message.ecu !== void 0) obj.ecu = pVInverterEcuToJSON(message.ecu);
|
|
1746
|
+
if (message.did !== void 0) obj.did = Math.round(message.did);
|
|
1747
|
+
if (message.payload !== void 0) obj.payload = base64FromBytes(message.payload);
|
|
1748
|
+
return obj;
|
|
1749
|
+
},
|
|
1750
|
+
create(base) {
|
|
1751
|
+
return PVIAPIUdsWriteDataByIdentifierRequest.fromPartial(base ?? {});
|
|
1752
|
+
},
|
|
1753
|
+
fromPartial(object) {
|
|
1754
|
+
const message = createBasePVIAPIUdsWriteDataByIdentifierRequest();
|
|
1755
|
+
message.ecu = object.ecu ?? 0;
|
|
1756
|
+
message.did = object.did ?? 0;
|
|
1757
|
+
message.payload = object.payload ?? /* @__PURE__ */ new Uint8Array(0);
|
|
1758
|
+
return message;
|
|
1759
|
+
}
|
|
1760
|
+
};
|
|
1761
|
+
function createBasePVIAPIUdsWriteDataByIdentifierResponse() {
|
|
1762
|
+
return {};
|
|
1763
|
+
}
|
|
1764
|
+
const PVIAPIUdsWriteDataByIdentifierResponse = {
|
|
1765
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1766
|
+
return writer;
|
|
1767
|
+
},
|
|
1768
|
+
decode(input, length) {
|
|
1769
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1770
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1771
|
+
const message = createBasePVIAPIUdsWriteDataByIdentifierResponse();
|
|
1772
|
+
while (reader.pos < end) {
|
|
1773
|
+
const tag = reader.uint32();
|
|
1774
|
+
switch (tag >>> 3) {}
|
|
1775
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1776
|
+
reader.skip(tag & 7);
|
|
1777
|
+
}
|
|
1778
|
+
return message;
|
|
1779
|
+
},
|
|
1780
|
+
fromJSON(_) {
|
|
1781
|
+
return {};
|
|
1782
|
+
},
|
|
1783
|
+
toJSON(_) {
|
|
1784
|
+
return {};
|
|
1785
|
+
},
|
|
1786
|
+
create(base) {
|
|
1787
|
+
return PVIAPIUdsWriteDataByIdentifierResponse.fromPartial(base ?? {});
|
|
1788
|
+
},
|
|
1789
|
+
fromPartial(_) {
|
|
1790
|
+
return createBasePVIAPIUdsWriteDataByIdentifierResponse();
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
function createBasePVIAPICheckInternetRequest() {
|
|
1794
|
+
return {};
|
|
1795
|
+
}
|
|
1796
|
+
const PVIAPICheckInternetRequest = {
|
|
1797
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1798
|
+
return writer;
|
|
1799
|
+
},
|
|
1800
|
+
decode(input, length) {
|
|
1801
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1802
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1803
|
+
const message = createBasePVIAPICheckInternetRequest();
|
|
1804
|
+
while (reader.pos < end) {
|
|
1805
|
+
const tag = reader.uint32();
|
|
1806
|
+
switch (tag >>> 3) {}
|
|
1807
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1808
|
+
reader.skip(tag & 7);
|
|
1809
|
+
}
|
|
1810
|
+
return message;
|
|
1811
|
+
},
|
|
1812
|
+
fromJSON(_) {
|
|
1813
|
+
return {};
|
|
1814
|
+
},
|
|
1815
|
+
toJSON(_) {
|
|
1816
|
+
return {};
|
|
1817
|
+
},
|
|
1818
|
+
create(base) {
|
|
1819
|
+
return PVIAPICheckInternetRequest.fromPartial(base ?? {});
|
|
1820
|
+
},
|
|
1821
|
+
fromPartial(_) {
|
|
1822
|
+
return createBasePVIAPICheckInternetRequest();
|
|
1823
|
+
}
|
|
1824
|
+
};
|
|
1825
|
+
function createBasePVIAPICheckInternetResponse() {
|
|
1826
|
+
return {
|
|
1827
|
+
wifi: void 0,
|
|
1828
|
+
eth: void 0,
|
|
1829
|
+
gsm: void 0
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
const PVIAPICheckInternetResponse = {
|
|
1833
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1834
|
+
if (message.wifi !== void 0) NetworkInterface.encode(message.wifi, writer.uint32(10).fork()).join();
|
|
1835
|
+
if (message.eth !== void 0) NetworkInterface.encode(message.eth, writer.uint32(18).fork()).join();
|
|
1836
|
+
if (message.gsm !== void 0) NetworkInterface.encode(message.gsm, writer.uint32(26).fork()).join();
|
|
1837
|
+
return writer;
|
|
1838
|
+
},
|
|
1839
|
+
decode(input, length) {
|
|
1840
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1841
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1842
|
+
const message = createBasePVIAPICheckInternetResponse();
|
|
1843
|
+
while (reader.pos < end) {
|
|
1844
|
+
const tag = reader.uint32();
|
|
1845
|
+
switch (tag >>> 3) {
|
|
1846
|
+
case 1:
|
|
1847
|
+
if (tag !== 10) break;
|
|
1848
|
+
message.wifi = NetworkInterface.decode(reader, reader.uint32());
|
|
1849
|
+
continue;
|
|
1850
|
+
case 2:
|
|
1851
|
+
if (tag !== 18) break;
|
|
1852
|
+
message.eth = NetworkInterface.decode(reader, reader.uint32());
|
|
1853
|
+
continue;
|
|
1854
|
+
case 3:
|
|
1855
|
+
if (tag !== 26) break;
|
|
1856
|
+
message.gsm = NetworkInterface.decode(reader, reader.uint32());
|
|
1857
|
+
continue;
|
|
1858
|
+
}
|
|
1859
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1860
|
+
reader.skip(tag & 7);
|
|
1861
|
+
}
|
|
1862
|
+
return message;
|
|
1863
|
+
},
|
|
1864
|
+
fromJSON(object) {
|
|
1865
|
+
return {
|
|
1866
|
+
wifi: isSet(object.wifi) ? NetworkInterface.fromJSON(object.wifi) : void 0,
|
|
1867
|
+
eth: isSet(object.eth) ? NetworkInterface.fromJSON(object.eth) : void 0,
|
|
1868
|
+
gsm: isSet(object.gsm) ? NetworkInterface.fromJSON(object.gsm) : void 0
|
|
1869
|
+
};
|
|
1870
|
+
},
|
|
1871
|
+
toJSON(message) {
|
|
1872
|
+
const obj = {};
|
|
1873
|
+
if (message.wifi !== void 0) obj.wifi = NetworkInterface.toJSON(message.wifi);
|
|
1874
|
+
if (message.eth !== void 0) obj.eth = NetworkInterface.toJSON(message.eth);
|
|
1875
|
+
if (message.gsm !== void 0) obj.gsm = NetworkInterface.toJSON(message.gsm);
|
|
1876
|
+
return obj;
|
|
1877
|
+
},
|
|
1878
|
+
create(base) {
|
|
1879
|
+
return PVIAPICheckInternetResponse.fromPartial(base ?? {});
|
|
1880
|
+
},
|
|
1881
|
+
fromPartial(object) {
|
|
1882
|
+
const message = createBasePVIAPICheckInternetResponse();
|
|
1883
|
+
message.wifi = object.wifi !== void 0 && object.wifi !== null ? NetworkInterface.fromPartial(object.wifi) : void 0;
|
|
1884
|
+
message.eth = object.eth !== void 0 && object.eth !== null ? NetworkInterface.fromPartial(object.eth) : void 0;
|
|
1885
|
+
message.gsm = object.gsm !== void 0 && object.gsm !== null ? NetworkInterface.fromPartial(object.gsm) : void 0;
|
|
1886
|
+
return message;
|
|
1887
|
+
}
|
|
1888
|
+
};
|
|
1889
|
+
function createBasePVIAPIConfigureGridCodeRequest() {
|
|
1890
|
+
return { gridCode: void 0 };
|
|
1891
|
+
}
|
|
1892
|
+
const PVIAPIConfigureGridCodeRequest = {
|
|
1893
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1894
|
+
if (message.gridCode !== void 0) PVGridCodeConfig.encode(message.gridCode, writer.uint32(10).fork()).join();
|
|
1895
|
+
return writer;
|
|
1896
|
+
},
|
|
1897
|
+
decode(input, length) {
|
|
1898
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1899
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1900
|
+
const message = createBasePVIAPIConfigureGridCodeRequest();
|
|
1901
|
+
while (reader.pos < end) {
|
|
1902
|
+
const tag = reader.uint32();
|
|
1903
|
+
switch (tag >>> 3) {
|
|
1904
|
+
case 1:
|
|
1905
|
+
if (tag !== 10) break;
|
|
1906
|
+
message.gridCode = PVGridCodeConfig.decode(reader, reader.uint32());
|
|
1907
|
+
continue;
|
|
1908
|
+
}
|
|
1909
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1910
|
+
reader.skip(tag & 7);
|
|
1911
|
+
}
|
|
1912
|
+
return message;
|
|
1913
|
+
},
|
|
1914
|
+
fromJSON(object) {
|
|
1915
|
+
return { gridCode: isSet(object.gridCode) ? PVGridCodeConfig.fromJSON(object.gridCode) : void 0 };
|
|
1916
|
+
},
|
|
1917
|
+
toJSON(message) {
|
|
1918
|
+
const obj = {};
|
|
1919
|
+
if (message.gridCode !== void 0) obj.gridCode = PVGridCodeConfig.toJSON(message.gridCode);
|
|
1920
|
+
return obj;
|
|
1921
|
+
},
|
|
1922
|
+
create(base) {
|
|
1923
|
+
return PVIAPIConfigureGridCodeRequest.fromPartial(base ?? {});
|
|
1924
|
+
},
|
|
1925
|
+
fromPartial(object) {
|
|
1926
|
+
const message = createBasePVIAPIConfigureGridCodeRequest();
|
|
1927
|
+
message.gridCode = object.gridCode !== void 0 && object.gridCode !== null ? PVGridCodeConfig.fromPartial(object.gridCode) : void 0;
|
|
1928
|
+
return message;
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
function createBasePVIAPIConfigureGridCodeResponse() {
|
|
1932
|
+
return { gridCode: void 0 };
|
|
1933
|
+
}
|
|
1934
|
+
const PVIAPIConfigureGridCodeResponse = {
|
|
1935
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1936
|
+
if (message.gridCode !== void 0) PVGridCodeConfig.encode(message.gridCode, writer.uint32(10).fork()).join();
|
|
1937
|
+
return writer;
|
|
1938
|
+
},
|
|
1939
|
+
decode(input, length) {
|
|
1940
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1941
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1942
|
+
const message = createBasePVIAPIConfigureGridCodeResponse();
|
|
1943
|
+
while (reader.pos < end) {
|
|
1944
|
+
const tag = reader.uint32();
|
|
1945
|
+
switch (tag >>> 3) {
|
|
1946
|
+
case 1:
|
|
1947
|
+
if (tag !== 10) break;
|
|
1948
|
+
message.gridCode = PVGridCodeConfig.decode(reader, reader.uint32());
|
|
1949
|
+
continue;
|
|
1950
|
+
}
|
|
1951
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1952
|
+
reader.skip(tag & 7);
|
|
1953
|
+
}
|
|
1954
|
+
return message;
|
|
1955
|
+
},
|
|
1956
|
+
fromJSON(object) {
|
|
1957
|
+
return { gridCode: isSet(object.gridCode) ? PVGridCodeConfig.fromJSON(object.gridCode) : void 0 };
|
|
1958
|
+
},
|
|
1959
|
+
toJSON(message) {
|
|
1960
|
+
const obj = {};
|
|
1961
|
+
if (message.gridCode !== void 0) obj.gridCode = PVGridCodeConfig.toJSON(message.gridCode);
|
|
1962
|
+
return obj;
|
|
1963
|
+
},
|
|
1964
|
+
create(base) {
|
|
1965
|
+
return PVIAPIConfigureGridCodeResponse.fromPartial(base ?? {});
|
|
1966
|
+
},
|
|
1967
|
+
fromPartial(object) {
|
|
1968
|
+
const message = createBasePVIAPIConfigureGridCodeResponse();
|
|
1969
|
+
message.gridCode = object.gridCode !== void 0 && object.gridCode !== null ? PVGridCodeConfig.fromPartial(object.gridCode) : void 0;
|
|
1970
|
+
return message;
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
function createBasePVIAPIClearAlertsRequest() {
|
|
1974
|
+
return {};
|
|
1975
|
+
}
|
|
1976
|
+
const PVIAPIClearAlertsRequest = {
|
|
1977
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1978
|
+
return writer;
|
|
1979
|
+
},
|
|
1980
|
+
decode(input, length) {
|
|
1981
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1982
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1983
|
+
const message = createBasePVIAPIClearAlertsRequest();
|
|
1984
|
+
while (reader.pos < end) {
|
|
1985
|
+
const tag = reader.uint32();
|
|
1986
|
+
switch (tag >>> 3) {}
|
|
1987
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1988
|
+
reader.skip(tag & 7);
|
|
1989
|
+
}
|
|
1990
|
+
return message;
|
|
1991
|
+
},
|
|
1992
|
+
fromJSON(_) {
|
|
1993
|
+
return {};
|
|
1994
|
+
},
|
|
1995
|
+
toJSON(_) {
|
|
1996
|
+
return {};
|
|
1997
|
+
},
|
|
1998
|
+
create(base) {
|
|
1999
|
+
return PVIAPIClearAlertsRequest.fromPartial(base ?? {});
|
|
2000
|
+
},
|
|
2001
|
+
fromPartial(_) {
|
|
2002
|
+
return createBasePVIAPIClearAlertsRequest();
|
|
2003
|
+
}
|
|
2004
|
+
};
|
|
2005
|
+
function createBasePVIAPIClearAlertsResponse() {
|
|
2006
|
+
return {};
|
|
2007
|
+
}
|
|
2008
|
+
const PVIAPIClearAlertsResponse = {
|
|
2009
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2010
|
+
return writer;
|
|
2011
|
+
},
|
|
2012
|
+
decode(input, length) {
|
|
2013
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2014
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2015
|
+
const message = createBasePVIAPIClearAlertsResponse();
|
|
2016
|
+
while (reader.pos < end) {
|
|
2017
|
+
const tag = reader.uint32();
|
|
2018
|
+
switch (tag >>> 3) {}
|
|
2019
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2020
|
+
reader.skip(tag & 7);
|
|
2021
|
+
}
|
|
2022
|
+
return message;
|
|
2023
|
+
},
|
|
2024
|
+
fromJSON(_) {
|
|
2025
|
+
return {};
|
|
2026
|
+
},
|
|
2027
|
+
toJSON(_) {
|
|
2028
|
+
return {};
|
|
2029
|
+
},
|
|
2030
|
+
create(base) {
|
|
2031
|
+
return PVIAPIClearAlertsResponse.fromPartial(base ?? {});
|
|
2032
|
+
},
|
|
2033
|
+
fromPartial(_) {
|
|
2034
|
+
return createBasePVIAPIClearAlertsResponse();
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2037
|
+
function createBasePVIAPITriggerDrLogRequest() {
|
|
2038
|
+
return {
|
|
2039
|
+
pvac: false,
|
|
2040
|
+
pvs: false
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
const PVIAPITriggerDrLogRequest = {
|
|
2044
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2045
|
+
if (message.pvac !== false) writer.uint32(8).bool(message.pvac);
|
|
2046
|
+
if (message.pvs !== false) writer.uint32(16).bool(message.pvs);
|
|
2047
|
+
return writer;
|
|
2048
|
+
},
|
|
2049
|
+
decode(input, length) {
|
|
2050
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2051
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2052
|
+
const message = createBasePVIAPITriggerDrLogRequest();
|
|
2053
|
+
while (reader.pos < end) {
|
|
2054
|
+
const tag = reader.uint32();
|
|
2055
|
+
switch (tag >>> 3) {
|
|
2056
|
+
case 1:
|
|
2057
|
+
if (tag !== 8) break;
|
|
2058
|
+
message.pvac = reader.bool();
|
|
2059
|
+
continue;
|
|
2060
|
+
case 2:
|
|
2061
|
+
if (tag !== 16) break;
|
|
2062
|
+
message.pvs = reader.bool();
|
|
2063
|
+
continue;
|
|
2064
|
+
}
|
|
2065
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2066
|
+
reader.skip(tag & 7);
|
|
2067
|
+
}
|
|
2068
|
+
return message;
|
|
2069
|
+
},
|
|
2070
|
+
fromJSON(object) {
|
|
2071
|
+
return {
|
|
2072
|
+
pvac: isSet(object.pvac) ? globalThis.Boolean(object.pvac) : false,
|
|
2073
|
+
pvs: isSet(object.pvs) ? globalThis.Boolean(object.pvs) : false
|
|
2074
|
+
};
|
|
2075
|
+
},
|
|
2076
|
+
toJSON(message) {
|
|
2077
|
+
const obj = {};
|
|
2078
|
+
if (message.pvac !== void 0) obj.pvac = message.pvac;
|
|
2079
|
+
if (message.pvs !== void 0) obj.pvs = message.pvs;
|
|
2080
|
+
return obj;
|
|
2081
|
+
},
|
|
2082
|
+
create(base) {
|
|
2083
|
+
return PVIAPITriggerDrLogRequest.fromPartial(base ?? {});
|
|
2084
|
+
},
|
|
2085
|
+
fromPartial(object) {
|
|
2086
|
+
const message = createBasePVIAPITriggerDrLogRequest();
|
|
2087
|
+
message.pvac = object.pvac ?? false;
|
|
2088
|
+
message.pvs = object.pvs ?? false;
|
|
2089
|
+
return message;
|
|
2090
|
+
}
|
|
2091
|
+
};
|
|
2092
|
+
function createBasePVIAPITriggerDrLogResponse() {
|
|
2093
|
+
return {};
|
|
2094
|
+
}
|
|
2095
|
+
const PVIAPITriggerDrLogResponse = {
|
|
2096
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2097
|
+
return writer;
|
|
2098
|
+
},
|
|
2099
|
+
decode(input, length) {
|
|
2100
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2101
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2102
|
+
const message = createBasePVIAPITriggerDrLogResponse();
|
|
2103
|
+
while (reader.pos < end) {
|
|
2104
|
+
const tag = reader.uint32();
|
|
2105
|
+
switch (tag >>> 3) {}
|
|
2106
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2107
|
+
reader.skip(tag & 7);
|
|
2108
|
+
}
|
|
2109
|
+
return message;
|
|
2110
|
+
},
|
|
2111
|
+
fromJSON(_) {
|
|
2112
|
+
return {};
|
|
2113
|
+
},
|
|
2114
|
+
toJSON(_) {
|
|
2115
|
+
return {};
|
|
2116
|
+
},
|
|
2117
|
+
create(base) {
|
|
2118
|
+
return PVIAPITriggerDrLogResponse.fromPartial(base ?? {});
|
|
2119
|
+
},
|
|
2120
|
+
fromPartial(_) {
|
|
2121
|
+
return createBasePVIAPITriggerDrLogResponse();
|
|
2122
|
+
}
|
|
2123
|
+
};
|
|
2124
|
+
function createBasePVIAPIClearLogsRequest() {
|
|
2125
|
+
return {
|
|
2126
|
+
telemetry: false,
|
|
2127
|
+
alerts: false,
|
|
2128
|
+
drlog: false
|
|
2129
|
+
};
|
|
2130
|
+
}
|
|
2131
|
+
const PVIAPIClearLogsRequest = {
|
|
2132
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2133
|
+
if (message.telemetry !== false) writer.uint32(8).bool(message.telemetry);
|
|
2134
|
+
if (message.alerts !== false) writer.uint32(16).bool(message.alerts);
|
|
2135
|
+
if (message.drlog !== false) writer.uint32(24).bool(message.drlog);
|
|
2136
|
+
return writer;
|
|
2137
|
+
},
|
|
2138
|
+
decode(input, length) {
|
|
2139
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2140
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2141
|
+
const message = createBasePVIAPIClearLogsRequest();
|
|
2142
|
+
while (reader.pos < end) {
|
|
2143
|
+
const tag = reader.uint32();
|
|
2144
|
+
switch (tag >>> 3) {
|
|
2145
|
+
case 1:
|
|
2146
|
+
if (tag !== 8) break;
|
|
2147
|
+
message.telemetry = reader.bool();
|
|
2148
|
+
continue;
|
|
2149
|
+
case 2:
|
|
2150
|
+
if (tag !== 16) break;
|
|
2151
|
+
message.alerts = reader.bool();
|
|
2152
|
+
continue;
|
|
2153
|
+
case 3:
|
|
2154
|
+
if (tag !== 24) break;
|
|
2155
|
+
message.drlog = reader.bool();
|
|
2156
|
+
continue;
|
|
2157
|
+
}
|
|
2158
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2159
|
+
reader.skip(tag & 7);
|
|
2160
|
+
}
|
|
2161
|
+
return message;
|
|
2162
|
+
},
|
|
2163
|
+
fromJSON(object) {
|
|
2164
|
+
return {
|
|
2165
|
+
telemetry: isSet(object.telemetry) ? globalThis.Boolean(object.telemetry) : false,
|
|
2166
|
+
alerts: isSet(object.alerts) ? globalThis.Boolean(object.alerts) : false,
|
|
2167
|
+
drlog: isSet(object.drlog) ? globalThis.Boolean(object.drlog) : false
|
|
2168
|
+
};
|
|
2169
|
+
},
|
|
2170
|
+
toJSON(message) {
|
|
2171
|
+
const obj = {};
|
|
2172
|
+
if (message.telemetry !== void 0) obj.telemetry = message.telemetry;
|
|
2173
|
+
if (message.alerts !== void 0) obj.alerts = message.alerts;
|
|
2174
|
+
if (message.drlog !== void 0) obj.drlog = message.drlog;
|
|
2175
|
+
return obj;
|
|
2176
|
+
},
|
|
2177
|
+
create(base) {
|
|
2178
|
+
return PVIAPIClearLogsRequest.fromPartial(base ?? {});
|
|
2179
|
+
},
|
|
2180
|
+
fromPartial(object) {
|
|
2181
|
+
const message = createBasePVIAPIClearLogsRequest();
|
|
2182
|
+
message.telemetry = object.telemetry ?? false;
|
|
2183
|
+
message.alerts = object.alerts ?? false;
|
|
2184
|
+
message.drlog = object.drlog ?? false;
|
|
2185
|
+
return message;
|
|
2186
|
+
}
|
|
2187
|
+
};
|
|
2188
|
+
function createBasePVIAPIClearLogsResponse() {
|
|
2189
|
+
return {
|
|
2190
|
+
telemetry: 0,
|
|
2191
|
+
alerts: 0,
|
|
2192
|
+
drlog: 0
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
const PVIAPIClearLogsResponse = {
|
|
2196
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2197
|
+
if (message.telemetry !== 0) writer.uint32(8).int32(message.telemetry);
|
|
2198
|
+
if (message.alerts !== 0) writer.uint32(16).int32(message.alerts);
|
|
2199
|
+
if (message.drlog !== 0) writer.uint32(24).int32(message.drlog);
|
|
2200
|
+
return writer;
|
|
2201
|
+
},
|
|
2202
|
+
decode(input, length) {
|
|
2203
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2204
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2205
|
+
const message = createBasePVIAPIClearLogsResponse();
|
|
2206
|
+
while (reader.pos < end) {
|
|
2207
|
+
const tag = reader.uint32();
|
|
2208
|
+
switch (tag >>> 3) {
|
|
2209
|
+
case 1:
|
|
2210
|
+
if (tag !== 8) break;
|
|
2211
|
+
message.telemetry = reader.int32();
|
|
2212
|
+
continue;
|
|
2213
|
+
case 2:
|
|
2214
|
+
if (tag !== 16) break;
|
|
2215
|
+
message.alerts = reader.int32();
|
|
2216
|
+
continue;
|
|
2217
|
+
case 3:
|
|
2218
|
+
if (tag !== 24) break;
|
|
2219
|
+
message.drlog = reader.int32();
|
|
2220
|
+
continue;
|
|
2221
|
+
}
|
|
2222
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2223
|
+
reader.skip(tag & 7);
|
|
2224
|
+
}
|
|
2225
|
+
return message;
|
|
2226
|
+
},
|
|
2227
|
+
fromJSON(object) {
|
|
2228
|
+
return {
|
|
2229
|
+
telemetry: isSet(object.telemetry) ? pVInverterClearLogsStatusFromJSON(object.telemetry) : 0,
|
|
2230
|
+
alerts: isSet(object.alerts) ? pVInverterClearLogsStatusFromJSON(object.alerts) : 0,
|
|
2231
|
+
drlog: isSet(object.drlog) ? pVInverterClearLogsStatusFromJSON(object.drlog) : 0
|
|
2232
|
+
};
|
|
2233
|
+
},
|
|
2234
|
+
toJSON(message) {
|
|
2235
|
+
const obj = {};
|
|
2236
|
+
if (message.telemetry !== void 0) obj.telemetry = pVInverterClearLogsStatusToJSON(message.telemetry);
|
|
2237
|
+
if (message.alerts !== void 0) obj.alerts = pVInverterClearLogsStatusToJSON(message.alerts);
|
|
2238
|
+
if (message.drlog !== void 0) obj.drlog = pVInverterClearLogsStatusToJSON(message.drlog);
|
|
2239
|
+
return obj;
|
|
2240
|
+
},
|
|
2241
|
+
create(base) {
|
|
2242
|
+
return PVIAPIClearLogsResponse.fromPartial(base ?? {});
|
|
2243
|
+
},
|
|
2244
|
+
fromPartial(object) {
|
|
2245
|
+
const message = createBasePVIAPIClearLogsResponse();
|
|
2246
|
+
message.telemetry = object.telemetry ?? 0;
|
|
2247
|
+
message.alerts = object.alerts ?? 0;
|
|
2248
|
+
message.drlog = object.drlog ?? 0;
|
|
2249
|
+
return message;
|
|
2250
|
+
}
|
|
2251
|
+
};
|
|
2252
|
+
function createBasePVIAPIConfigureSolarInstallationTypeRequest() {
|
|
2253
|
+
return { solarInstallationType: 0 };
|
|
2254
|
+
}
|
|
2255
|
+
const PVIAPIConfigureSolarInstallationTypeRequest = {
|
|
2256
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2257
|
+
if (message.solarInstallationType !== 0) writer.uint32(8).int32(message.solarInstallationType);
|
|
2258
|
+
return writer;
|
|
2259
|
+
},
|
|
2260
|
+
decode(input, length) {
|
|
2261
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2262
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2263
|
+
const message = createBasePVIAPIConfigureSolarInstallationTypeRequest();
|
|
2264
|
+
while (reader.pos < end) {
|
|
2265
|
+
const tag = reader.uint32();
|
|
2266
|
+
switch (tag >>> 3) {
|
|
2267
|
+
case 1:
|
|
2268
|
+
if (tag !== 8) break;
|
|
2269
|
+
message.solarInstallationType = reader.int32();
|
|
2270
|
+
continue;
|
|
2271
|
+
}
|
|
2272
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2273
|
+
reader.skip(tag & 7);
|
|
2274
|
+
}
|
|
2275
|
+
return message;
|
|
2276
|
+
},
|
|
2277
|
+
fromJSON(object) {
|
|
2278
|
+
return { solarInstallationType: isSet(object.solarInstallationType) ? pVInverterSolarInstallationTypeFromJSON(object.solarInstallationType) : 0 };
|
|
2279
|
+
},
|
|
2280
|
+
toJSON(message) {
|
|
2281
|
+
const obj = {};
|
|
2282
|
+
if (message.solarInstallationType !== void 0) obj.solarInstallationType = pVInverterSolarInstallationTypeToJSON(message.solarInstallationType);
|
|
2283
|
+
return obj;
|
|
2284
|
+
},
|
|
2285
|
+
create(base) {
|
|
2286
|
+
return PVIAPIConfigureSolarInstallationTypeRequest.fromPartial(base ?? {});
|
|
2287
|
+
},
|
|
2288
|
+
fromPartial(object) {
|
|
2289
|
+
const message = createBasePVIAPIConfigureSolarInstallationTypeRequest();
|
|
2290
|
+
message.solarInstallationType = object.solarInstallationType ?? 0;
|
|
2291
|
+
return message;
|
|
2292
|
+
}
|
|
2293
|
+
};
|
|
2294
|
+
function createBasePVIAPIConfigureSolarInstallationTypeResponse() {
|
|
2295
|
+
return { solarInstallationType: 0 };
|
|
2296
|
+
}
|
|
2297
|
+
const PVIAPIConfigureSolarInstallationTypeResponse = {
|
|
2298
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2299
|
+
if (message.solarInstallationType !== 0) writer.uint32(8).int32(message.solarInstallationType);
|
|
2300
|
+
return writer;
|
|
2301
|
+
},
|
|
2302
|
+
decode(input, length) {
|
|
2303
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2304
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2305
|
+
const message = createBasePVIAPIConfigureSolarInstallationTypeResponse();
|
|
2306
|
+
while (reader.pos < end) {
|
|
2307
|
+
const tag = reader.uint32();
|
|
2308
|
+
switch (tag >>> 3) {
|
|
2309
|
+
case 1:
|
|
2310
|
+
if (tag !== 8) break;
|
|
2311
|
+
message.solarInstallationType = reader.int32();
|
|
2312
|
+
continue;
|
|
2313
|
+
}
|
|
2314
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2315
|
+
reader.skip(tag & 7);
|
|
2316
|
+
}
|
|
2317
|
+
return message;
|
|
2318
|
+
},
|
|
2319
|
+
fromJSON(object) {
|
|
2320
|
+
return { solarInstallationType: isSet(object.solarInstallationType) ? pVInverterSolarInstallationTypeFromJSON(object.solarInstallationType) : 0 };
|
|
2321
|
+
},
|
|
2322
|
+
toJSON(message) {
|
|
2323
|
+
const obj = {};
|
|
2324
|
+
if (message.solarInstallationType !== void 0) obj.solarInstallationType = pVInverterSolarInstallationTypeToJSON(message.solarInstallationType);
|
|
2325
|
+
return obj;
|
|
2326
|
+
},
|
|
2327
|
+
create(base) {
|
|
2328
|
+
return PVIAPIConfigureSolarInstallationTypeResponse.fromPartial(base ?? {});
|
|
2329
|
+
},
|
|
2330
|
+
fromPartial(object) {
|
|
2331
|
+
const message = createBasePVIAPIConfigureSolarInstallationTypeResponse();
|
|
2332
|
+
message.solarInstallationType = object.solarInstallationType ?? 0;
|
|
2333
|
+
return message;
|
|
2334
|
+
}
|
|
2335
|
+
};
|
|
2336
|
+
function createBasePVIAPIConfigureCurrentRatingOverrideRequest() {
|
|
2337
|
+
return { currentRatingOverrideA: 0 };
|
|
2338
|
+
}
|
|
2339
|
+
const PVIAPIConfigureCurrentRatingOverrideRequest = {
|
|
2340
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2341
|
+
if (message.currentRatingOverrideA !== 0) writer.uint32(13).float(message.currentRatingOverrideA);
|
|
2342
|
+
return writer;
|
|
2343
|
+
},
|
|
2344
|
+
decode(input, length) {
|
|
2345
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2346
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2347
|
+
const message = createBasePVIAPIConfigureCurrentRatingOverrideRequest();
|
|
2348
|
+
while (reader.pos < end) {
|
|
2349
|
+
const tag = reader.uint32();
|
|
2350
|
+
switch (tag >>> 3) {
|
|
2351
|
+
case 1:
|
|
2352
|
+
if (tag !== 13) break;
|
|
2353
|
+
message.currentRatingOverrideA = reader.float();
|
|
2354
|
+
continue;
|
|
2355
|
+
}
|
|
2356
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2357
|
+
reader.skip(tag & 7);
|
|
2358
|
+
}
|
|
2359
|
+
return message;
|
|
2360
|
+
},
|
|
2361
|
+
fromJSON(object) {
|
|
2362
|
+
return { currentRatingOverrideA: isSet(object.currentRatingOverrideA) ? globalThis.Number(object.currentRatingOverrideA) : 0 };
|
|
2363
|
+
},
|
|
2364
|
+
toJSON(message) {
|
|
2365
|
+
const obj = {};
|
|
2366
|
+
if (message.currentRatingOverrideA !== void 0) obj.currentRatingOverrideA = message.currentRatingOverrideA;
|
|
2367
|
+
return obj;
|
|
2368
|
+
},
|
|
2369
|
+
create(base) {
|
|
2370
|
+
return PVIAPIConfigureCurrentRatingOverrideRequest.fromPartial(base ?? {});
|
|
2371
|
+
},
|
|
2372
|
+
fromPartial(object) {
|
|
2373
|
+
const message = createBasePVIAPIConfigureCurrentRatingOverrideRequest();
|
|
2374
|
+
message.currentRatingOverrideA = object.currentRatingOverrideA ?? 0;
|
|
2375
|
+
return message;
|
|
2376
|
+
}
|
|
2377
|
+
};
|
|
2378
|
+
function createBasePVIAPIConfigureCurrentRatingOverrideResponse() {
|
|
2379
|
+
return { currentRatingOverrideA: 0 };
|
|
2380
|
+
}
|
|
2381
|
+
const PVIAPIConfigureCurrentRatingOverrideResponse = {
|
|
2382
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2383
|
+
if (message.currentRatingOverrideA !== 0) writer.uint32(13).float(message.currentRatingOverrideA);
|
|
2384
|
+
return writer;
|
|
2385
|
+
},
|
|
2386
|
+
decode(input, length) {
|
|
2387
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2388
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2389
|
+
const message = createBasePVIAPIConfigureCurrentRatingOverrideResponse();
|
|
2390
|
+
while (reader.pos < end) {
|
|
2391
|
+
const tag = reader.uint32();
|
|
2392
|
+
switch (tag >>> 3) {
|
|
2393
|
+
case 1:
|
|
2394
|
+
if (tag !== 13) break;
|
|
2395
|
+
message.currentRatingOverrideA = reader.float();
|
|
2396
|
+
continue;
|
|
2397
|
+
}
|
|
2398
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2399
|
+
reader.skip(tag & 7);
|
|
2400
|
+
}
|
|
2401
|
+
return message;
|
|
2402
|
+
},
|
|
2403
|
+
fromJSON(object) {
|
|
2404
|
+
return { currentRatingOverrideA: isSet(object.currentRatingOverrideA) ? globalThis.Number(object.currentRatingOverrideA) : 0 };
|
|
2405
|
+
},
|
|
2406
|
+
toJSON(message) {
|
|
2407
|
+
const obj = {};
|
|
2408
|
+
if (message.currentRatingOverrideA !== void 0) obj.currentRatingOverrideA = message.currentRatingOverrideA;
|
|
2409
|
+
return obj;
|
|
2410
|
+
},
|
|
2411
|
+
create(base) {
|
|
2412
|
+
return PVIAPIConfigureCurrentRatingOverrideResponse.fromPartial(base ?? {});
|
|
2413
|
+
},
|
|
2414
|
+
fromPartial(object) {
|
|
2415
|
+
const message = createBasePVIAPIConfigureCurrentRatingOverrideResponse();
|
|
2416
|
+
message.currentRatingOverrideA = object.currentRatingOverrideA ?? 0;
|
|
2417
|
+
return message;
|
|
2418
|
+
}
|
|
2419
|
+
};
|
|
2420
|
+
function createBasePVIAPIRemoveCurrentRatingOverrideRequest() {
|
|
2421
|
+
return {};
|
|
2422
|
+
}
|
|
2423
|
+
const PVIAPIRemoveCurrentRatingOverrideRequest = {
|
|
2424
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2425
|
+
return writer;
|
|
2426
|
+
},
|
|
2427
|
+
decode(input, length) {
|
|
2428
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2429
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2430
|
+
const message = createBasePVIAPIRemoveCurrentRatingOverrideRequest();
|
|
2431
|
+
while (reader.pos < end) {
|
|
2432
|
+
const tag = reader.uint32();
|
|
2433
|
+
switch (tag >>> 3) {}
|
|
2434
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2435
|
+
reader.skip(tag & 7);
|
|
2436
|
+
}
|
|
2437
|
+
return message;
|
|
2438
|
+
},
|
|
2439
|
+
fromJSON(_) {
|
|
2440
|
+
return {};
|
|
2441
|
+
},
|
|
2442
|
+
toJSON(_) {
|
|
2443
|
+
return {};
|
|
2444
|
+
},
|
|
2445
|
+
create(base) {
|
|
2446
|
+
return PVIAPIRemoveCurrentRatingOverrideRequest.fromPartial(base ?? {});
|
|
2447
|
+
},
|
|
2448
|
+
fromPartial(_) {
|
|
2449
|
+
return createBasePVIAPIRemoveCurrentRatingOverrideRequest();
|
|
2450
|
+
}
|
|
2451
|
+
};
|
|
2452
|
+
function createBasePVIAPIRemoveCurrentRatingOverrideResponse() {
|
|
2453
|
+
return {};
|
|
2454
|
+
}
|
|
2455
|
+
const PVIAPIRemoveCurrentRatingOverrideResponse = {
|
|
2456
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2457
|
+
return writer;
|
|
2458
|
+
},
|
|
2459
|
+
decode(input, length) {
|
|
2460
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2461
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2462
|
+
const message = createBasePVIAPIRemoveCurrentRatingOverrideResponse();
|
|
2463
|
+
while (reader.pos < end) {
|
|
2464
|
+
const tag = reader.uint32();
|
|
2465
|
+
switch (tag >>> 3) {}
|
|
2466
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2467
|
+
reader.skip(tag & 7);
|
|
2468
|
+
}
|
|
2469
|
+
return message;
|
|
2470
|
+
},
|
|
2471
|
+
fromJSON(_) {
|
|
2472
|
+
return {};
|
|
2473
|
+
},
|
|
2474
|
+
toJSON(_) {
|
|
2475
|
+
return {};
|
|
2476
|
+
},
|
|
2477
|
+
create(base) {
|
|
2478
|
+
return PVIAPIRemoveCurrentRatingOverrideResponse.fromPartial(base ?? {});
|
|
2479
|
+
},
|
|
2480
|
+
fromPartial(_) {
|
|
2481
|
+
return createBasePVIAPIRemoveCurrentRatingOverrideResponse();
|
|
2482
|
+
}
|
|
2483
|
+
};
|
|
2484
|
+
function createBasePVIMessages() {
|
|
2485
|
+
return {
|
|
2486
|
+
getSystemInfoRequest: void 0,
|
|
2487
|
+
getSystemInfoResponse: void 0,
|
|
2488
|
+
getVitalsRequest: void 0,
|
|
2489
|
+
getVitalsResponse: void 0,
|
|
2490
|
+
getLifetimeStatsRequest: void 0,
|
|
2491
|
+
getLifetimeStatsResponse: void 0,
|
|
2492
|
+
getConfigRequest: void 0,
|
|
2493
|
+
getConfigResponse: void 0,
|
|
2494
|
+
configureSettingsRequest: void 0,
|
|
2495
|
+
configureSettingsResponse: void 0,
|
|
2496
|
+
configureEthernetRequest: void 0,
|
|
2497
|
+
configureEthernetResponse: void 0,
|
|
2498
|
+
configureGsmRequest: void 0,
|
|
2499
|
+
configureGsmResponse: void 0,
|
|
2500
|
+
inverterResetRequest: void 0,
|
|
2501
|
+
inverterResetResponse: void 0,
|
|
2502
|
+
setOperationParamsRequest: void 0,
|
|
2503
|
+
setOperationParamsResponse: void 0,
|
|
2504
|
+
sendCanMessageRequest: void 0,
|
|
2505
|
+
sendCanMessageResponse: void 0,
|
|
2506
|
+
udsWriteDataByIdentifierRequest: void 0,
|
|
2507
|
+
udsWriteDataByIdentifierResponse: void 0,
|
|
2508
|
+
checkInternetRequest: void 0,
|
|
2509
|
+
checkInternetResponse: void 0,
|
|
2510
|
+
configureGridCodeRequest: void 0,
|
|
2511
|
+
configureGridCodeResponse: void 0,
|
|
2512
|
+
clearAlertsRequest: void 0,
|
|
2513
|
+
clearAlertsResponse: void 0,
|
|
2514
|
+
triggerDrLogRequest: void 0,
|
|
2515
|
+
triggerDrLogResponse: void 0,
|
|
2516
|
+
clearLogsRequest: void 0,
|
|
2517
|
+
clearLogsResponse: void 0,
|
|
2518
|
+
configureSolarInstallationTypeRequest: void 0,
|
|
2519
|
+
configureSolarInstallationTypeResponse: void 0,
|
|
2520
|
+
configureCurrentRatingOverrideRequest: void 0,
|
|
2521
|
+
configureCurrentRatingOverrideResponse: void 0,
|
|
2522
|
+
removeCurrentRatingOverrideRequest: void 0,
|
|
2523
|
+
removeCurrentRatingOverrideResponse: void 0
|
|
2524
|
+
};
|
|
2525
|
+
}
|
|
2526
|
+
const PVIMessages = {
|
|
2527
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2528
|
+
if (message.getSystemInfoRequest !== void 0) PVIAPIGetSystemInfoRequest.encode(message.getSystemInfoRequest, writer.uint32(10).fork()).join();
|
|
2529
|
+
if (message.getSystemInfoResponse !== void 0) PVIAPIGetSystemInfoResponse.encode(message.getSystemInfoResponse, writer.uint32(18).fork()).join();
|
|
2530
|
+
if (message.getVitalsRequest !== void 0) PVIAPIGetVitalsRequest.encode(message.getVitalsRequest, writer.uint32(26).fork()).join();
|
|
2531
|
+
if (message.getVitalsResponse !== void 0) PVIAPIGetVitalsResponse.encode(message.getVitalsResponse, writer.uint32(34).fork()).join();
|
|
2532
|
+
if (message.getLifetimeStatsRequest !== void 0) PVIAPIGetLifetimeStatsRequest.encode(message.getLifetimeStatsRequest, writer.uint32(42).fork()).join();
|
|
2533
|
+
if (message.getLifetimeStatsResponse !== void 0) PVIAPIGetLifetimeStatsResponse.encode(message.getLifetimeStatsResponse, writer.uint32(50).fork()).join();
|
|
2534
|
+
if (message.getConfigRequest !== void 0) PVIAPIGetConfigRequest.encode(message.getConfigRequest, writer.uint32(58).fork()).join();
|
|
2535
|
+
if (message.getConfigResponse !== void 0) PVIAPIGetConfigResponse.encode(message.getConfigResponse, writer.uint32(66).fork()).join();
|
|
2536
|
+
if (message.configureSettingsRequest !== void 0) PVIAPIConfigureSettingsRequest.encode(message.configureSettingsRequest, writer.uint32(74).fork()).join();
|
|
2537
|
+
if (message.configureSettingsResponse !== void 0) PVIAPIConfigureSettingsResponse.encode(message.configureSettingsResponse, writer.uint32(82).fork()).join();
|
|
2538
|
+
if (message.configureEthernetRequest !== void 0) PVIAPIConfigureEthernetRequest.encode(message.configureEthernetRequest, writer.uint32(90).fork()).join();
|
|
2539
|
+
if (message.configureEthernetResponse !== void 0) PVIAPIConfigureEthernetResponse.encode(message.configureEthernetResponse, writer.uint32(98).fork()).join();
|
|
2540
|
+
if (message.configureGsmRequest !== void 0) PVIAPIConfigureGsmRequest.encode(message.configureGsmRequest, writer.uint32(106).fork()).join();
|
|
2541
|
+
if (message.configureGsmResponse !== void 0) PVIAPIConfigureGsmResponse.encode(message.configureGsmResponse, writer.uint32(114).fork()).join();
|
|
2542
|
+
if (message.inverterResetRequest !== void 0) PVIAPIInverterResetRequest.encode(message.inverterResetRequest, writer.uint32(122).fork()).join();
|
|
2543
|
+
if (message.inverterResetResponse !== void 0) PVIAPIInverterResetResponse.encode(message.inverterResetResponse, writer.uint32(130).fork()).join();
|
|
2544
|
+
if (message.setOperationParamsRequest !== void 0) PVIAPISetOperationParamsRequest.encode(message.setOperationParamsRequest, writer.uint32(138).fork()).join();
|
|
2545
|
+
if (message.setOperationParamsResponse !== void 0) PVIAPISetOperationParamsResponse.encode(message.setOperationParamsResponse, writer.uint32(146).fork()).join();
|
|
2546
|
+
if (message.sendCanMessageRequest !== void 0) PVIAPISendCanMessageRequest.encode(message.sendCanMessageRequest, writer.uint32(154).fork()).join();
|
|
2547
|
+
if (message.sendCanMessageResponse !== void 0) PVIAPISendCanMessageResponse.encode(message.sendCanMessageResponse, writer.uint32(162).fork()).join();
|
|
2548
|
+
if (message.udsWriteDataByIdentifierRequest !== void 0) PVIAPIUdsWriteDataByIdentifierRequest.encode(message.udsWriteDataByIdentifierRequest, writer.uint32(170).fork()).join();
|
|
2549
|
+
if (message.udsWriteDataByIdentifierResponse !== void 0) PVIAPIUdsWriteDataByIdentifierResponse.encode(message.udsWriteDataByIdentifierResponse, writer.uint32(178).fork()).join();
|
|
2550
|
+
if (message.checkInternetRequest !== void 0) PVIAPICheckInternetRequest.encode(message.checkInternetRequest, writer.uint32(186).fork()).join();
|
|
2551
|
+
if (message.checkInternetResponse !== void 0) PVIAPICheckInternetResponse.encode(message.checkInternetResponse, writer.uint32(194).fork()).join();
|
|
2552
|
+
if (message.configureGridCodeRequest !== void 0) PVIAPIConfigureGridCodeRequest.encode(message.configureGridCodeRequest, writer.uint32(202).fork()).join();
|
|
2553
|
+
if (message.configureGridCodeResponse !== void 0) PVIAPIConfigureGridCodeResponse.encode(message.configureGridCodeResponse, writer.uint32(210).fork()).join();
|
|
2554
|
+
if (message.clearAlertsRequest !== void 0) PVIAPIClearAlertsRequest.encode(message.clearAlertsRequest, writer.uint32(218).fork()).join();
|
|
2555
|
+
if (message.clearAlertsResponse !== void 0) PVIAPIClearAlertsResponse.encode(message.clearAlertsResponse, writer.uint32(226).fork()).join();
|
|
2556
|
+
if (message.triggerDrLogRequest !== void 0) PVIAPITriggerDrLogRequest.encode(message.triggerDrLogRequest, writer.uint32(234).fork()).join();
|
|
2557
|
+
if (message.triggerDrLogResponse !== void 0) PVIAPITriggerDrLogResponse.encode(message.triggerDrLogResponse, writer.uint32(242).fork()).join();
|
|
2558
|
+
if (message.clearLogsRequest !== void 0) PVIAPIClearLogsRequest.encode(message.clearLogsRequest, writer.uint32(250).fork()).join();
|
|
2559
|
+
if (message.clearLogsResponse !== void 0) PVIAPIClearLogsResponse.encode(message.clearLogsResponse, writer.uint32(258).fork()).join();
|
|
2560
|
+
if (message.configureSolarInstallationTypeRequest !== void 0) PVIAPIConfigureSolarInstallationTypeRequest.encode(message.configureSolarInstallationTypeRequest, writer.uint32(266).fork()).join();
|
|
2561
|
+
if (message.configureSolarInstallationTypeResponse !== void 0) PVIAPIConfigureSolarInstallationTypeResponse.encode(message.configureSolarInstallationTypeResponse, writer.uint32(274).fork()).join();
|
|
2562
|
+
if (message.configureCurrentRatingOverrideRequest !== void 0) PVIAPIConfigureCurrentRatingOverrideRequest.encode(message.configureCurrentRatingOverrideRequest, writer.uint32(282).fork()).join();
|
|
2563
|
+
if (message.configureCurrentRatingOverrideResponse !== void 0) PVIAPIConfigureCurrentRatingOverrideResponse.encode(message.configureCurrentRatingOverrideResponse, writer.uint32(290).fork()).join();
|
|
2564
|
+
if (message.removeCurrentRatingOverrideRequest !== void 0) PVIAPIRemoveCurrentRatingOverrideRequest.encode(message.removeCurrentRatingOverrideRequest, writer.uint32(298).fork()).join();
|
|
2565
|
+
if (message.removeCurrentRatingOverrideResponse !== void 0) PVIAPIRemoveCurrentRatingOverrideResponse.encode(message.removeCurrentRatingOverrideResponse, writer.uint32(306).fork()).join();
|
|
2566
|
+
return writer;
|
|
2567
|
+
},
|
|
2568
|
+
decode(input, length) {
|
|
2569
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2570
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2571
|
+
const message = createBasePVIMessages();
|
|
2572
|
+
while (reader.pos < end) {
|
|
2573
|
+
const tag = reader.uint32();
|
|
2574
|
+
switch (tag >>> 3) {
|
|
2575
|
+
case 1:
|
|
2576
|
+
if (tag !== 10) break;
|
|
2577
|
+
message.getSystemInfoRequest = PVIAPIGetSystemInfoRequest.decode(reader, reader.uint32());
|
|
2578
|
+
continue;
|
|
2579
|
+
case 2:
|
|
2580
|
+
if (tag !== 18) break;
|
|
2581
|
+
message.getSystemInfoResponse = PVIAPIGetSystemInfoResponse.decode(reader, reader.uint32());
|
|
2582
|
+
continue;
|
|
2583
|
+
case 3:
|
|
2584
|
+
if (tag !== 26) break;
|
|
2585
|
+
message.getVitalsRequest = PVIAPIGetVitalsRequest.decode(reader, reader.uint32());
|
|
2586
|
+
continue;
|
|
2587
|
+
case 4:
|
|
2588
|
+
if (tag !== 34) break;
|
|
2589
|
+
message.getVitalsResponse = PVIAPIGetVitalsResponse.decode(reader, reader.uint32());
|
|
2590
|
+
continue;
|
|
2591
|
+
case 5:
|
|
2592
|
+
if (tag !== 42) break;
|
|
2593
|
+
message.getLifetimeStatsRequest = PVIAPIGetLifetimeStatsRequest.decode(reader, reader.uint32());
|
|
2594
|
+
continue;
|
|
2595
|
+
case 6:
|
|
2596
|
+
if (tag !== 50) break;
|
|
2597
|
+
message.getLifetimeStatsResponse = PVIAPIGetLifetimeStatsResponse.decode(reader, reader.uint32());
|
|
2598
|
+
continue;
|
|
2599
|
+
case 7:
|
|
2600
|
+
if (tag !== 58) break;
|
|
2601
|
+
message.getConfigRequest = PVIAPIGetConfigRequest.decode(reader, reader.uint32());
|
|
2602
|
+
continue;
|
|
2603
|
+
case 8:
|
|
2604
|
+
if (tag !== 66) break;
|
|
2605
|
+
message.getConfigResponse = PVIAPIGetConfigResponse.decode(reader, reader.uint32());
|
|
2606
|
+
continue;
|
|
2607
|
+
case 9:
|
|
2608
|
+
if (tag !== 74) break;
|
|
2609
|
+
message.configureSettingsRequest = PVIAPIConfigureSettingsRequest.decode(reader, reader.uint32());
|
|
2610
|
+
continue;
|
|
2611
|
+
case 10:
|
|
2612
|
+
if (tag !== 82) break;
|
|
2613
|
+
message.configureSettingsResponse = PVIAPIConfigureSettingsResponse.decode(reader, reader.uint32());
|
|
2614
|
+
continue;
|
|
2615
|
+
case 11:
|
|
2616
|
+
if (tag !== 90) break;
|
|
2617
|
+
message.configureEthernetRequest = PVIAPIConfigureEthernetRequest.decode(reader, reader.uint32());
|
|
2618
|
+
continue;
|
|
2619
|
+
case 12:
|
|
2620
|
+
if (tag !== 98) break;
|
|
2621
|
+
message.configureEthernetResponse = PVIAPIConfigureEthernetResponse.decode(reader, reader.uint32());
|
|
2622
|
+
continue;
|
|
2623
|
+
case 13:
|
|
2624
|
+
if (tag !== 106) break;
|
|
2625
|
+
message.configureGsmRequest = PVIAPIConfigureGsmRequest.decode(reader, reader.uint32());
|
|
2626
|
+
continue;
|
|
2627
|
+
case 14:
|
|
2628
|
+
if (tag !== 114) break;
|
|
2629
|
+
message.configureGsmResponse = PVIAPIConfigureGsmResponse.decode(reader, reader.uint32());
|
|
2630
|
+
continue;
|
|
2631
|
+
case 15:
|
|
2632
|
+
if (tag !== 122) break;
|
|
2633
|
+
message.inverterResetRequest = PVIAPIInverterResetRequest.decode(reader, reader.uint32());
|
|
2634
|
+
continue;
|
|
2635
|
+
case 16:
|
|
2636
|
+
if (tag !== 130) break;
|
|
2637
|
+
message.inverterResetResponse = PVIAPIInverterResetResponse.decode(reader, reader.uint32());
|
|
2638
|
+
continue;
|
|
2639
|
+
case 17:
|
|
2640
|
+
if (tag !== 138) break;
|
|
2641
|
+
message.setOperationParamsRequest = PVIAPISetOperationParamsRequest.decode(reader, reader.uint32());
|
|
2642
|
+
continue;
|
|
2643
|
+
case 18:
|
|
2644
|
+
if (tag !== 146) break;
|
|
2645
|
+
message.setOperationParamsResponse = PVIAPISetOperationParamsResponse.decode(reader, reader.uint32());
|
|
2646
|
+
continue;
|
|
2647
|
+
case 19:
|
|
2648
|
+
if (tag !== 154) break;
|
|
2649
|
+
message.sendCanMessageRequest = PVIAPISendCanMessageRequest.decode(reader, reader.uint32());
|
|
2650
|
+
continue;
|
|
2651
|
+
case 20:
|
|
2652
|
+
if (tag !== 162) break;
|
|
2653
|
+
message.sendCanMessageResponse = PVIAPISendCanMessageResponse.decode(reader, reader.uint32());
|
|
2654
|
+
continue;
|
|
2655
|
+
case 21:
|
|
2656
|
+
if (tag !== 170) break;
|
|
2657
|
+
message.udsWriteDataByIdentifierRequest = PVIAPIUdsWriteDataByIdentifierRequest.decode(reader, reader.uint32());
|
|
2658
|
+
continue;
|
|
2659
|
+
case 22:
|
|
2660
|
+
if (tag !== 178) break;
|
|
2661
|
+
message.udsWriteDataByIdentifierResponse = PVIAPIUdsWriteDataByIdentifierResponse.decode(reader, reader.uint32());
|
|
2662
|
+
continue;
|
|
2663
|
+
case 23:
|
|
2664
|
+
if (tag !== 186) break;
|
|
2665
|
+
message.checkInternetRequest = PVIAPICheckInternetRequest.decode(reader, reader.uint32());
|
|
2666
|
+
continue;
|
|
2667
|
+
case 24:
|
|
2668
|
+
if (tag !== 194) break;
|
|
2669
|
+
message.checkInternetResponse = PVIAPICheckInternetResponse.decode(reader, reader.uint32());
|
|
2670
|
+
continue;
|
|
2671
|
+
case 25:
|
|
2672
|
+
if (tag !== 202) break;
|
|
2673
|
+
message.configureGridCodeRequest = PVIAPIConfigureGridCodeRequest.decode(reader, reader.uint32());
|
|
2674
|
+
continue;
|
|
2675
|
+
case 26:
|
|
2676
|
+
if (tag !== 210) break;
|
|
2677
|
+
message.configureGridCodeResponse = PVIAPIConfigureGridCodeResponse.decode(reader, reader.uint32());
|
|
2678
|
+
continue;
|
|
2679
|
+
case 27:
|
|
2680
|
+
if (tag !== 218) break;
|
|
2681
|
+
message.clearAlertsRequest = PVIAPIClearAlertsRequest.decode(reader, reader.uint32());
|
|
2682
|
+
continue;
|
|
2683
|
+
case 28:
|
|
2684
|
+
if (tag !== 226) break;
|
|
2685
|
+
message.clearAlertsResponse = PVIAPIClearAlertsResponse.decode(reader, reader.uint32());
|
|
2686
|
+
continue;
|
|
2687
|
+
case 29:
|
|
2688
|
+
if (tag !== 234) break;
|
|
2689
|
+
message.triggerDrLogRequest = PVIAPITriggerDrLogRequest.decode(reader, reader.uint32());
|
|
2690
|
+
continue;
|
|
2691
|
+
case 30:
|
|
2692
|
+
if (tag !== 242) break;
|
|
2693
|
+
message.triggerDrLogResponse = PVIAPITriggerDrLogResponse.decode(reader, reader.uint32());
|
|
2694
|
+
continue;
|
|
2695
|
+
case 31:
|
|
2696
|
+
if (tag !== 250) break;
|
|
2697
|
+
message.clearLogsRequest = PVIAPIClearLogsRequest.decode(reader, reader.uint32());
|
|
2698
|
+
continue;
|
|
2699
|
+
case 32:
|
|
2700
|
+
if (tag !== 258) break;
|
|
2701
|
+
message.clearLogsResponse = PVIAPIClearLogsResponse.decode(reader, reader.uint32());
|
|
2702
|
+
continue;
|
|
2703
|
+
case 33:
|
|
2704
|
+
if (tag !== 266) break;
|
|
2705
|
+
message.configureSolarInstallationTypeRequest = PVIAPIConfigureSolarInstallationTypeRequest.decode(reader, reader.uint32());
|
|
2706
|
+
continue;
|
|
2707
|
+
case 34:
|
|
2708
|
+
if (tag !== 274) break;
|
|
2709
|
+
message.configureSolarInstallationTypeResponse = PVIAPIConfigureSolarInstallationTypeResponse.decode(reader, reader.uint32());
|
|
2710
|
+
continue;
|
|
2711
|
+
case 35:
|
|
2712
|
+
if (tag !== 282) break;
|
|
2713
|
+
message.configureCurrentRatingOverrideRequest = PVIAPIConfigureCurrentRatingOverrideRequest.decode(reader, reader.uint32());
|
|
2714
|
+
continue;
|
|
2715
|
+
case 36:
|
|
2716
|
+
if (tag !== 290) break;
|
|
2717
|
+
message.configureCurrentRatingOverrideResponse = PVIAPIConfigureCurrentRatingOverrideResponse.decode(reader, reader.uint32());
|
|
2718
|
+
continue;
|
|
2719
|
+
case 37:
|
|
2720
|
+
if (tag !== 298) break;
|
|
2721
|
+
message.removeCurrentRatingOverrideRequest = PVIAPIRemoveCurrentRatingOverrideRequest.decode(reader, reader.uint32());
|
|
2722
|
+
continue;
|
|
2723
|
+
case 38:
|
|
2724
|
+
if (tag !== 306) break;
|
|
2725
|
+
message.removeCurrentRatingOverrideResponse = PVIAPIRemoveCurrentRatingOverrideResponse.decode(reader, reader.uint32());
|
|
2726
|
+
continue;
|
|
2727
|
+
}
|
|
2728
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2729
|
+
reader.skip(tag & 7);
|
|
2730
|
+
}
|
|
2731
|
+
return message;
|
|
2732
|
+
},
|
|
2733
|
+
fromJSON(object) {
|
|
2734
|
+
return {
|
|
2735
|
+
getSystemInfoRequest: isSet(object.getSystemInfoRequest) ? PVIAPIGetSystemInfoRequest.fromJSON(object.getSystemInfoRequest) : void 0,
|
|
2736
|
+
getSystemInfoResponse: isSet(object.getSystemInfoResponse) ? PVIAPIGetSystemInfoResponse.fromJSON(object.getSystemInfoResponse) : void 0,
|
|
2737
|
+
getVitalsRequest: isSet(object.getVitalsRequest) ? PVIAPIGetVitalsRequest.fromJSON(object.getVitalsRequest) : void 0,
|
|
2738
|
+
getVitalsResponse: isSet(object.getVitalsResponse) ? PVIAPIGetVitalsResponse.fromJSON(object.getVitalsResponse) : void 0,
|
|
2739
|
+
getLifetimeStatsRequest: isSet(object.getLifetimeStatsRequest) ? PVIAPIGetLifetimeStatsRequest.fromJSON(object.getLifetimeStatsRequest) : void 0,
|
|
2740
|
+
getLifetimeStatsResponse: isSet(object.getLifetimeStatsResponse) ? PVIAPIGetLifetimeStatsResponse.fromJSON(object.getLifetimeStatsResponse) : void 0,
|
|
2741
|
+
getConfigRequest: isSet(object.getConfigRequest) ? PVIAPIGetConfigRequest.fromJSON(object.getConfigRequest) : void 0,
|
|
2742
|
+
getConfigResponse: isSet(object.getConfigResponse) ? PVIAPIGetConfigResponse.fromJSON(object.getConfigResponse) : void 0,
|
|
2743
|
+
configureSettingsRequest: isSet(object.configureSettingsRequest) ? PVIAPIConfigureSettingsRequest.fromJSON(object.configureSettingsRequest) : void 0,
|
|
2744
|
+
configureSettingsResponse: isSet(object.configureSettingsResponse) ? PVIAPIConfigureSettingsResponse.fromJSON(object.configureSettingsResponse) : void 0,
|
|
2745
|
+
configureEthernetRequest: isSet(object.configureEthernetRequest) ? PVIAPIConfigureEthernetRequest.fromJSON(object.configureEthernetRequest) : void 0,
|
|
2746
|
+
configureEthernetResponse: isSet(object.configureEthernetResponse) ? PVIAPIConfigureEthernetResponse.fromJSON(object.configureEthernetResponse) : void 0,
|
|
2747
|
+
configureGsmRequest: isSet(object.configureGsmRequest) ? PVIAPIConfigureGsmRequest.fromJSON(object.configureGsmRequest) : void 0,
|
|
2748
|
+
configureGsmResponse: isSet(object.configureGsmResponse) ? PVIAPIConfigureGsmResponse.fromJSON(object.configureGsmResponse) : void 0,
|
|
2749
|
+
inverterResetRequest: isSet(object.inverterResetRequest) ? PVIAPIInverterResetRequest.fromJSON(object.inverterResetRequest) : void 0,
|
|
2750
|
+
inverterResetResponse: isSet(object.inverterResetResponse) ? PVIAPIInverterResetResponse.fromJSON(object.inverterResetResponse) : void 0,
|
|
2751
|
+
setOperationParamsRequest: isSet(object.setOperationParamsRequest) ? PVIAPISetOperationParamsRequest.fromJSON(object.setOperationParamsRequest) : void 0,
|
|
2752
|
+
setOperationParamsResponse: isSet(object.setOperationParamsResponse) ? PVIAPISetOperationParamsResponse.fromJSON(object.setOperationParamsResponse) : void 0,
|
|
2753
|
+
sendCanMessageRequest: isSet(object.sendCanMessageRequest) ? PVIAPISendCanMessageRequest.fromJSON(object.sendCanMessageRequest) : void 0,
|
|
2754
|
+
sendCanMessageResponse: isSet(object.sendCanMessageResponse) ? PVIAPISendCanMessageResponse.fromJSON(object.sendCanMessageResponse) : void 0,
|
|
2755
|
+
udsWriteDataByIdentifierRequest: isSet(object.udsWriteDataByIdentifierRequest) ? PVIAPIUdsWriteDataByIdentifierRequest.fromJSON(object.udsWriteDataByIdentifierRequest) : void 0,
|
|
2756
|
+
udsWriteDataByIdentifierResponse: isSet(object.udsWriteDataByIdentifierResponse) ? PVIAPIUdsWriteDataByIdentifierResponse.fromJSON(object.udsWriteDataByIdentifierResponse) : void 0,
|
|
2757
|
+
checkInternetRequest: isSet(object.checkInternetRequest) ? PVIAPICheckInternetRequest.fromJSON(object.checkInternetRequest) : void 0,
|
|
2758
|
+
checkInternetResponse: isSet(object.checkInternetResponse) ? PVIAPICheckInternetResponse.fromJSON(object.checkInternetResponse) : void 0,
|
|
2759
|
+
configureGridCodeRequest: isSet(object.configureGridCodeRequest) ? PVIAPIConfigureGridCodeRequest.fromJSON(object.configureGridCodeRequest) : void 0,
|
|
2760
|
+
configureGridCodeResponse: isSet(object.configureGridCodeResponse) ? PVIAPIConfigureGridCodeResponse.fromJSON(object.configureGridCodeResponse) : void 0,
|
|
2761
|
+
clearAlertsRequest: isSet(object.clearAlertsRequest) ? PVIAPIClearAlertsRequest.fromJSON(object.clearAlertsRequest) : void 0,
|
|
2762
|
+
clearAlertsResponse: isSet(object.clearAlertsResponse) ? PVIAPIClearAlertsResponse.fromJSON(object.clearAlertsResponse) : void 0,
|
|
2763
|
+
triggerDrLogRequest: isSet(object.triggerDrLogRequest) ? PVIAPITriggerDrLogRequest.fromJSON(object.triggerDrLogRequest) : void 0,
|
|
2764
|
+
triggerDrLogResponse: isSet(object.triggerDrLogResponse) ? PVIAPITriggerDrLogResponse.fromJSON(object.triggerDrLogResponse) : void 0,
|
|
2765
|
+
clearLogsRequest: isSet(object.clearLogsRequest) ? PVIAPIClearLogsRequest.fromJSON(object.clearLogsRequest) : void 0,
|
|
2766
|
+
clearLogsResponse: isSet(object.clearLogsResponse) ? PVIAPIClearLogsResponse.fromJSON(object.clearLogsResponse) : void 0,
|
|
2767
|
+
configureSolarInstallationTypeRequest: isSet(object.configureSolarInstallationTypeRequest) ? PVIAPIConfigureSolarInstallationTypeRequest.fromJSON(object.configureSolarInstallationTypeRequest) : void 0,
|
|
2768
|
+
configureSolarInstallationTypeResponse: isSet(object.configureSolarInstallationTypeResponse) ? PVIAPIConfigureSolarInstallationTypeResponse.fromJSON(object.configureSolarInstallationTypeResponse) : void 0,
|
|
2769
|
+
configureCurrentRatingOverrideRequest: isSet(object.configureCurrentRatingOverrideRequest) ? PVIAPIConfigureCurrentRatingOverrideRequest.fromJSON(object.configureCurrentRatingOverrideRequest) : void 0,
|
|
2770
|
+
configureCurrentRatingOverrideResponse: isSet(object.configureCurrentRatingOverrideResponse) ? PVIAPIConfigureCurrentRatingOverrideResponse.fromJSON(object.configureCurrentRatingOverrideResponse) : void 0,
|
|
2771
|
+
removeCurrentRatingOverrideRequest: isSet(object.removeCurrentRatingOverrideRequest) ? PVIAPIRemoveCurrentRatingOverrideRequest.fromJSON(object.removeCurrentRatingOverrideRequest) : void 0,
|
|
2772
|
+
removeCurrentRatingOverrideResponse: isSet(object.removeCurrentRatingOverrideResponse) ? PVIAPIRemoveCurrentRatingOverrideResponse.fromJSON(object.removeCurrentRatingOverrideResponse) : void 0
|
|
2773
|
+
};
|
|
2774
|
+
},
|
|
2775
|
+
toJSON(message) {
|
|
2776
|
+
const obj = {};
|
|
2777
|
+
if (message.getSystemInfoRequest !== void 0) obj.getSystemInfoRequest = PVIAPIGetSystemInfoRequest.toJSON(message.getSystemInfoRequest);
|
|
2778
|
+
if (message.getSystemInfoResponse !== void 0) obj.getSystemInfoResponse = PVIAPIGetSystemInfoResponse.toJSON(message.getSystemInfoResponse);
|
|
2779
|
+
if (message.getVitalsRequest !== void 0) obj.getVitalsRequest = PVIAPIGetVitalsRequest.toJSON(message.getVitalsRequest);
|
|
2780
|
+
if (message.getVitalsResponse !== void 0) obj.getVitalsResponse = PVIAPIGetVitalsResponse.toJSON(message.getVitalsResponse);
|
|
2781
|
+
if (message.getLifetimeStatsRequest !== void 0) obj.getLifetimeStatsRequest = PVIAPIGetLifetimeStatsRequest.toJSON(message.getLifetimeStatsRequest);
|
|
2782
|
+
if (message.getLifetimeStatsResponse !== void 0) obj.getLifetimeStatsResponse = PVIAPIGetLifetimeStatsResponse.toJSON(message.getLifetimeStatsResponse);
|
|
2783
|
+
if (message.getConfigRequest !== void 0) obj.getConfigRequest = PVIAPIGetConfigRequest.toJSON(message.getConfigRequest);
|
|
2784
|
+
if (message.getConfigResponse !== void 0) obj.getConfigResponse = PVIAPIGetConfigResponse.toJSON(message.getConfigResponse);
|
|
2785
|
+
if (message.configureSettingsRequest !== void 0) obj.configureSettingsRequest = PVIAPIConfigureSettingsRequest.toJSON(message.configureSettingsRequest);
|
|
2786
|
+
if (message.configureSettingsResponse !== void 0) obj.configureSettingsResponse = PVIAPIConfigureSettingsResponse.toJSON(message.configureSettingsResponse);
|
|
2787
|
+
if (message.configureEthernetRequest !== void 0) obj.configureEthernetRequest = PVIAPIConfigureEthernetRequest.toJSON(message.configureEthernetRequest);
|
|
2788
|
+
if (message.configureEthernetResponse !== void 0) obj.configureEthernetResponse = PVIAPIConfigureEthernetResponse.toJSON(message.configureEthernetResponse);
|
|
2789
|
+
if (message.configureGsmRequest !== void 0) obj.configureGsmRequest = PVIAPIConfigureGsmRequest.toJSON(message.configureGsmRequest);
|
|
2790
|
+
if (message.configureGsmResponse !== void 0) obj.configureGsmResponse = PVIAPIConfigureGsmResponse.toJSON(message.configureGsmResponse);
|
|
2791
|
+
if (message.inverterResetRequest !== void 0) obj.inverterResetRequest = PVIAPIInverterResetRequest.toJSON(message.inverterResetRequest);
|
|
2792
|
+
if (message.inverterResetResponse !== void 0) obj.inverterResetResponse = PVIAPIInverterResetResponse.toJSON(message.inverterResetResponse);
|
|
2793
|
+
if (message.setOperationParamsRequest !== void 0) obj.setOperationParamsRequest = PVIAPISetOperationParamsRequest.toJSON(message.setOperationParamsRequest);
|
|
2794
|
+
if (message.setOperationParamsResponse !== void 0) obj.setOperationParamsResponse = PVIAPISetOperationParamsResponse.toJSON(message.setOperationParamsResponse);
|
|
2795
|
+
if (message.sendCanMessageRequest !== void 0) obj.sendCanMessageRequest = PVIAPISendCanMessageRequest.toJSON(message.sendCanMessageRequest);
|
|
2796
|
+
if (message.sendCanMessageResponse !== void 0) obj.sendCanMessageResponse = PVIAPISendCanMessageResponse.toJSON(message.sendCanMessageResponse);
|
|
2797
|
+
if (message.udsWriteDataByIdentifierRequest !== void 0) obj.udsWriteDataByIdentifierRequest = PVIAPIUdsWriteDataByIdentifierRequest.toJSON(message.udsWriteDataByIdentifierRequest);
|
|
2798
|
+
if (message.udsWriteDataByIdentifierResponse !== void 0) obj.udsWriteDataByIdentifierResponse = PVIAPIUdsWriteDataByIdentifierResponse.toJSON(message.udsWriteDataByIdentifierResponse);
|
|
2799
|
+
if (message.checkInternetRequest !== void 0) obj.checkInternetRequest = PVIAPICheckInternetRequest.toJSON(message.checkInternetRequest);
|
|
2800
|
+
if (message.checkInternetResponse !== void 0) obj.checkInternetResponse = PVIAPICheckInternetResponse.toJSON(message.checkInternetResponse);
|
|
2801
|
+
if (message.configureGridCodeRequest !== void 0) obj.configureGridCodeRequest = PVIAPIConfigureGridCodeRequest.toJSON(message.configureGridCodeRequest);
|
|
2802
|
+
if (message.configureGridCodeResponse !== void 0) obj.configureGridCodeResponse = PVIAPIConfigureGridCodeResponse.toJSON(message.configureGridCodeResponse);
|
|
2803
|
+
if (message.clearAlertsRequest !== void 0) obj.clearAlertsRequest = PVIAPIClearAlertsRequest.toJSON(message.clearAlertsRequest);
|
|
2804
|
+
if (message.clearAlertsResponse !== void 0) obj.clearAlertsResponse = PVIAPIClearAlertsResponse.toJSON(message.clearAlertsResponse);
|
|
2805
|
+
if (message.triggerDrLogRequest !== void 0) obj.triggerDrLogRequest = PVIAPITriggerDrLogRequest.toJSON(message.triggerDrLogRequest);
|
|
2806
|
+
if (message.triggerDrLogResponse !== void 0) obj.triggerDrLogResponse = PVIAPITriggerDrLogResponse.toJSON(message.triggerDrLogResponse);
|
|
2807
|
+
if (message.clearLogsRequest !== void 0) obj.clearLogsRequest = PVIAPIClearLogsRequest.toJSON(message.clearLogsRequest);
|
|
2808
|
+
if (message.clearLogsResponse !== void 0) obj.clearLogsResponse = PVIAPIClearLogsResponse.toJSON(message.clearLogsResponse);
|
|
2809
|
+
if (message.configureSolarInstallationTypeRequest !== void 0) obj.configureSolarInstallationTypeRequest = PVIAPIConfigureSolarInstallationTypeRequest.toJSON(message.configureSolarInstallationTypeRequest);
|
|
2810
|
+
if (message.configureSolarInstallationTypeResponse !== void 0) obj.configureSolarInstallationTypeResponse = PVIAPIConfigureSolarInstallationTypeResponse.toJSON(message.configureSolarInstallationTypeResponse);
|
|
2811
|
+
if (message.configureCurrentRatingOverrideRequest !== void 0) obj.configureCurrentRatingOverrideRequest = PVIAPIConfigureCurrentRatingOverrideRequest.toJSON(message.configureCurrentRatingOverrideRequest);
|
|
2812
|
+
if (message.configureCurrentRatingOverrideResponse !== void 0) obj.configureCurrentRatingOverrideResponse = PVIAPIConfigureCurrentRatingOverrideResponse.toJSON(message.configureCurrentRatingOverrideResponse);
|
|
2813
|
+
if (message.removeCurrentRatingOverrideRequest !== void 0) obj.removeCurrentRatingOverrideRequest = PVIAPIRemoveCurrentRatingOverrideRequest.toJSON(message.removeCurrentRatingOverrideRequest);
|
|
2814
|
+
if (message.removeCurrentRatingOverrideResponse !== void 0) obj.removeCurrentRatingOverrideResponse = PVIAPIRemoveCurrentRatingOverrideResponse.toJSON(message.removeCurrentRatingOverrideResponse);
|
|
2815
|
+
return obj;
|
|
2816
|
+
},
|
|
2817
|
+
create(base) {
|
|
2818
|
+
return PVIMessages.fromPartial(base ?? {});
|
|
2819
|
+
},
|
|
2820
|
+
fromPartial(object) {
|
|
2821
|
+
const message = createBasePVIMessages();
|
|
2822
|
+
message.getSystemInfoRequest = object.getSystemInfoRequest !== void 0 && object.getSystemInfoRequest !== null ? PVIAPIGetSystemInfoRequest.fromPartial(object.getSystemInfoRequest) : void 0;
|
|
2823
|
+
message.getSystemInfoResponse = object.getSystemInfoResponse !== void 0 && object.getSystemInfoResponse !== null ? PVIAPIGetSystemInfoResponse.fromPartial(object.getSystemInfoResponse) : void 0;
|
|
2824
|
+
message.getVitalsRequest = object.getVitalsRequest !== void 0 && object.getVitalsRequest !== null ? PVIAPIGetVitalsRequest.fromPartial(object.getVitalsRequest) : void 0;
|
|
2825
|
+
message.getVitalsResponse = object.getVitalsResponse !== void 0 && object.getVitalsResponse !== null ? PVIAPIGetVitalsResponse.fromPartial(object.getVitalsResponse) : void 0;
|
|
2826
|
+
message.getLifetimeStatsRequest = object.getLifetimeStatsRequest !== void 0 && object.getLifetimeStatsRequest !== null ? PVIAPIGetLifetimeStatsRequest.fromPartial(object.getLifetimeStatsRequest) : void 0;
|
|
2827
|
+
message.getLifetimeStatsResponse = object.getLifetimeStatsResponse !== void 0 && object.getLifetimeStatsResponse !== null ? PVIAPIGetLifetimeStatsResponse.fromPartial(object.getLifetimeStatsResponse) : void 0;
|
|
2828
|
+
message.getConfigRequest = object.getConfigRequest !== void 0 && object.getConfigRequest !== null ? PVIAPIGetConfigRequest.fromPartial(object.getConfigRequest) : void 0;
|
|
2829
|
+
message.getConfigResponse = object.getConfigResponse !== void 0 && object.getConfigResponse !== null ? PVIAPIGetConfigResponse.fromPartial(object.getConfigResponse) : void 0;
|
|
2830
|
+
message.configureSettingsRequest = object.configureSettingsRequest !== void 0 && object.configureSettingsRequest !== null ? PVIAPIConfigureSettingsRequest.fromPartial(object.configureSettingsRequest) : void 0;
|
|
2831
|
+
message.configureSettingsResponse = object.configureSettingsResponse !== void 0 && object.configureSettingsResponse !== null ? PVIAPIConfigureSettingsResponse.fromPartial(object.configureSettingsResponse) : void 0;
|
|
2832
|
+
message.configureEthernetRequest = object.configureEthernetRequest !== void 0 && object.configureEthernetRequest !== null ? PVIAPIConfigureEthernetRequest.fromPartial(object.configureEthernetRequest) : void 0;
|
|
2833
|
+
message.configureEthernetResponse = object.configureEthernetResponse !== void 0 && object.configureEthernetResponse !== null ? PVIAPIConfigureEthernetResponse.fromPartial(object.configureEthernetResponse) : void 0;
|
|
2834
|
+
message.configureGsmRequest = object.configureGsmRequest !== void 0 && object.configureGsmRequest !== null ? PVIAPIConfigureGsmRequest.fromPartial(object.configureGsmRequest) : void 0;
|
|
2835
|
+
message.configureGsmResponse = object.configureGsmResponse !== void 0 && object.configureGsmResponse !== null ? PVIAPIConfigureGsmResponse.fromPartial(object.configureGsmResponse) : void 0;
|
|
2836
|
+
message.inverterResetRequest = object.inverterResetRequest !== void 0 && object.inverterResetRequest !== null ? PVIAPIInverterResetRequest.fromPartial(object.inverterResetRequest) : void 0;
|
|
2837
|
+
message.inverterResetResponse = object.inverterResetResponse !== void 0 && object.inverterResetResponse !== null ? PVIAPIInverterResetResponse.fromPartial(object.inverterResetResponse) : void 0;
|
|
2838
|
+
message.setOperationParamsRequest = object.setOperationParamsRequest !== void 0 && object.setOperationParamsRequest !== null ? PVIAPISetOperationParamsRequest.fromPartial(object.setOperationParamsRequest) : void 0;
|
|
2839
|
+
message.setOperationParamsResponse = object.setOperationParamsResponse !== void 0 && object.setOperationParamsResponse !== null ? PVIAPISetOperationParamsResponse.fromPartial(object.setOperationParamsResponse) : void 0;
|
|
2840
|
+
message.sendCanMessageRequest = object.sendCanMessageRequest !== void 0 && object.sendCanMessageRequest !== null ? PVIAPISendCanMessageRequest.fromPartial(object.sendCanMessageRequest) : void 0;
|
|
2841
|
+
message.sendCanMessageResponse = object.sendCanMessageResponse !== void 0 && object.sendCanMessageResponse !== null ? PVIAPISendCanMessageResponse.fromPartial(object.sendCanMessageResponse) : void 0;
|
|
2842
|
+
message.udsWriteDataByIdentifierRequest = object.udsWriteDataByIdentifierRequest !== void 0 && object.udsWriteDataByIdentifierRequest !== null ? PVIAPIUdsWriteDataByIdentifierRequest.fromPartial(object.udsWriteDataByIdentifierRequest) : void 0;
|
|
2843
|
+
message.udsWriteDataByIdentifierResponse = object.udsWriteDataByIdentifierResponse !== void 0 && object.udsWriteDataByIdentifierResponse !== null ? PVIAPIUdsWriteDataByIdentifierResponse.fromPartial(object.udsWriteDataByIdentifierResponse) : void 0;
|
|
2844
|
+
message.checkInternetRequest = object.checkInternetRequest !== void 0 && object.checkInternetRequest !== null ? PVIAPICheckInternetRequest.fromPartial(object.checkInternetRequest) : void 0;
|
|
2845
|
+
message.checkInternetResponse = object.checkInternetResponse !== void 0 && object.checkInternetResponse !== null ? PVIAPICheckInternetResponse.fromPartial(object.checkInternetResponse) : void 0;
|
|
2846
|
+
message.configureGridCodeRequest = object.configureGridCodeRequest !== void 0 && object.configureGridCodeRequest !== null ? PVIAPIConfigureGridCodeRequest.fromPartial(object.configureGridCodeRequest) : void 0;
|
|
2847
|
+
message.configureGridCodeResponse = object.configureGridCodeResponse !== void 0 && object.configureGridCodeResponse !== null ? PVIAPIConfigureGridCodeResponse.fromPartial(object.configureGridCodeResponse) : void 0;
|
|
2848
|
+
message.clearAlertsRequest = object.clearAlertsRequest !== void 0 && object.clearAlertsRequest !== null ? PVIAPIClearAlertsRequest.fromPartial(object.clearAlertsRequest) : void 0;
|
|
2849
|
+
message.clearAlertsResponse = object.clearAlertsResponse !== void 0 && object.clearAlertsResponse !== null ? PVIAPIClearAlertsResponse.fromPartial(object.clearAlertsResponse) : void 0;
|
|
2850
|
+
message.triggerDrLogRequest = object.triggerDrLogRequest !== void 0 && object.triggerDrLogRequest !== null ? PVIAPITriggerDrLogRequest.fromPartial(object.triggerDrLogRequest) : void 0;
|
|
2851
|
+
message.triggerDrLogResponse = object.triggerDrLogResponse !== void 0 && object.triggerDrLogResponse !== null ? PVIAPITriggerDrLogResponse.fromPartial(object.triggerDrLogResponse) : void 0;
|
|
2852
|
+
message.clearLogsRequest = object.clearLogsRequest !== void 0 && object.clearLogsRequest !== null ? PVIAPIClearLogsRequest.fromPartial(object.clearLogsRequest) : void 0;
|
|
2853
|
+
message.clearLogsResponse = object.clearLogsResponse !== void 0 && object.clearLogsResponse !== null ? PVIAPIClearLogsResponse.fromPartial(object.clearLogsResponse) : void 0;
|
|
2854
|
+
message.configureSolarInstallationTypeRequest = object.configureSolarInstallationTypeRequest !== void 0 && object.configureSolarInstallationTypeRequest !== null ? PVIAPIConfigureSolarInstallationTypeRequest.fromPartial(object.configureSolarInstallationTypeRequest) : void 0;
|
|
2855
|
+
message.configureSolarInstallationTypeResponse = object.configureSolarInstallationTypeResponse !== void 0 && object.configureSolarInstallationTypeResponse !== null ? PVIAPIConfigureSolarInstallationTypeResponse.fromPartial(object.configureSolarInstallationTypeResponse) : void 0;
|
|
2856
|
+
message.configureCurrentRatingOverrideRequest = object.configureCurrentRatingOverrideRequest !== void 0 && object.configureCurrentRatingOverrideRequest !== null ? PVIAPIConfigureCurrentRatingOverrideRequest.fromPartial(object.configureCurrentRatingOverrideRequest) : void 0;
|
|
2857
|
+
message.configureCurrentRatingOverrideResponse = object.configureCurrentRatingOverrideResponse !== void 0 && object.configureCurrentRatingOverrideResponse !== null ? PVIAPIConfigureCurrentRatingOverrideResponse.fromPartial(object.configureCurrentRatingOverrideResponse) : void 0;
|
|
2858
|
+
message.removeCurrentRatingOverrideRequest = object.removeCurrentRatingOverrideRequest !== void 0 && object.removeCurrentRatingOverrideRequest !== null ? PVIAPIRemoveCurrentRatingOverrideRequest.fromPartial(object.removeCurrentRatingOverrideRequest) : void 0;
|
|
2859
|
+
message.removeCurrentRatingOverrideResponse = object.removeCurrentRatingOverrideResponse !== void 0 && object.removeCurrentRatingOverrideResponse !== null ? PVIAPIRemoveCurrentRatingOverrideResponse.fromPartial(object.removeCurrentRatingOverrideResponse) : void 0;
|
|
2860
|
+
return message;
|
|
2861
|
+
}
|
|
2862
|
+
};
|
|
2863
|
+
function bytesFromBase64(b64) {
|
|
2864
|
+
if (globalThis.Buffer) return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
2865
|
+
else {
|
|
2866
|
+
const bin = globalThis.atob(b64);
|
|
2867
|
+
const arr = new Uint8Array(bin.length);
|
|
2868
|
+
for (let i = 0; i < bin.length; ++i) arr[i] = bin.charCodeAt(i);
|
|
2869
|
+
return arr;
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
function base64FromBytes(arr) {
|
|
2873
|
+
if (globalThis.Buffer) return globalThis.Buffer.from(arr).toString("base64");
|
|
2874
|
+
else {
|
|
2875
|
+
const bin = [];
|
|
2876
|
+
arr.forEach((byte) => {
|
|
2877
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
2878
|
+
});
|
|
2879
|
+
return globalThis.btoa(bin.join(""));
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
function longToNumber(int64) {
|
|
2883
|
+
const num = globalThis.Number(int64.toString());
|
|
2884
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2885
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
2886
|
+
return num;
|
|
2887
|
+
}
|
|
2888
|
+
function isSet(value) {
|
|
2889
|
+
return value !== null && value !== void 0;
|
|
2890
|
+
}
|
|
2891
|
+
//#endregion
|
|
2892
|
+
export { PVGridCodeConfig, PVIAPICheckInternetRequest, PVIAPICheckInternetResponse, PVIAPIClearAlertsRequest, PVIAPIClearAlertsResponse, PVIAPIClearLogsRequest, PVIAPIClearLogsResponse, PVIAPIConfigureCurrentRatingOverrideRequest, PVIAPIConfigureCurrentRatingOverrideResponse, PVIAPIConfigureEthernetRequest, PVIAPIConfigureEthernetResponse, PVIAPIConfigureGridCodeRequest, PVIAPIConfigureGridCodeResponse, PVIAPIConfigureGsmRequest, PVIAPIConfigureGsmResponse, PVIAPIConfigureSettingsRequest, PVIAPIConfigureSettingsResponse, PVIAPIConfigureSolarInstallationTypeRequest, PVIAPIConfigureSolarInstallationTypeResponse, PVIAPIGetConfigRequest, PVIAPIGetConfigResponse, PVIAPIGetLifetimeStatsRequest, PVIAPIGetLifetimeStatsResponse, PVIAPIGetSystemInfoRequest, PVIAPIGetSystemInfoResponse, PVIAPIGetVitalsRequest, PVIAPIGetVitalsResponse, PVIAPIInverterResetRequest, PVIAPIInverterResetResponse, PVIAPIRemoveCurrentRatingOverrideRequest, PVIAPIRemoveCurrentRatingOverrideResponse, PVIAPISendCanMessageRequest, PVIAPISendCanMessageResponse, PVIAPISetOperationParamsRequest, PVIAPISetOperationParamsResponse, PVIAPITriggerDrLogRequest, PVIAPITriggerDrLogResponse, PVIAPIUdsWriteDataByIdentifierRequest, PVIAPIUdsWriteDataByIdentifierResponse, PVIMessages, PVInverterCanMessage, PVInverterClearLogsStatus, PVInverterEcu, PVInverterEcuResetStatus, PVInverterLifetimeStats, PVInverterPowerStatus, PVInverterSettings, PVInverterSolarInstallationType, PVInverterVitals, PVMeterInterface, PVStringVitals, pVInverterClearLogsStatusFromJSON, pVInverterClearLogsStatusToJSON, pVInverterEcuFromJSON, pVInverterEcuResetStatusFromJSON, pVInverterEcuResetStatusToJSON, pVInverterEcuToJSON, pVInverterPowerStatusFromJSON, pVInverterPowerStatusToJSON, pVInverterSolarInstallationTypeFromJSON, pVInverterSolarInstallationTypeToJSON, protobufPackage };
|