diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..f7783aa --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,16 @@ +# Project agent memory + +This file is the project's committed home for project-intrinsic agent knowledge: build, test, release, architecture, and sharp-edge notes that should travel with the code. + +- Add durable project-specific notes here as they are discovered through real work. +- Tesla protobuf types (`RoutableMessage`, `vcsec`, `car_server`, `signatures`, `keys`, ...) come from the published `@teslemetry/tesla-protocol` package (subpaths like `@teslemetry/tesla-protocol/command/signatures`), not a bundled `src/pb2`. It is ts-proto generated: plain-object messages with `Type.create(partial)` / `Type.encode(msg).finish()` / `Type.decode(bytes)`, not the old `google-protobuf` `.setX()`/`.serializeBinary()` style. +- `tsconfig.json` must keep `"module": "NodeNext"` / `"moduleResolution": "NodeNext"`. Dependencies like `@teslemetry/tesla-protocol` gate access behind a package.json `exports` map with per-subpath types; classic/ESNext resolution can't see those subpaths and every scoped-package import (even `@types/node` internals) fails to resolve. +- There is no test suite yet; `pnpm install` (which runs `tsc` via the `prepare` script) is the whole CI gate. Run `npx tsc --noEmit` to typecheck without emitting. +- `VehicleSigned` (`src/vehiclesigned.ts`) mostly delegates commands straight to the cloud HTTP parent rather than building and dispatching signed protobuf `RoutableMessage`s itself - the `Session`/HMAC scaffolding exists but the signed-command transport seam is unfinished. Its `Session` class is the only current protobuf call site in the library. + +## Maintaining this file + +Keep this file for knowledge useful to almost every future agent session in this project. +Do not repeat what the codebase already shows; point to the authoritative file or command instead. +Prefer rewriting or pruning existing entries over appending new ones. +When updating this file, preserve this bar for all agents and keep entries concise. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file diff --git a/package.json b/package.json index bcdab9d..f6c437e 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,8 @@ "url": "https://teslemetry.com" }, "devDependencies": { - "@types/node": "^20.12.12", - "ts-protoc-gen": "^0.15.0", - "typescript": "^5.4.5" + "@types/node": "^24.13.3", + "typescript": "^5.9.2" }, "scripts": { "prepare": "tsc", @@ -29,6 +28,6 @@ "main": "dist/index.js", "license": "Apache-2.0", "dependencies": { - "google-protobuf": "^3.21.4" + "@teslemetry/tesla-protocol": "^0.5.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bff16d4..87caad3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,52 +8,49 @@ importers: .: dependencies: - google-protobuf: - specifier: ^3.21.4 - version: 3.21.4 + '@teslemetry/tesla-protocol': + specifier: ^0.5.0 + version: 0.5.0 devDependencies: '@types/node': - specifier: ^20.12.12 - version: 20.12.12 - ts-protoc-gen: - specifier: ^0.15.0 - version: 0.15.0 + specifier: ^24.13.3 + version: 24.13.3 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.9.2 + version: 5.9.3 packages: - '@types/node@20.12.12': - resolution: {integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==} + '@bufbuild/protobuf@2.13.0': + resolution: {integrity: sha512-acq7c49vxfm1ggJ95P70TX7ABDM0vxr1SYD3BB0o0jnBLB4OAqeHyKuN+cD3w80gXEDQ2zxHpR6CUeA+O/aU9g==} - google-protobuf@3.21.4: - resolution: {integrity: sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==} + '@teslemetry/tesla-protocol@0.5.0': + resolution: {integrity: sha512-YAsDboZcBXjB6yI4kKa9K2T5OC1Z6HTMDTwoxtAhOjhhZ/hEgYx69KAO/+6y1riMb/5tnMVH7fpNKt+/NhmWpA==} + engines: {node: '>=20'} - ts-protoc-gen@0.15.0: - resolution: {integrity: sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==} - hasBin: true + '@types/node@24.13.3': + resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} - typescript@5.4.5: - resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} engines: {node: '>=14.17'} hasBin: true - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@7.18.2: + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} snapshots: - '@types/node@20.12.12': - dependencies: - undici-types: 5.26.5 + '@bufbuild/protobuf@2.13.0': {} - google-protobuf@3.21.4: {} + '@teslemetry/tesla-protocol@0.5.0': + dependencies: + '@bufbuild/protobuf': 2.13.0 - ts-protoc-gen@0.15.0: + '@types/node@24.13.3': dependencies: - google-protobuf: 3.21.4 + undici-types: 7.18.2 - typescript@5.4.5: {} + typescript@5.9.3: {} - undici-types@5.26.5: {} + undici-types@7.18.2: {} diff --git a/src/pb2/car_server_pb.d.ts b/src/pb2/car_server_pb.d.ts deleted file mode 100644 index 15a65e0..0000000 --- a/src/pb2/car_server_pb.d.ts +++ /dev/null @@ -1,2136 +0,0 @@ -// package: CarServer -// file: car_server.proto - -import * as jspb from "google-protobuf"; -import * as vehicle_pb from "./vehicle_pb"; -import * as signatures_pb from "./signatures_pb"; -import * as common_pb from "./common_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class Action extends jspb.Message { - hasVehicleaction(): boolean; - clearVehicleaction(): void; - getVehicleaction(): VehicleAction | undefined; - setVehicleaction(value?: VehicleAction): void; - - getActionMsgCase(): Action.ActionMsgCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Action.AsObject; - static toObject(includeInstance: boolean, msg: Action): Action.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Action, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Action; - static deserializeBinaryFromReader(message: Action, reader: jspb.BinaryReader): Action; -} - -export namespace Action { - export type AsObject = { - vehicleaction?: VehicleAction.AsObject, - } - - export enum ActionMsgCase { - ACTION_MSG_NOT_SET = 0, - VEHICLEACTION = 2, - } -} - -export class VehicleAction extends jspb.Message { - hasChargingsetlimitaction(): boolean; - clearChargingsetlimitaction(): void; - getChargingsetlimitaction(): ChargingSetLimitAction | undefined; - setChargingsetlimitaction(value?: ChargingSetLimitAction): void; - - hasChargingstartstopaction(): boolean; - clearChargingstartstopaction(): void; - getChargingstartstopaction(): ChargingStartStopAction | undefined; - setChargingstartstopaction(value?: ChargingStartStopAction): void; - - hasDrivingclearspeedlimitpinaction(): boolean; - clearDrivingclearspeedlimitpinaction(): void; - getDrivingclearspeedlimitpinaction(): DrivingClearSpeedLimitPinAction | undefined; - setDrivingclearspeedlimitpinaction(value?: DrivingClearSpeedLimitPinAction): void; - - hasDrivingsetspeedlimitaction(): boolean; - clearDrivingsetspeedlimitaction(): void; - getDrivingsetspeedlimitaction(): DrivingSetSpeedLimitAction | undefined; - setDrivingsetspeedlimitaction(value?: DrivingSetSpeedLimitAction): void; - - hasDrivingspeedlimitaction(): boolean; - clearDrivingspeedlimitaction(): void; - getDrivingspeedlimitaction(): DrivingSpeedLimitAction | undefined; - setDrivingspeedlimitaction(value?: DrivingSpeedLimitAction): void; - - hasHvacautoaction(): boolean; - clearHvacautoaction(): void; - getHvacautoaction(): HvacAutoAction | undefined; - setHvacautoaction(value?: HvacAutoAction): void; - - hasHvacsetpreconditioningmaxaction(): boolean; - clearHvacsetpreconditioningmaxaction(): void; - getHvacsetpreconditioningmaxaction(): HvacSetPreconditioningMaxAction | undefined; - setHvacsetpreconditioningmaxaction(value?: HvacSetPreconditioningMaxAction): void; - - hasHvacsteeringwheelheateraction(): boolean; - clearHvacsteeringwheelheateraction(): void; - getHvacsteeringwheelheateraction(): HvacSteeringWheelHeaterAction | undefined; - setHvacsteeringwheelheateraction(value?: HvacSteeringWheelHeaterAction): void; - - hasHvactemperatureadjustmentaction(): boolean; - clearHvactemperatureadjustmentaction(): void; - getHvactemperatureadjustmentaction(): HvacTemperatureAdjustmentAction | undefined; - setHvactemperatureadjustmentaction(value?: HvacTemperatureAdjustmentAction): void; - - hasMediaplayaction(): boolean; - clearMediaplayaction(): void; - getMediaplayaction(): MediaPlayAction | undefined; - setMediaplayaction(value?: MediaPlayAction): void; - - hasMediaupdatevolume(): boolean; - clearMediaupdatevolume(): void; - getMediaupdatevolume(): MediaUpdateVolume | undefined; - setMediaupdatevolume(value?: MediaUpdateVolume): void; - - hasMedianextfavorite(): boolean; - clearMedianextfavorite(): void; - getMedianextfavorite(): MediaNextFavorite | undefined; - setMedianextfavorite(value?: MediaNextFavorite): void; - - hasMediapreviousfavorite(): boolean; - clearMediapreviousfavorite(): void; - getMediapreviousfavorite(): MediaPreviousFavorite | undefined; - setMediapreviousfavorite(value?: MediaPreviousFavorite): void; - - hasMedianexttrack(): boolean; - clearMedianexttrack(): void; - getMedianexttrack(): MediaNextTrack | undefined; - setMedianexttrack(value?: MediaNextTrack): void; - - hasMediaprevioustrack(): boolean; - clearMediaprevioustrack(): void; - getMediaprevioustrack(): MediaPreviousTrack | undefined; - setMediaprevioustrack(value?: MediaPreviousTrack): void; - - hasGetnearbychargingsites(): boolean; - clearGetnearbychargingsites(): void; - getGetnearbychargingsites(): GetNearbyChargingSites | undefined; - setGetnearbychargingsites(value?: GetNearbyChargingSites): void; - - hasVehiclecontrolcancelsoftwareupdateaction(): boolean; - clearVehiclecontrolcancelsoftwareupdateaction(): void; - getVehiclecontrolcancelsoftwareupdateaction(): VehicleControlCancelSoftwareUpdateAction | undefined; - setVehiclecontrolcancelsoftwareupdateaction(value?: VehicleControlCancelSoftwareUpdateAction): void; - - hasVehiclecontrolflashlightsaction(): boolean; - clearVehiclecontrolflashlightsaction(): void; - getVehiclecontrolflashlightsaction(): VehicleControlFlashLightsAction | undefined; - setVehiclecontrolflashlightsaction(value?: VehicleControlFlashLightsAction): void; - - hasVehiclecontrolhonkhornaction(): boolean; - clearVehiclecontrolhonkhornaction(): void; - getVehiclecontrolhonkhornaction(): VehicleControlHonkHornAction | undefined; - setVehiclecontrolhonkhornaction(value?: VehicleControlHonkHornAction): void; - - hasVehiclecontrolresetvaletpinaction(): boolean; - clearVehiclecontrolresetvaletpinaction(): void; - getVehiclecontrolresetvaletpinaction(): VehicleControlResetValetPinAction | undefined; - setVehiclecontrolresetvaletpinaction(value?: VehicleControlResetValetPinAction): void; - - hasVehiclecontrolschedulesoftwareupdateaction(): boolean; - clearVehiclecontrolschedulesoftwareupdateaction(): void; - getVehiclecontrolschedulesoftwareupdateaction(): VehicleControlScheduleSoftwareUpdateAction | undefined; - setVehiclecontrolschedulesoftwareupdateaction(value?: VehicleControlScheduleSoftwareUpdateAction): void; - - hasVehiclecontrolsetsentrymodeaction(): boolean; - clearVehiclecontrolsetsentrymodeaction(): void; - getVehiclecontrolsetsentrymodeaction(): VehicleControlSetSentryModeAction | undefined; - setVehiclecontrolsetsentrymodeaction(value?: VehicleControlSetSentryModeAction): void; - - hasVehiclecontrolsetvaletmodeaction(): boolean; - clearVehiclecontrolsetvaletmodeaction(): void; - getVehiclecontrolsetvaletmodeaction(): VehicleControlSetValetModeAction | undefined; - setVehiclecontrolsetvaletmodeaction(value?: VehicleControlSetValetModeAction): void; - - hasVehiclecontrolsunroofopencloseaction(): boolean; - clearVehiclecontrolsunroofopencloseaction(): void; - getVehiclecontrolsunroofopencloseaction(): VehicleControlSunroofOpenCloseAction | undefined; - setVehiclecontrolsunroofopencloseaction(value?: VehicleControlSunroofOpenCloseAction): void; - - hasVehiclecontroltriggerhomelinkaction(): boolean; - clearVehiclecontroltriggerhomelinkaction(): void; - getVehiclecontroltriggerhomelinkaction(): VehicleControlTriggerHomelinkAction | undefined; - setVehiclecontroltriggerhomelinkaction(value?: VehicleControlTriggerHomelinkAction): void; - - hasVehiclecontrolwindowaction(): boolean; - clearVehiclecontrolwindowaction(): void; - getVehiclecontrolwindowaction(): VehicleControlWindowAction | undefined; - setVehiclecontrolwindowaction(value?: VehicleControlWindowAction): void; - - hasHvacbioweaponmodeaction(): boolean; - clearHvacbioweaponmodeaction(): void; - getHvacbioweaponmodeaction(): HvacBioweaponModeAction | undefined; - setHvacbioweaponmodeaction(value?: HvacBioweaponModeAction): void; - - hasHvacseatheateractions(): boolean; - clearHvacseatheateractions(): void; - getHvacseatheateractions(): HvacSeatHeaterActions | undefined; - setHvacseatheateractions(value?: HvacSeatHeaterActions): void; - - hasScheduledchargingaction(): boolean; - clearScheduledchargingaction(): void; - getScheduledchargingaction(): ScheduledChargingAction | undefined; - setScheduledchargingaction(value?: ScheduledChargingAction): void; - - hasScheduleddepartureaction(): boolean; - clearScheduleddepartureaction(): void; - getScheduleddepartureaction(): ScheduledDepartureAction | undefined; - setScheduleddepartureaction(value?: ScheduledDepartureAction): void; - - hasSetchargingampsaction(): boolean; - clearSetchargingampsaction(): void; - getSetchargingampsaction(): SetChargingAmpsAction | undefined; - setSetchargingampsaction(value?: SetChargingAmpsAction): void; - - hasHvacclimatekeeperaction(): boolean; - clearHvacclimatekeeperaction(): void; - getHvacclimatekeeperaction(): HvacClimateKeeperAction | undefined; - setHvacclimatekeeperaction(value?: HvacClimateKeeperAction): void; - - hasPing(): boolean; - clearPing(): void; - getPing(): Ping | undefined; - setPing(value?: Ping): void; - - hasAutoseatclimateaction(): boolean; - clearAutoseatclimateaction(): void; - getAutoseatclimateaction(): AutoSeatClimateAction | undefined; - setAutoseatclimateaction(value?: AutoSeatClimateAction): void; - - hasHvacseatcooleractions(): boolean; - clearHvacseatcooleractions(): void; - getHvacseatcooleractions(): HvacSeatCoolerActions | undefined; - setHvacseatcooleractions(value?: HvacSeatCoolerActions): void; - - hasSetcabinoverheatprotectionaction(): boolean; - clearSetcabinoverheatprotectionaction(): void; - getSetcabinoverheatprotectionaction(): SetCabinOverheatProtectionAction | undefined; - setSetcabinoverheatprotectionaction(value?: SetCabinOverheatProtectionAction): void; - - hasSetvehiclenameaction(): boolean; - clearSetvehiclenameaction(): void; - getSetvehiclenameaction(): SetVehicleNameAction | undefined; - setSetvehiclenameaction(value?: SetVehicleNameAction): void; - - hasChargeportdoorclose(): boolean; - clearChargeportdoorclose(): void; - getChargeportdoorclose(): ChargePortDoorClose | undefined; - setChargeportdoorclose(value?: ChargePortDoorClose): void; - - hasChargeportdooropen(): boolean; - clearChargeportdooropen(): void; - getChargeportdooropen(): ChargePortDoorOpen | undefined; - setChargeportdooropen(value?: ChargePortDoorOpen): void; - - hasGuestmodeaction(): boolean; - clearGuestmodeaction(): void; - getGuestmodeaction(): vehicle_pb.VehicleState.GuestMode | undefined; - setGuestmodeaction(value?: vehicle_pb.VehicleState.GuestMode): void; - - hasSetcoptempaction(): boolean; - clearSetcoptempaction(): void; - getSetcoptempaction(): SetCopTempAction | undefined; - setSetcoptempaction(value?: SetCopTempAction): void; - - hasEraseuserdataaction(): boolean; - clearEraseuserdataaction(): void; - getEraseuserdataaction(): EraseUserDataAction | undefined; - setEraseuserdataaction(value?: EraseUserDataAction): void; - - hasVehiclecontrolsetpintodriveaction(): boolean; - clearVehiclecontrolsetpintodriveaction(): void; - getVehiclecontrolsetpintodriveaction(): VehicleControlSetPinToDriveAction | undefined; - setVehiclecontrolsetpintodriveaction(value?: VehicleControlSetPinToDriveAction): void; - - hasVehiclecontrolresetpintodriveaction(): boolean; - clearVehiclecontrolresetpintodriveaction(): void; - getVehiclecontrolresetpintodriveaction(): VehicleControlResetPinToDriveAction | undefined; - setVehiclecontrolresetpintodriveaction(value?: VehicleControlResetPinToDriveAction): void; - - hasAddchargescheduleaction(): boolean; - clearAddchargescheduleaction(): void; - getAddchargescheduleaction(): common_pb.ChargeSchedule | undefined; - setAddchargescheduleaction(value?: common_pb.ChargeSchedule): void; - - hasRemovechargescheduleaction(): boolean; - clearRemovechargescheduleaction(): void; - getRemovechargescheduleaction(): RemoveChargeScheduleAction | undefined; - setRemovechargescheduleaction(value?: RemoveChargeScheduleAction): void; - - hasAddpreconditionscheduleaction(): boolean; - clearAddpreconditionscheduleaction(): void; - getAddpreconditionscheduleaction(): common_pb.PreconditionSchedule | undefined; - setAddpreconditionscheduleaction(value?: common_pb.PreconditionSchedule): void; - - hasRemovepreconditionscheduleaction(): boolean; - clearRemovepreconditionscheduleaction(): void; - getRemovepreconditionscheduleaction(): RemovePreconditionScheduleAction | undefined; - setRemovepreconditionscheduleaction(value?: RemovePreconditionScheduleAction): void; - - hasBatchremovepreconditionschedulesaction(): boolean; - clearBatchremovepreconditionschedulesaction(): void; - getBatchremovepreconditionschedulesaction(): BatchRemovePreconditionSchedulesAction | undefined; - setBatchremovepreconditionschedulesaction(value?: BatchRemovePreconditionSchedulesAction): void; - - hasBatchremovechargeschedulesaction(): boolean; - clearBatchremovechargeschedulesaction(): void; - getBatchremovechargeschedulesaction(): BatchRemoveChargeSchedulesAction | undefined; - setBatchremovechargeschedulesaction(value?: BatchRemoveChargeSchedulesAction): void; - - getVehicleActionMsgCase(): VehicleAction.VehicleActionMsgCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleAction): VehicleAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleAction; - static deserializeBinaryFromReader(message: VehicleAction, reader: jspb.BinaryReader): VehicleAction; -} - -export namespace VehicleAction { - export type AsObject = { - chargingsetlimitaction?: ChargingSetLimitAction.AsObject, - chargingstartstopaction?: ChargingStartStopAction.AsObject, - drivingclearspeedlimitpinaction?: DrivingClearSpeedLimitPinAction.AsObject, - drivingsetspeedlimitaction?: DrivingSetSpeedLimitAction.AsObject, - drivingspeedlimitaction?: DrivingSpeedLimitAction.AsObject, - hvacautoaction?: HvacAutoAction.AsObject, - hvacsetpreconditioningmaxaction?: HvacSetPreconditioningMaxAction.AsObject, - hvacsteeringwheelheateraction?: HvacSteeringWheelHeaterAction.AsObject, - hvactemperatureadjustmentaction?: HvacTemperatureAdjustmentAction.AsObject, - mediaplayaction?: MediaPlayAction.AsObject, - mediaupdatevolume?: MediaUpdateVolume.AsObject, - medianextfavorite?: MediaNextFavorite.AsObject, - mediapreviousfavorite?: MediaPreviousFavorite.AsObject, - medianexttrack?: MediaNextTrack.AsObject, - mediaprevioustrack?: MediaPreviousTrack.AsObject, - getnearbychargingsites?: GetNearbyChargingSites.AsObject, - vehiclecontrolcancelsoftwareupdateaction?: VehicleControlCancelSoftwareUpdateAction.AsObject, - vehiclecontrolflashlightsaction?: VehicleControlFlashLightsAction.AsObject, - vehiclecontrolhonkhornaction?: VehicleControlHonkHornAction.AsObject, - vehiclecontrolresetvaletpinaction?: VehicleControlResetValetPinAction.AsObject, - vehiclecontrolschedulesoftwareupdateaction?: VehicleControlScheduleSoftwareUpdateAction.AsObject, - vehiclecontrolsetsentrymodeaction?: VehicleControlSetSentryModeAction.AsObject, - vehiclecontrolsetvaletmodeaction?: VehicleControlSetValetModeAction.AsObject, - vehiclecontrolsunroofopencloseaction?: VehicleControlSunroofOpenCloseAction.AsObject, - vehiclecontroltriggerhomelinkaction?: VehicleControlTriggerHomelinkAction.AsObject, - vehiclecontrolwindowaction?: VehicleControlWindowAction.AsObject, - hvacbioweaponmodeaction?: HvacBioweaponModeAction.AsObject, - hvacseatheateractions?: HvacSeatHeaterActions.AsObject, - scheduledchargingaction?: ScheduledChargingAction.AsObject, - scheduleddepartureaction?: ScheduledDepartureAction.AsObject, - setchargingampsaction?: SetChargingAmpsAction.AsObject, - hvacclimatekeeperaction?: HvacClimateKeeperAction.AsObject, - ping?: Ping.AsObject, - autoseatclimateaction?: AutoSeatClimateAction.AsObject, - hvacseatcooleractions?: HvacSeatCoolerActions.AsObject, - setcabinoverheatprotectionaction?: SetCabinOverheatProtectionAction.AsObject, - setvehiclenameaction?: SetVehicleNameAction.AsObject, - chargeportdoorclose?: ChargePortDoorClose.AsObject, - chargeportdooropen?: ChargePortDoorOpen.AsObject, - guestmodeaction?: vehicle_pb.VehicleState.GuestMode.AsObject, - setcoptempaction?: SetCopTempAction.AsObject, - eraseuserdataaction?: EraseUserDataAction.AsObject, - vehiclecontrolsetpintodriveaction?: VehicleControlSetPinToDriveAction.AsObject, - vehiclecontrolresetpintodriveaction?: VehicleControlResetPinToDriveAction.AsObject, - addchargescheduleaction?: common_pb.ChargeSchedule.AsObject, - removechargescheduleaction?: RemoveChargeScheduleAction.AsObject, - addpreconditionscheduleaction?: common_pb.PreconditionSchedule.AsObject, - removepreconditionscheduleaction?: RemovePreconditionScheduleAction.AsObject, - batchremovepreconditionschedulesaction?: BatchRemovePreconditionSchedulesAction.AsObject, - batchremovechargeschedulesaction?: BatchRemoveChargeSchedulesAction.AsObject, - } - - export enum VehicleActionMsgCase { - VEHICLE_ACTION_MSG_NOT_SET = 0, - CHARGINGSETLIMITACTION = 5, - CHARGINGSTARTSTOPACTION = 6, - DRIVINGCLEARSPEEDLIMITPINACTION = 7, - DRIVINGSETSPEEDLIMITACTION = 8, - DRIVINGSPEEDLIMITACTION = 9, - HVACAUTOACTION = 10, - HVACSETPRECONDITIONINGMAXACTION = 12, - HVACSTEERINGWHEELHEATERACTION = 13, - HVACTEMPERATUREADJUSTMENTACTION = 14, - MEDIAPLAYACTION = 15, - MEDIAUPDATEVOLUME = 16, - MEDIANEXTFAVORITE = 17, - MEDIAPREVIOUSFAVORITE = 18, - MEDIANEXTTRACK = 19, - MEDIAPREVIOUSTRACK = 20, - GETNEARBYCHARGINGSITES = 23, - VEHICLECONTROLCANCELSOFTWAREUPDATEACTION = 25, - VEHICLECONTROLFLASHLIGHTSACTION = 26, - VEHICLECONTROLHONKHORNACTION = 27, - VEHICLECONTROLRESETVALETPINACTION = 28, - VEHICLECONTROLSCHEDULESOFTWAREUPDATEACTION = 29, - VEHICLECONTROLSETSENTRYMODEACTION = 30, - VEHICLECONTROLSETVALETMODEACTION = 31, - VEHICLECONTROLSUNROOFOPENCLOSEACTION = 32, - VEHICLECONTROLTRIGGERHOMELINKACTION = 33, - VEHICLECONTROLWINDOWACTION = 34, - HVACBIOWEAPONMODEACTION = 35, - HVACSEATHEATERACTIONS = 36, - SCHEDULEDCHARGINGACTION = 41, - SCHEDULEDDEPARTUREACTION = 42, - SETCHARGINGAMPSACTION = 43, - HVACCLIMATEKEEPERACTION = 44, - PING = 46, - AUTOSEATCLIMATEACTION = 48, - HVACSEATCOOLERACTIONS = 49, - SETCABINOVERHEATPROTECTIONACTION = 50, - SETVEHICLENAMEACTION = 54, - CHARGEPORTDOORCLOSE = 61, - CHARGEPORTDOOROPEN = 62, - GUESTMODEACTION = 65, - SETCOPTEMPACTION = 66, - ERASEUSERDATAACTION = 72, - VEHICLECONTROLSETPINTODRIVEACTION = 77, - VEHICLECONTROLRESETPINTODRIVEACTION = 78, - ADDCHARGESCHEDULEACTION = 97, - REMOVECHARGESCHEDULEACTION = 98, - ADDPRECONDITIONSCHEDULEACTION = 99, - REMOVEPRECONDITIONSCHEDULEACTION = 100, - BATCHREMOVEPRECONDITIONSCHEDULESACTION = 107, - BATCHREMOVECHARGESCHEDULESACTION = 108, - } -} - -export class EraseUserDataAction extends jspb.Message { - getReason(): string; - setReason(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EraseUserDataAction.AsObject; - static toObject(includeInstance: boolean, msg: EraseUserDataAction): EraseUserDataAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EraseUserDataAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EraseUserDataAction; - static deserializeBinaryFromReader(message: EraseUserDataAction, reader: jspb.BinaryReader): EraseUserDataAction; -} - -export namespace EraseUserDataAction { - export type AsObject = { - reason: string, - } -} - -export class Response extends jspb.Message { - hasActionstatus(): boolean; - clearActionstatus(): void; - getActionstatus(): ActionStatus | undefined; - setActionstatus(value?: ActionStatus): void; - - hasGetsessioninforesponse(): boolean; - clearGetsessioninforesponse(): void; - getGetsessioninforesponse(): signatures_pb.SessionInfo | undefined; - setGetsessioninforesponse(value?: signatures_pb.SessionInfo): void; - - hasGetnearbychargingsites(): boolean; - clearGetnearbychargingsites(): void; - getGetnearbychargingsites(): NearbyChargingSites | undefined; - setGetnearbychargingsites(value?: NearbyChargingSites): void; - - hasPing(): boolean; - clearPing(): void; - getPing(): Ping | undefined; - setPing(value?: Ping): void; - - getResponseMsgCase(): Response.ResponseMsgCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Response.AsObject; - static toObject(includeInstance: boolean, msg: Response): Response.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Response; - static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; -} - -export namespace Response { - export type AsObject = { - actionstatus?: ActionStatus.AsObject, - getsessioninforesponse?: signatures_pb.SessionInfo.AsObject, - getnearbychargingsites?: NearbyChargingSites.AsObject, - ping?: Ping.AsObject, - } - - export enum ResponseMsgCase { - RESPONSE_MSG_NOT_SET = 0, - GETSESSIONINFORESPONSE = 3, - GETNEARBYCHARGINGSITES = 5, - PING = 9, - } -} - -export class ActionStatus extends jspb.Message { - getResult(): OperationStatus_EMap[keyof OperationStatus_EMap]; - setResult(value: OperationStatus_EMap[keyof OperationStatus_EMap]): void; - - hasResultReason(): boolean; - clearResultReason(): void; - getResultReason(): ResultReason | undefined; - setResultReason(value?: ResultReason): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ActionStatus.AsObject; - static toObject(includeInstance: boolean, msg: ActionStatus): ActionStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ActionStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ActionStatus; - static deserializeBinaryFromReader(message: ActionStatus, reader: jspb.BinaryReader): ActionStatus; -} - -export namespace ActionStatus { - export type AsObject = { - result: OperationStatus_EMap[keyof OperationStatus_EMap], - resultReason?: ResultReason.AsObject, - } -} - -export class ResultReason extends jspb.Message { - hasPlainText(): boolean; - clearPlainText(): void; - getPlainText(): string; - setPlainText(value: string): void; - - getReasonCase(): ResultReason.ReasonCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResultReason.AsObject; - static toObject(includeInstance: boolean, msg: ResultReason): ResultReason.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ResultReason, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ResultReason; - static deserializeBinaryFromReader(message: ResultReason, reader: jspb.BinaryReader): ResultReason; -} - -export namespace ResultReason { - export type AsObject = { - plainText: string, - } - - export enum ReasonCase { - REASON_NOT_SET = 0, - PLAIN_TEXT = 1, - } -} - -export class EncryptedData extends jspb.Message { - getFieldNumber(): number; - setFieldNumber(value: number): void; - - getCiphertext(): Uint8Array | string; - getCiphertext_asU8(): Uint8Array; - getCiphertext_asB64(): string; - setCiphertext(value: Uint8Array | string): void; - - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EncryptedData.AsObject; - static toObject(includeInstance: boolean, msg: EncryptedData): EncryptedData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: EncryptedData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EncryptedData; - static deserializeBinaryFromReader(message: EncryptedData, reader: jspb.BinaryReader): EncryptedData; -} - -export namespace EncryptedData { - export type AsObject = { - fieldNumber: number, - ciphertext: Uint8Array | string, - tag: Uint8Array | string, - } -} - -export class ChargingSetLimitAction extends jspb.Message { - getPercent(): number; - setPercent(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChargingSetLimitAction.AsObject; - static toObject(includeInstance: boolean, msg: ChargingSetLimitAction): ChargingSetLimitAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChargingSetLimitAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChargingSetLimitAction; - static deserializeBinaryFromReader(message: ChargingSetLimitAction, reader: jspb.BinaryReader): ChargingSetLimitAction; -} - -export namespace ChargingSetLimitAction { - export type AsObject = { - percent: number, - } -} - -export class ChargingStartStopAction extends jspb.Message { - hasUnknown(): boolean; - clearUnknown(): void; - getUnknown(): common_pb.Void | undefined; - setUnknown(value?: common_pb.Void): void; - - hasStart(): boolean; - clearStart(): void; - getStart(): common_pb.Void | undefined; - setStart(value?: common_pb.Void): void; - - hasStartStandard(): boolean; - clearStartStandard(): void; - getStartStandard(): common_pb.Void | undefined; - setStartStandard(value?: common_pb.Void): void; - - hasStartMaxRange(): boolean; - clearStartMaxRange(): void; - getStartMaxRange(): common_pb.Void | undefined; - setStartMaxRange(value?: common_pb.Void): void; - - hasStop(): boolean; - clearStop(): void; - getStop(): common_pb.Void | undefined; - setStop(value?: common_pb.Void): void; - - getChargingActionCase(): ChargingStartStopAction.ChargingActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChargingStartStopAction.AsObject; - static toObject(includeInstance: boolean, msg: ChargingStartStopAction): ChargingStartStopAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChargingStartStopAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChargingStartStopAction; - static deserializeBinaryFromReader(message: ChargingStartStopAction, reader: jspb.BinaryReader): ChargingStartStopAction; -} - -export namespace ChargingStartStopAction { - export type AsObject = { - unknown?: common_pb.Void.AsObject, - start?: common_pb.Void.AsObject, - startStandard?: common_pb.Void.AsObject, - startMaxRange?: common_pb.Void.AsObject, - stop?: common_pb.Void.AsObject, - } - - export enum ChargingActionCase { - CHARGING_ACTION_NOT_SET = 0, - UNKNOWN = 1, - START = 2, - START_STANDARD = 3, - START_MAX_RANGE = 4, - STOP = 5, - } -} - -export class DrivingClearSpeedLimitPinAction extends jspb.Message { - getPin(): string; - setPin(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DrivingClearSpeedLimitPinAction.AsObject; - static toObject(includeInstance: boolean, msg: DrivingClearSpeedLimitPinAction): DrivingClearSpeedLimitPinAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DrivingClearSpeedLimitPinAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DrivingClearSpeedLimitPinAction; - static deserializeBinaryFromReader(message: DrivingClearSpeedLimitPinAction, reader: jspb.BinaryReader): DrivingClearSpeedLimitPinAction; -} - -export namespace DrivingClearSpeedLimitPinAction { - export type AsObject = { - pin: string, - } -} - -export class DrivingSetSpeedLimitAction extends jspb.Message { - getLimitMph(): number; - setLimitMph(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DrivingSetSpeedLimitAction.AsObject; - static toObject(includeInstance: boolean, msg: DrivingSetSpeedLimitAction): DrivingSetSpeedLimitAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DrivingSetSpeedLimitAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DrivingSetSpeedLimitAction; - static deserializeBinaryFromReader(message: DrivingSetSpeedLimitAction, reader: jspb.BinaryReader): DrivingSetSpeedLimitAction; -} - -export namespace DrivingSetSpeedLimitAction { - export type AsObject = { - limitMph: number, - } -} - -export class DrivingSpeedLimitAction extends jspb.Message { - getActivate(): boolean; - setActivate(value: boolean): void; - - getPin(): string; - setPin(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DrivingSpeedLimitAction.AsObject; - static toObject(includeInstance: boolean, msg: DrivingSpeedLimitAction): DrivingSpeedLimitAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DrivingSpeedLimitAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DrivingSpeedLimitAction; - static deserializeBinaryFromReader(message: DrivingSpeedLimitAction, reader: jspb.BinaryReader): DrivingSpeedLimitAction; -} - -export namespace DrivingSpeedLimitAction { - export type AsObject = { - activate: boolean, - pin: string, - } -} - -export class HvacAutoAction extends jspb.Message { - getPowerOn(): boolean; - setPowerOn(value: boolean): void; - - getManualOverride(): boolean; - setManualOverride(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacAutoAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacAutoAction): HvacAutoAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacAutoAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacAutoAction; - static deserializeBinaryFromReader(message: HvacAutoAction, reader: jspb.BinaryReader): HvacAutoAction; -} - -export namespace HvacAutoAction { - export type AsObject = { - powerOn: boolean, - manualOverride: boolean, - } -} - -export class HvacSeatHeaterActions extends jspb.Message { - clearHvacseatheateractionList(): void; - getHvacseatheateractionList(): Array; - setHvacseatheateractionList(value: Array): void; - addHvacseatheateraction(value?: HvacSeatHeaterActions.HvacSeatHeaterAction, index?: number): HvacSeatHeaterActions.HvacSeatHeaterAction; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacSeatHeaterActions.AsObject; - static toObject(includeInstance: boolean, msg: HvacSeatHeaterActions): HvacSeatHeaterActions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacSeatHeaterActions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacSeatHeaterActions; - static deserializeBinaryFromReader(message: HvacSeatHeaterActions, reader: jspb.BinaryReader): HvacSeatHeaterActions; -} - -export namespace HvacSeatHeaterActions { - export type AsObject = { - hvacseatheateractionList: Array, - } - - export class HvacSeatHeaterAction extends jspb.Message { - hasSeatHeaterUnknown(): boolean; - clearSeatHeaterUnknown(): void; - getSeatHeaterUnknown(): common_pb.Void | undefined; - setSeatHeaterUnknown(value?: common_pb.Void): void; - - hasSeatHeaterOff(): boolean; - clearSeatHeaterOff(): void; - getSeatHeaterOff(): common_pb.Void | undefined; - setSeatHeaterOff(value?: common_pb.Void): void; - - hasSeatHeaterLow(): boolean; - clearSeatHeaterLow(): void; - getSeatHeaterLow(): common_pb.Void | undefined; - setSeatHeaterLow(value?: common_pb.Void): void; - - hasSeatHeaterMed(): boolean; - clearSeatHeaterMed(): void; - getSeatHeaterMed(): common_pb.Void | undefined; - setSeatHeaterMed(value?: common_pb.Void): void; - - hasSeatHeaterHigh(): boolean; - clearSeatHeaterHigh(): void; - getSeatHeaterHigh(): common_pb.Void | undefined; - setSeatHeaterHigh(value?: common_pb.Void): void; - - hasCarSeatUnknown(): boolean; - clearCarSeatUnknown(): void; - getCarSeatUnknown(): common_pb.Void | undefined; - setCarSeatUnknown(value?: common_pb.Void): void; - - hasCarSeatFrontLeft(): boolean; - clearCarSeatFrontLeft(): void; - getCarSeatFrontLeft(): common_pb.Void | undefined; - setCarSeatFrontLeft(value?: common_pb.Void): void; - - hasCarSeatFrontRight(): boolean; - clearCarSeatFrontRight(): void; - getCarSeatFrontRight(): common_pb.Void | undefined; - setCarSeatFrontRight(value?: common_pb.Void): void; - - hasCarSeatRearLeft(): boolean; - clearCarSeatRearLeft(): void; - getCarSeatRearLeft(): common_pb.Void | undefined; - setCarSeatRearLeft(value?: common_pb.Void): void; - - hasCarSeatRearLeftBack(): boolean; - clearCarSeatRearLeftBack(): void; - getCarSeatRearLeftBack(): common_pb.Void | undefined; - setCarSeatRearLeftBack(value?: common_pb.Void): void; - - hasCarSeatRearCenter(): boolean; - clearCarSeatRearCenter(): void; - getCarSeatRearCenter(): common_pb.Void | undefined; - setCarSeatRearCenter(value?: common_pb.Void): void; - - hasCarSeatRearRight(): boolean; - clearCarSeatRearRight(): void; - getCarSeatRearRight(): common_pb.Void | undefined; - setCarSeatRearRight(value?: common_pb.Void): void; - - hasCarSeatRearRightBack(): boolean; - clearCarSeatRearRightBack(): void; - getCarSeatRearRightBack(): common_pb.Void | undefined; - setCarSeatRearRightBack(value?: common_pb.Void): void; - - hasCarSeatThirdRowLeft(): boolean; - clearCarSeatThirdRowLeft(): void; - getCarSeatThirdRowLeft(): common_pb.Void | undefined; - setCarSeatThirdRowLeft(value?: common_pb.Void): void; - - hasCarSeatThirdRowRight(): boolean; - clearCarSeatThirdRowRight(): void; - getCarSeatThirdRowRight(): common_pb.Void | undefined; - setCarSeatThirdRowRight(value?: common_pb.Void): void; - - getSeatHeaterLevelCase(): HvacSeatHeaterAction.SeatHeaterLevelCase; - getSeatPositionCase(): HvacSeatHeaterAction.SeatPositionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacSeatHeaterAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacSeatHeaterAction): HvacSeatHeaterAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacSeatHeaterAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacSeatHeaterAction; - static deserializeBinaryFromReader(message: HvacSeatHeaterAction, reader: jspb.BinaryReader): HvacSeatHeaterAction; - } - - export namespace HvacSeatHeaterAction { - export type AsObject = { - seatHeaterUnknown?: common_pb.Void.AsObject, - seatHeaterOff?: common_pb.Void.AsObject, - seatHeaterLow?: common_pb.Void.AsObject, - seatHeaterMed?: common_pb.Void.AsObject, - seatHeaterHigh?: common_pb.Void.AsObject, - carSeatUnknown?: common_pb.Void.AsObject, - carSeatFrontLeft?: common_pb.Void.AsObject, - carSeatFrontRight?: common_pb.Void.AsObject, - carSeatRearLeft?: common_pb.Void.AsObject, - carSeatRearLeftBack?: common_pb.Void.AsObject, - carSeatRearCenter?: common_pb.Void.AsObject, - carSeatRearRight?: common_pb.Void.AsObject, - carSeatRearRightBack?: common_pb.Void.AsObject, - carSeatThirdRowLeft?: common_pb.Void.AsObject, - carSeatThirdRowRight?: common_pb.Void.AsObject, - } - - export enum SeatHeaterLevelCase { - SEAT_HEATER_LEVEL_NOT_SET = 0, - SEAT_HEATER_UNKNOWN = 1, - SEAT_HEATER_OFF = 2, - SEAT_HEATER_LOW = 3, - SEAT_HEATER_MED = 4, - SEAT_HEATER_HIGH = 5, - } - - export enum SeatPositionCase { - SEAT_POSITION_NOT_SET = 0, - CAR_SEAT_UNKNOWN = 6, - CAR_SEAT_FRONT_LEFT = 7, - CAR_SEAT_FRONT_RIGHT = 8, - CAR_SEAT_REAR_LEFT = 9, - CAR_SEAT_REAR_LEFT_BACK = 10, - CAR_SEAT_REAR_CENTER = 11, - CAR_SEAT_REAR_RIGHT = 12, - CAR_SEAT_REAR_RIGHT_BACK = 13, - CAR_SEAT_THIRD_ROW_LEFT = 14, - CAR_SEAT_THIRD_ROW_RIGHT = 15, - } - } -} - -export class HvacSeatCoolerActions extends jspb.Message { - clearHvacseatcooleractionList(): void; - getHvacseatcooleractionList(): Array; - setHvacseatcooleractionList(value: Array): void; - addHvacseatcooleraction(value?: HvacSeatCoolerActions.HvacSeatCoolerAction, index?: number): HvacSeatCoolerActions.HvacSeatCoolerAction; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacSeatCoolerActions.AsObject; - static toObject(includeInstance: boolean, msg: HvacSeatCoolerActions): HvacSeatCoolerActions.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacSeatCoolerActions, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacSeatCoolerActions; - static deserializeBinaryFromReader(message: HvacSeatCoolerActions, reader: jspb.BinaryReader): HvacSeatCoolerActions; -} - -export namespace HvacSeatCoolerActions { - export type AsObject = { - hvacseatcooleractionList: Array, - } - - export class HvacSeatCoolerAction extends jspb.Message { - getSeatCoolerLevel(): HvacSeatCoolerActions.HvacSeatCoolerLevel_EMap[keyof HvacSeatCoolerActions.HvacSeatCoolerLevel_EMap]; - setSeatCoolerLevel(value: HvacSeatCoolerActions.HvacSeatCoolerLevel_EMap[keyof HvacSeatCoolerActions.HvacSeatCoolerLevel_EMap]): void; - - getSeatPosition(): HvacSeatCoolerActions.HvacSeatCoolerPosition_EMap[keyof HvacSeatCoolerActions.HvacSeatCoolerPosition_EMap]; - setSeatPosition(value: HvacSeatCoolerActions.HvacSeatCoolerPosition_EMap[keyof HvacSeatCoolerActions.HvacSeatCoolerPosition_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacSeatCoolerAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacSeatCoolerAction): HvacSeatCoolerAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacSeatCoolerAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacSeatCoolerAction; - static deserializeBinaryFromReader(message: HvacSeatCoolerAction, reader: jspb.BinaryReader): HvacSeatCoolerAction; - } - - export namespace HvacSeatCoolerAction { - export type AsObject = { - seatCoolerLevel: HvacSeatCoolerActions.HvacSeatCoolerLevel_EMap[keyof HvacSeatCoolerActions.HvacSeatCoolerLevel_EMap], - seatPosition: HvacSeatCoolerActions.HvacSeatCoolerPosition_EMap[keyof HvacSeatCoolerActions.HvacSeatCoolerPosition_EMap], - } - } - - export interface HvacSeatCoolerLevel_EMap { - HVACSEATCOOLERLEVEL_UNKNOWN: 0; - HVACSEATCOOLERLEVEL_OFF: 1; - HVACSEATCOOLERLEVEL_LOW: 2; - HVACSEATCOOLERLEVEL_MED: 3; - HVACSEATCOOLERLEVEL_HIGH: 4; - } - - export const HvacSeatCoolerLevel_E: HvacSeatCoolerLevel_EMap; - - export interface HvacSeatCoolerPosition_EMap { - HVACSEATCOOLERPOSITION_UNKNOWN: 0; - HVACSEATCOOLERPOSITION_FRONTLEFT: 1; - HVACSEATCOOLERPOSITION_FRONTRIGHT: 2; - } - - export const HvacSeatCoolerPosition_E: HvacSeatCoolerPosition_EMap; -} - -export class HvacSetPreconditioningMaxAction extends jspb.Message { - getOn(): boolean; - setOn(value: boolean): void; - - getManualOverride(): boolean; - setManualOverride(value: boolean): void; - - clearManualOverrideModeList(): void; - getManualOverrideModeList(): Array; - setManualOverrideModeList(value: Array): void; - addManualOverrideMode(value: HvacSetPreconditioningMaxAction.ManualOverrideMode_EMap[keyof HvacSetPreconditioningMaxAction.ManualOverrideMode_EMap], index?: number): HvacSetPreconditioningMaxAction.ManualOverrideMode_EMap[keyof HvacSetPreconditioningMaxAction.ManualOverrideMode_EMap]; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacSetPreconditioningMaxAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacSetPreconditioningMaxAction): HvacSetPreconditioningMaxAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacSetPreconditioningMaxAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacSetPreconditioningMaxAction; - static deserializeBinaryFromReader(message: HvacSetPreconditioningMaxAction, reader: jspb.BinaryReader): HvacSetPreconditioningMaxAction; -} - -export namespace HvacSetPreconditioningMaxAction { - export type AsObject = { - on: boolean, - manualOverride: boolean, - manualOverrideModeList: Array, - } - - export interface ManualOverrideMode_EMap { - DOGMODE: 0; - SOC: 1; - DOORS: 2; - } - - export const ManualOverrideMode_E: ManualOverrideMode_EMap; -} - -export class HvacSteeringWheelHeaterAction extends jspb.Message { - getPowerOn(): boolean; - setPowerOn(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacSteeringWheelHeaterAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacSteeringWheelHeaterAction): HvacSteeringWheelHeaterAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacSteeringWheelHeaterAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacSteeringWheelHeaterAction; - static deserializeBinaryFromReader(message: HvacSteeringWheelHeaterAction, reader: jspb.BinaryReader): HvacSteeringWheelHeaterAction; -} - -export namespace HvacSteeringWheelHeaterAction { - export type AsObject = { - powerOn: boolean, - } -} - -export class HvacTemperatureAdjustmentAction extends jspb.Message { - getDeltaCelsius(): number; - setDeltaCelsius(value: number): void; - - getDeltaPercent(): number; - setDeltaPercent(value: number): void; - - getAbsoluteCelsius(): number; - setAbsoluteCelsius(value: number): void; - - hasLevel(): boolean; - clearLevel(): void; - getLevel(): HvacTemperatureAdjustmentAction.Temperature | undefined; - setLevel(value?: HvacTemperatureAdjustmentAction.Temperature): void; - - clearHvacTemperatureZoneList(): void; - getHvacTemperatureZoneList(): Array; - setHvacTemperatureZoneList(value: Array): void; - addHvacTemperatureZone(value?: HvacTemperatureAdjustmentAction.HvacTemperatureZone, index?: number): HvacTemperatureAdjustmentAction.HvacTemperatureZone; - - getDriverTempCelsius(): number; - setDriverTempCelsius(value: number): void; - - getPassengerTempCelsius(): number; - setPassengerTempCelsius(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacTemperatureAdjustmentAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacTemperatureAdjustmentAction): HvacTemperatureAdjustmentAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacTemperatureAdjustmentAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacTemperatureAdjustmentAction; - static deserializeBinaryFromReader(message: HvacTemperatureAdjustmentAction, reader: jspb.BinaryReader): HvacTemperatureAdjustmentAction; -} - -export namespace HvacTemperatureAdjustmentAction { - export type AsObject = { - deltaCelsius: number, - deltaPercent: number, - absoluteCelsius: number, - level?: HvacTemperatureAdjustmentAction.Temperature.AsObject, - hvacTemperatureZoneList: Array, - driverTempCelsius: number, - passengerTempCelsius: number, - } - - export class Temperature extends jspb.Message { - hasTempUnknown(): boolean; - clearTempUnknown(): void; - getTempUnknown(): common_pb.Void | undefined; - setTempUnknown(value?: common_pb.Void): void; - - hasTempMin(): boolean; - clearTempMin(): void; - getTempMin(): common_pb.Void | undefined; - setTempMin(value?: common_pb.Void): void; - - hasTempMax(): boolean; - clearTempMax(): void; - getTempMax(): common_pb.Void | undefined; - setTempMax(value?: common_pb.Void): void; - - getTypeCase(): Temperature.TypeCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Temperature.AsObject; - static toObject(includeInstance: boolean, msg: Temperature): Temperature.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Temperature, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Temperature; - static deserializeBinaryFromReader(message: Temperature, reader: jspb.BinaryReader): Temperature; - } - - export namespace Temperature { - export type AsObject = { - tempUnknown?: common_pb.Void.AsObject, - tempMin?: common_pb.Void.AsObject, - tempMax?: common_pb.Void.AsObject, - } - - export enum TypeCase { - TYPE_NOT_SET = 0, - TEMP_UNKNOWN = 1, - TEMP_MIN = 2, - TEMP_MAX = 3, - } - } - - export class HvacTemperatureZone extends jspb.Message { - hasTempZoneUnknown(): boolean; - clearTempZoneUnknown(): void; - getTempZoneUnknown(): common_pb.Void | undefined; - setTempZoneUnknown(value?: common_pb.Void): void; - - hasTempZoneFrontLeft(): boolean; - clearTempZoneFrontLeft(): void; - getTempZoneFrontLeft(): common_pb.Void | undefined; - setTempZoneFrontLeft(value?: common_pb.Void): void; - - hasTempZoneFrontRight(): boolean; - clearTempZoneFrontRight(): void; - getTempZoneFrontRight(): common_pb.Void | undefined; - setTempZoneFrontRight(value?: common_pb.Void): void; - - hasTempZoneRear(): boolean; - clearTempZoneRear(): void; - getTempZoneRear(): common_pb.Void | undefined; - setTempZoneRear(value?: common_pb.Void): void; - - getTypeCase(): HvacTemperatureZone.TypeCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacTemperatureZone.AsObject; - static toObject(includeInstance: boolean, msg: HvacTemperatureZone): HvacTemperatureZone.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacTemperatureZone, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacTemperatureZone; - static deserializeBinaryFromReader(message: HvacTemperatureZone, reader: jspb.BinaryReader): HvacTemperatureZone; - } - - export namespace HvacTemperatureZone { - export type AsObject = { - tempZoneUnknown?: common_pb.Void.AsObject, - tempZoneFrontLeft?: common_pb.Void.AsObject, - tempZoneFrontRight?: common_pb.Void.AsObject, - tempZoneRear?: common_pb.Void.AsObject, - } - - export enum TypeCase { - TYPE_NOT_SET = 0, - TEMP_ZONE_UNKNOWN = 1, - TEMP_ZONE_FRONT_LEFT = 2, - TEMP_ZONE_FRONT_RIGHT = 3, - TEMP_ZONE_REAR = 4, - } - } -} - -export class GetNearbyChargingSites extends jspb.Message { - getIncludeMetaData(): boolean; - setIncludeMetaData(value: boolean): void; - - getRadius(): number; - setRadius(value: number): void; - - getCount(): number; - setCount(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNearbyChargingSites.AsObject; - static toObject(includeInstance: boolean, msg: GetNearbyChargingSites): GetNearbyChargingSites.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNearbyChargingSites, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNearbyChargingSites; - static deserializeBinaryFromReader(message: GetNearbyChargingSites, reader: jspb.BinaryReader): GetNearbyChargingSites; -} - -export namespace GetNearbyChargingSites { - export type AsObject = { - includeMetaData: boolean, - radius: number, - count: number, - } -} - -export class NearbyChargingSites extends jspb.Message { - hasTimestamp(): boolean; - clearTimestamp(): void; - getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void; - - clearSuperchargersList(): void; - getSuperchargersList(): Array; - setSuperchargersList(value: Array): void; - addSuperchargers(value?: Superchargers, index?: number): Superchargers; - - getCongestionSyncTimeUtcSecs(): number; - setCongestionSyncTimeUtcSecs(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NearbyChargingSites.AsObject; - static toObject(includeInstance: boolean, msg: NearbyChargingSites): NearbyChargingSites.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NearbyChargingSites, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NearbyChargingSites; - static deserializeBinaryFromReader(message: NearbyChargingSites, reader: jspb.BinaryReader): NearbyChargingSites; -} - -export namespace NearbyChargingSites { - export type AsObject = { - timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, - superchargersList: Array, - congestionSyncTimeUtcSecs: number, - } -} - -export class Superchargers extends jspb.Message { - getId(): number; - setId(value: number): void; - - getAmenities(): string; - setAmenities(value: string): void; - - getAvailableStalls(): number; - setAvailableStalls(value: number): void; - - getBillingInfo(): string; - setBillingInfo(value: string): void; - - getBillingTime(): string; - setBillingTime(value: string): void; - - getCity(): string; - setCity(value: string): void; - - getCountry(): string; - setCountry(value: string): void; - - getDistanceMiles(): number; - setDistanceMiles(value: number): void; - - getDistrict(): string; - setDistrict(value: string): void; - - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_pb.LatLong | undefined; - setLocation(value?: common_pb.LatLong): void; - - getName(): string; - setName(value: string): void; - - getPostalCode(): string; - setPostalCode(value: string): void; - - getSiteClosed(): boolean; - setSiteClosed(value: boolean): void; - - getState(): string; - setState(value: string): void; - - getStreetAddress(): string; - setStreetAddress(value: string): void; - - getTotalStalls(): number; - setTotalStalls(value: number): void; - - getWithinRange(): boolean; - setWithinRange(value: boolean): void; - - getMaxPowerKw(): number; - setMaxPowerKw(value: number): void; - - getOutOfOrderStallsNumber(): number; - setOutOfOrderStallsNumber(value: number): void; - - getOutOfOrderStallsNames(): string; - setOutOfOrderStallsNames(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Superchargers.AsObject; - static toObject(includeInstance: boolean, msg: Superchargers): Superchargers.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Superchargers, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Superchargers; - static deserializeBinaryFromReader(message: Superchargers, reader: jspb.BinaryReader): Superchargers; -} - -export namespace Superchargers { - export type AsObject = { - id: number, - amenities: string, - availableStalls: number, - billingInfo: string, - billingTime: string, - city: string, - country: string, - distanceMiles: number, - district: string, - location?: common_pb.LatLong.AsObject, - name: string, - postalCode: string, - siteClosed: boolean, - state: string, - streetAddress: string, - totalStalls: number, - withinRange: boolean, - maxPowerKw: number, - outOfOrderStallsNumber: number, - outOfOrderStallsNames: string, - } -} - -export class MediaPlayAction extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediaPlayAction.AsObject; - static toObject(includeInstance: boolean, msg: MediaPlayAction): MediaPlayAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MediaPlayAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediaPlayAction; - static deserializeBinaryFromReader(message: MediaPlayAction, reader: jspb.BinaryReader): MediaPlayAction; -} - -export namespace MediaPlayAction { - export type AsObject = { - } -} - -export class MediaUpdateVolume extends jspb.Message { - hasVolumeDelta(): boolean; - clearVolumeDelta(): void; - getVolumeDelta(): number; - setVolumeDelta(value: number): void; - - hasVolumeAbsoluteFloat(): boolean; - clearVolumeAbsoluteFloat(): void; - getVolumeAbsoluteFloat(): number; - setVolumeAbsoluteFloat(value: number): void; - - getMediaVolumeCase(): MediaUpdateVolume.MediaVolumeCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediaUpdateVolume.AsObject; - static toObject(includeInstance: boolean, msg: MediaUpdateVolume): MediaUpdateVolume.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MediaUpdateVolume, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediaUpdateVolume; - static deserializeBinaryFromReader(message: MediaUpdateVolume, reader: jspb.BinaryReader): MediaUpdateVolume; -} - -export namespace MediaUpdateVolume { - export type AsObject = { - volumeDelta: number, - volumeAbsoluteFloat: number, - } - - export enum MediaVolumeCase { - MEDIA_VOLUME_NOT_SET = 0, - VOLUME_DELTA = 1, - VOLUME_ABSOLUTE_FLOAT = 3, - } -} - -export class MediaNextFavorite extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediaNextFavorite.AsObject; - static toObject(includeInstance: boolean, msg: MediaNextFavorite): MediaNextFavorite.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MediaNextFavorite, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediaNextFavorite; - static deserializeBinaryFromReader(message: MediaNextFavorite, reader: jspb.BinaryReader): MediaNextFavorite; -} - -export namespace MediaNextFavorite { - export type AsObject = { - } -} - -export class MediaPreviousFavorite extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediaPreviousFavorite.AsObject; - static toObject(includeInstance: boolean, msg: MediaPreviousFavorite): MediaPreviousFavorite.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MediaPreviousFavorite, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediaPreviousFavorite; - static deserializeBinaryFromReader(message: MediaPreviousFavorite, reader: jspb.BinaryReader): MediaPreviousFavorite; -} - -export namespace MediaPreviousFavorite { - export type AsObject = { - } -} - -export class MediaNextTrack extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediaNextTrack.AsObject; - static toObject(includeInstance: boolean, msg: MediaNextTrack): MediaNextTrack.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MediaNextTrack, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediaNextTrack; - static deserializeBinaryFromReader(message: MediaNextTrack, reader: jspb.BinaryReader): MediaNextTrack; -} - -export namespace MediaNextTrack { - export type AsObject = { - } -} - -export class MediaPreviousTrack extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MediaPreviousTrack.AsObject; - static toObject(includeInstance: boolean, msg: MediaPreviousTrack): MediaPreviousTrack.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MediaPreviousTrack, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MediaPreviousTrack; - static deserializeBinaryFromReader(message: MediaPreviousTrack, reader: jspb.BinaryReader): MediaPreviousTrack; -} - -export namespace MediaPreviousTrack { - export type AsObject = { - } -} - -export class VehicleControlCancelSoftwareUpdateAction extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlCancelSoftwareUpdateAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlCancelSoftwareUpdateAction): VehicleControlCancelSoftwareUpdateAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlCancelSoftwareUpdateAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlCancelSoftwareUpdateAction; - static deserializeBinaryFromReader(message: VehicleControlCancelSoftwareUpdateAction, reader: jspb.BinaryReader): VehicleControlCancelSoftwareUpdateAction; -} - -export namespace VehicleControlCancelSoftwareUpdateAction { - export type AsObject = { - } -} - -export class VehicleControlFlashLightsAction extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlFlashLightsAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlFlashLightsAction): VehicleControlFlashLightsAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlFlashLightsAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlFlashLightsAction; - static deserializeBinaryFromReader(message: VehicleControlFlashLightsAction, reader: jspb.BinaryReader): VehicleControlFlashLightsAction; -} - -export namespace VehicleControlFlashLightsAction { - export type AsObject = { - } -} - -export class VehicleControlHonkHornAction extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlHonkHornAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlHonkHornAction): VehicleControlHonkHornAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlHonkHornAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlHonkHornAction; - static deserializeBinaryFromReader(message: VehicleControlHonkHornAction, reader: jspb.BinaryReader): VehicleControlHonkHornAction; -} - -export namespace VehicleControlHonkHornAction { - export type AsObject = { - } -} - -export class VehicleControlResetValetPinAction extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlResetValetPinAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlResetValetPinAction): VehicleControlResetValetPinAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlResetValetPinAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlResetValetPinAction; - static deserializeBinaryFromReader(message: VehicleControlResetValetPinAction, reader: jspb.BinaryReader): VehicleControlResetValetPinAction; -} - -export namespace VehicleControlResetValetPinAction { - export type AsObject = { - } -} - -export class VehicleControlScheduleSoftwareUpdateAction extends jspb.Message { - getOffsetSec(): number; - setOffsetSec(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlScheduleSoftwareUpdateAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlScheduleSoftwareUpdateAction): VehicleControlScheduleSoftwareUpdateAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlScheduleSoftwareUpdateAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlScheduleSoftwareUpdateAction; - static deserializeBinaryFromReader(message: VehicleControlScheduleSoftwareUpdateAction, reader: jspb.BinaryReader): VehicleControlScheduleSoftwareUpdateAction; -} - -export namespace VehicleControlScheduleSoftwareUpdateAction { - export type AsObject = { - offsetSec: number, - } -} - -export class VehicleControlSetSentryModeAction extends jspb.Message { - getOn(): boolean; - setOn(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlSetSentryModeAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlSetSentryModeAction): VehicleControlSetSentryModeAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlSetSentryModeAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlSetSentryModeAction; - static deserializeBinaryFromReader(message: VehicleControlSetSentryModeAction, reader: jspb.BinaryReader): VehicleControlSetSentryModeAction; -} - -export namespace VehicleControlSetSentryModeAction { - export type AsObject = { - on: boolean, - } -} - -export class VehicleControlSetValetModeAction extends jspb.Message { - getOn(): boolean; - setOn(value: boolean): void; - - getPassword(): string; - setPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlSetValetModeAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlSetValetModeAction): VehicleControlSetValetModeAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlSetValetModeAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlSetValetModeAction; - static deserializeBinaryFromReader(message: VehicleControlSetValetModeAction, reader: jspb.BinaryReader): VehicleControlSetValetModeAction; -} - -export namespace VehicleControlSetValetModeAction { - export type AsObject = { - on: boolean, - password: string, - } -} - -export class VehicleControlSunroofOpenCloseAction extends jspb.Message { - hasAbsoluteLevel(): boolean; - clearAbsoluteLevel(): void; - getAbsoluteLevel(): number; - setAbsoluteLevel(value: number): void; - - hasDeltaLevel(): boolean; - clearDeltaLevel(): void; - getDeltaLevel(): number; - setDeltaLevel(value: number): void; - - hasVent(): boolean; - clearVent(): void; - getVent(): common_pb.Void | undefined; - setVent(value?: common_pb.Void): void; - - hasClose(): boolean; - clearClose(): void; - getClose(): common_pb.Void | undefined; - setClose(value?: common_pb.Void): void; - - hasOpen(): boolean; - clearOpen(): void; - getOpen(): common_pb.Void | undefined; - setOpen(value?: common_pb.Void): void; - - getSunroofLevelCase(): VehicleControlSunroofOpenCloseAction.SunroofLevelCase; - getActionCase(): VehicleControlSunroofOpenCloseAction.ActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlSunroofOpenCloseAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlSunroofOpenCloseAction): VehicleControlSunroofOpenCloseAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlSunroofOpenCloseAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlSunroofOpenCloseAction; - static deserializeBinaryFromReader(message: VehicleControlSunroofOpenCloseAction, reader: jspb.BinaryReader): VehicleControlSunroofOpenCloseAction; -} - -export namespace VehicleControlSunroofOpenCloseAction { - export type AsObject = { - absoluteLevel: number, - deltaLevel: number, - vent?: common_pb.Void.AsObject, - close?: common_pb.Void.AsObject, - open?: common_pb.Void.AsObject, - } - - export enum SunroofLevelCase { - SUNROOF_LEVEL_NOT_SET = 0, - ABSOLUTE_LEVEL = 1, - DELTA_LEVEL = 2, - } - - export enum ActionCase { - ACTION_NOT_SET = 0, - VENT = 3, - CLOSE = 4, - OPEN = 5, - } -} - -export class VehicleControlTriggerHomelinkAction extends jspb.Message { - hasLocation(): boolean; - clearLocation(): void; - getLocation(): common_pb.LatLong | undefined; - setLocation(value?: common_pb.LatLong): void; - - getToken(): string; - setToken(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlTriggerHomelinkAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlTriggerHomelinkAction): VehicleControlTriggerHomelinkAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlTriggerHomelinkAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlTriggerHomelinkAction; - static deserializeBinaryFromReader(message: VehicleControlTriggerHomelinkAction, reader: jspb.BinaryReader): VehicleControlTriggerHomelinkAction; -} - -export namespace VehicleControlTriggerHomelinkAction { - export type AsObject = { - location?: common_pb.LatLong.AsObject, - token: string, - } -} - -export class VehicleControlWindowAction extends jspb.Message { - hasUnknown(): boolean; - clearUnknown(): void; - getUnknown(): common_pb.Void | undefined; - setUnknown(value?: common_pb.Void): void; - - hasVent(): boolean; - clearVent(): void; - getVent(): common_pb.Void | undefined; - setVent(value?: common_pb.Void): void; - - hasClose(): boolean; - clearClose(): void; - getClose(): common_pb.Void | undefined; - setClose(value?: common_pb.Void): void; - - getActionCase(): VehicleControlWindowAction.ActionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlWindowAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlWindowAction): VehicleControlWindowAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlWindowAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlWindowAction; - static deserializeBinaryFromReader(message: VehicleControlWindowAction, reader: jspb.BinaryReader): VehicleControlWindowAction; -} - -export namespace VehicleControlWindowAction { - export type AsObject = { - unknown?: common_pb.Void.AsObject, - vent?: common_pb.Void.AsObject, - close?: common_pb.Void.AsObject, - } - - export enum ActionCase { - ACTION_NOT_SET = 0, - UNKNOWN = 2, - VENT = 3, - CLOSE = 4, - } -} - -export class HvacBioweaponModeAction extends jspb.Message { - getOn(): boolean; - setOn(value: boolean): void; - - getManualOverride(): boolean; - setManualOverride(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacBioweaponModeAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacBioweaponModeAction): HvacBioweaponModeAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacBioweaponModeAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacBioweaponModeAction; - static deserializeBinaryFromReader(message: HvacBioweaponModeAction, reader: jspb.BinaryReader): HvacBioweaponModeAction; -} - -export namespace HvacBioweaponModeAction { - export type AsObject = { - on: boolean, - manualOverride: boolean, - } -} - -export class AutoSeatClimateAction extends jspb.Message { - clearCarseatList(): void; - getCarseatList(): Array; - setCarseatList(value: Array): void; - addCarseat(value?: AutoSeatClimateAction.CarSeat, index?: number): AutoSeatClimateAction.CarSeat; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AutoSeatClimateAction.AsObject; - static toObject(includeInstance: boolean, msg: AutoSeatClimateAction): AutoSeatClimateAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AutoSeatClimateAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AutoSeatClimateAction; - static deserializeBinaryFromReader(message: AutoSeatClimateAction, reader: jspb.BinaryReader): AutoSeatClimateAction; -} - -export namespace AutoSeatClimateAction { - export type AsObject = { - carseatList: Array, - } - - export class CarSeat extends jspb.Message { - getOn(): boolean; - setOn(value: boolean): void; - - getSeatPosition(): AutoSeatClimateAction.AutoSeatPosition_EMap[keyof AutoSeatClimateAction.AutoSeatPosition_EMap]; - setSeatPosition(value: AutoSeatClimateAction.AutoSeatPosition_EMap[keyof AutoSeatClimateAction.AutoSeatPosition_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CarSeat.AsObject; - static toObject(includeInstance: boolean, msg: CarSeat): CarSeat.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CarSeat, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CarSeat; - static deserializeBinaryFromReader(message: CarSeat, reader: jspb.BinaryReader): CarSeat; - } - - export namespace CarSeat { - export type AsObject = { - on: boolean, - seatPosition: AutoSeatClimateAction.AutoSeatPosition_EMap[keyof AutoSeatClimateAction.AutoSeatPosition_EMap], - } - } - - export interface AutoSeatPosition_EMap { - AUTOSEATPOSITION_UNKNOWN: 0; - AUTOSEATPOSITION_FRONTLEFT: 1; - AUTOSEATPOSITION_FRONTRIGHT: 2; - } - - export const AutoSeatPosition_E: AutoSeatPosition_EMap; -} - -export class Ping extends jspb.Message { - getPingId(): number; - setPingId(value: number): void; - - hasLocalTimestamp(): boolean; - clearLocalTimestamp(): void; - getLocalTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLocalTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void; - - hasLastRemoteTimestamp(): boolean; - clearLastRemoteTimestamp(): void; - getLastRemoteTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setLastRemoteTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Ping.AsObject; - static toObject(includeInstance: boolean, msg: Ping): Ping.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Ping, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Ping; - static deserializeBinaryFromReader(message: Ping, reader: jspb.BinaryReader): Ping; -} - -export namespace Ping { - export type AsObject = { - pingId: number, - localTimestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, - lastRemoteTimestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - -export class ScheduledChargingAction extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getChargingTime(): number; - setChargingTime(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ScheduledChargingAction.AsObject; - static toObject(includeInstance: boolean, msg: ScheduledChargingAction): ScheduledChargingAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ScheduledChargingAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ScheduledChargingAction; - static deserializeBinaryFromReader(message: ScheduledChargingAction, reader: jspb.BinaryReader): ScheduledChargingAction; -} - -export namespace ScheduledChargingAction { - export type AsObject = { - enabled: boolean, - chargingTime: number, - } -} - -export class ScheduledDepartureAction extends jspb.Message { - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getDepartureTime(): number; - setDepartureTime(value: number): void; - - hasPreconditioningTimes(): boolean; - clearPreconditioningTimes(): void; - getPreconditioningTimes(): common_pb.PreconditioningTimes | undefined; - setPreconditioningTimes(value?: common_pb.PreconditioningTimes): void; - - hasOffPeakChargingTimes(): boolean; - clearOffPeakChargingTimes(): void; - getOffPeakChargingTimes(): common_pb.OffPeakChargingTimes | undefined; - setOffPeakChargingTimes(value?: common_pb.OffPeakChargingTimes): void; - - getOffPeakHoursEndTime(): number; - setOffPeakHoursEndTime(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ScheduledDepartureAction.AsObject; - static toObject(includeInstance: boolean, msg: ScheduledDepartureAction): ScheduledDepartureAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ScheduledDepartureAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ScheduledDepartureAction; - static deserializeBinaryFromReader(message: ScheduledDepartureAction, reader: jspb.BinaryReader): ScheduledDepartureAction; -} - -export namespace ScheduledDepartureAction { - export type AsObject = { - enabled: boolean, - departureTime: number, - preconditioningTimes?: common_pb.PreconditioningTimes.AsObject, - offPeakChargingTimes?: common_pb.OffPeakChargingTimes.AsObject, - offPeakHoursEndTime: number, - } -} - -export class HvacClimateKeeperAction extends jspb.Message { - getClimatekeeperaction(): HvacClimateKeeperAction.ClimateKeeperAction_EMap[keyof HvacClimateKeeperAction.ClimateKeeperAction_EMap]; - setClimatekeeperaction(value: HvacClimateKeeperAction.ClimateKeeperAction_EMap[keyof HvacClimateKeeperAction.ClimateKeeperAction_EMap]): void; - - getManualOverride(): boolean; - setManualOverride(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HvacClimateKeeperAction.AsObject; - static toObject(includeInstance: boolean, msg: HvacClimateKeeperAction): HvacClimateKeeperAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HvacClimateKeeperAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HvacClimateKeeperAction; - static deserializeBinaryFromReader(message: HvacClimateKeeperAction, reader: jspb.BinaryReader): HvacClimateKeeperAction; -} - -export namespace HvacClimateKeeperAction { - export type AsObject = { - climatekeeperaction: HvacClimateKeeperAction.ClimateKeeperAction_EMap[keyof HvacClimateKeeperAction.ClimateKeeperAction_EMap], - manualOverride: boolean, - } - - export interface ClimateKeeperAction_EMap { - CLIMATEKEEPERACTION_OFF: 0; - CLIMATEKEEPERACTION_ON: 1; - CLIMATEKEEPERACTION_DOG: 2; - CLIMATEKEEPERACTION_CAMP: 3; - } - - export const ClimateKeeperAction_E: ClimateKeeperAction_EMap; -} - -export class SetChargingAmpsAction extends jspb.Message { - getChargingAmps(): number; - setChargingAmps(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetChargingAmpsAction.AsObject; - static toObject(includeInstance: boolean, msg: SetChargingAmpsAction): SetChargingAmpsAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetChargingAmpsAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetChargingAmpsAction; - static deserializeBinaryFromReader(message: SetChargingAmpsAction, reader: jspb.BinaryReader): SetChargingAmpsAction; -} - -export namespace SetChargingAmpsAction { - export type AsObject = { - chargingAmps: number, - } -} - -export class RemoveChargeScheduleAction extends jspb.Message { - getId(): number; - setId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveChargeScheduleAction.AsObject; - static toObject(includeInstance: boolean, msg: RemoveChargeScheduleAction): RemoveChargeScheduleAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveChargeScheduleAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveChargeScheduleAction; - static deserializeBinaryFromReader(message: RemoveChargeScheduleAction, reader: jspb.BinaryReader): RemoveChargeScheduleAction; -} - -export namespace RemoveChargeScheduleAction { - export type AsObject = { - id: number, - } -} - -export class BatchRemoveChargeSchedulesAction extends jspb.Message { - getHome(): boolean; - setHome(value: boolean): void; - - getWork(): boolean; - setWork(value: boolean): void; - - getOther(): boolean; - setOther(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BatchRemoveChargeSchedulesAction.AsObject; - static toObject(includeInstance: boolean, msg: BatchRemoveChargeSchedulesAction): BatchRemoveChargeSchedulesAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BatchRemoveChargeSchedulesAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BatchRemoveChargeSchedulesAction; - static deserializeBinaryFromReader(message: BatchRemoveChargeSchedulesAction, reader: jspb.BinaryReader): BatchRemoveChargeSchedulesAction; -} - -export namespace BatchRemoveChargeSchedulesAction { - export type AsObject = { - home: boolean, - work: boolean, - other: boolean, - } -} - -export class BatchRemovePreconditionSchedulesAction extends jspb.Message { - getHome(): boolean; - setHome(value: boolean): void; - - getWork(): boolean; - setWork(value: boolean): void; - - getOther(): boolean; - setOther(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BatchRemovePreconditionSchedulesAction.AsObject; - static toObject(includeInstance: boolean, msg: BatchRemovePreconditionSchedulesAction): BatchRemovePreconditionSchedulesAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BatchRemovePreconditionSchedulesAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BatchRemovePreconditionSchedulesAction; - static deserializeBinaryFromReader(message: BatchRemovePreconditionSchedulesAction, reader: jspb.BinaryReader): BatchRemovePreconditionSchedulesAction; -} - -export namespace BatchRemovePreconditionSchedulesAction { - export type AsObject = { - home: boolean, - work: boolean, - other: boolean, - } -} - -export class RemovePreconditionScheduleAction extends jspb.Message { - getId(): number; - setId(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemovePreconditionScheduleAction.AsObject; - static toObject(includeInstance: boolean, msg: RemovePreconditionScheduleAction): RemovePreconditionScheduleAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemovePreconditionScheduleAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemovePreconditionScheduleAction; - static deserializeBinaryFromReader(message: RemovePreconditionScheduleAction, reader: jspb.BinaryReader): RemovePreconditionScheduleAction; -} - -export namespace RemovePreconditionScheduleAction { - export type AsObject = { - id: number, - } -} - -export class SetCabinOverheatProtectionAction extends jspb.Message { - getOn(): boolean; - setOn(value: boolean): void; - - getFanOnly(): boolean; - setFanOnly(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetCabinOverheatProtectionAction.AsObject; - static toObject(includeInstance: boolean, msg: SetCabinOverheatProtectionAction): SetCabinOverheatProtectionAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetCabinOverheatProtectionAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetCabinOverheatProtectionAction; - static deserializeBinaryFromReader(message: SetCabinOverheatProtectionAction, reader: jspb.BinaryReader): SetCabinOverheatProtectionAction; -} - -export namespace SetCabinOverheatProtectionAction { - export type AsObject = { - on: boolean, - fanOnly: boolean, - } -} - -export class SetVehicleNameAction extends jspb.Message { - getVehiclename(): string; - setVehiclename(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetVehicleNameAction.AsObject; - static toObject(includeInstance: boolean, msg: SetVehicleNameAction): SetVehicleNameAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetVehicleNameAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetVehicleNameAction; - static deserializeBinaryFromReader(message: SetVehicleNameAction, reader: jspb.BinaryReader): SetVehicleNameAction; -} - -export namespace SetVehicleNameAction { - export type AsObject = { - vehiclename: string, - } -} - -export class ChargePortDoorClose extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChargePortDoorClose.AsObject; - static toObject(includeInstance: boolean, msg: ChargePortDoorClose): ChargePortDoorClose.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChargePortDoorClose, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChargePortDoorClose; - static deserializeBinaryFromReader(message: ChargePortDoorClose, reader: jspb.BinaryReader): ChargePortDoorClose; -} - -export namespace ChargePortDoorClose { - export type AsObject = { - } -} - -export class ChargePortDoorOpen extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChargePortDoorOpen.AsObject; - static toObject(includeInstance: boolean, msg: ChargePortDoorOpen): ChargePortDoorOpen.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChargePortDoorOpen, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChargePortDoorOpen; - static deserializeBinaryFromReader(message: ChargePortDoorOpen, reader: jspb.BinaryReader): ChargePortDoorOpen; -} - -export namespace ChargePortDoorOpen { - export type AsObject = { - } -} - -export class SetCopTempAction extends jspb.Message { - getCopactivationtemp(): vehicle_pb.ClimateState.CopActivationTempMap[keyof vehicle_pb.ClimateState.CopActivationTempMap]; - setCopactivationtemp(value: vehicle_pb.ClimateState.CopActivationTempMap[keyof vehicle_pb.ClimateState.CopActivationTempMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SetCopTempAction.AsObject; - static toObject(includeInstance: boolean, msg: SetCopTempAction): SetCopTempAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SetCopTempAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SetCopTempAction; - static deserializeBinaryFromReader(message: SetCopTempAction, reader: jspb.BinaryReader): SetCopTempAction; -} - -export namespace SetCopTempAction { - export type AsObject = { - copactivationtemp: vehicle_pb.ClimateState.CopActivationTempMap[keyof vehicle_pb.ClimateState.CopActivationTempMap], - } -} - -export class VehicleControlSetPinToDriveAction extends jspb.Message { - getOn(): boolean; - setOn(value: boolean): void; - - getPassword(): string; - setPassword(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlSetPinToDriveAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlSetPinToDriveAction): VehicleControlSetPinToDriveAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlSetPinToDriveAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlSetPinToDriveAction; - static deserializeBinaryFromReader(message: VehicleControlSetPinToDriveAction, reader: jspb.BinaryReader): VehicleControlSetPinToDriveAction; -} - -export namespace VehicleControlSetPinToDriveAction { - export type AsObject = { - on: boolean, - password: string, - } -} - -export class VehicleControlResetPinToDriveAction extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleControlResetPinToDriveAction.AsObject; - static toObject(includeInstance: boolean, msg: VehicleControlResetPinToDriveAction): VehicleControlResetPinToDriveAction.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleControlResetPinToDriveAction, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleControlResetPinToDriveAction; - static deserializeBinaryFromReader(message: VehicleControlResetPinToDriveAction, reader: jspb.BinaryReader): VehicleControlResetPinToDriveAction; -} - -export namespace VehicleControlResetPinToDriveAction { - export type AsObject = { - } -} - -export interface OperationStatus_EMap { - OPERATIONSTATUS_OK: 0; - OPERATIONSTATUS_ERROR: 1; -} - -export const OperationStatus_E: OperationStatus_EMap; - diff --git a/src/pb2/car_server_pb.js b/src/pb2/car_server_pb.js deleted file mode 100644 index e9be4c8..0000000 --- a/src/pb2/car_server_pb.js +++ /dev/null @@ -1,15726 +0,0 @@ -// source: car_server.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var vehicle_pb = require('./vehicle_pb.js'); -goog.object.extend(proto, vehicle_pb); -var signatures_pb = require('./signatures_pb.js'); -goog.object.extend(proto, signatures_pb); -var common_pb = require('./common_pb.js'); -goog.object.extend(proto, common_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.CarServer.Action', null, global); -goog.exportSymbol('proto.CarServer.Action.ActionMsgCase', null, global); -goog.exportSymbol('proto.CarServer.ActionStatus', null, global); -goog.exportSymbol('proto.CarServer.AutoSeatClimateAction', null, global); -goog.exportSymbol('proto.CarServer.AutoSeatClimateAction.AutoSeatPosition_E', null, global); -goog.exportSymbol('proto.CarServer.AutoSeatClimateAction.CarSeat', null, global); -goog.exportSymbol('proto.CarServer.BatchRemoveChargeSchedulesAction', null, global); -goog.exportSymbol('proto.CarServer.BatchRemovePreconditionSchedulesAction', null, global); -goog.exportSymbol('proto.CarServer.ChargePortDoorClose', null, global); -goog.exportSymbol('proto.CarServer.ChargePortDoorOpen', null, global); -goog.exportSymbol('proto.CarServer.ChargingSetLimitAction', null, global); -goog.exportSymbol('proto.CarServer.ChargingStartStopAction', null, global); -goog.exportSymbol('proto.CarServer.ChargingStartStopAction.ChargingActionCase', null, global); -goog.exportSymbol('proto.CarServer.DrivingClearSpeedLimitPinAction', null, global); -goog.exportSymbol('proto.CarServer.DrivingSetSpeedLimitAction', null, global); -goog.exportSymbol('proto.CarServer.DrivingSpeedLimitAction', null, global); -goog.exportSymbol('proto.CarServer.EncryptedData', null, global); -goog.exportSymbol('proto.CarServer.EraseUserDataAction', null, global); -goog.exportSymbol('proto.CarServer.GetNearbyChargingSites', null, global); -goog.exportSymbol('proto.CarServer.HvacAutoAction', null, global); -goog.exportSymbol('proto.CarServer.HvacBioweaponModeAction', null, global); -goog.exportSymbol('proto.CarServer.HvacClimateKeeperAction', null, global); -goog.exportSymbol('proto.CarServer.HvacClimateKeeperAction.ClimateKeeperAction_E', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatCoolerActions', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerLevel_E', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerPosition_E', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatHeaterActions', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatHeaterLevelCase', null, global); -goog.exportSymbol('proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatPositionCase', null, global); -goog.exportSymbol('proto.CarServer.HvacSetPreconditioningMaxAction', null, global); -goog.exportSymbol('proto.CarServer.HvacSetPreconditioningMaxAction.ManualOverrideMode_E', null, global); -goog.exportSymbol('proto.CarServer.HvacSteeringWheelHeaterAction', null, global); -goog.exportSymbol('proto.CarServer.HvacTemperatureAdjustmentAction', null, global); -goog.exportSymbol('proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone', null, global); -goog.exportSymbol('proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.TypeCase', null, global); -goog.exportSymbol('proto.CarServer.HvacTemperatureAdjustmentAction.Temperature', null, global); -goog.exportSymbol('proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.TypeCase', null, global); -goog.exportSymbol('proto.CarServer.MediaNextFavorite', null, global); -goog.exportSymbol('proto.CarServer.MediaNextTrack', null, global); -goog.exportSymbol('proto.CarServer.MediaPlayAction', null, global); -goog.exportSymbol('proto.CarServer.MediaPreviousFavorite', null, global); -goog.exportSymbol('proto.CarServer.MediaPreviousTrack', null, global); -goog.exportSymbol('proto.CarServer.MediaUpdateVolume', null, global); -goog.exportSymbol('proto.CarServer.MediaUpdateVolume.MediaVolumeCase', null, global); -goog.exportSymbol('proto.CarServer.NearbyChargingSites', null, global); -goog.exportSymbol('proto.CarServer.OperationStatus_E', null, global); -goog.exportSymbol('proto.CarServer.Ping', null, global); -goog.exportSymbol('proto.CarServer.RemoveChargeScheduleAction', null, global); -goog.exportSymbol('proto.CarServer.RemovePreconditionScheduleAction', null, global); -goog.exportSymbol('proto.CarServer.Response', null, global); -goog.exportSymbol('proto.CarServer.Response.ResponseMsgCase', null, global); -goog.exportSymbol('proto.CarServer.ResultReason', null, global); -goog.exportSymbol('proto.CarServer.ResultReason.ReasonCase', null, global); -goog.exportSymbol('proto.CarServer.ScheduledChargingAction', null, global); -goog.exportSymbol('proto.CarServer.ScheduledDepartureAction', null, global); -goog.exportSymbol('proto.CarServer.SetCabinOverheatProtectionAction', null, global); -goog.exportSymbol('proto.CarServer.SetChargingAmpsAction', null, global); -goog.exportSymbol('proto.CarServer.SetCopTempAction', null, global); -goog.exportSymbol('proto.CarServer.SetVehicleNameAction', null, global); -goog.exportSymbol('proto.CarServer.Superchargers', null, global); -goog.exportSymbol('proto.CarServer.VehicleAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleAction.VehicleActionMsgCase', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlCancelSoftwareUpdateAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlFlashLightsAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlHonkHornAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlResetPinToDriveAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlResetValetPinAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlScheduleSoftwareUpdateAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlSetPinToDriveAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlSetSentryModeAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlSetValetModeAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlSunroofOpenCloseAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlSunroofOpenCloseAction.ActionCase', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlSunroofOpenCloseAction.SunroofLevelCase', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlTriggerHomelinkAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlWindowAction', null, global); -goog.exportSymbol('proto.CarServer.VehicleControlWindowAction.ActionCase', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.Action = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.Action.oneofGroups_); -}; -goog.inherits(proto.CarServer.Action, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.Action.displayName = 'proto.CarServer.Action'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.VehicleAction.oneofGroups_); -}; -goog.inherits(proto.CarServer.VehicleAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleAction.displayName = 'proto.CarServer.VehicleAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.EraseUserDataAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.EraseUserDataAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.EraseUserDataAction.displayName = 'proto.CarServer.EraseUserDataAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.Response = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.Response.oneofGroups_); -}; -goog.inherits(proto.CarServer.Response, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.Response.displayName = 'proto.CarServer.Response'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ActionStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ActionStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ActionStatus.displayName = 'proto.CarServer.ActionStatus'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ResultReason = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.ResultReason.oneofGroups_); -}; -goog.inherits(proto.CarServer.ResultReason, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ResultReason.displayName = 'proto.CarServer.ResultReason'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.EncryptedData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.EncryptedData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.EncryptedData.displayName = 'proto.CarServer.EncryptedData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ChargingSetLimitAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ChargingSetLimitAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ChargingSetLimitAction.displayName = 'proto.CarServer.ChargingSetLimitAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ChargingStartStopAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.ChargingStartStopAction.oneofGroups_); -}; -goog.inherits(proto.CarServer.ChargingStartStopAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ChargingStartStopAction.displayName = 'proto.CarServer.ChargingStartStopAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.DrivingClearSpeedLimitPinAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.DrivingClearSpeedLimitPinAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.DrivingClearSpeedLimitPinAction.displayName = 'proto.CarServer.DrivingClearSpeedLimitPinAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.DrivingSetSpeedLimitAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.DrivingSetSpeedLimitAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.DrivingSetSpeedLimitAction.displayName = 'proto.CarServer.DrivingSetSpeedLimitAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.DrivingSpeedLimitAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.DrivingSpeedLimitAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.DrivingSpeedLimitAction.displayName = 'proto.CarServer.DrivingSpeedLimitAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacAutoAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.HvacAutoAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacAutoAction.displayName = 'proto.CarServer.HvacAutoAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacSeatHeaterActions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.CarServer.HvacSeatHeaterActions.repeatedFields_, null); -}; -goog.inherits(proto.CarServer.HvacSeatHeaterActions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacSeatHeaterActions.displayName = 'proto.CarServer.HvacSeatHeaterActions'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_); -}; -goog.inherits(proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.displayName = 'proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacSeatCoolerActions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.CarServer.HvacSeatCoolerActions.repeatedFields_, null); -}; -goog.inherits(proto.CarServer.HvacSeatCoolerActions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacSeatCoolerActions.displayName = 'proto.CarServer.HvacSeatCoolerActions'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.displayName = 'proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacSetPreconditioningMaxAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.CarServer.HvacSetPreconditioningMaxAction.repeatedFields_, null); -}; -goog.inherits(proto.CarServer.HvacSetPreconditioningMaxAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacSetPreconditioningMaxAction.displayName = 'proto.CarServer.HvacSetPreconditioningMaxAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacSteeringWheelHeaterAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.HvacSteeringWheelHeaterAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacSteeringWheelHeaterAction.displayName = 'proto.CarServer.HvacSteeringWheelHeaterAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacTemperatureAdjustmentAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.CarServer.HvacTemperatureAdjustmentAction.repeatedFields_, null); -}; -goog.inherits(proto.CarServer.HvacTemperatureAdjustmentAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacTemperatureAdjustmentAction.displayName = 'proto.CarServer.HvacTemperatureAdjustmentAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.oneofGroups_); -}; -goog.inherits(proto.CarServer.HvacTemperatureAdjustmentAction.Temperature, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.displayName = 'proto.CarServer.HvacTemperatureAdjustmentAction.Temperature'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.oneofGroups_); -}; -goog.inherits(proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.displayName = 'proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.GetNearbyChargingSites = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.GetNearbyChargingSites, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.GetNearbyChargingSites.displayName = 'proto.CarServer.GetNearbyChargingSites'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.NearbyChargingSites = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.CarServer.NearbyChargingSites.repeatedFields_, null); -}; -goog.inherits(proto.CarServer.NearbyChargingSites, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.NearbyChargingSites.displayName = 'proto.CarServer.NearbyChargingSites'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.Superchargers = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.Superchargers, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.Superchargers.displayName = 'proto.CarServer.Superchargers'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.MediaPlayAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.MediaPlayAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.MediaPlayAction.displayName = 'proto.CarServer.MediaPlayAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.MediaUpdateVolume = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.MediaUpdateVolume.oneofGroups_); -}; -goog.inherits(proto.CarServer.MediaUpdateVolume, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.MediaUpdateVolume.displayName = 'proto.CarServer.MediaUpdateVolume'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.MediaNextFavorite = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.MediaNextFavorite, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.MediaNextFavorite.displayName = 'proto.CarServer.MediaNextFavorite'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.MediaPreviousFavorite = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.MediaPreviousFavorite, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.MediaPreviousFavorite.displayName = 'proto.CarServer.MediaPreviousFavorite'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.MediaNextTrack = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.MediaNextTrack, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.MediaNextTrack.displayName = 'proto.CarServer.MediaNextTrack'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.MediaPreviousTrack = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.MediaPreviousTrack, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.MediaPreviousTrack.displayName = 'proto.CarServer.MediaPreviousTrack'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlCancelSoftwareUpdateAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlCancelSoftwareUpdateAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlCancelSoftwareUpdateAction.displayName = 'proto.CarServer.VehicleControlCancelSoftwareUpdateAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlFlashLightsAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlFlashLightsAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlFlashLightsAction.displayName = 'proto.CarServer.VehicleControlFlashLightsAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlHonkHornAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlHonkHornAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlHonkHornAction.displayName = 'proto.CarServer.VehicleControlHonkHornAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlResetValetPinAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlResetValetPinAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlResetValetPinAction.displayName = 'proto.CarServer.VehicleControlResetValetPinAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlScheduleSoftwareUpdateAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.displayName = 'proto.CarServer.VehicleControlScheduleSoftwareUpdateAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlSetSentryModeAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlSetSentryModeAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlSetSentryModeAction.displayName = 'proto.CarServer.VehicleControlSetSentryModeAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlSetValetModeAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlSetValetModeAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlSetValetModeAction.displayName = 'proto.CarServer.VehicleControlSetValetModeAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_); -}; -goog.inherits(proto.CarServer.VehicleControlSunroofOpenCloseAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlSunroofOpenCloseAction.displayName = 'proto.CarServer.VehicleControlSunroofOpenCloseAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlTriggerHomelinkAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlTriggerHomelinkAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlTriggerHomelinkAction.displayName = 'proto.CarServer.VehicleControlTriggerHomelinkAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlWindowAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.VehicleControlWindowAction.oneofGroups_); -}; -goog.inherits(proto.CarServer.VehicleControlWindowAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlWindowAction.displayName = 'proto.CarServer.VehicleControlWindowAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacBioweaponModeAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.HvacBioweaponModeAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacBioweaponModeAction.displayName = 'proto.CarServer.HvacBioweaponModeAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.AutoSeatClimateAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.CarServer.AutoSeatClimateAction.repeatedFields_, null); -}; -goog.inherits(proto.CarServer.AutoSeatClimateAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.AutoSeatClimateAction.displayName = 'proto.CarServer.AutoSeatClimateAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.AutoSeatClimateAction.CarSeat = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.AutoSeatClimateAction.CarSeat, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.AutoSeatClimateAction.CarSeat.displayName = 'proto.CarServer.AutoSeatClimateAction.CarSeat'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.Ping = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.Ping, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.Ping.displayName = 'proto.CarServer.Ping'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ScheduledChargingAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ScheduledChargingAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ScheduledChargingAction.displayName = 'proto.CarServer.ScheduledChargingAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ScheduledDepartureAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ScheduledDepartureAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ScheduledDepartureAction.displayName = 'proto.CarServer.ScheduledDepartureAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.HvacClimateKeeperAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.HvacClimateKeeperAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.HvacClimateKeeperAction.displayName = 'proto.CarServer.HvacClimateKeeperAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.SetChargingAmpsAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.SetChargingAmpsAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.SetChargingAmpsAction.displayName = 'proto.CarServer.SetChargingAmpsAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.RemoveChargeScheduleAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.RemoveChargeScheduleAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.RemoveChargeScheduleAction.displayName = 'proto.CarServer.RemoveChargeScheduleAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.BatchRemoveChargeSchedulesAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.BatchRemoveChargeSchedulesAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.BatchRemoveChargeSchedulesAction.displayName = 'proto.CarServer.BatchRemoveChargeSchedulesAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.BatchRemovePreconditionSchedulesAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.BatchRemovePreconditionSchedulesAction.displayName = 'proto.CarServer.BatchRemovePreconditionSchedulesAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.RemovePreconditionScheduleAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.RemovePreconditionScheduleAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.RemovePreconditionScheduleAction.displayName = 'proto.CarServer.RemovePreconditionScheduleAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.SetCabinOverheatProtectionAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.SetCabinOverheatProtectionAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.SetCabinOverheatProtectionAction.displayName = 'proto.CarServer.SetCabinOverheatProtectionAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.SetVehicleNameAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.SetVehicleNameAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.SetVehicleNameAction.displayName = 'proto.CarServer.SetVehicleNameAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ChargePortDoorClose = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ChargePortDoorClose, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ChargePortDoorClose.displayName = 'proto.CarServer.ChargePortDoorClose'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ChargePortDoorOpen = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ChargePortDoorOpen, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ChargePortDoorOpen.displayName = 'proto.CarServer.ChargePortDoorOpen'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.SetCopTempAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.SetCopTempAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.SetCopTempAction.displayName = 'proto.CarServer.SetCopTempAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlSetPinToDriveAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlSetPinToDriveAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlSetPinToDriveAction.displayName = 'proto.CarServer.VehicleControlSetPinToDriveAction'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleControlResetPinToDriveAction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleControlResetPinToDriveAction, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleControlResetPinToDriveAction.displayName = 'proto.CarServer.VehicleControlResetPinToDriveAction'; -} - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.Action.oneofGroups_ = [[2]]; - -/** - * @enum {number} - */ -proto.CarServer.Action.ActionMsgCase = { - ACTION_MSG_NOT_SET: 0, - VEHICLEACTION: 2 -}; - -/** - * @return {proto.CarServer.Action.ActionMsgCase} - */ -proto.CarServer.Action.prototype.getActionMsgCase = function() { - return /** @type {proto.CarServer.Action.ActionMsgCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.Action.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.Action.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.Action.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.Action} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Action.toObject = function(includeInstance, msg) { - var f, obj = { - vehicleaction: (f = msg.getVehicleaction()) && proto.CarServer.VehicleAction.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.Action} - */ -proto.CarServer.Action.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.Action; - return proto.CarServer.Action.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.Action} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.Action} - */ -proto.CarServer.Action.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.CarServer.VehicleAction; - reader.readMessage(value,proto.CarServer.VehicleAction.deserializeBinaryFromReader); - msg.setVehicleaction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.Action.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.Action.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.Action} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Action.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVehicleaction(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.CarServer.VehicleAction.serializeBinaryToWriter - ); - } -}; - - -/** - * optional VehicleAction vehicleAction = 2; - * @return {?proto.CarServer.VehicleAction} - */ -proto.CarServer.Action.prototype.getVehicleaction = function() { - return /** @type{?proto.CarServer.VehicleAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleAction, 2)); -}; - - -/** - * @param {?proto.CarServer.VehicleAction|undefined} value - * @return {!proto.CarServer.Action} returns this -*/ -proto.CarServer.Action.prototype.setVehicleaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.Action.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Action} returns this - */ -proto.CarServer.Action.prototype.clearVehicleaction = function() { - return this.setVehicleaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Action.prototype.hasVehicleaction = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.VehicleAction.oneofGroups_ = [[5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,23,25,26,27,28,29,30,31,32,33,34,35,36,41,42,43,44,46,48,49,50,54,61,62,65,66,72,77,78,97,98,99,100,107,108]]; - -/** - * @enum {number} - */ -proto.CarServer.VehicleAction.VehicleActionMsgCase = { - VEHICLE_ACTION_MSG_NOT_SET: 0, - CHARGINGSETLIMITACTION: 5, - CHARGINGSTARTSTOPACTION: 6, - DRIVINGCLEARSPEEDLIMITPINACTION: 7, - DRIVINGSETSPEEDLIMITACTION: 8, - DRIVINGSPEEDLIMITACTION: 9, - HVACAUTOACTION: 10, - HVACSETPRECONDITIONINGMAXACTION: 12, - HVACSTEERINGWHEELHEATERACTION: 13, - HVACTEMPERATUREADJUSTMENTACTION: 14, - MEDIAPLAYACTION: 15, - MEDIAUPDATEVOLUME: 16, - MEDIANEXTFAVORITE: 17, - MEDIAPREVIOUSFAVORITE: 18, - MEDIANEXTTRACK: 19, - MEDIAPREVIOUSTRACK: 20, - GETNEARBYCHARGINGSITES: 23, - VEHICLECONTROLCANCELSOFTWAREUPDATEACTION: 25, - VEHICLECONTROLFLASHLIGHTSACTION: 26, - VEHICLECONTROLHONKHORNACTION: 27, - VEHICLECONTROLRESETVALETPINACTION: 28, - VEHICLECONTROLSCHEDULESOFTWAREUPDATEACTION: 29, - VEHICLECONTROLSETSENTRYMODEACTION: 30, - VEHICLECONTROLSETVALETMODEACTION: 31, - VEHICLECONTROLSUNROOFOPENCLOSEACTION: 32, - VEHICLECONTROLTRIGGERHOMELINKACTION: 33, - VEHICLECONTROLWINDOWACTION: 34, - HVACBIOWEAPONMODEACTION: 35, - HVACSEATHEATERACTIONS: 36, - SCHEDULEDCHARGINGACTION: 41, - SCHEDULEDDEPARTUREACTION: 42, - SETCHARGINGAMPSACTION: 43, - HVACCLIMATEKEEPERACTION: 44, - PING: 46, - AUTOSEATCLIMATEACTION: 48, - HVACSEATCOOLERACTIONS: 49, - SETCABINOVERHEATPROTECTIONACTION: 50, - SETVEHICLENAMEACTION: 54, - CHARGEPORTDOORCLOSE: 61, - CHARGEPORTDOOROPEN: 62, - GUESTMODEACTION: 65, - SETCOPTEMPACTION: 66, - ERASEUSERDATAACTION: 72, - VEHICLECONTROLSETPINTODRIVEACTION: 77, - VEHICLECONTROLRESETPINTODRIVEACTION: 78, - ADDCHARGESCHEDULEACTION: 97, - REMOVECHARGESCHEDULEACTION: 98, - ADDPRECONDITIONSCHEDULEACTION: 99, - REMOVEPRECONDITIONSCHEDULEACTION: 100, - BATCHREMOVEPRECONDITIONSCHEDULESACTION: 107, - BATCHREMOVECHARGESCHEDULESACTION: 108 -}; - -/** - * @return {proto.CarServer.VehicleAction.VehicleActionMsgCase} - */ -proto.CarServer.VehicleAction.prototype.getVehicleActionMsgCase = function() { - return /** @type {proto.CarServer.VehicleAction.VehicleActionMsgCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.VehicleAction.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleAction.toObject = function(includeInstance, msg) { - var f, obj = { - chargingsetlimitaction: (f = msg.getChargingsetlimitaction()) && proto.CarServer.ChargingSetLimitAction.toObject(includeInstance, f), - chargingstartstopaction: (f = msg.getChargingstartstopaction()) && proto.CarServer.ChargingStartStopAction.toObject(includeInstance, f), - drivingclearspeedlimitpinaction: (f = msg.getDrivingclearspeedlimitpinaction()) && proto.CarServer.DrivingClearSpeedLimitPinAction.toObject(includeInstance, f), - drivingsetspeedlimitaction: (f = msg.getDrivingsetspeedlimitaction()) && proto.CarServer.DrivingSetSpeedLimitAction.toObject(includeInstance, f), - drivingspeedlimitaction: (f = msg.getDrivingspeedlimitaction()) && proto.CarServer.DrivingSpeedLimitAction.toObject(includeInstance, f), - hvacautoaction: (f = msg.getHvacautoaction()) && proto.CarServer.HvacAutoAction.toObject(includeInstance, f), - hvacsetpreconditioningmaxaction: (f = msg.getHvacsetpreconditioningmaxaction()) && proto.CarServer.HvacSetPreconditioningMaxAction.toObject(includeInstance, f), - hvacsteeringwheelheateraction: (f = msg.getHvacsteeringwheelheateraction()) && proto.CarServer.HvacSteeringWheelHeaterAction.toObject(includeInstance, f), - hvactemperatureadjustmentaction: (f = msg.getHvactemperatureadjustmentaction()) && proto.CarServer.HvacTemperatureAdjustmentAction.toObject(includeInstance, f), - mediaplayaction: (f = msg.getMediaplayaction()) && proto.CarServer.MediaPlayAction.toObject(includeInstance, f), - mediaupdatevolume: (f = msg.getMediaupdatevolume()) && proto.CarServer.MediaUpdateVolume.toObject(includeInstance, f), - medianextfavorite: (f = msg.getMedianextfavorite()) && proto.CarServer.MediaNextFavorite.toObject(includeInstance, f), - mediapreviousfavorite: (f = msg.getMediapreviousfavorite()) && proto.CarServer.MediaPreviousFavorite.toObject(includeInstance, f), - medianexttrack: (f = msg.getMedianexttrack()) && proto.CarServer.MediaNextTrack.toObject(includeInstance, f), - mediaprevioustrack: (f = msg.getMediaprevioustrack()) && proto.CarServer.MediaPreviousTrack.toObject(includeInstance, f), - getnearbychargingsites: (f = msg.getGetnearbychargingsites()) && proto.CarServer.GetNearbyChargingSites.toObject(includeInstance, f), - vehiclecontrolcancelsoftwareupdateaction: (f = msg.getVehiclecontrolcancelsoftwareupdateaction()) && proto.CarServer.VehicleControlCancelSoftwareUpdateAction.toObject(includeInstance, f), - vehiclecontrolflashlightsaction: (f = msg.getVehiclecontrolflashlightsaction()) && proto.CarServer.VehicleControlFlashLightsAction.toObject(includeInstance, f), - vehiclecontrolhonkhornaction: (f = msg.getVehiclecontrolhonkhornaction()) && proto.CarServer.VehicleControlHonkHornAction.toObject(includeInstance, f), - vehiclecontrolresetvaletpinaction: (f = msg.getVehiclecontrolresetvaletpinaction()) && proto.CarServer.VehicleControlResetValetPinAction.toObject(includeInstance, f), - vehiclecontrolschedulesoftwareupdateaction: (f = msg.getVehiclecontrolschedulesoftwareupdateaction()) && proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.toObject(includeInstance, f), - vehiclecontrolsetsentrymodeaction: (f = msg.getVehiclecontrolsetsentrymodeaction()) && proto.CarServer.VehicleControlSetSentryModeAction.toObject(includeInstance, f), - vehiclecontrolsetvaletmodeaction: (f = msg.getVehiclecontrolsetvaletmodeaction()) && proto.CarServer.VehicleControlSetValetModeAction.toObject(includeInstance, f), - vehiclecontrolsunroofopencloseaction: (f = msg.getVehiclecontrolsunroofopencloseaction()) && proto.CarServer.VehicleControlSunroofOpenCloseAction.toObject(includeInstance, f), - vehiclecontroltriggerhomelinkaction: (f = msg.getVehiclecontroltriggerhomelinkaction()) && proto.CarServer.VehicleControlTriggerHomelinkAction.toObject(includeInstance, f), - vehiclecontrolwindowaction: (f = msg.getVehiclecontrolwindowaction()) && proto.CarServer.VehicleControlWindowAction.toObject(includeInstance, f), - hvacbioweaponmodeaction: (f = msg.getHvacbioweaponmodeaction()) && proto.CarServer.HvacBioweaponModeAction.toObject(includeInstance, f), - hvacseatheateractions: (f = msg.getHvacseatheateractions()) && proto.CarServer.HvacSeatHeaterActions.toObject(includeInstance, f), - scheduledchargingaction: (f = msg.getScheduledchargingaction()) && proto.CarServer.ScheduledChargingAction.toObject(includeInstance, f), - scheduleddepartureaction: (f = msg.getScheduleddepartureaction()) && proto.CarServer.ScheduledDepartureAction.toObject(includeInstance, f), - setchargingampsaction: (f = msg.getSetchargingampsaction()) && proto.CarServer.SetChargingAmpsAction.toObject(includeInstance, f), - hvacclimatekeeperaction: (f = msg.getHvacclimatekeeperaction()) && proto.CarServer.HvacClimateKeeperAction.toObject(includeInstance, f), - ping: (f = msg.getPing()) && proto.CarServer.Ping.toObject(includeInstance, f), - autoseatclimateaction: (f = msg.getAutoseatclimateaction()) && proto.CarServer.AutoSeatClimateAction.toObject(includeInstance, f), - hvacseatcooleractions: (f = msg.getHvacseatcooleractions()) && proto.CarServer.HvacSeatCoolerActions.toObject(includeInstance, f), - setcabinoverheatprotectionaction: (f = msg.getSetcabinoverheatprotectionaction()) && proto.CarServer.SetCabinOverheatProtectionAction.toObject(includeInstance, f), - setvehiclenameaction: (f = msg.getSetvehiclenameaction()) && proto.CarServer.SetVehicleNameAction.toObject(includeInstance, f), - chargeportdoorclose: (f = msg.getChargeportdoorclose()) && proto.CarServer.ChargePortDoorClose.toObject(includeInstance, f), - chargeportdooropen: (f = msg.getChargeportdooropen()) && proto.CarServer.ChargePortDoorOpen.toObject(includeInstance, f), - guestmodeaction: (f = msg.getGuestmodeaction()) && vehicle_pb.VehicleState.GuestMode.toObject(includeInstance, f), - setcoptempaction: (f = msg.getSetcoptempaction()) && proto.CarServer.SetCopTempAction.toObject(includeInstance, f), - eraseuserdataaction: (f = msg.getEraseuserdataaction()) && proto.CarServer.EraseUserDataAction.toObject(includeInstance, f), - vehiclecontrolsetpintodriveaction: (f = msg.getVehiclecontrolsetpintodriveaction()) && proto.CarServer.VehicleControlSetPinToDriveAction.toObject(includeInstance, f), - vehiclecontrolresetpintodriveaction: (f = msg.getVehiclecontrolresetpintodriveaction()) && proto.CarServer.VehicleControlResetPinToDriveAction.toObject(includeInstance, f), - addchargescheduleaction: (f = msg.getAddchargescheduleaction()) && common_pb.ChargeSchedule.toObject(includeInstance, f), - removechargescheduleaction: (f = msg.getRemovechargescheduleaction()) && proto.CarServer.RemoveChargeScheduleAction.toObject(includeInstance, f), - addpreconditionscheduleaction: (f = msg.getAddpreconditionscheduleaction()) && common_pb.PreconditionSchedule.toObject(includeInstance, f), - removepreconditionscheduleaction: (f = msg.getRemovepreconditionscheduleaction()) && proto.CarServer.RemovePreconditionScheduleAction.toObject(includeInstance, f), - batchremovepreconditionschedulesaction: (f = msg.getBatchremovepreconditionschedulesaction()) && proto.CarServer.BatchRemovePreconditionSchedulesAction.toObject(includeInstance, f), - batchremovechargeschedulesaction: (f = msg.getBatchremovechargeschedulesaction()) && proto.CarServer.BatchRemoveChargeSchedulesAction.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleAction} - */ -proto.CarServer.VehicleAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleAction; - return proto.CarServer.VehicleAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleAction} - */ -proto.CarServer.VehicleAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 5: - var value = new proto.CarServer.ChargingSetLimitAction; - reader.readMessage(value,proto.CarServer.ChargingSetLimitAction.deserializeBinaryFromReader); - msg.setChargingsetlimitaction(value); - break; - case 6: - var value = new proto.CarServer.ChargingStartStopAction; - reader.readMessage(value,proto.CarServer.ChargingStartStopAction.deserializeBinaryFromReader); - msg.setChargingstartstopaction(value); - break; - case 7: - var value = new proto.CarServer.DrivingClearSpeedLimitPinAction; - reader.readMessage(value,proto.CarServer.DrivingClearSpeedLimitPinAction.deserializeBinaryFromReader); - msg.setDrivingclearspeedlimitpinaction(value); - break; - case 8: - var value = new proto.CarServer.DrivingSetSpeedLimitAction; - reader.readMessage(value,proto.CarServer.DrivingSetSpeedLimitAction.deserializeBinaryFromReader); - msg.setDrivingsetspeedlimitaction(value); - break; - case 9: - var value = new proto.CarServer.DrivingSpeedLimitAction; - reader.readMessage(value,proto.CarServer.DrivingSpeedLimitAction.deserializeBinaryFromReader); - msg.setDrivingspeedlimitaction(value); - break; - case 10: - var value = new proto.CarServer.HvacAutoAction; - reader.readMessage(value,proto.CarServer.HvacAutoAction.deserializeBinaryFromReader); - msg.setHvacautoaction(value); - break; - case 12: - var value = new proto.CarServer.HvacSetPreconditioningMaxAction; - reader.readMessage(value,proto.CarServer.HvacSetPreconditioningMaxAction.deserializeBinaryFromReader); - msg.setHvacsetpreconditioningmaxaction(value); - break; - case 13: - var value = new proto.CarServer.HvacSteeringWheelHeaterAction; - reader.readMessage(value,proto.CarServer.HvacSteeringWheelHeaterAction.deserializeBinaryFromReader); - msg.setHvacsteeringwheelheateraction(value); - break; - case 14: - var value = new proto.CarServer.HvacTemperatureAdjustmentAction; - reader.readMessage(value,proto.CarServer.HvacTemperatureAdjustmentAction.deserializeBinaryFromReader); - msg.setHvactemperatureadjustmentaction(value); - break; - case 15: - var value = new proto.CarServer.MediaPlayAction; - reader.readMessage(value,proto.CarServer.MediaPlayAction.deserializeBinaryFromReader); - msg.setMediaplayaction(value); - break; - case 16: - var value = new proto.CarServer.MediaUpdateVolume; - reader.readMessage(value,proto.CarServer.MediaUpdateVolume.deserializeBinaryFromReader); - msg.setMediaupdatevolume(value); - break; - case 17: - var value = new proto.CarServer.MediaNextFavorite; - reader.readMessage(value,proto.CarServer.MediaNextFavorite.deserializeBinaryFromReader); - msg.setMedianextfavorite(value); - break; - case 18: - var value = new proto.CarServer.MediaPreviousFavorite; - reader.readMessage(value,proto.CarServer.MediaPreviousFavorite.deserializeBinaryFromReader); - msg.setMediapreviousfavorite(value); - break; - case 19: - var value = new proto.CarServer.MediaNextTrack; - reader.readMessage(value,proto.CarServer.MediaNextTrack.deserializeBinaryFromReader); - msg.setMedianexttrack(value); - break; - case 20: - var value = new proto.CarServer.MediaPreviousTrack; - reader.readMessage(value,proto.CarServer.MediaPreviousTrack.deserializeBinaryFromReader); - msg.setMediaprevioustrack(value); - break; - case 23: - var value = new proto.CarServer.GetNearbyChargingSites; - reader.readMessage(value,proto.CarServer.GetNearbyChargingSites.deserializeBinaryFromReader); - msg.setGetnearbychargingsites(value); - break; - case 25: - var value = new proto.CarServer.VehicleControlCancelSoftwareUpdateAction; - reader.readMessage(value,proto.CarServer.VehicleControlCancelSoftwareUpdateAction.deserializeBinaryFromReader); - msg.setVehiclecontrolcancelsoftwareupdateaction(value); - break; - case 26: - var value = new proto.CarServer.VehicleControlFlashLightsAction; - reader.readMessage(value,proto.CarServer.VehicleControlFlashLightsAction.deserializeBinaryFromReader); - msg.setVehiclecontrolflashlightsaction(value); - break; - case 27: - var value = new proto.CarServer.VehicleControlHonkHornAction; - reader.readMessage(value,proto.CarServer.VehicleControlHonkHornAction.deserializeBinaryFromReader); - msg.setVehiclecontrolhonkhornaction(value); - break; - case 28: - var value = new proto.CarServer.VehicleControlResetValetPinAction; - reader.readMessage(value,proto.CarServer.VehicleControlResetValetPinAction.deserializeBinaryFromReader); - msg.setVehiclecontrolresetvaletpinaction(value); - break; - case 29: - var value = new proto.CarServer.VehicleControlScheduleSoftwareUpdateAction; - reader.readMessage(value,proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.deserializeBinaryFromReader); - msg.setVehiclecontrolschedulesoftwareupdateaction(value); - break; - case 30: - var value = new proto.CarServer.VehicleControlSetSentryModeAction; - reader.readMessage(value,proto.CarServer.VehicleControlSetSentryModeAction.deserializeBinaryFromReader); - msg.setVehiclecontrolsetsentrymodeaction(value); - break; - case 31: - var value = new proto.CarServer.VehicleControlSetValetModeAction; - reader.readMessage(value,proto.CarServer.VehicleControlSetValetModeAction.deserializeBinaryFromReader); - msg.setVehiclecontrolsetvaletmodeaction(value); - break; - case 32: - var value = new proto.CarServer.VehicleControlSunroofOpenCloseAction; - reader.readMessage(value,proto.CarServer.VehicleControlSunroofOpenCloseAction.deserializeBinaryFromReader); - msg.setVehiclecontrolsunroofopencloseaction(value); - break; - case 33: - var value = new proto.CarServer.VehicleControlTriggerHomelinkAction; - reader.readMessage(value,proto.CarServer.VehicleControlTriggerHomelinkAction.deserializeBinaryFromReader); - msg.setVehiclecontroltriggerhomelinkaction(value); - break; - case 34: - var value = new proto.CarServer.VehicleControlWindowAction; - reader.readMessage(value,proto.CarServer.VehicleControlWindowAction.deserializeBinaryFromReader); - msg.setVehiclecontrolwindowaction(value); - break; - case 35: - var value = new proto.CarServer.HvacBioweaponModeAction; - reader.readMessage(value,proto.CarServer.HvacBioweaponModeAction.deserializeBinaryFromReader); - msg.setHvacbioweaponmodeaction(value); - break; - case 36: - var value = new proto.CarServer.HvacSeatHeaterActions; - reader.readMessage(value,proto.CarServer.HvacSeatHeaterActions.deserializeBinaryFromReader); - msg.setHvacseatheateractions(value); - break; - case 41: - var value = new proto.CarServer.ScheduledChargingAction; - reader.readMessage(value,proto.CarServer.ScheduledChargingAction.deserializeBinaryFromReader); - msg.setScheduledchargingaction(value); - break; - case 42: - var value = new proto.CarServer.ScheduledDepartureAction; - reader.readMessage(value,proto.CarServer.ScheduledDepartureAction.deserializeBinaryFromReader); - msg.setScheduleddepartureaction(value); - break; - case 43: - var value = new proto.CarServer.SetChargingAmpsAction; - reader.readMessage(value,proto.CarServer.SetChargingAmpsAction.deserializeBinaryFromReader); - msg.setSetchargingampsaction(value); - break; - case 44: - var value = new proto.CarServer.HvacClimateKeeperAction; - reader.readMessage(value,proto.CarServer.HvacClimateKeeperAction.deserializeBinaryFromReader); - msg.setHvacclimatekeeperaction(value); - break; - case 46: - var value = new proto.CarServer.Ping; - reader.readMessage(value,proto.CarServer.Ping.deserializeBinaryFromReader); - msg.setPing(value); - break; - case 48: - var value = new proto.CarServer.AutoSeatClimateAction; - reader.readMessage(value,proto.CarServer.AutoSeatClimateAction.deserializeBinaryFromReader); - msg.setAutoseatclimateaction(value); - break; - case 49: - var value = new proto.CarServer.HvacSeatCoolerActions; - reader.readMessage(value,proto.CarServer.HvacSeatCoolerActions.deserializeBinaryFromReader); - msg.setHvacseatcooleractions(value); - break; - case 50: - var value = new proto.CarServer.SetCabinOverheatProtectionAction; - reader.readMessage(value,proto.CarServer.SetCabinOverheatProtectionAction.deserializeBinaryFromReader); - msg.setSetcabinoverheatprotectionaction(value); - break; - case 54: - var value = new proto.CarServer.SetVehicleNameAction; - reader.readMessage(value,proto.CarServer.SetVehicleNameAction.deserializeBinaryFromReader); - msg.setSetvehiclenameaction(value); - break; - case 61: - var value = new proto.CarServer.ChargePortDoorClose; - reader.readMessage(value,proto.CarServer.ChargePortDoorClose.deserializeBinaryFromReader); - msg.setChargeportdoorclose(value); - break; - case 62: - var value = new proto.CarServer.ChargePortDoorOpen; - reader.readMessage(value,proto.CarServer.ChargePortDoorOpen.deserializeBinaryFromReader); - msg.setChargeportdooropen(value); - break; - case 65: - var value = new vehicle_pb.VehicleState.GuestMode; - reader.readMessage(value,vehicle_pb.VehicleState.GuestMode.deserializeBinaryFromReader); - msg.setGuestmodeaction(value); - break; - case 66: - var value = new proto.CarServer.SetCopTempAction; - reader.readMessage(value,proto.CarServer.SetCopTempAction.deserializeBinaryFromReader); - msg.setSetcoptempaction(value); - break; - case 72: - var value = new proto.CarServer.EraseUserDataAction; - reader.readMessage(value,proto.CarServer.EraseUserDataAction.deserializeBinaryFromReader); - msg.setEraseuserdataaction(value); - break; - case 77: - var value = new proto.CarServer.VehicleControlSetPinToDriveAction; - reader.readMessage(value,proto.CarServer.VehicleControlSetPinToDriveAction.deserializeBinaryFromReader); - msg.setVehiclecontrolsetpintodriveaction(value); - break; - case 78: - var value = new proto.CarServer.VehicleControlResetPinToDriveAction; - reader.readMessage(value,proto.CarServer.VehicleControlResetPinToDriveAction.deserializeBinaryFromReader); - msg.setVehiclecontrolresetpintodriveaction(value); - break; - case 97: - var value = new common_pb.ChargeSchedule; - reader.readMessage(value,common_pb.ChargeSchedule.deserializeBinaryFromReader); - msg.setAddchargescheduleaction(value); - break; - case 98: - var value = new proto.CarServer.RemoveChargeScheduleAction; - reader.readMessage(value,proto.CarServer.RemoveChargeScheduleAction.deserializeBinaryFromReader); - msg.setRemovechargescheduleaction(value); - break; - case 99: - var value = new common_pb.PreconditionSchedule; - reader.readMessage(value,common_pb.PreconditionSchedule.deserializeBinaryFromReader); - msg.setAddpreconditionscheduleaction(value); - break; - case 100: - var value = new proto.CarServer.RemovePreconditionScheduleAction; - reader.readMessage(value,proto.CarServer.RemovePreconditionScheduleAction.deserializeBinaryFromReader); - msg.setRemovepreconditionscheduleaction(value); - break; - case 107: - var value = new proto.CarServer.BatchRemovePreconditionSchedulesAction; - reader.readMessage(value,proto.CarServer.BatchRemovePreconditionSchedulesAction.deserializeBinaryFromReader); - msg.setBatchremovepreconditionschedulesaction(value); - break; - case 108: - var value = new proto.CarServer.BatchRemoveChargeSchedulesAction; - reader.readMessage(value,proto.CarServer.BatchRemoveChargeSchedulesAction.deserializeBinaryFromReader); - msg.setBatchremovechargeschedulesaction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChargingsetlimitaction(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.CarServer.ChargingSetLimitAction.serializeBinaryToWriter - ); - } - f = message.getChargingstartstopaction(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.CarServer.ChargingStartStopAction.serializeBinaryToWriter - ); - } - f = message.getDrivingclearspeedlimitpinaction(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.CarServer.DrivingClearSpeedLimitPinAction.serializeBinaryToWriter - ); - } - f = message.getDrivingsetspeedlimitaction(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.CarServer.DrivingSetSpeedLimitAction.serializeBinaryToWriter - ); - } - f = message.getDrivingspeedlimitaction(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.CarServer.DrivingSpeedLimitAction.serializeBinaryToWriter - ); - } - f = message.getHvacautoaction(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.CarServer.HvacAutoAction.serializeBinaryToWriter - ); - } - f = message.getHvacsetpreconditioningmaxaction(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.CarServer.HvacSetPreconditioningMaxAction.serializeBinaryToWriter - ); - } - f = message.getHvacsteeringwheelheateraction(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.CarServer.HvacSteeringWheelHeaterAction.serializeBinaryToWriter - ); - } - f = message.getHvactemperatureadjustmentaction(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.CarServer.HvacTemperatureAdjustmentAction.serializeBinaryToWriter - ); - } - f = message.getMediaplayaction(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.CarServer.MediaPlayAction.serializeBinaryToWriter - ); - } - f = message.getMediaupdatevolume(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.CarServer.MediaUpdateVolume.serializeBinaryToWriter - ); - } - f = message.getMedianextfavorite(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.CarServer.MediaNextFavorite.serializeBinaryToWriter - ); - } - f = message.getMediapreviousfavorite(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.CarServer.MediaPreviousFavorite.serializeBinaryToWriter - ); - } - f = message.getMedianexttrack(); - if (f != null) { - writer.writeMessage( - 19, - f, - proto.CarServer.MediaNextTrack.serializeBinaryToWriter - ); - } - f = message.getMediaprevioustrack(); - if (f != null) { - writer.writeMessage( - 20, - f, - proto.CarServer.MediaPreviousTrack.serializeBinaryToWriter - ); - } - f = message.getGetnearbychargingsites(); - if (f != null) { - writer.writeMessage( - 23, - f, - proto.CarServer.GetNearbyChargingSites.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolcancelsoftwareupdateaction(); - if (f != null) { - writer.writeMessage( - 25, - f, - proto.CarServer.VehicleControlCancelSoftwareUpdateAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolflashlightsaction(); - if (f != null) { - writer.writeMessage( - 26, - f, - proto.CarServer.VehicleControlFlashLightsAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolhonkhornaction(); - if (f != null) { - writer.writeMessage( - 27, - f, - proto.CarServer.VehicleControlHonkHornAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolresetvaletpinaction(); - if (f != null) { - writer.writeMessage( - 28, - f, - proto.CarServer.VehicleControlResetValetPinAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolschedulesoftwareupdateaction(); - if (f != null) { - writer.writeMessage( - 29, - f, - proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolsetsentrymodeaction(); - if (f != null) { - writer.writeMessage( - 30, - f, - proto.CarServer.VehicleControlSetSentryModeAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolsetvaletmodeaction(); - if (f != null) { - writer.writeMessage( - 31, - f, - proto.CarServer.VehicleControlSetValetModeAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolsunroofopencloseaction(); - if (f != null) { - writer.writeMessage( - 32, - f, - proto.CarServer.VehicleControlSunroofOpenCloseAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontroltriggerhomelinkaction(); - if (f != null) { - writer.writeMessage( - 33, - f, - proto.CarServer.VehicleControlTriggerHomelinkAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolwindowaction(); - if (f != null) { - writer.writeMessage( - 34, - f, - proto.CarServer.VehicleControlWindowAction.serializeBinaryToWriter - ); - } - f = message.getHvacbioweaponmodeaction(); - if (f != null) { - writer.writeMessage( - 35, - f, - proto.CarServer.HvacBioweaponModeAction.serializeBinaryToWriter - ); - } - f = message.getHvacseatheateractions(); - if (f != null) { - writer.writeMessage( - 36, - f, - proto.CarServer.HvacSeatHeaterActions.serializeBinaryToWriter - ); - } - f = message.getScheduledchargingaction(); - if (f != null) { - writer.writeMessage( - 41, - f, - proto.CarServer.ScheduledChargingAction.serializeBinaryToWriter - ); - } - f = message.getScheduleddepartureaction(); - if (f != null) { - writer.writeMessage( - 42, - f, - proto.CarServer.ScheduledDepartureAction.serializeBinaryToWriter - ); - } - f = message.getSetchargingampsaction(); - if (f != null) { - writer.writeMessage( - 43, - f, - proto.CarServer.SetChargingAmpsAction.serializeBinaryToWriter - ); - } - f = message.getHvacclimatekeeperaction(); - if (f != null) { - writer.writeMessage( - 44, - f, - proto.CarServer.HvacClimateKeeperAction.serializeBinaryToWriter - ); - } - f = message.getPing(); - if (f != null) { - writer.writeMessage( - 46, - f, - proto.CarServer.Ping.serializeBinaryToWriter - ); - } - f = message.getAutoseatclimateaction(); - if (f != null) { - writer.writeMessage( - 48, - f, - proto.CarServer.AutoSeatClimateAction.serializeBinaryToWriter - ); - } - f = message.getHvacseatcooleractions(); - if (f != null) { - writer.writeMessage( - 49, - f, - proto.CarServer.HvacSeatCoolerActions.serializeBinaryToWriter - ); - } - f = message.getSetcabinoverheatprotectionaction(); - if (f != null) { - writer.writeMessage( - 50, - f, - proto.CarServer.SetCabinOverheatProtectionAction.serializeBinaryToWriter - ); - } - f = message.getSetvehiclenameaction(); - if (f != null) { - writer.writeMessage( - 54, - f, - proto.CarServer.SetVehicleNameAction.serializeBinaryToWriter - ); - } - f = message.getChargeportdoorclose(); - if (f != null) { - writer.writeMessage( - 61, - f, - proto.CarServer.ChargePortDoorClose.serializeBinaryToWriter - ); - } - f = message.getChargeportdooropen(); - if (f != null) { - writer.writeMessage( - 62, - f, - proto.CarServer.ChargePortDoorOpen.serializeBinaryToWriter - ); - } - f = message.getGuestmodeaction(); - if (f != null) { - writer.writeMessage( - 65, - f, - vehicle_pb.VehicleState.GuestMode.serializeBinaryToWriter - ); - } - f = message.getSetcoptempaction(); - if (f != null) { - writer.writeMessage( - 66, - f, - proto.CarServer.SetCopTempAction.serializeBinaryToWriter - ); - } - f = message.getEraseuserdataaction(); - if (f != null) { - writer.writeMessage( - 72, - f, - proto.CarServer.EraseUserDataAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolsetpintodriveaction(); - if (f != null) { - writer.writeMessage( - 77, - f, - proto.CarServer.VehicleControlSetPinToDriveAction.serializeBinaryToWriter - ); - } - f = message.getVehiclecontrolresetpintodriveaction(); - if (f != null) { - writer.writeMessage( - 78, - f, - proto.CarServer.VehicleControlResetPinToDriveAction.serializeBinaryToWriter - ); - } - f = message.getAddchargescheduleaction(); - if (f != null) { - writer.writeMessage( - 97, - f, - common_pb.ChargeSchedule.serializeBinaryToWriter - ); - } - f = message.getRemovechargescheduleaction(); - if (f != null) { - writer.writeMessage( - 98, - f, - proto.CarServer.RemoveChargeScheduleAction.serializeBinaryToWriter - ); - } - f = message.getAddpreconditionscheduleaction(); - if (f != null) { - writer.writeMessage( - 99, - f, - common_pb.PreconditionSchedule.serializeBinaryToWriter - ); - } - f = message.getRemovepreconditionscheduleaction(); - if (f != null) { - writer.writeMessage( - 100, - f, - proto.CarServer.RemovePreconditionScheduleAction.serializeBinaryToWriter - ); - } - f = message.getBatchremovepreconditionschedulesaction(); - if (f != null) { - writer.writeMessage( - 107, - f, - proto.CarServer.BatchRemovePreconditionSchedulesAction.serializeBinaryToWriter - ); - } - f = message.getBatchremovechargeschedulesaction(); - if (f != null) { - writer.writeMessage( - 108, - f, - proto.CarServer.BatchRemoveChargeSchedulesAction.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ChargingSetLimitAction chargingSetLimitAction = 5; - * @return {?proto.CarServer.ChargingSetLimitAction} - */ -proto.CarServer.VehicleAction.prototype.getChargingsetlimitaction = function() { - return /** @type{?proto.CarServer.ChargingSetLimitAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ChargingSetLimitAction, 5)); -}; - - -/** - * @param {?proto.CarServer.ChargingSetLimitAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setChargingsetlimitaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearChargingsetlimitaction = function() { - return this.setChargingsetlimitaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasChargingsetlimitaction = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional ChargingStartStopAction chargingStartStopAction = 6; - * @return {?proto.CarServer.ChargingStartStopAction} - */ -proto.CarServer.VehicleAction.prototype.getChargingstartstopaction = function() { - return /** @type{?proto.CarServer.ChargingStartStopAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ChargingStartStopAction, 6)); -}; - - -/** - * @param {?proto.CarServer.ChargingStartStopAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setChargingstartstopaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearChargingstartstopaction = function() { - return this.setChargingstartstopaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasChargingstartstopaction = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional DrivingClearSpeedLimitPinAction drivingClearSpeedLimitPinAction = 7; - * @return {?proto.CarServer.DrivingClearSpeedLimitPinAction} - */ -proto.CarServer.VehicleAction.prototype.getDrivingclearspeedlimitpinaction = function() { - return /** @type{?proto.CarServer.DrivingClearSpeedLimitPinAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.DrivingClearSpeedLimitPinAction, 7)); -}; - - -/** - * @param {?proto.CarServer.DrivingClearSpeedLimitPinAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setDrivingclearspeedlimitpinaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearDrivingclearspeedlimitpinaction = function() { - return this.setDrivingclearspeedlimitpinaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasDrivingclearspeedlimitpinaction = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional DrivingSetSpeedLimitAction drivingSetSpeedLimitAction = 8; - * @return {?proto.CarServer.DrivingSetSpeedLimitAction} - */ -proto.CarServer.VehicleAction.prototype.getDrivingsetspeedlimitaction = function() { - return /** @type{?proto.CarServer.DrivingSetSpeedLimitAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.DrivingSetSpeedLimitAction, 8)); -}; - - -/** - * @param {?proto.CarServer.DrivingSetSpeedLimitAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setDrivingsetspeedlimitaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearDrivingsetspeedlimitaction = function() { - return this.setDrivingsetspeedlimitaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasDrivingsetspeedlimitaction = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional DrivingSpeedLimitAction drivingSpeedLimitAction = 9; - * @return {?proto.CarServer.DrivingSpeedLimitAction} - */ -proto.CarServer.VehicleAction.prototype.getDrivingspeedlimitaction = function() { - return /** @type{?proto.CarServer.DrivingSpeedLimitAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.DrivingSpeedLimitAction, 9)); -}; - - -/** - * @param {?proto.CarServer.DrivingSpeedLimitAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setDrivingspeedlimitaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearDrivingspeedlimitaction = function() { - return this.setDrivingspeedlimitaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasDrivingspeedlimitaction = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional HvacAutoAction hvacAutoAction = 10; - * @return {?proto.CarServer.HvacAutoAction} - */ -proto.CarServer.VehicleAction.prototype.getHvacautoaction = function() { - return /** @type{?proto.CarServer.HvacAutoAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacAutoAction, 10)); -}; - - -/** - * @param {?proto.CarServer.HvacAutoAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvacautoaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvacautoaction = function() { - return this.setHvacautoaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvacautoaction = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional HvacSetPreconditioningMaxAction hvacSetPreconditioningMaxAction = 12; - * @return {?proto.CarServer.HvacSetPreconditioningMaxAction} - */ -proto.CarServer.VehicleAction.prototype.getHvacsetpreconditioningmaxaction = function() { - return /** @type{?proto.CarServer.HvacSetPreconditioningMaxAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacSetPreconditioningMaxAction, 12)); -}; - - -/** - * @param {?proto.CarServer.HvacSetPreconditioningMaxAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvacsetpreconditioningmaxaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvacsetpreconditioningmaxaction = function() { - return this.setHvacsetpreconditioningmaxaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvacsetpreconditioningmaxaction = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional HvacSteeringWheelHeaterAction hvacSteeringWheelHeaterAction = 13; - * @return {?proto.CarServer.HvacSteeringWheelHeaterAction} - */ -proto.CarServer.VehicleAction.prototype.getHvacsteeringwheelheateraction = function() { - return /** @type{?proto.CarServer.HvacSteeringWheelHeaterAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacSteeringWheelHeaterAction, 13)); -}; - - -/** - * @param {?proto.CarServer.HvacSteeringWheelHeaterAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvacsteeringwheelheateraction = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvacsteeringwheelheateraction = function() { - return this.setHvacsteeringwheelheateraction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvacsteeringwheelheateraction = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional HvacTemperatureAdjustmentAction hvacTemperatureAdjustmentAction = 14; - * @return {?proto.CarServer.HvacTemperatureAdjustmentAction} - */ -proto.CarServer.VehicleAction.prototype.getHvactemperatureadjustmentaction = function() { - return /** @type{?proto.CarServer.HvacTemperatureAdjustmentAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacTemperatureAdjustmentAction, 14)); -}; - - -/** - * @param {?proto.CarServer.HvacTemperatureAdjustmentAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvactemperatureadjustmentaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvactemperatureadjustmentaction = function() { - return this.setHvactemperatureadjustmentaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvactemperatureadjustmentaction = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional MediaPlayAction mediaPlayAction = 15; - * @return {?proto.CarServer.MediaPlayAction} - */ -proto.CarServer.VehicleAction.prototype.getMediaplayaction = function() { - return /** @type{?proto.CarServer.MediaPlayAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.MediaPlayAction, 15)); -}; - - -/** - * @param {?proto.CarServer.MediaPlayAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setMediaplayaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 15, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearMediaplayaction = function() { - return this.setMediaplayaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasMediaplayaction = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional MediaUpdateVolume mediaUpdateVolume = 16; - * @return {?proto.CarServer.MediaUpdateVolume} - */ -proto.CarServer.VehicleAction.prototype.getMediaupdatevolume = function() { - return /** @type{?proto.CarServer.MediaUpdateVolume} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.MediaUpdateVolume, 16)); -}; - - -/** - * @param {?proto.CarServer.MediaUpdateVolume|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setMediaupdatevolume = function(value) { - return jspb.Message.setOneofWrapperField(this, 16, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearMediaupdatevolume = function() { - return this.setMediaupdatevolume(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasMediaupdatevolume = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional MediaNextFavorite mediaNextFavorite = 17; - * @return {?proto.CarServer.MediaNextFavorite} - */ -proto.CarServer.VehicleAction.prototype.getMedianextfavorite = function() { - return /** @type{?proto.CarServer.MediaNextFavorite} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.MediaNextFavorite, 17)); -}; - - -/** - * @param {?proto.CarServer.MediaNextFavorite|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setMedianextfavorite = function(value) { - return jspb.Message.setOneofWrapperField(this, 17, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearMedianextfavorite = function() { - return this.setMedianextfavorite(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasMedianextfavorite = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional MediaPreviousFavorite mediaPreviousFavorite = 18; - * @return {?proto.CarServer.MediaPreviousFavorite} - */ -proto.CarServer.VehicleAction.prototype.getMediapreviousfavorite = function() { - return /** @type{?proto.CarServer.MediaPreviousFavorite} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.MediaPreviousFavorite, 18)); -}; - - -/** - * @param {?proto.CarServer.MediaPreviousFavorite|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setMediapreviousfavorite = function(value) { - return jspb.Message.setOneofWrapperField(this, 18, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearMediapreviousfavorite = function() { - return this.setMediapreviousfavorite(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasMediapreviousfavorite = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional MediaNextTrack mediaNextTrack = 19; - * @return {?proto.CarServer.MediaNextTrack} - */ -proto.CarServer.VehicleAction.prototype.getMedianexttrack = function() { - return /** @type{?proto.CarServer.MediaNextTrack} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.MediaNextTrack, 19)); -}; - - -/** - * @param {?proto.CarServer.MediaNextTrack|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setMedianexttrack = function(value) { - return jspb.Message.setOneofWrapperField(this, 19, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearMedianexttrack = function() { - return this.setMedianexttrack(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasMedianexttrack = function() { - return jspb.Message.getField(this, 19) != null; -}; - - -/** - * optional MediaPreviousTrack mediaPreviousTrack = 20; - * @return {?proto.CarServer.MediaPreviousTrack} - */ -proto.CarServer.VehicleAction.prototype.getMediaprevioustrack = function() { - return /** @type{?proto.CarServer.MediaPreviousTrack} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.MediaPreviousTrack, 20)); -}; - - -/** - * @param {?proto.CarServer.MediaPreviousTrack|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setMediaprevioustrack = function(value) { - return jspb.Message.setOneofWrapperField(this, 20, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearMediaprevioustrack = function() { - return this.setMediaprevioustrack(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasMediaprevioustrack = function() { - return jspb.Message.getField(this, 20) != null; -}; - - -/** - * optional GetNearbyChargingSites getNearbyChargingSites = 23; - * @return {?proto.CarServer.GetNearbyChargingSites} - */ -proto.CarServer.VehicleAction.prototype.getGetnearbychargingsites = function() { - return /** @type{?proto.CarServer.GetNearbyChargingSites} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.GetNearbyChargingSites, 23)); -}; - - -/** - * @param {?proto.CarServer.GetNearbyChargingSites|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setGetnearbychargingsites = function(value) { - return jspb.Message.setOneofWrapperField(this, 23, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearGetnearbychargingsites = function() { - return this.setGetnearbychargingsites(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasGetnearbychargingsites = function() { - return jspb.Message.getField(this, 23) != null; -}; - - -/** - * optional VehicleControlCancelSoftwareUpdateAction vehicleControlCancelSoftwareUpdateAction = 25; - * @return {?proto.CarServer.VehicleControlCancelSoftwareUpdateAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolcancelsoftwareupdateaction = function() { - return /** @type{?proto.CarServer.VehicleControlCancelSoftwareUpdateAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlCancelSoftwareUpdateAction, 25)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlCancelSoftwareUpdateAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolcancelsoftwareupdateaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 25, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolcancelsoftwareupdateaction = function() { - return this.setVehiclecontrolcancelsoftwareupdateaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolcancelsoftwareupdateaction = function() { - return jspb.Message.getField(this, 25) != null; -}; - - -/** - * optional VehicleControlFlashLightsAction vehicleControlFlashLightsAction = 26; - * @return {?proto.CarServer.VehicleControlFlashLightsAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolflashlightsaction = function() { - return /** @type{?proto.CarServer.VehicleControlFlashLightsAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlFlashLightsAction, 26)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlFlashLightsAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolflashlightsaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 26, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolflashlightsaction = function() { - return this.setVehiclecontrolflashlightsaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolflashlightsaction = function() { - return jspb.Message.getField(this, 26) != null; -}; - - -/** - * optional VehicleControlHonkHornAction vehicleControlHonkHornAction = 27; - * @return {?proto.CarServer.VehicleControlHonkHornAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolhonkhornaction = function() { - return /** @type{?proto.CarServer.VehicleControlHonkHornAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlHonkHornAction, 27)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlHonkHornAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolhonkhornaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 27, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolhonkhornaction = function() { - return this.setVehiclecontrolhonkhornaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolhonkhornaction = function() { - return jspb.Message.getField(this, 27) != null; -}; - - -/** - * optional VehicleControlResetValetPinAction vehicleControlResetValetPinAction = 28; - * @return {?proto.CarServer.VehicleControlResetValetPinAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolresetvaletpinaction = function() { - return /** @type{?proto.CarServer.VehicleControlResetValetPinAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlResetValetPinAction, 28)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlResetValetPinAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolresetvaletpinaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 28, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolresetvaletpinaction = function() { - return this.setVehiclecontrolresetvaletpinaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolresetvaletpinaction = function() { - return jspb.Message.getField(this, 28) != null; -}; - - -/** - * optional VehicleControlScheduleSoftwareUpdateAction vehicleControlScheduleSoftwareUpdateAction = 29; - * @return {?proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolschedulesoftwareupdateaction = function() { - return /** @type{?proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlScheduleSoftwareUpdateAction, 29)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlScheduleSoftwareUpdateAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolschedulesoftwareupdateaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 29, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolschedulesoftwareupdateaction = function() { - return this.setVehiclecontrolschedulesoftwareupdateaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolschedulesoftwareupdateaction = function() { - return jspb.Message.getField(this, 29) != null; -}; - - -/** - * optional VehicleControlSetSentryModeAction vehicleControlSetSentryModeAction = 30; - * @return {?proto.CarServer.VehicleControlSetSentryModeAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolsetsentrymodeaction = function() { - return /** @type{?proto.CarServer.VehicleControlSetSentryModeAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlSetSentryModeAction, 30)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlSetSentryModeAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolsetsentrymodeaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 30, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolsetsentrymodeaction = function() { - return this.setVehiclecontrolsetsentrymodeaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolsetsentrymodeaction = function() { - return jspb.Message.getField(this, 30) != null; -}; - - -/** - * optional VehicleControlSetValetModeAction vehicleControlSetValetModeAction = 31; - * @return {?proto.CarServer.VehicleControlSetValetModeAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolsetvaletmodeaction = function() { - return /** @type{?proto.CarServer.VehicleControlSetValetModeAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlSetValetModeAction, 31)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlSetValetModeAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolsetvaletmodeaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 31, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolsetvaletmodeaction = function() { - return this.setVehiclecontrolsetvaletmodeaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolsetvaletmodeaction = function() { - return jspb.Message.getField(this, 31) != null; -}; - - -/** - * optional VehicleControlSunroofOpenCloseAction vehicleControlSunroofOpenCloseAction = 32; - * @return {?proto.CarServer.VehicleControlSunroofOpenCloseAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolsunroofopencloseaction = function() { - return /** @type{?proto.CarServer.VehicleControlSunroofOpenCloseAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlSunroofOpenCloseAction, 32)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlSunroofOpenCloseAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolsunroofopencloseaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 32, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolsunroofopencloseaction = function() { - return this.setVehiclecontrolsunroofopencloseaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolsunroofopencloseaction = function() { - return jspb.Message.getField(this, 32) != null; -}; - - -/** - * optional VehicleControlTriggerHomelinkAction vehicleControlTriggerHomelinkAction = 33; - * @return {?proto.CarServer.VehicleControlTriggerHomelinkAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontroltriggerhomelinkaction = function() { - return /** @type{?proto.CarServer.VehicleControlTriggerHomelinkAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlTriggerHomelinkAction, 33)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlTriggerHomelinkAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontroltriggerhomelinkaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 33, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontroltriggerhomelinkaction = function() { - return this.setVehiclecontroltriggerhomelinkaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontroltriggerhomelinkaction = function() { - return jspb.Message.getField(this, 33) != null; -}; - - -/** - * optional VehicleControlWindowAction vehicleControlWindowAction = 34; - * @return {?proto.CarServer.VehicleControlWindowAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolwindowaction = function() { - return /** @type{?proto.CarServer.VehicleControlWindowAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlWindowAction, 34)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlWindowAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolwindowaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 34, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolwindowaction = function() { - return this.setVehiclecontrolwindowaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolwindowaction = function() { - return jspb.Message.getField(this, 34) != null; -}; - - -/** - * optional HvacBioweaponModeAction hvacBioweaponModeAction = 35; - * @return {?proto.CarServer.HvacBioweaponModeAction} - */ -proto.CarServer.VehicleAction.prototype.getHvacbioweaponmodeaction = function() { - return /** @type{?proto.CarServer.HvacBioweaponModeAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacBioweaponModeAction, 35)); -}; - - -/** - * @param {?proto.CarServer.HvacBioweaponModeAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvacbioweaponmodeaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 35, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvacbioweaponmodeaction = function() { - return this.setHvacbioweaponmodeaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvacbioweaponmodeaction = function() { - return jspb.Message.getField(this, 35) != null; -}; - - -/** - * optional HvacSeatHeaterActions hvacSeatHeaterActions = 36; - * @return {?proto.CarServer.HvacSeatHeaterActions} - */ -proto.CarServer.VehicleAction.prototype.getHvacseatheateractions = function() { - return /** @type{?proto.CarServer.HvacSeatHeaterActions} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacSeatHeaterActions, 36)); -}; - - -/** - * @param {?proto.CarServer.HvacSeatHeaterActions|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvacseatheateractions = function(value) { - return jspb.Message.setOneofWrapperField(this, 36, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvacseatheateractions = function() { - return this.setHvacseatheateractions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvacseatheateractions = function() { - return jspb.Message.getField(this, 36) != null; -}; - - -/** - * optional ScheduledChargingAction scheduledChargingAction = 41; - * @return {?proto.CarServer.ScheduledChargingAction} - */ -proto.CarServer.VehicleAction.prototype.getScheduledchargingaction = function() { - return /** @type{?proto.CarServer.ScheduledChargingAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ScheduledChargingAction, 41)); -}; - - -/** - * @param {?proto.CarServer.ScheduledChargingAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setScheduledchargingaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 41, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearScheduledchargingaction = function() { - return this.setScheduledchargingaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasScheduledchargingaction = function() { - return jspb.Message.getField(this, 41) != null; -}; - - -/** - * optional ScheduledDepartureAction scheduledDepartureAction = 42; - * @return {?proto.CarServer.ScheduledDepartureAction} - */ -proto.CarServer.VehicleAction.prototype.getScheduleddepartureaction = function() { - return /** @type{?proto.CarServer.ScheduledDepartureAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ScheduledDepartureAction, 42)); -}; - - -/** - * @param {?proto.CarServer.ScheduledDepartureAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setScheduleddepartureaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 42, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearScheduleddepartureaction = function() { - return this.setScheduleddepartureaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasScheduleddepartureaction = function() { - return jspb.Message.getField(this, 42) != null; -}; - - -/** - * optional SetChargingAmpsAction setChargingAmpsAction = 43; - * @return {?proto.CarServer.SetChargingAmpsAction} - */ -proto.CarServer.VehicleAction.prototype.getSetchargingampsaction = function() { - return /** @type{?proto.CarServer.SetChargingAmpsAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.SetChargingAmpsAction, 43)); -}; - - -/** - * @param {?proto.CarServer.SetChargingAmpsAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setSetchargingampsaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 43, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearSetchargingampsaction = function() { - return this.setSetchargingampsaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasSetchargingampsaction = function() { - return jspb.Message.getField(this, 43) != null; -}; - - -/** - * optional HvacClimateKeeperAction hvacClimateKeeperAction = 44; - * @return {?proto.CarServer.HvacClimateKeeperAction} - */ -proto.CarServer.VehicleAction.prototype.getHvacclimatekeeperaction = function() { - return /** @type{?proto.CarServer.HvacClimateKeeperAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacClimateKeeperAction, 44)); -}; - - -/** - * @param {?proto.CarServer.HvacClimateKeeperAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvacclimatekeeperaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 44, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvacclimatekeeperaction = function() { - return this.setHvacclimatekeeperaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvacclimatekeeperaction = function() { - return jspb.Message.getField(this, 44) != null; -}; - - -/** - * optional Ping ping = 46; - * @return {?proto.CarServer.Ping} - */ -proto.CarServer.VehicleAction.prototype.getPing = function() { - return /** @type{?proto.CarServer.Ping} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.Ping, 46)); -}; - - -/** - * @param {?proto.CarServer.Ping|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setPing = function(value) { - return jspb.Message.setOneofWrapperField(this, 46, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearPing = function() { - return this.setPing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasPing = function() { - return jspb.Message.getField(this, 46) != null; -}; - - -/** - * optional AutoSeatClimateAction autoSeatClimateAction = 48; - * @return {?proto.CarServer.AutoSeatClimateAction} - */ -proto.CarServer.VehicleAction.prototype.getAutoseatclimateaction = function() { - return /** @type{?proto.CarServer.AutoSeatClimateAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.AutoSeatClimateAction, 48)); -}; - - -/** - * @param {?proto.CarServer.AutoSeatClimateAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setAutoseatclimateaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 48, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearAutoseatclimateaction = function() { - return this.setAutoseatclimateaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasAutoseatclimateaction = function() { - return jspb.Message.getField(this, 48) != null; -}; - - -/** - * optional HvacSeatCoolerActions hvacSeatCoolerActions = 49; - * @return {?proto.CarServer.HvacSeatCoolerActions} - */ -proto.CarServer.VehicleAction.prototype.getHvacseatcooleractions = function() { - return /** @type{?proto.CarServer.HvacSeatCoolerActions} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacSeatCoolerActions, 49)); -}; - - -/** - * @param {?proto.CarServer.HvacSeatCoolerActions|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setHvacseatcooleractions = function(value) { - return jspb.Message.setOneofWrapperField(this, 49, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearHvacseatcooleractions = function() { - return this.setHvacseatcooleractions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasHvacseatcooleractions = function() { - return jspb.Message.getField(this, 49) != null; -}; - - -/** - * optional SetCabinOverheatProtectionAction setCabinOverheatProtectionAction = 50; - * @return {?proto.CarServer.SetCabinOverheatProtectionAction} - */ -proto.CarServer.VehicleAction.prototype.getSetcabinoverheatprotectionaction = function() { - return /** @type{?proto.CarServer.SetCabinOverheatProtectionAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.SetCabinOverheatProtectionAction, 50)); -}; - - -/** - * @param {?proto.CarServer.SetCabinOverheatProtectionAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setSetcabinoverheatprotectionaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 50, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearSetcabinoverheatprotectionaction = function() { - return this.setSetcabinoverheatprotectionaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasSetcabinoverheatprotectionaction = function() { - return jspb.Message.getField(this, 50) != null; -}; - - -/** - * optional SetVehicleNameAction setVehicleNameAction = 54; - * @return {?proto.CarServer.SetVehicleNameAction} - */ -proto.CarServer.VehicleAction.prototype.getSetvehiclenameaction = function() { - return /** @type{?proto.CarServer.SetVehicleNameAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.SetVehicleNameAction, 54)); -}; - - -/** - * @param {?proto.CarServer.SetVehicleNameAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setSetvehiclenameaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 54, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearSetvehiclenameaction = function() { - return this.setSetvehiclenameaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasSetvehiclenameaction = function() { - return jspb.Message.getField(this, 54) != null; -}; - - -/** - * optional ChargePortDoorClose chargePortDoorClose = 61; - * @return {?proto.CarServer.ChargePortDoorClose} - */ -proto.CarServer.VehicleAction.prototype.getChargeportdoorclose = function() { - return /** @type{?proto.CarServer.ChargePortDoorClose} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ChargePortDoorClose, 61)); -}; - - -/** - * @param {?proto.CarServer.ChargePortDoorClose|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setChargeportdoorclose = function(value) { - return jspb.Message.setOneofWrapperField(this, 61, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearChargeportdoorclose = function() { - return this.setChargeportdoorclose(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasChargeportdoorclose = function() { - return jspb.Message.getField(this, 61) != null; -}; - - -/** - * optional ChargePortDoorOpen chargePortDoorOpen = 62; - * @return {?proto.CarServer.ChargePortDoorOpen} - */ -proto.CarServer.VehicleAction.prototype.getChargeportdooropen = function() { - return /** @type{?proto.CarServer.ChargePortDoorOpen} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ChargePortDoorOpen, 62)); -}; - - -/** - * @param {?proto.CarServer.ChargePortDoorOpen|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setChargeportdooropen = function(value) { - return jspb.Message.setOneofWrapperField(this, 62, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearChargeportdooropen = function() { - return this.setChargeportdooropen(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasChargeportdooropen = function() { - return jspb.Message.getField(this, 62) != null; -}; - - -/** - * optional VehicleState.GuestMode guestModeAction = 65; - * @return {?proto.CarServer.VehicleState.GuestMode} - */ -proto.CarServer.VehicleAction.prototype.getGuestmodeaction = function() { - return /** @type{?proto.CarServer.VehicleState.GuestMode} */ ( - jspb.Message.getWrapperField(this, vehicle_pb.VehicleState.GuestMode, 65)); -}; - - -/** - * @param {?proto.CarServer.VehicleState.GuestMode|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setGuestmodeaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 65, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearGuestmodeaction = function() { - return this.setGuestmodeaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasGuestmodeaction = function() { - return jspb.Message.getField(this, 65) != null; -}; - - -/** - * optional SetCopTempAction setCopTempAction = 66; - * @return {?proto.CarServer.SetCopTempAction} - */ -proto.CarServer.VehicleAction.prototype.getSetcoptempaction = function() { - return /** @type{?proto.CarServer.SetCopTempAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.SetCopTempAction, 66)); -}; - - -/** - * @param {?proto.CarServer.SetCopTempAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setSetcoptempaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 66, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearSetcoptempaction = function() { - return this.setSetcoptempaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasSetcoptempaction = function() { - return jspb.Message.getField(this, 66) != null; -}; - - -/** - * optional EraseUserDataAction eraseUserDataAction = 72; - * @return {?proto.CarServer.EraseUserDataAction} - */ -proto.CarServer.VehicleAction.prototype.getEraseuserdataaction = function() { - return /** @type{?proto.CarServer.EraseUserDataAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.EraseUserDataAction, 72)); -}; - - -/** - * @param {?proto.CarServer.EraseUserDataAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setEraseuserdataaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 72, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearEraseuserdataaction = function() { - return this.setEraseuserdataaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasEraseuserdataaction = function() { - return jspb.Message.getField(this, 72) != null; -}; - - -/** - * optional VehicleControlSetPinToDriveAction vehicleControlSetPinToDriveAction = 77; - * @return {?proto.CarServer.VehicleControlSetPinToDriveAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolsetpintodriveaction = function() { - return /** @type{?proto.CarServer.VehicleControlSetPinToDriveAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlSetPinToDriveAction, 77)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlSetPinToDriveAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolsetpintodriveaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 77, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolsetpintodriveaction = function() { - return this.setVehiclecontrolsetpintodriveaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolsetpintodriveaction = function() { - return jspb.Message.getField(this, 77) != null; -}; - - -/** - * optional VehicleControlResetPinToDriveAction vehicleControlResetPinToDriveAction = 78; - * @return {?proto.CarServer.VehicleControlResetPinToDriveAction} - */ -proto.CarServer.VehicleAction.prototype.getVehiclecontrolresetpintodriveaction = function() { - return /** @type{?proto.CarServer.VehicleControlResetPinToDriveAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleControlResetPinToDriveAction, 78)); -}; - - -/** - * @param {?proto.CarServer.VehicleControlResetPinToDriveAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setVehiclecontrolresetpintodriveaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 78, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearVehiclecontrolresetpintodriveaction = function() { - return this.setVehiclecontrolresetpintodriveaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasVehiclecontrolresetpintodriveaction = function() { - return jspb.Message.getField(this, 78) != null; -}; - - -/** - * optional ChargeSchedule addChargeScheduleAction = 97; - * @return {?proto.CarServer.ChargeSchedule} - */ -proto.CarServer.VehicleAction.prototype.getAddchargescheduleaction = function() { - return /** @type{?proto.CarServer.ChargeSchedule} */ ( - jspb.Message.getWrapperField(this, common_pb.ChargeSchedule, 97)); -}; - - -/** - * @param {?proto.CarServer.ChargeSchedule|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setAddchargescheduleaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 97, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearAddchargescheduleaction = function() { - return this.setAddchargescheduleaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasAddchargescheduleaction = function() { - return jspb.Message.getField(this, 97) != null; -}; - - -/** - * optional RemoveChargeScheduleAction removeChargeScheduleAction = 98; - * @return {?proto.CarServer.RemoveChargeScheduleAction} - */ -proto.CarServer.VehicleAction.prototype.getRemovechargescheduleaction = function() { - return /** @type{?proto.CarServer.RemoveChargeScheduleAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.RemoveChargeScheduleAction, 98)); -}; - - -/** - * @param {?proto.CarServer.RemoveChargeScheduleAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setRemovechargescheduleaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 98, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearRemovechargescheduleaction = function() { - return this.setRemovechargescheduleaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasRemovechargescheduleaction = function() { - return jspb.Message.getField(this, 98) != null; -}; - - -/** - * optional PreconditionSchedule addPreconditionScheduleAction = 99; - * @return {?proto.CarServer.PreconditionSchedule} - */ -proto.CarServer.VehicleAction.prototype.getAddpreconditionscheduleaction = function() { - return /** @type{?proto.CarServer.PreconditionSchedule} */ ( - jspb.Message.getWrapperField(this, common_pb.PreconditionSchedule, 99)); -}; - - -/** - * @param {?proto.CarServer.PreconditionSchedule|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setAddpreconditionscheduleaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 99, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearAddpreconditionscheduleaction = function() { - return this.setAddpreconditionscheduleaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasAddpreconditionscheduleaction = function() { - return jspb.Message.getField(this, 99) != null; -}; - - -/** - * optional RemovePreconditionScheduleAction removePreconditionScheduleAction = 100; - * @return {?proto.CarServer.RemovePreconditionScheduleAction} - */ -proto.CarServer.VehicleAction.prototype.getRemovepreconditionscheduleaction = function() { - return /** @type{?proto.CarServer.RemovePreconditionScheduleAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.RemovePreconditionScheduleAction, 100)); -}; - - -/** - * @param {?proto.CarServer.RemovePreconditionScheduleAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setRemovepreconditionscheduleaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 100, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearRemovepreconditionscheduleaction = function() { - return this.setRemovepreconditionscheduleaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasRemovepreconditionscheduleaction = function() { - return jspb.Message.getField(this, 100) != null; -}; - - -/** - * optional BatchRemovePreconditionSchedulesAction batchRemovePreconditionSchedulesAction = 107; - * @return {?proto.CarServer.BatchRemovePreconditionSchedulesAction} - */ -proto.CarServer.VehicleAction.prototype.getBatchremovepreconditionschedulesaction = function() { - return /** @type{?proto.CarServer.BatchRemovePreconditionSchedulesAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.BatchRemovePreconditionSchedulesAction, 107)); -}; - - -/** - * @param {?proto.CarServer.BatchRemovePreconditionSchedulesAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setBatchremovepreconditionschedulesaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 107, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearBatchremovepreconditionschedulesaction = function() { - return this.setBatchremovepreconditionschedulesaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasBatchremovepreconditionschedulesaction = function() { - return jspb.Message.getField(this, 107) != null; -}; - - -/** - * optional BatchRemoveChargeSchedulesAction batchRemoveChargeSchedulesAction = 108; - * @return {?proto.CarServer.BatchRemoveChargeSchedulesAction} - */ -proto.CarServer.VehicleAction.prototype.getBatchremovechargeschedulesaction = function() { - return /** @type{?proto.CarServer.BatchRemoveChargeSchedulesAction} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.BatchRemoveChargeSchedulesAction, 108)); -}; - - -/** - * @param {?proto.CarServer.BatchRemoveChargeSchedulesAction|undefined} value - * @return {!proto.CarServer.VehicleAction} returns this -*/ -proto.CarServer.VehicleAction.prototype.setBatchremovechargeschedulesaction = function(value) { - return jspb.Message.setOneofWrapperField(this, 108, proto.CarServer.VehicleAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleAction} returns this - */ -proto.CarServer.VehicleAction.prototype.clearBatchremovechargeschedulesaction = function() { - return this.setBatchremovechargeschedulesaction(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleAction.prototype.hasBatchremovechargeschedulesaction = function() { - return jspb.Message.getField(this, 108) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.EraseUserDataAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.EraseUserDataAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.EraseUserDataAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.EraseUserDataAction.toObject = function(includeInstance, msg) { - var f, obj = { - reason: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.EraseUserDataAction} - */ -proto.CarServer.EraseUserDataAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.EraseUserDataAction; - return proto.CarServer.EraseUserDataAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.EraseUserDataAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.EraseUserDataAction} - */ -proto.CarServer.EraseUserDataAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReason(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.EraseUserDataAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.EraseUserDataAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.EraseUserDataAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.EraseUserDataAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReason(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string reason = 1; - * @return {string} - */ -proto.CarServer.EraseUserDataAction.prototype.getReason = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.EraseUserDataAction} returns this - */ -proto.CarServer.EraseUserDataAction.prototype.setReason = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.Response.oneofGroups_ = [[3,5,9]]; - -/** - * @enum {number} - */ -proto.CarServer.Response.ResponseMsgCase = { - RESPONSE_MSG_NOT_SET: 0, - GETSESSIONINFORESPONSE: 3, - GETNEARBYCHARGINGSITES: 5, - PING: 9 -}; - -/** - * @return {proto.CarServer.Response.ResponseMsgCase} - */ -proto.CarServer.Response.prototype.getResponseMsgCase = function() { - return /** @type {proto.CarServer.Response.ResponseMsgCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.Response.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.Response.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.Response.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.Response} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Response.toObject = function(includeInstance, msg) { - var f, obj = { - actionstatus: (f = msg.getActionstatus()) && proto.CarServer.ActionStatus.toObject(includeInstance, f), - getsessioninforesponse: (f = msg.getGetsessioninforesponse()) && signatures_pb.SessionInfo.toObject(includeInstance, f), - getnearbychargingsites: (f = msg.getGetnearbychargingsites()) && proto.CarServer.NearbyChargingSites.toObject(includeInstance, f), - ping: (f = msg.getPing()) && proto.CarServer.Ping.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.Response} - */ -proto.CarServer.Response.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.Response; - return proto.CarServer.Response.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.Response} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.Response} - */ -proto.CarServer.Response.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.CarServer.ActionStatus; - reader.readMessage(value,proto.CarServer.ActionStatus.deserializeBinaryFromReader); - msg.setActionstatus(value); - break; - case 3: - var value = new signatures_pb.SessionInfo; - reader.readMessage(value,signatures_pb.SessionInfo.deserializeBinaryFromReader); - msg.setGetsessioninforesponse(value); - break; - case 5: - var value = new proto.CarServer.NearbyChargingSites; - reader.readMessage(value,proto.CarServer.NearbyChargingSites.deserializeBinaryFromReader); - msg.setGetnearbychargingsites(value); - break; - case 9: - var value = new proto.CarServer.Ping; - reader.readMessage(value,proto.CarServer.Ping.deserializeBinaryFromReader); - msg.setPing(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.Response.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.Response.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.Response} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Response.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActionstatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.CarServer.ActionStatus.serializeBinaryToWriter - ); - } - f = message.getGetsessioninforesponse(); - if (f != null) { - writer.writeMessage( - 3, - f, - signatures_pb.SessionInfo.serializeBinaryToWriter - ); - } - f = message.getGetnearbychargingsites(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.CarServer.NearbyChargingSites.serializeBinaryToWriter - ); - } - f = message.getPing(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.CarServer.Ping.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ActionStatus actionStatus = 1; - * @return {?proto.CarServer.ActionStatus} - */ -proto.CarServer.Response.prototype.getActionstatus = function() { - return /** @type{?proto.CarServer.ActionStatus} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ActionStatus, 1)); -}; - - -/** - * @param {?proto.CarServer.ActionStatus|undefined} value - * @return {!proto.CarServer.Response} returns this -*/ -proto.CarServer.Response.prototype.setActionstatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Response} returns this - */ -proto.CarServer.Response.prototype.clearActionstatus = function() { - return this.setActionstatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Response.prototype.hasActionstatus = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Signatures.SessionInfo getSessionInfoResponse = 3; - * @return {?proto.Signatures.SessionInfo} - */ -proto.CarServer.Response.prototype.getGetsessioninforesponse = function() { - return /** @type{?proto.Signatures.SessionInfo} */ ( - jspb.Message.getWrapperField(this, signatures_pb.SessionInfo, 3)); -}; - - -/** - * @param {?proto.Signatures.SessionInfo|undefined} value - * @return {!proto.CarServer.Response} returns this -*/ -proto.CarServer.Response.prototype.setGetsessioninforesponse = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.CarServer.Response.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Response} returns this - */ -proto.CarServer.Response.prototype.clearGetsessioninforesponse = function() { - return this.setGetsessioninforesponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Response.prototype.hasGetsessioninforesponse = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional NearbyChargingSites getNearbyChargingSites = 5; - * @return {?proto.CarServer.NearbyChargingSites} - */ -proto.CarServer.Response.prototype.getGetnearbychargingsites = function() { - return /** @type{?proto.CarServer.NearbyChargingSites} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.NearbyChargingSites, 5)); -}; - - -/** - * @param {?proto.CarServer.NearbyChargingSites|undefined} value - * @return {!proto.CarServer.Response} returns this -*/ -proto.CarServer.Response.prototype.setGetnearbychargingsites = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.CarServer.Response.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Response} returns this - */ -proto.CarServer.Response.prototype.clearGetnearbychargingsites = function() { - return this.setGetnearbychargingsites(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Response.prototype.hasGetnearbychargingsites = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional Ping ping = 9; - * @return {?proto.CarServer.Ping} - */ -proto.CarServer.Response.prototype.getPing = function() { - return /** @type{?proto.CarServer.Ping} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.Ping, 9)); -}; - - -/** - * @param {?proto.CarServer.Ping|undefined} value - * @return {!proto.CarServer.Response} returns this -*/ -proto.CarServer.Response.prototype.setPing = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.CarServer.Response.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Response} returns this - */ -proto.CarServer.Response.prototype.clearPing = function() { - return this.setPing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Response.prototype.hasPing = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ActionStatus.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ActionStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ActionStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ActionStatus.toObject = function(includeInstance, msg) { - var f, obj = { - result: jspb.Message.getFieldWithDefault(msg, 1, 0), - resultReason: (f = msg.getResultReason()) && proto.CarServer.ResultReason.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ActionStatus} - */ -proto.CarServer.ActionStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ActionStatus; - return proto.CarServer.ActionStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ActionStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ActionStatus} - */ -proto.CarServer.ActionStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.CarServer.OperationStatus_E} */ (reader.readEnum()); - msg.setResult(value); - break; - case 2: - var value = new proto.CarServer.ResultReason; - reader.readMessage(value,proto.CarServer.ResultReason.deserializeBinaryFromReader); - msg.setResultReason(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ActionStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ActionStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ActionStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ActionStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResult(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getResultReason(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.CarServer.ResultReason.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OperationStatus_E result = 1; - * @return {!proto.CarServer.OperationStatus_E} - */ -proto.CarServer.ActionStatus.prototype.getResult = function() { - return /** @type {!proto.CarServer.OperationStatus_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.CarServer.OperationStatus_E} value - * @return {!proto.CarServer.ActionStatus} returns this - */ -proto.CarServer.ActionStatus.prototype.setResult = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional ResultReason result_reason = 2; - * @return {?proto.CarServer.ResultReason} - */ -proto.CarServer.ActionStatus.prototype.getResultReason = function() { - return /** @type{?proto.CarServer.ResultReason} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.ResultReason, 2)); -}; - - -/** - * @param {?proto.CarServer.ResultReason|undefined} value - * @return {!proto.CarServer.ActionStatus} returns this -*/ -proto.CarServer.ActionStatus.prototype.setResultReason = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ActionStatus} returns this - */ -proto.CarServer.ActionStatus.prototype.clearResultReason = function() { - return this.setResultReason(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ActionStatus.prototype.hasResultReason = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.ResultReason.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.CarServer.ResultReason.ReasonCase = { - REASON_NOT_SET: 0, - PLAIN_TEXT: 1 -}; - -/** - * @return {proto.CarServer.ResultReason.ReasonCase} - */ -proto.CarServer.ResultReason.prototype.getReasonCase = function() { - return /** @type {proto.CarServer.ResultReason.ReasonCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.ResultReason.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ResultReason.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ResultReason.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ResultReason} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ResultReason.toObject = function(includeInstance, msg) { - var f, obj = { - plainText: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ResultReason} - */ -proto.CarServer.ResultReason.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ResultReason; - return proto.CarServer.ResultReason.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ResultReason} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ResultReason} - */ -proto.CarServer.ResultReason.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPlainText(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ResultReason.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ResultReason.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ResultReason} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ResultReason.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string plain_text = 1; - * @return {string} - */ -proto.CarServer.ResultReason.prototype.getPlainText = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.ResultReason} returns this - */ -proto.CarServer.ResultReason.prototype.setPlainText = function(value) { - return jspb.Message.setOneofField(this, 1, proto.CarServer.ResultReason.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.CarServer.ResultReason} returns this - */ -proto.CarServer.ResultReason.prototype.clearPlainText = function() { - return jspb.Message.setOneofField(this, 1, proto.CarServer.ResultReason.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ResultReason.prototype.hasPlainText = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.EncryptedData.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.EncryptedData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.EncryptedData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.EncryptedData.toObject = function(includeInstance, msg) { - var f, obj = { - fieldNumber: jspb.Message.getFieldWithDefault(msg, 1, 0), - ciphertext: msg.getCiphertext_asB64(), - tag: msg.getTag_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.EncryptedData} - */ -proto.CarServer.EncryptedData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.EncryptedData; - return proto.CarServer.EncryptedData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.EncryptedData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.EncryptedData} - */ -proto.CarServer.EncryptedData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setFieldNumber(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCiphertext(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.EncryptedData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.EncryptedData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.EncryptedData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.EncryptedData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFieldNumber(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getCiphertext_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } -}; - - -/** - * optional int32 field_number = 1; - * @return {number} - */ -proto.CarServer.EncryptedData.prototype.getFieldNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.EncryptedData} returns this - */ -proto.CarServer.EncryptedData.prototype.setFieldNumber = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes ciphertext = 2; - * @return {!(string|Uint8Array)} - */ -proto.CarServer.EncryptedData.prototype.getCiphertext = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes ciphertext = 2; - * This is a type-conversion wrapper around `getCiphertext()` - * @return {string} - */ -proto.CarServer.EncryptedData.prototype.getCiphertext_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCiphertext())); -}; - - -/** - * optional bytes ciphertext = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCiphertext()` - * @return {!Uint8Array} - */ -proto.CarServer.EncryptedData.prototype.getCiphertext_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCiphertext())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.CarServer.EncryptedData} returns this - */ -proto.CarServer.EncryptedData.prototype.setCiphertext = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes tag = 3; - * @return {!(string|Uint8Array)} - */ -proto.CarServer.EncryptedData.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes tag = 3; - * This is a type-conversion wrapper around `getTag()` - * @return {string} - */ -proto.CarServer.EncryptedData.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); -}; - - -/** - * optional bytes tag = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} - */ -proto.CarServer.EncryptedData.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.CarServer.EncryptedData} returns this - */ -proto.CarServer.EncryptedData.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ChargingSetLimitAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ChargingSetLimitAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ChargingSetLimitAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargingSetLimitAction.toObject = function(includeInstance, msg) { - var f, obj = { - percent: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ChargingSetLimitAction} - */ -proto.CarServer.ChargingSetLimitAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ChargingSetLimitAction; - return proto.CarServer.ChargingSetLimitAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ChargingSetLimitAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ChargingSetLimitAction} - */ -proto.CarServer.ChargingSetLimitAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPercent(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ChargingSetLimitAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ChargingSetLimitAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ChargingSetLimitAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargingSetLimitAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPercent(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } -}; - - -/** - * optional int32 percent = 1; - * @return {number} - */ -proto.CarServer.ChargingSetLimitAction.prototype.getPercent = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ChargingSetLimitAction} returns this - */ -proto.CarServer.ChargingSetLimitAction.prototype.setPercent = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.ChargingStartStopAction.oneofGroups_ = [[1,2,3,4,5]]; - -/** - * @enum {number} - */ -proto.CarServer.ChargingStartStopAction.ChargingActionCase = { - CHARGING_ACTION_NOT_SET: 0, - UNKNOWN: 1, - START: 2, - START_STANDARD: 3, - START_MAX_RANGE: 4, - STOP: 5 -}; - -/** - * @return {proto.CarServer.ChargingStartStopAction.ChargingActionCase} - */ -proto.CarServer.ChargingStartStopAction.prototype.getChargingActionCase = function() { - return /** @type {proto.CarServer.ChargingStartStopAction.ChargingActionCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.ChargingStartStopAction.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ChargingStartStopAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ChargingStartStopAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ChargingStartStopAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargingStartStopAction.toObject = function(includeInstance, msg) { - var f, obj = { - unknown: (f = msg.getUnknown()) && common_pb.Void.toObject(includeInstance, f), - start: (f = msg.getStart()) && common_pb.Void.toObject(includeInstance, f), - startStandard: (f = msg.getStartStandard()) && common_pb.Void.toObject(includeInstance, f), - startMaxRange: (f = msg.getStartMaxRange()) && common_pb.Void.toObject(includeInstance, f), - stop: (f = msg.getStop()) && common_pb.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ChargingStartStopAction} - */ -proto.CarServer.ChargingStartStopAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ChargingStartStopAction; - return proto.CarServer.ChargingStartStopAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ChargingStartStopAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ChargingStartStopAction} - */ -proto.CarServer.ChargingStartStopAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setUnknown(value); - break; - case 2: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setStart(value); - break; - case 3: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setStartStandard(value); - break; - case 4: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setStartMaxRange(value); - break; - case 5: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setStop(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ChargingStartStopAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ChargingStartStopAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ChargingStartStopAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargingStartStopAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUnknown(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getStartStandard(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getStartMaxRange(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getStop(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Void unknown = 1; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.ChargingStartStopAction.prototype.getUnknown = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 1)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.ChargingStartStopAction} returns this -*/ -proto.CarServer.ChargingStartStopAction.prototype.setUnknown = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.CarServer.ChargingStartStopAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ChargingStartStopAction} returns this - */ -proto.CarServer.ChargingStartStopAction.prototype.clearUnknown = function() { - return this.setUnknown(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ChargingStartStopAction.prototype.hasUnknown = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Void start = 2; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.ChargingStartStopAction.prototype.getStart = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 2)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.ChargingStartStopAction} returns this -*/ -proto.CarServer.ChargingStartStopAction.prototype.setStart = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.ChargingStartStopAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ChargingStartStopAction} returns this - */ -proto.CarServer.ChargingStartStopAction.prototype.clearStart = function() { - return this.setStart(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ChargingStartStopAction.prototype.hasStart = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Void start_standard = 3; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.ChargingStartStopAction.prototype.getStartStandard = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 3)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.ChargingStartStopAction} returns this -*/ -proto.CarServer.ChargingStartStopAction.prototype.setStartStandard = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.CarServer.ChargingStartStopAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ChargingStartStopAction} returns this - */ -proto.CarServer.ChargingStartStopAction.prototype.clearStartStandard = function() { - return this.setStartStandard(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ChargingStartStopAction.prototype.hasStartStandard = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Void start_max_range = 4; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.ChargingStartStopAction.prototype.getStartMaxRange = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 4)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.ChargingStartStopAction} returns this -*/ -proto.CarServer.ChargingStartStopAction.prototype.setStartMaxRange = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.CarServer.ChargingStartStopAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ChargingStartStopAction} returns this - */ -proto.CarServer.ChargingStartStopAction.prototype.clearStartMaxRange = function() { - return this.setStartMaxRange(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ChargingStartStopAction.prototype.hasStartMaxRange = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Void stop = 5; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.ChargingStartStopAction.prototype.getStop = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 5)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.ChargingStartStopAction} returns this -*/ -proto.CarServer.ChargingStartStopAction.prototype.setStop = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.CarServer.ChargingStartStopAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ChargingStartStopAction} returns this - */ -proto.CarServer.ChargingStartStopAction.prototype.clearStop = function() { - return this.setStop(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ChargingStartStopAction.prototype.hasStop = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.DrivingClearSpeedLimitPinAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.DrivingClearSpeedLimitPinAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.toObject = function(includeInstance, msg) { - var f, obj = { - pin: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.DrivingClearSpeedLimitPinAction} - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.DrivingClearSpeedLimitPinAction; - return proto.CarServer.DrivingClearSpeedLimitPinAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.DrivingClearSpeedLimitPinAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.DrivingClearSpeedLimitPinAction} - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.DrivingClearSpeedLimitPinAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.DrivingClearSpeedLimitPinAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPin(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string pin = 1; - * @return {string} - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.prototype.getPin = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.DrivingClearSpeedLimitPinAction} returns this - */ -proto.CarServer.DrivingClearSpeedLimitPinAction.prototype.setPin = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.DrivingSetSpeedLimitAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.DrivingSetSpeedLimitAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.DrivingSetSpeedLimitAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.DrivingSetSpeedLimitAction.toObject = function(includeInstance, msg) { - var f, obj = { - limitMph: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.DrivingSetSpeedLimitAction} - */ -proto.CarServer.DrivingSetSpeedLimitAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.DrivingSetSpeedLimitAction; - return proto.CarServer.DrivingSetSpeedLimitAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.DrivingSetSpeedLimitAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.DrivingSetSpeedLimitAction} - */ -proto.CarServer.DrivingSetSpeedLimitAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setLimitMph(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.DrivingSetSpeedLimitAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.DrivingSetSpeedLimitAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.DrivingSetSpeedLimitAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.DrivingSetSpeedLimitAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLimitMph(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } -}; - - -/** - * optional double limit_mph = 1; - * @return {number} - */ -proto.CarServer.DrivingSetSpeedLimitAction.prototype.getLimitMph = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.DrivingSetSpeedLimitAction} returns this - */ -proto.CarServer.DrivingSetSpeedLimitAction.prototype.setLimitMph = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.DrivingSpeedLimitAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.DrivingSpeedLimitAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.DrivingSpeedLimitAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.DrivingSpeedLimitAction.toObject = function(includeInstance, msg) { - var f, obj = { - activate: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - pin: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.DrivingSpeedLimitAction} - */ -proto.CarServer.DrivingSpeedLimitAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.DrivingSpeedLimitAction; - return proto.CarServer.DrivingSpeedLimitAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.DrivingSpeedLimitAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.DrivingSpeedLimitAction} - */ -proto.CarServer.DrivingSpeedLimitAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setActivate(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.DrivingSpeedLimitAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.DrivingSpeedLimitAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.DrivingSpeedLimitAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.DrivingSpeedLimitAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActivate(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getPin(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional bool activate = 1; - * @return {boolean} - */ -proto.CarServer.DrivingSpeedLimitAction.prototype.getActivate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.DrivingSpeedLimitAction} returns this - */ -proto.CarServer.DrivingSpeedLimitAction.prototype.setActivate = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string pin = 2; - * @return {string} - */ -proto.CarServer.DrivingSpeedLimitAction.prototype.getPin = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.DrivingSpeedLimitAction} returns this - */ -proto.CarServer.DrivingSpeedLimitAction.prototype.setPin = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacAutoAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacAutoAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacAutoAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacAutoAction.toObject = function(includeInstance, msg) { - var f, obj = { - powerOn: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - manualOverride: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacAutoAction} - */ -proto.CarServer.HvacAutoAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacAutoAction; - return proto.CarServer.HvacAutoAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacAutoAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacAutoAction} - */ -proto.CarServer.HvacAutoAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPowerOn(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setManualOverride(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacAutoAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacAutoAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacAutoAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacAutoAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPowerOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getManualOverride(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional bool power_on = 1; - * @return {boolean} - */ -proto.CarServer.HvacAutoAction.prototype.getPowerOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacAutoAction} returns this - */ -proto.CarServer.HvacAutoAction.prototype.setPowerOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool manual_override = 2; - * @return {boolean} - */ -proto.CarServer.HvacAutoAction.prototype.getManualOverride = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacAutoAction} returns this - */ -proto.CarServer.HvacAutoAction.prototype.setManualOverride = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.CarServer.HvacSeatHeaterActions.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacSeatHeaterActions.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacSeatHeaterActions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacSeatHeaterActions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatHeaterActions.toObject = function(includeInstance, msg) { - var f, obj = { - hvacseatheateractionList: jspb.Message.toObjectList(msg.getHvacseatheateractionList(), - proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacSeatHeaterActions} - */ -proto.CarServer.HvacSeatHeaterActions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacSeatHeaterActions; - return proto.CarServer.HvacSeatHeaterActions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacSeatHeaterActions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacSeatHeaterActions} - */ -proto.CarServer.HvacSeatHeaterActions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction; - reader.readMessage(value,proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.deserializeBinaryFromReader); - msg.addHvacseatheateraction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacSeatHeaterActions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacSeatHeaterActions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacSeatHeaterActions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatHeaterActions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHvacseatheateractionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.serializeBinaryToWriter - ); - } -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_ = [[1,2,3,4,5],[6,7,8,9,10,11,12,13,14,15]]; - -/** - * @enum {number} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatHeaterLevelCase = { - SEAT_HEATER_LEVEL_NOT_SET: 0, - SEAT_HEATER_UNKNOWN: 1, - SEAT_HEATER_OFF: 2, - SEAT_HEATER_LOW: 3, - SEAT_HEATER_MED: 4, - SEAT_HEATER_HIGH: 5 -}; - -/** - * @return {proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatHeaterLevelCase} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getSeatHeaterLevelCase = function() { - return /** @type {proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatHeaterLevelCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatPositionCase = { - SEAT_POSITION_NOT_SET: 0, - CAR_SEAT_UNKNOWN: 6, - CAR_SEAT_FRONT_LEFT: 7, - CAR_SEAT_FRONT_RIGHT: 8, - CAR_SEAT_REAR_LEFT: 9, - CAR_SEAT_REAR_LEFT_BACK: 10, - CAR_SEAT_REAR_CENTER: 11, - CAR_SEAT_REAR_RIGHT: 12, - CAR_SEAT_REAR_RIGHT_BACK: 13, - CAR_SEAT_THIRD_ROW_LEFT: 14, - CAR_SEAT_THIRD_ROW_RIGHT: 15 -}; - -/** - * @return {proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatPositionCase} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getSeatPositionCase = function() { - return /** @type {proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.SeatPositionCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.toObject = function(includeInstance, msg) { - var f, obj = { - seatHeaterUnknown: (f = msg.getSeatHeaterUnknown()) && common_pb.Void.toObject(includeInstance, f), - seatHeaterOff: (f = msg.getSeatHeaterOff()) && common_pb.Void.toObject(includeInstance, f), - seatHeaterLow: (f = msg.getSeatHeaterLow()) && common_pb.Void.toObject(includeInstance, f), - seatHeaterMed: (f = msg.getSeatHeaterMed()) && common_pb.Void.toObject(includeInstance, f), - seatHeaterHigh: (f = msg.getSeatHeaterHigh()) && common_pb.Void.toObject(includeInstance, f), - carSeatUnknown: (f = msg.getCarSeatUnknown()) && common_pb.Void.toObject(includeInstance, f), - carSeatFrontLeft: (f = msg.getCarSeatFrontLeft()) && common_pb.Void.toObject(includeInstance, f), - carSeatFrontRight: (f = msg.getCarSeatFrontRight()) && common_pb.Void.toObject(includeInstance, f), - carSeatRearLeft: (f = msg.getCarSeatRearLeft()) && common_pb.Void.toObject(includeInstance, f), - carSeatRearLeftBack: (f = msg.getCarSeatRearLeftBack()) && common_pb.Void.toObject(includeInstance, f), - carSeatRearCenter: (f = msg.getCarSeatRearCenter()) && common_pb.Void.toObject(includeInstance, f), - carSeatRearRight: (f = msg.getCarSeatRearRight()) && common_pb.Void.toObject(includeInstance, f), - carSeatRearRightBack: (f = msg.getCarSeatRearRightBack()) && common_pb.Void.toObject(includeInstance, f), - carSeatThirdRowLeft: (f = msg.getCarSeatThirdRowLeft()) && common_pb.Void.toObject(includeInstance, f), - carSeatThirdRowRight: (f = msg.getCarSeatThirdRowRight()) && common_pb.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction; - return proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setSeatHeaterUnknown(value); - break; - case 2: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setSeatHeaterOff(value); - break; - case 3: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setSeatHeaterLow(value); - break; - case 4: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setSeatHeaterMed(value); - break; - case 5: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setSeatHeaterHigh(value); - break; - case 6: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatUnknown(value); - break; - case 7: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatFrontLeft(value); - break; - case 8: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatFrontRight(value); - break; - case 9: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatRearLeft(value); - break; - case 10: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatRearLeftBack(value); - break; - case 11: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatRearCenter(value); - break; - case 12: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatRearRight(value); - break; - case 13: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatRearRightBack(value); - break; - case 14: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatThirdRowLeft(value); - break; - case 15: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setCarSeatThirdRowRight(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSeatHeaterUnknown(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getSeatHeaterOff(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getSeatHeaterLow(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getSeatHeaterMed(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getSeatHeaterHigh(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatUnknown(); - if (f != null) { - writer.writeMessage( - 6, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatFrontLeft(); - if (f != null) { - writer.writeMessage( - 7, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatFrontRight(); - if (f != null) { - writer.writeMessage( - 8, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatRearLeft(); - if (f != null) { - writer.writeMessage( - 9, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatRearLeftBack(); - if (f != null) { - writer.writeMessage( - 10, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatRearCenter(); - if (f != null) { - writer.writeMessage( - 11, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatRearRight(); - if (f != null) { - writer.writeMessage( - 12, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatRearRightBack(); - if (f != null) { - writer.writeMessage( - 13, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatThirdRowLeft(); - if (f != null) { - writer.writeMessage( - 14, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getCarSeatThirdRowRight(); - if (f != null) { - writer.writeMessage( - 15, - f, - common_pb.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Void SEAT_HEATER_UNKNOWN = 1; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getSeatHeaterUnknown = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 1)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setSeatHeaterUnknown = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearSeatHeaterUnknown = function() { - return this.setSeatHeaterUnknown(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasSeatHeaterUnknown = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Void SEAT_HEATER_OFF = 2; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getSeatHeaterOff = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 2)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setSeatHeaterOff = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearSeatHeaterOff = function() { - return this.setSeatHeaterOff(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasSeatHeaterOff = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Void SEAT_HEATER_LOW = 3; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getSeatHeaterLow = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 3)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setSeatHeaterLow = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearSeatHeaterLow = function() { - return this.setSeatHeaterLow(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasSeatHeaterLow = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Void SEAT_HEATER_MED = 4; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getSeatHeaterMed = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 4)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setSeatHeaterMed = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearSeatHeaterMed = function() { - return this.setSeatHeaterMed(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasSeatHeaterMed = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Void SEAT_HEATER_HIGH = 5; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getSeatHeaterHigh = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 5)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setSeatHeaterHigh = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearSeatHeaterHigh = function() { - return this.setSeatHeaterHigh(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasSeatHeaterHigh = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional Void CAR_SEAT_UNKNOWN = 6; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatUnknown = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 6)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatUnknown = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatUnknown = function() { - return this.setCarSeatUnknown(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatUnknown = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional Void CAR_SEAT_FRONT_LEFT = 7; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatFrontLeft = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 7)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatFrontLeft = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatFrontLeft = function() { - return this.setCarSeatFrontLeft(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatFrontLeft = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional Void CAR_SEAT_FRONT_RIGHT = 8; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatFrontRight = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 8)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatFrontRight = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatFrontRight = function() { - return this.setCarSeatFrontRight(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatFrontRight = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional Void CAR_SEAT_REAR_LEFT = 9; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatRearLeft = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 9)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatRearLeft = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatRearLeft = function() { - return this.setCarSeatRearLeft(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatRearLeft = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional Void CAR_SEAT_REAR_LEFT_BACK = 10; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatRearLeftBack = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 10)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatRearLeftBack = function(value) { - return jspb.Message.setOneofWrapperField(this, 10, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatRearLeftBack = function() { - return this.setCarSeatRearLeftBack(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatRearLeftBack = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional Void CAR_SEAT_REAR_CENTER = 11; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatRearCenter = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 11)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatRearCenter = function(value) { - return jspb.Message.setOneofWrapperField(this, 11, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatRearCenter = function() { - return this.setCarSeatRearCenter(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatRearCenter = function() { - return jspb.Message.getField(this, 11) != null; -}; - - -/** - * optional Void CAR_SEAT_REAR_RIGHT = 12; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatRearRight = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 12)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatRearRight = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatRearRight = function() { - return this.setCarSeatRearRight(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatRearRight = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional Void CAR_SEAT_REAR_RIGHT_BACK = 13; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatRearRightBack = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 13)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatRearRightBack = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatRearRightBack = function() { - return this.setCarSeatRearRightBack(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatRearRightBack = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional Void CAR_SEAT_THIRD_ROW_LEFT = 14; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatThirdRowLeft = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 14)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatThirdRowLeft = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatThirdRowLeft = function() { - return this.setCarSeatThirdRowLeft(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatThirdRowLeft = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional Void CAR_SEAT_THIRD_ROW_RIGHT = 15; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.getCarSeatThirdRowRight = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 15)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.setCarSeatThirdRowRight = function(value) { - return jspb.Message.setOneofWrapperField(this, 15, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} returns this - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.clearCarSeatThirdRowRight = function() { - return this.setCarSeatThirdRowRight(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction.prototype.hasCarSeatThirdRowRight = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * repeated HvacSeatHeaterAction hvacSeatHeaterAction = 1; - * @return {!Array} - */ -proto.CarServer.HvacSeatHeaterActions.prototype.getHvacseatheateractionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.CarServer.HvacSeatHeaterActions} returns this -*/ -proto.CarServer.HvacSeatHeaterActions.prototype.setHvacseatheateractionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction=} opt_value - * @param {number=} opt_index - * @return {!proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction} - */ -proto.CarServer.HvacSeatHeaterActions.prototype.addHvacseatheateraction = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.CarServer.HvacSeatHeaterActions.HvacSeatHeaterAction, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.CarServer.HvacSeatHeaterActions} returns this - */ -proto.CarServer.HvacSeatHeaterActions.prototype.clearHvacseatheateractionList = function() { - return this.setHvacseatheateractionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.CarServer.HvacSeatCoolerActions.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacSeatCoolerActions.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacSeatCoolerActions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacSeatCoolerActions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatCoolerActions.toObject = function(includeInstance, msg) { - var f, obj = { - hvacseatcooleractionList: jspb.Message.toObjectList(msg.getHvacseatcooleractionList(), - proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacSeatCoolerActions} - */ -proto.CarServer.HvacSeatCoolerActions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacSeatCoolerActions; - return proto.CarServer.HvacSeatCoolerActions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacSeatCoolerActions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacSeatCoolerActions} - */ -proto.CarServer.HvacSeatCoolerActions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction; - reader.readMessage(value,proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.deserializeBinaryFromReader); - msg.addHvacseatcooleraction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacSeatCoolerActions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacSeatCoolerActions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacSeatCoolerActions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatCoolerActions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHvacseatcooleractionList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.serializeBinaryToWriter - ); - } -}; - - -/** - * @enum {number} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerLevel_E = { - HVACSEATCOOLERLEVEL_UNKNOWN: 0, - HVACSEATCOOLERLEVEL_OFF: 1, - HVACSEATCOOLERLEVEL_LOW: 2, - HVACSEATCOOLERLEVEL_MED: 3, - HVACSEATCOOLERLEVEL_HIGH: 4 -}; - -/** - * @enum {number} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerPosition_E = { - HVACSEATCOOLERPOSITION_UNKNOWN: 0, - HVACSEATCOOLERPOSITION_FRONTLEFT: 1, - HVACSEATCOOLERPOSITION_FRONTRIGHT: 2 -}; - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.toObject = function(includeInstance, msg) { - var f, obj = { - seatCoolerLevel: jspb.Message.getFieldWithDefault(msg, 1, 0), - seatPosition: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction; - return proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerLevel_E} */ (reader.readEnum()); - msg.setSeatCoolerLevel(value); - break; - case 2: - var value = /** @type {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerPosition_E} */ (reader.readEnum()); - msg.setSeatPosition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSeatCoolerLevel(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getSeatPosition(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional HvacSeatCoolerLevel_E seat_cooler_level = 1; - * @return {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerLevel_E} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.prototype.getSeatCoolerLevel = function() { - return /** @type {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerLevel_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerLevel_E} value - * @return {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} returns this - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.prototype.setSeatCoolerLevel = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional HvacSeatCoolerPosition_E seat_position = 2; - * @return {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerPosition_E} - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.prototype.getSeatPosition = function() { - return /** @type {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerPosition_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerPosition_E} value - * @return {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} returns this - */ -proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction.prototype.setSeatPosition = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * repeated HvacSeatCoolerAction hvacSeatCoolerAction = 1; - * @return {!Array} - */ -proto.CarServer.HvacSeatCoolerActions.prototype.getHvacseatcooleractionList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.CarServer.HvacSeatCoolerActions} returns this -*/ -proto.CarServer.HvacSeatCoolerActions.prototype.setHvacseatcooleractionList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction=} opt_value - * @param {number=} opt_index - * @return {!proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction} - */ -proto.CarServer.HvacSeatCoolerActions.prototype.addHvacseatcooleraction = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.CarServer.HvacSeatCoolerActions.HvacSeatCoolerAction, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.CarServer.HvacSeatCoolerActions} returns this - */ -proto.CarServer.HvacSeatCoolerActions.prototype.clearHvacseatcooleractionList = function() { - return this.setHvacseatcooleractionList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.CarServer.HvacSetPreconditioningMaxAction.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacSetPreconditioningMaxAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacSetPreconditioningMaxAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSetPreconditioningMaxAction.toObject = function(includeInstance, msg) { - var f, obj = { - on: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - manualOverride: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - manualOverrideModeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacSetPreconditioningMaxAction} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacSetPreconditioningMaxAction; - return proto.CarServer.HvacSetPreconditioningMaxAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacSetPreconditioningMaxAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacSetPreconditioningMaxAction} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOn(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setManualOverride(value); - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); - for (var i = 0; i < values.length; i++) { - msg.addManualOverrideMode(values[i]); - } - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacSetPreconditioningMaxAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacSetPreconditioningMaxAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSetPreconditioningMaxAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getManualOverride(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getManualOverrideModeList(); - if (f.length > 0) { - writer.writePackedEnum( - 3, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.ManualOverrideMode_E = { - DOGMODE: 0, - SOC: 1, - DOORS: 2 -}; - -/** - * optional bool on = 1; - * @return {boolean} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.getOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacSetPreconditioningMaxAction} returns this - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.setOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool manual_override = 2; - * @return {boolean} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.getManualOverride = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacSetPreconditioningMaxAction} returns this - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.setManualOverride = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated ManualOverrideMode_E manual_override_mode = 3; - * @return {!Array} - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.getManualOverrideModeList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.CarServer.HvacSetPreconditioningMaxAction} returns this - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.setManualOverrideModeList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {!proto.CarServer.HvacSetPreconditioningMaxAction.ManualOverrideMode_E} value - * @param {number=} opt_index - * @return {!proto.CarServer.HvacSetPreconditioningMaxAction} returns this - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.addManualOverrideMode = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.CarServer.HvacSetPreconditioningMaxAction} returns this - */ -proto.CarServer.HvacSetPreconditioningMaxAction.prototype.clearManualOverrideModeList = function() { - return this.setManualOverrideModeList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacSteeringWheelHeaterAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacSteeringWheelHeaterAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacSteeringWheelHeaterAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSteeringWheelHeaterAction.toObject = function(includeInstance, msg) { - var f, obj = { - powerOn: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacSteeringWheelHeaterAction} - */ -proto.CarServer.HvacSteeringWheelHeaterAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacSteeringWheelHeaterAction; - return proto.CarServer.HvacSteeringWheelHeaterAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacSteeringWheelHeaterAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacSteeringWheelHeaterAction} - */ -proto.CarServer.HvacSteeringWheelHeaterAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPowerOn(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacSteeringWheelHeaterAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacSteeringWheelHeaterAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacSteeringWheelHeaterAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacSteeringWheelHeaterAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPowerOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool power_on = 1; - * @return {boolean} - */ -proto.CarServer.HvacSteeringWheelHeaterAction.prototype.getPowerOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacSteeringWheelHeaterAction} returns this - */ -proto.CarServer.HvacSteeringWheelHeaterAction.prototype.setPowerOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.CarServer.HvacTemperatureAdjustmentAction.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacTemperatureAdjustmentAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacTemperatureAdjustmentAction.toObject = function(includeInstance, msg) { - var f, obj = { - deltaCelsius: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - deltaPercent: jspb.Message.getFieldWithDefault(msg, 2, 0), - absoluteCelsius: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - level: (f = msg.getLevel()) && proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.toObject(includeInstance, f), - hvacTemperatureZoneList: jspb.Message.toObjectList(msg.getHvacTemperatureZoneList(), - proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.toObject, includeInstance), - driverTempCelsius: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), - passengerTempCelsius: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacTemperatureAdjustmentAction; - return proto.CarServer.HvacTemperatureAdjustmentAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setDeltaCelsius(value); - break; - case 2: - var value = /** @type {number} */ (reader.readSint32()); - msg.setDeltaPercent(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setAbsoluteCelsius(value); - break; - case 5: - var value = new proto.CarServer.HvacTemperatureAdjustmentAction.Temperature; - reader.readMessage(value,proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.deserializeBinaryFromReader); - msg.setLevel(value); - break; - case 4: - var value = new proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone; - reader.readMessage(value,proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.deserializeBinaryFromReader); - msg.addHvacTemperatureZone(value); - break; - case 6: - var value = /** @type {number} */ (reader.readFloat()); - msg.setDriverTempCelsius(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setPassengerTempCelsius(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacTemperatureAdjustmentAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacTemperatureAdjustmentAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDeltaCelsius(); - if (f !== 0.0) { - writer.writeFloat( - 1, - f - ); - } - f = message.getDeltaPercent(); - if (f !== 0) { - writer.writeSint32( - 2, - f - ); - } - f = message.getAbsoluteCelsius(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getLevel(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.serializeBinaryToWriter - ); - } - f = message.getHvacTemperatureZoneList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.serializeBinaryToWriter - ); - } - f = message.getDriverTempCelsius(); - if (f !== 0.0) { - writer.writeFloat( - 6, - f - ); - } - f = message.getPassengerTempCelsius(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.TypeCase = { - TYPE_NOT_SET: 0, - TEMP_UNKNOWN: 1, - TEMP_MIN: 2, - TEMP_MAX: 3 -}; - -/** - * @return {proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.TypeCase} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.getTypeCase = function() { - return /** @type {proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.TypeCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.toObject = function(includeInstance, msg) { - var f, obj = { - tempUnknown: (f = msg.getTempUnknown()) && common_pb.Void.toObject(includeInstance, f), - tempMin: (f = msg.getTempMin()) && common_pb.Void.toObject(includeInstance, f), - tempMax: (f = msg.getTempMax()) && common_pb.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacTemperatureAdjustmentAction.Temperature; - return proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setTempUnknown(value); - break; - case 2: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setTempMin(value); - break; - case 3: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setTempMax(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTempUnknown(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getTempMin(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getTempMax(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Void TEMP_UNKNOWN = 1; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.getTempUnknown = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 1)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.setTempUnknown = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.clearTempUnknown = function() { - return this.setTempUnknown(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.hasTempUnknown = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Void TEMP_MIN = 2; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.getTempMin = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 2)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.setTempMin = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.clearTempMin = function() { - return this.setTempMin(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.hasTempMin = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Void TEMP_MAX = 3; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.getTempMax = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 3)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.setTempMax = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.clearTempMax = function() { - return this.setTempMax(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.Temperature.prototype.hasTempMax = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.oneofGroups_ = [[1,2,3,4]]; - -/** - * @enum {number} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.TypeCase = { - TYPE_NOT_SET: 0, - TEMP_ZONE_UNKNOWN: 1, - TEMP_ZONE_FRONT_LEFT: 2, - TEMP_ZONE_FRONT_RIGHT: 3, - TEMP_ZONE_REAR: 4 -}; - -/** - * @return {proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.TypeCase} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.getTypeCase = function() { - return /** @type {proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.TypeCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.toObject = function(includeInstance, msg) { - var f, obj = { - tempZoneUnknown: (f = msg.getTempZoneUnknown()) && common_pb.Void.toObject(includeInstance, f), - tempZoneFrontLeft: (f = msg.getTempZoneFrontLeft()) && common_pb.Void.toObject(includeInstance, f), - tempZoneFrontRight: (f = msg.getTempZoneFrontRight()) && common_pb.Void.toObject(includeInstance, f), - tempZoneRear: (f = msg.getTempZoneRear()) && common_pb.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone; - return proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setTempZoneUnknown(value); - break; - case 2: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setTempZoneFrontLeft(value); - break; - case 3: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setTempZoneFrontRight(value); - break; - case 4: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setTempZoneRear(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTempZoneUnknown(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getTempZoneFrontLeft(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getTempZoneFrontRight(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getTempZoneRear(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Void TEMP_ZONE_UNKNOWN = 1; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.getTempZoneUnknown = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 1)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.setTempZoneUnknown = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.clearTempZoneUnknown = function() { - return this.setTempZoneUnknown(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.hasTempZoneUnknown = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Void TEMP_ZONE_FRONT_LEFT = 2; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.getTempZoneFrontLeft = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 2)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.setTempZoneFrontLeft = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.clearTempZoneFrontLeft = function() { - return this.setTempZoneFrontLeft(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.hasTempZoneFrontLeft = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Void TEMP_ZONE_FRONT_RIGHT = 3; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.getTempZoneFrontRight = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 3)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.setTempZoneFrontRight = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.clearTempZoneFrontRight = function() { - return this.setTempZoneFrontRight(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.hasTempZoneFrontRight = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Void TEMP_ZONE_REAR = 4; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.getTempZoneRear = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 4)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.setTempZoneRear = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.clearTempZoneRear = function() { - return this.setTempZoneRear(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone.prototype.hasTempZoneRear = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional float delta_celsius = 1; - * @return {number} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.getDeltaCelsius = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.setDeltaCelsius = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional sint32 delta_percent = 2; - * @return {number} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.getDeltaPercent = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.setDeltaPercent = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional float absolute_celsius = 3; - * @return {number} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.getAbsoluteCelsius = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.setAbsoluteCelsius = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional Temperature level = 5; - * @return {?proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.getLevel = function() { - return /** @type{?proto.CarServer.HvacTemperatureAdjustmentAction.Temperature} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.HvacTemperatureAdjustmentAction.Temperature, 5)); -}; - - -/** - * @param {?proto.CarServer.HvacTemperatureAdjustmentAction.Temperature|undefined} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.setLevel = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.clearLevel = function() { - return this.setLevel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.hasLevel = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * repeated HvacTemperatureZone hvac_temperature_zone = 4; - * @return {!Array} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.getHvacTemperatureZoneList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this -*/ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.setHvacTemperatureZoneList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone=} opt_value - * @param {number=} opt_index - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.addHvacTemperatureZone = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.CarServer.HvacTemperatureAdjustmentAction.HvacTemperatureZone, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.clearHvacTemperatureZoneList = function() { - return this.setHvacTemperatureZoneList([]); -}; - - -/** - * optional float driver_temp_celsius = 6; - * @return {number} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.getDriverTempCelsius = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.setDriverTempCelsius = function(value) { - return jspb.Message.setProto3FloatField(this, 6, value); -}; - - -/** - * optional float passenger_temp_celsius = 7; - * @return {number} - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.getPassengerTempCelsius = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.HvacTemperatureAdjustmentAction} returns this - */ -proto.CarServer.HvacTemperatureAdjustmentAction.prototype.setPassengerTempCelsius = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.GetNearbyChargingSites.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.GetNearbyChargingSites.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.GetNearbyChargingSites} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.GetNearbyChargingSites.toObject = function(includeInstance, msg) { - var f, obj = { - includeMetaData: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - radius: jspb.Message.getFieldWithDefault(msg, 2, 0), - count: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.GetNearbyChargingSites} - */ -proto.CarServer.GetNearbyChargingSites.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.GetNearbyChargingSites; - return proto.CarServer.GetNearbyChargingSites.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.GetNearbyChargingSites} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.GetNearbyChargingSites} - */ -proto.CarServer.GetNearbyChargingSites.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIncludeMetaData(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setRadius(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.GetNearbyChargingSites.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.GetNearbyChargingSites.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.GetNearbyChargingSites} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.GetNearbyChargingSites.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIncludeMetaData(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getRadius(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getCount(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } -}; - - -/** - * optional bool include_meta_data = 1; - * @return {boolean} - */ -proto.CarServer.GetNearbyChargingSites.prototype.getIncludeMetaData = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.GetNearbyChargingSites} returns this - */ -proto.CarServer.GetNearbyChargingSites.prototype.setIncludeMetaData = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional int32 radius = 2; - * @return {number} - */ -proto.CarServer.GetNearbyChargingSites.prototype.getRadius = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.GetNearbyChargingSites} returns this - */ -proto.CarServer.GetNearbyChargingSites.prototype.setRadius = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int32 count = 3; - * @return {number} - */ -proto.CarServer.GetNearbyChargingSites.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.GetNearbyChargingSites} returns this - */ -proto.CarServer.GetNearbyChargingSites.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.CarServer.NearbyChargingSites.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.NearbyChargingSites.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.NearbyChargingSites.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.NearbyChargingSites} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.NearbyChargingSites.toObject = function(includeInstance, msg) { - var f, obj = { - timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - superchargersList: jspb.Message.toObjectList(msg.getSuperchargersList(), - proto.CarServer.Superchargers.toObject, includeInstance), - congestionSyncTimeUtcSecs: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.NearbyChargingSites} - */ -proto.CarServer.NearbyChargingSites.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.NearbyChargingSites; - return proto.CarServer.NearbyChargingSites.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.NearbyChargingSites} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.NearbyChargingSites} - */ -proto.CarServer.NearbyChargingSites.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTimestamp(value); - break; - case 3: - var value = new proto.CarServer.Superchargers; - reader.readMessage(value,proto.CarServer.Superchargers.deserializeBinaryFromReader); - msg.addSuperchargers(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCongestionSyncTimeUtcSecs(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.NearbyChargingSites.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.NearbyChargingSites.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.NearbyChargingSites} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.NearbyChargingSites.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTimestamp(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getSuperchargersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.CarServer.Superchargers.serializeBinaryToWriter - ); - } - f = message.getCongestionSyncTimeUtcSecs(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } -}; - - -/** - * optional google.protobuf.Timestamp timestamp = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.CarServer.NearbyChargingSites.prototype.getTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.CarServer.NearbyChargingSites} returns this -*/ -proto.CarServer.NearbyChargingSites.prototype.setTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.NearbyChargingSites} returns this - */ -proto.CarServer.NearbyChargingSites.prototype.clearTimestamp = function() { - return this.setTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.NearbyChargingSites.prototype.hasTimestamp = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated Superchargers superchargers = 3; - * @return {!Array} - */ -proto.CarServer.NearbyChargingSites.prototype.getSuperchargersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.CarServer.Superchargers, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.CarServer.NearbyChargingSites} returns this -*/ -proto.CarServer.NearbyChargingSites.prototype.setSuperchargersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.CarServer.Superchargers=} opt_value - * @param {number=} opt_index - * @return {!proto.CarServer.Superchargers} - */ -proto.CarServer.NearbyChargingSites.prototype.addSuperchargers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.CarServer.Superchargers, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.CarServer.NearbyChargingSites} returns this - */ -proto.CarServer.NearbyChargingSites.prototype.clearSuperchargersList = function() { - return this.setSuperchargersList([]); -}; - - -/** - * optional int64 congestion_sync_time_utc_secs = 4; - * @return {number} - */ -proto.CarServer.NearbyChargingSites.prototype.getCongestionSyncTimeUtcSecs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.NearbyChargingSites} returns this - */ -proto.CarServer.NearbyChargingSites.prototype.setCongestionSyncTimeUtcSecs = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.Superchargers.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.Superchargers.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.Superchargers} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Superchargers.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - amenities: jspb.Message.getFieldWithDefault(msg, 2, ""), - availableStalls: jspb.Message.getFieldWithDefault(msg, 3, 0), - billingInfo: jspb.Message.getFieldWithDefault(msg, 4, ""), - billingTime: jspb.Message.getFieldWithDefault(msg, 5, ""), - city: jspb.Message.getFieldWithDefault(msg, 6, ""), - country: jspb.Message.getFieldWithDefault(msg, 7, ""), - distanceMiles: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - district: jspb.Message.getFieldWithDefault(msg, 9, ""), - location: (f = msg.getLocation()) && common_pb.LatLong.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 11, ""), - postalCode: jspb.Message.getFieldWithDefault(msg, 12, ""), - siteClosed: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - state: jspb.Message.getFieldWithDefault(msg, 14, ""), - streetAddress: jspb.Message.getFieldWithDefault(msg, 15, ""), - totalStalls: jspb.Message.getFieldWithDefault(msg, 16, 0), - withinRange: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - maxPowerKw: jspb.Message.getFieldWithDefault(msg, 18, 0), - outOfOrderStallsNumber: jspb.Message.getFieldWithDefault(msg, 19, 0), - outOfOrderStallsNames: jspb.Message.getFieldWithDefault(msg, 20, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.Superchargers} - */ -proto.CarServer.Superchargers.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.Superchargers; - return proto.CarServer.Superchargers.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.Superchargers} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.Superchargers} - */ -proto.CarServer.Superchargers.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAmenities(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setAvailableStalls(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setBillingInfo(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setBillingTime(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setCity(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 8: - var value = /** @type {number} */ (reader.readFloat()); - msg.setDistanceMiles(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setDistrict(value); - break; - case 10: - var value = new common_pb.LatLong; - reader.readMessage(value,common_pb.LatLong.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setPostalCode(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSiteClosed(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setStreetAddress(value); - break; - case 16: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTotalStalls(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setWithinRange(value); - break; - case 18: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMaxPowerKw(value); - break; - case 19: - var value = /** @type {number} */ (reader.readInt32()); - msg.setOutOfOrderStallsNumber(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setOutOfOrderStallsNames(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.Superchargers.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.Superchargers.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.Superchargers} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Superchargers.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getAmenities(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAvailableStalls(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getBillingInfo(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getBillingTime(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getCity(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDistanceMiles(); - if (f !== 0.0) { - writer.writeFloat( - 8, - f - ); - } - f = message.getDistrict(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 10, - f, - common_pb.LatLong.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getPostalCode(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getSiteClosed(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getStreetAddress(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getTotalStalls(); - if (f !== 0) { - writer.writeInt32( - 16, - f - ); - } - f = message.getWithinRange(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getMaxPowerKw(); - if (f !== 0) { - writer.writeInt32( - 18, - f - ); - } - f = message.getOutOfOrderStallsNumber(); - if (f !== 0) { - writer.writeInt32( - 19, - f - ); - } - f = message.getOutOfOrderStallsNames(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } -}; - - -/** - * optional int64 id = 1; - * @return {number} - */ -proto.CarServer.Superchargers.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string amenities = 2; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getAmenities = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setAmenities = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 available_stalls = 3; - * @return {number} - */ -proto.CarServer.Superchargers.prototype.getAvailableStalls = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setAvailableStalls = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string billing_info = 4; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getBillingInfo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setBillingInfo = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string billing_time = 5; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getBillingTime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setBillingTime = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string city = 6; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getCity = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setCity = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string country = 7; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setCountry = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional float distance_miles = 8; - * @return {number} - */ -proto.CarServer.Superchargers.prototype.getDistanceMiles = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setDistanceMiles = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); -}; - - -/** - * optional string district = 9; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getDistrict = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setDistrict = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional LatLong location = 10; - * @return {?proto.CarServer.LatLong} - */ -proto.CarServer.Superchargers.prototype.getLocation = function() { - return /** @type{?proto.CarServer.LatLong} */ ( - jspb.Message.getWrapperField(this, common_pb.LatLong, 10)); -}; - - -/** - * @param {?proto.CarServer.LatLong|undefined} value - * @return {!proto.CarServer.Superchargers} returns this -*/ -proto.CarServer.Superchargers.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Superchargers.prototype.hasLocation = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional string name = 11; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string postal_code = 12; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getPostalCode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setPostalCode = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional bool site_closed = 13; - * @return {boolean} - */ -proto.CarServer.Superchargers.prototype.getSiteClosed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setSiteClosed = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); -}; - - -/** - * optional string state = 14; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string street_address = 15; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getStreetAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setStreetAddress = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional int32 total_stalls = 16; - * @return {number} - */ -proto.CarServer.Superchargers.prototype.getTotalStalls = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setTotalStalls = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); -}; - - -/** - * optional bool within_range = 17; - * @return {boolean} - */ -proto.CarServer.Superchargers.prototype.getWithinRange = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setWithinRange = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional int32 max_power_kw = 18; - * @return {number} - */ -proto.CarServer.Superchargers.prototype.getMaxPowerKw = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setMaxPowerKw = function(value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - - -/** - * optional int32 out_of_order_stalls_number = 19; - * @return {number} - */ -proto.CarServer.Superchargers.prototype.getOutOfOrderStallsNumber = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setOutOfOrderStallsNumber = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional string out_of_order_stalls_names = 20; - * @return {string} - */ -proto.CarServer.Superchargers.prototype.getOutOfOrderStallsNames = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.Superchargers} returns this - */ -proto.CarServer.Superchargers.prototype.setOutOfOrderStallsNames = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.MediaPlayAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.MediaPlayAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.MediaPlayAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaPlayAction.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.MediaPlayAction} - */ -proto.CarServer.MediaPlayAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.MediaPlayAction; - return proto.CarServer.MediaPlayAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.MediaPlayAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.MediaPlayAction} - */ -proto.CarServer.MediaPlayAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.MediaPlayAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.MediaPlayAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.MediaPlayAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaPlayAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.MediaUpdateVolume.oneofGroups_ = [[1,3]]; - -/** - * @enum {number} - */ -proto.CarServer.MediaUpdateVolume.MediaVolumeCase = { - MEDIA_VOLUME_NOT_SET: 0, - VOLUME_DELTA: 1, - VOLUME_ABSOLUTE_FLOAT: 3 -}; - -/** - * @return {proto.CarServer.MediaUpdateVolume.MediaVolumeCase} - */ -proto.CarServer.MediaUpdateVolume.prototype.getMediaVolumeCase = function() { - return /** @type {proto.CarServer.MediaUpdateVolume.MediaVolumeCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.MediaUpdateVolume.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.MediaUpdateVolume.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.MediaUpdateVolume.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.MediaUpdateVolume} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaUpdateVolume.toObject = function(includeInstance, msg) { - var f, obj = { - volumeDelta: jspb.Message.getFieldWithDefault(msg, 1, 0), - volumeAbsoluteFloat: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.MediaUpdateVolume} - */ -proto.CarServer.MediaUpdateVolume.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.MediaUpdateVolume; - return proto.CarServer.MediaUpdateVolume.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.MediaUpdateVolume} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.MediaUpdateVolume} - */ -proto.CarServer.MediaUpdateVolume.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readSint32()); - msg.setVolumeDelta(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setVolumeAbsoluteFloat(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.MediaUpdateVolume.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.MediaUpdateVolume.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.MediaUpdateVolume} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaUpdateVolume.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {number} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeSint32( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeFloat( - 3, - f - ); - } -}; - - -/** - * optional sint32 volume_delta = 1; - * @return {number} - */ -proto.CarServer.MediaUpdateVolume.prototype.getVolumeDelta = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.MediaUpdateVolume} returns this - */ -proto.CarServer.MediaUpdateVolume.prototype.setVolumeDelta = function(value) { - return jspb.Message.setOneofField(this, 1, proto.CarServer.MediaUpdateVolume.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.CarServer.MediaUpdateVolume} returns this - */ -proto.CarServer.MediaUpdateVolume.prototype.clearVolumeDelta = function() { - return jspb.Message.setOneofField(this, 1, proto.CarServer.MediaUpdateVolume.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.MediaUpdateVolume.prototype.hasVolumeDelta = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional float volume_absolute_float = 3; - * @return {number} - */ -proto.CarServer.MediaUpdateVolume.prototype.getVolumeAbsoluteFloat = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.MediaUpdateVolume} returns this - */ -proto.CarServer.MediaUpdateVolume.prototype.setVolumeAbsoluteFloat = function(value) { - return jspb.Message.setOneofField(this, 3, proto.CarServer.MediaUpdateVolume.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.CarServer.MediaUpdateVolume} returns this - */ -proto.CarServer.MediaUpdateVolume.prototype.clearVolumeAbsoluteFloat = function() { - return jspb.Message.setOneofField(this, 3, proto.CarServer.MediaUpdateVolume.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.MediaUpdateVolume.prototype.hasVolumeAbsoluteFloat = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.MediaNextFavorite.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.MediaNextFavorite.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.MediaNextFavorite} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaNextFavorite.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.MediaNextFavorite} - */ -proto.CarServer.MediaNextFavorite.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.MediaNextFavorite; - return proto.CarServer.MediaNextFavorite.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.MediaNextFavorite} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.MediaNextFavorite} - */ -proto.CarServer.MediaNextFavorite.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.MediaNextFavorite.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.MediaNextFavorite.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.MediaNextFavorite} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaNextFavorite.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.MediaPreviousFavorite.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.MediaPreviousFavorite.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.MediaPreviousFavorite} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaPreviousFavorite.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.MediaPreviousFavorite} - */ -proto.CarServer.MediaPreviousFavorite.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.MediaPreviousFavorite; - return proto.CarServer.MediaPreviousFavorite.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.MediaPreviousFavorite} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.MediaPreviousFavorite} - */ -proto.CarServer.MediaPreviousFavorite.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.MediaPreviousFavorite.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.MediaPreviousFavorite.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.MediaPreviousFavorite} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaPreviousFavorite.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.MediaNextTrack.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.MediaNextTrack.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.MediaNextTrack} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaNextTrack.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.MediaNextTrack} - */ -proto.CarServer.MediaNextTrack.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.MediaNextTrack; - return proto.CarServer.MediaNextTrack.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.MediaNextTrack} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.MediaNextTrack} - */ -proto.CarServer.MediaNextTrack.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.MediaNextTrack.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.MediaNextTrack.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.MediaNextTrack} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaNextTrack.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.MediaPreviousTrack.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.MediaPreviousTrack.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.MediaPreviousTrack} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaPreviousTrack.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.MediaPreviousTrack} - */ -proto.CarServer.MediaPreviousTrack.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.MediaPreviousTrack; - return proto.CarServer.MediaPreviousTrack.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.MediaPreviousTrack} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.MediaPreviousTrack} - */ -proto.CarServer.MediaPreviousTrack.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.MediaPreviousTrack.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.MediaPreviousTrack.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.MediaPreviousTrack} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.MediaPreviousTrack.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlCancelSoftwareUpdateAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlCancelSoftwareUpdateAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlCancelSoftwareUpdateAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlCancelSoftwareUpdateAction.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlCancelSoftwareUpdateAction} - */ -proto.CarServer.VehicleControlCancelSoftwareUpdateAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlCancelSoftwareUpdateAction; - return proto.CarServer.VehicleControlCancelSoftwareUpdateAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlCancelSoftwareUpdateAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlCancelSoftwareUpdateAction} - */ -proto.CarServer.VehicleControlCancelSoftwareUpdateAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlCancelSoftwareUpdateAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlCancelSoftwareUpdateAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlCancelSoftwareUpdateAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlCancelSoftwareUpdateAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlFlashLightsAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlFlashLightsAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlFlashLightsAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlFlashLightsAction.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlFlashLightsAction} - */ -proto.CarServer.VehicleControlFlashLightsAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlFlashLightsAction; - return proto.CarServer.VehicleControlFlashLightsAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlFlashLightsAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlFlashLightsAction} - */ -proto.CarServer.VehicleControlFlashLightsAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlFlashLightsAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlFlashLightsAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlFlashLightsAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlFlashLightsAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlHonkHornAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlHonkHornAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlHonkHornAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlHonkHornAction.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlHonkHornAction} - */ -proto.CarServer.VehicleControlHonkHornAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlHonkHornAction; - return proto.CarServer.VehicleControlHonkHornAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlHonkHornAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlHonkHornAction} - */ -proto.CarServer.VehicleControlHonkHornAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlHonkHornAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlHonkHornAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlHonkHornAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlHonkHornAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlResetValetPinAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlResetValetPinAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlResetValetPinAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlResetValetPinAction.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlResetValetPinAction} - */ -proto.CarServer.VehicleControlResetValetPinAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlResetValetPinAction; - return proto.CarServer.VehicleControlResetValetPinAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlResetValetPinAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlResetValetPinAction} - */ -proto.CarServer.VehicleControlResetValetPinAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlResetValetPinAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlResetValetPinAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlResetValetPinAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlResetValetPinAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.toObject = function(includeInstance, msg) { - var f, obj = { - offsetSec: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlScheduleSoftwareUpdateAction; - return proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setOffsetSec(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOffsetSec(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } -}; - - -/** - * optional int32 offset_sec = 1; - * @return {number} - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.prototype.getOffsetSec = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.VehicleControlScheduleSoftwareUpdateAction} returns this - */ -proto.CarServer.VehicleControlScheduleSoftwareUpdateAction.prototype.setOffsetSec = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlSetSentryModeAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlSetSentryModeAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlSetSentryModeAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSetSentryModeAction.toObject = function(includeInstance, msg) { - var f, obj = { - on: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlSetSentryModeAction} - */ -proto.CarServer.VehicleControlSetSentryModeAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlSetSentryModeAction; - return proto.CarServer.VehicleControlSetSentryModeAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlSetSentryModeAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlSetSentryModeAction} - */ -proto.CarServer.VehicleControlSetSentryModeAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOn(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlSetSentryModeAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlSetSentryModeAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlSetSentryModeAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSetSentryModeAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool on = 1; - * @return {boolean} - */ -proto.CarServer.VehicleControlSetSentryModeAction.prototype.getOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.VehicleControlSetSentryModeAction} returns this - */ -proto.CarServer.VehicleControlSetSentryModeAction.prototype.setOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlSetValetModeAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlSetValetModeAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlSetValetModeAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSetValetModeAction.toObject = function(includeInstance, msg) { - var f, obj = { - on: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - password: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlSetValetModeAction} - */ -proto.CarServer.VehicleControlSetValetModeAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlSetValetModeAction; - return proto.CarServer.VehicleControlSetValetModeAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlSetValetModeAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlSetValetModeAction} - */ -proto.CarServer.VehicleControlSetValetModeAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOn(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlSetValetModeAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlSetValetModeAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlSetValetModeAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSetValetModeAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional bool on = 1; - * @return {boolean} - */ -proto.CarServer.VehicleControlSetValetModeAction.prototype.getOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.VehicleControlSetValetModeAction} returns this - */ -proto.CarServer.VehicleControlSetValetModeAction.prototype.setOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.CarServer.VehicleControlSetValetModeAction.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.VehicleControlSetValetModeAction} returns this - */ -proto.CarServer.VehicleControlSetValetModeAction.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_ = [[1,2],[3,4,5]]; - -/** - * @enum {number} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.SunroofLevelCase = { - SUNROOF_LEVEL_NOT_SET: 0, - ABSOLUTE_LEVEL: 1, - DELTA_LEVEL: 2 -}; - -/** - * @return {proto.CarServer.VehicleControlSunroofOpenCloseAction.SunroofLevelCase} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.getSunroofLevelCase = function() { - return /** @type {proto.CarServer.VehicleControlSunroofOpenCloseAction.SunroofLevelCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.ActionCase = { - ACTION_NOT_SET: 0, - VENT: 3, - CLOSE: 4, - OPEN: 5 -}; - -/** - * @return {proto.CarServer.VehicleControlSunroofOpenCloseAction.ActionCase} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.getActionCase = function() { - return /** @type {proto.CarServer.VehicleControlSunroofOpenCloseAction.ActionCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[1])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlSunroofOpenCloseAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlSunroofOpenCloseAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.toObject = function(includeInstance, msg) { - var f, obj = { - absoluteLevel: jspb.Message.getFieldWithDefault(msg, 1, 0), - deltaLevel: jspb.Message.getFieldWithDefault(msg, 2, 0), - vent: (f = msg.getVent()) && common_pb.Void.toObject(includeInstance, f), - close: (f = msg.getClose()) && common_pb.Void.toObject(includeInstance, f), - open: (f = msg.getOpen()) && common_pb.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlSunroofOpenCloseAction; - return proto.CarServer.VehicleControlSunroofOpenCloseAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlSunroofOpenCloseAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setAbsoluteLevel(value); - break; - case 2: - var value = /** @type {number} */ (reader.readSint32()); - msg.setDeltaLevel(value); - break; - case 3: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setVent(value); - break; - case 4: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setClose(value); - break; - case 5: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setOpen(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlSunroofOpenCloseAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlSunroofOpenCloseAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {number} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeInt32( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeSint32( - 2, - f - ); - } - f = message.getVent(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getClose(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getOpen(); - if (f != null) { - writer.writeMessage( - 5, - f, - common_pb.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 absolute_level = 1; - * @return {number} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.getAbsoluteLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.setAbsoluteLevel = function(value) { - return jspb.Message.setOneofField(this, 1, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.clearAbsoluteLevel = function() { - return jspb.Message.setOneofField(this, 1, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.hasAbsoluteLevel = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional sint32 delta_level = 2; - * @return {number} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.getDeltaLevel = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.setDeltaLevel = function(value) { - return jspb.Message.setOneofField(this, 2, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.clearDeltaLevel = function() { - return jspb.Message.setOneofField(this, 2, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.hasDeltaLevel = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Void vent = 3; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.getVent = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 3)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this -*/ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.setVent = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.clearVent = function() { - return this.setVent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.hasVent = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Void close = 4; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.getClose = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 4)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this -*/ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.setClose = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.clearClose = function() { - return this.setClose(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.hasClose = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Void open = 5; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.getOpen = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 5)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this -*/ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.setOpen = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.CarServer.VehicleControlSunroofOpenCloseAction.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleControlSunroofOpenCloseAction} returns this - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.clearOpen = function() { - return this.setOpen(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlSunroofOpenCloseAction.prototype.hasOpen = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlTriggerHomelinkAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlTriggerHomelinkAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.toObject = function(includeInstance, msg) { - var f, obj = { - location: (f = msg.getLocation()) && common_pb.LatLong.toObject(includeInstance, f), - token: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlTriggerHomelinkAction} - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlTriggerHomelinkAction; - return proto.CarServer.VehicleControlTriggerHomelinkAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlTriggerHomelinkAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlTriggerHomelinkAction} - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new common_pb.LatLong; - reader.readMessage(value,common_pb.LatLong.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlTriggerHomelinkAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlTriggerHomelinkAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 1, - f, - common_pb.LatLong.serializeBinaryToWriter - ); - } - f = message.getToken(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional LatLong location = 1; - * @return {?proto.CarServer.LatLong} - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.getLocation = function() { - return /** @type{?proto.CarServer.LatLong} */ ( - jspb.Message.getWrapperField(this, common_pb.LatLong, 1)); -}; - - -/** - * @param {?proto.CarServer.LatLong|undefined} value - * @return {!proto.CarServer.VehicleControlTriggerHomelinkAction} returns this -*/ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.setLocation = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleControlTriggerHomelinkAction} returns this - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.clearLocation = function() { - return this.setLocation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.hasLocation = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string token = 2; - * @return {string} - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.getToken = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.VehicleControlTriggerHomelinkAction} returns this - */ -proto.CarServer.VehicleControlTriggerHomelinkAction.prototype.setToken = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.VehicleControlWindowAction.oneofGroups_ = [[2,3,4]]; - -/** - * @enum {number} - */ -proto.CarServer.VehicleControlWindowAction.ActionCase = { - ACTION_NOT_SET: 0, - UNKNOWN: 2, - VENT: 3, - CLOSE: 4 -}; - -/** - * @return {proto.CarServer.VehicleControlWindowAction.ActionCase} - */ -proto.CarServer.VehicleControlWindowAction.prototype.getActionCase = function() { - return /** @type {proto.CarServer.VehicleControlWindowAction.ActionCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.VehicleControlWindowAction.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlWindowAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlWindowAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlWindowAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlWindowAction.toObject = function(includeInstance, msg) { - var f, obj = { - unknown: (f = msg.getUnknown()) && common_pb.Void.toObject(includeInstance, f), - vent: (f = msg.getVent()) && common_pb.Void.toObject(includeInstance, f), - close: (f = msg.getClose()) && common_pb.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlWindowAction} - */ -proto.CarServer.VehicleControlWindowAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlWindowAction; - return proto.CarServer.VehicleControlWindowAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlWindowAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlWindowAction} - */ -proto.CarServer.VehicleControlWindowAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setUnknown(value); - break; - case 3: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setVent(value); - break; - case 4: - var value = new common_pb.Void; - reader.readMessage(value,common_pb.Void.deserializeBinaryFromReader); - msg.setClose(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlWindowAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlWindowAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlWindowAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlWindowAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUnknown(); - if (f != null) { - writer.writeMessage( - 2, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getVent(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.Void.serializeBinaryToWriter - ); - } - f = message.getClose(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Void unknown = 2; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.VehicleControlWindowAction.prototype.getUnknown = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 2)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.VehicleControlWindowAction} returns this -*/ -proto.CarServer.VehicleControlWindowAction.prototype.setUnknown = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.VehicleControlWindowAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleControlWindowAction} returns this - */ -proto.CarServer.VehicleControlWindowAction.prototype.clearUnknown = function() { - return this.setUnknown(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlWindowAction.prototype.hasUnknown = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Void vent = 3; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.VehicleControlWindowAction.prototype.getVent = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 3)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.VehicleControlWindowAction} returns this -*/ -proto.CarServer.VehicleControlWindowAction.prototype.setVent = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.CarServer.VehicleControlWindowAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleControlWindowAction} returns this - */ -proto.CarServer.VehicleControlWindowAction.prototype.clearVent = function() { - return this.setVent(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlWindowAction.prototype.hasVent = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Void close = 4; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.VehicleControlWindowAction.prototype.getClose = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, common_pb.Void, 4)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.VehicleControlWindowAction} returns this -*/ -proto.CarServer.VehicleControlWindowAction.prototype.setClose = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.CarServer.VehicleControlWindowAction.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleControlWindowAction} returns this - */ -proto.CarServer.VehicleControlWindowAction.prototype.clearClose = function() { - return this.setClose(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleControlWindowAction.prototype.hasClose = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacBioweaponModeAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacBioweaponModeAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacBioweaponModeAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacBioweaponModeAction.toObject = function(includeInstance, msg) { - var f, obj = { - on: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - manualOverride: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacBioweaponModeAction} - */ -proto.CarServer.HvacBioweaponModeAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacBioweaponModeAction; - return proto.CarServer.HvacBioweaponModeAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacBioweaponModeAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacBioweaponModeAction} - */ -proto.CarServer.HvacBioweaponModeAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOn(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setManualOverride(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacBioweaponModeAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacBioweaponModeAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacBioweaponModeAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacBioweaponModeAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getManualOverride(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional bool on = 1; - * @return {boolean} - */ -proto.CarServer.HvacBioweaponModeAction.prototype.getOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacBioweaponModeAction} returns this - */ -proto.CarServer.HvacBioweaponModeAction.prototype.setOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool manual_override = 2; - * @return {boolean} - */ -proto.CarServer.HvacBioweaponModeAction.prototype.getManualOverride = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacBioweaponModeAction} returns this - */ -proto.CarServer.HvacBioweaponModeAction.prototype.setManualOverride = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.CarServer.AutoSeatClimateAction.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.AutoSeatClimateAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.AutoSeatClimateAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.AutoSeatClimateAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.AutoSeatClimateAction.toObject = function(includeInstance, msg) { - var f, obj = { - carseatList: jspb.Message.toObjectList(msg.getCarseatList(), - proto.CarServer.AutoSeatClimateAction.CarSeat.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.AutoSeatClimateAction} - */ -proto.CarServer.AutoSeatClimateAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.AutoSeatClimateAction; - return proto.CarServer.AutoSeatClimateAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.AutoSeatClimateAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.AutoSeatClimateAction} - */ -proto.CarServer.AutoSeatClimateAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.CarServer.AutoSeatClimateAction.CarSeat; - reader.readMessage(value,proto.CarServer.AutoSeatClimateAction.CarSeat.deserializeBinaryFromReader); - msg.addCarseat(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.AutoSeatClimateAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.AutoSeatClimateAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.AutoSeatClimateAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.AutoSeatClimateAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCarseatList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.CarServer.AutoSeatClimateAction.CarSeat.serializeBinaryToWriter - ); - } -}; - - -/** - * @enum {number} - */ -proto.CarServer.AutoSeatClimateAction.AutoSeatPosition_E = { - AUTOSEATPOSITION_UNKNOWN: 0, - AUTOSEATPOSITION_FRONTLEFT: 1, - AUTOSEATPOSITION_FRONTRIGHT: 2 -}; - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.AutoSeatClimateAction.CarSeat.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.AutoSeatClimateAction.CarSeat} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.toObject = function(includeInstance, msg) { - var f, obj = { - on: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - seatPosition: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.AutoSeatClimateAction.CarSeat} - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.AutoSeatClimateAction.CarSeat; - return proto.CarServer.AutoSeatClimateAction.CarSeat.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.AutoSeatClimateAction.CarSeat} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.AutoSeatClimateAction.CarSeat} - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOn(value); - break; - case 2: - var value = /** @type {!proto.CarServer.AutoSeatClimateAction.AutoSeatPosition_E} */ (reader.readEnum()); - msg.setSeatPosition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.AutoSeatClimateAction.CarSeat.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.AutoSeatClimateAction.CarSeat} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getSeatPosition(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional bool on = 1; - * @return {boolean} - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.prototype.getOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.AutoSeatClimateAction.CarSeat} returns this - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.prototype.setOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional AutoSeatPosition_E seat_position = 2; - * @return {!proto.CarServer.AutoSeatClimateAction.AutoSeatPosition_E} - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.prototype.getSeatPosition = function() { - return /** @type {!proto.CarServer.AutoSeatClimateAction.AutoSeatPosition_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.CarServer.AutoSeatClimateAction.AutoSeatPosition_E} value - * @return {!proto.CarServer.AutoSeatClimateAction.CarSeat} returns this - */ -proto.CarServer.AutoSeatClimateAction.CarSeat.prototype.setSeatPosition = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * repeated CarSeat carseat = 1; - * @return {!Array} - */ -proto.CarServer.AutoSeatClimateAction.prototype.getCarseatList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.CarServer.AutoSeatClimateAction.CarSeat, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.CarServer.AutoSeatClimateAction} returns this -*/ -proto.CarServer.AutoSeatClimateAction.prototype.setCarseatList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.CarServer.AutoSeatClimateAction.CarSeat=} opt_value - * @param {number=} opt_index - * @return {!proto.CarServer.AutoSeatClimateAction.CarSeat} - */ -proto.CarServer.AutoSeatClimateAction.prototype.addCarseat = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.CarServer.AutoSeatClimateAction.CarSeat, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.CarServer.AutoSeatClimateAction} returns this - */ -proto.CarServer.AutoSeatClimateAction.prototype.clearCarseatList = function() { - return this.setCarseatList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.Ping.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.Ping.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.Ping} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Ping.toObject = function(includeInstance, msg) { - var f, obj = { - pingId: jspb.Message.getFieldWithDefault(msg, 1, 0), - localTimestamp: (f = msg.getLocalTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastRemoteTimestamp: (f = msg.getLastRemoteTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.Ping} - */ -proto.CarServer.Ping.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.Ping; - return proto.CarServer.Ping.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.Ping} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.Ping} - */ -proto.CarServer.Ping.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPingId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLocalTimestamp(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setLastRemoteTimestamp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.Ping.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.Ping.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.Ping} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Ping.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPingId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getLocalTimestamp(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLastRemoteTimestamp(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 ping_id = 1; - * @return {number} - */ -proto.CarServer.Ping.prototype.getPingId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.Ping} returns this - */ -proto.CarServer.Ping.prototype.setPingId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp local_timestamp = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.CarServer.Ping.prototype.getLocalTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.CarServer.Ping} returns this -*/ -proto.CarServer.Ping.prototype.setLocalTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Ping} returns this - */ -proto.CarServer.Ping.prototype.clearLocalTimestamp = function() { - return this.setLocalTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Ping.prototype.hasLocalTimestamp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional google.protobuf.Timestamp last_remote_timestamp = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.CarServer.Ping.prototype.getLastRemoteTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.CarServer.Ping} returns this -*/ -proto.CarServer.Ping.prototype.setLastRemoteTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.Ping} returns this - */ -proto.CarServer.Ping.prototype.clearLastRemoteTimestamp = function() { - return this.setLastRemoteTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.Ping.prototype.hasLastRemoteTimestamp = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ScheduledChargingAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ScheduledChargingAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ScheduledChargingAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ScheduledChargingAction.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - chargingTime: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ScheduledChargingAction} - */ -proto.CarServer.ScheduledChargingAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ScheduledChargingAction; - return proto.CarServer.ScheduledChargingAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ScheduledChargingAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ScheduledChargingAction} - */ -proto.CarServer.ScheduledChargingAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setChargingTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ScheduledChargingAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ScheduledChargingAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ScheduledChargingAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ScheduledChargingAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getChargingTime(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.CarServer.ScheduledChargingAction.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.ScheduledChargingAction} returns this - */ -proto.CarServer.ScheduledChargingAction.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional int32 charging_time = 2; - * @return {number} - */ -proto.CarServer.ScheduledChargingAction.prototype.getChargingTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ScheduledChargingAction} returns this - */ -proto.CarServer.ScheduledChargingAction.prototype.setChargingTime = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ScheduledDepartureAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ScheduledDepartureAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ScheduledDepartureAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ScheduledDepartureAction.toObject = function(includeInstance, msg) { - var f, obj = { - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - departureTime: jspb.Message.getFieldWithDefault(msg, 2, 0), - preconditioningTimes: (f = msg.getPreconditioningTimes()) && common_pb.PreconditioningTimes.toObject(includeInstance, f), - offPeakChargingTimes: (f = msg.getOffPeakChargingTimes()) && common_pb.OffPeakChargingTimes.toObject(includeInstance, f), - offPeakHoursEndTime: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ScheduledDepartureAction} - */ -proto.CarServer.ScheduledDepartureAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ScheduledDepartureAction; - return proto.CarServer.ScheduledDepartureAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ScheduledDepartureAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ScheduledDepartureAction} - */ -proto.CarServer.ScheduledDepartureAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setDepartureTime(value); - break; - case 3: - var value = new common_pb.PreconditioningTimes; - reader.readMessage(value,common_pb.PreconditioningTimes.deserializeBinaryFromReader); - msg.setPreconditioningTimes(value); - break; - case 4: - var value = new common_pb.OffPeakChargingTimes; - reader.readMessage(value,common_pb.OffPeakChargingTimes.deserializeBinaryFromReader); - msg.setOffPeakChargingTimes(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setOffPeakHoursEndTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ScheduledDepartureAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ScheduledDepartureAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ScheduledDepartureAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ScheduledDepartureAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEnabled(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getDepartureTime(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getPreconditioningTimes(); - if (f != null) { - writer.writeMessage( - 3, - f, - common_pb.PreconditioningTimes.serializeBinaryToWriter - ); - } - f = message.getOffPeakChargingTimes(); - if (f != null) { - writer.writeMessage( - 4, - f, - common_pb.OffPeakChargingTimes.serializeBinaryToWriter - ); - } - f = message.getOffPeakHoursEndTime(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } -}; - - -/** - * optional bool enabled = 1; - * @return {boolean} - */ -proto.CarServer.ScheduledDepartureAction.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.ScheduledDepartureAction} returns this - */ -proto.CarServer.ScheduledDepartureAction.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional int32 departure_time = 2; - * @return {number} - */ -proto.CarServer.ScheduledDepartureAction.prototype.getDepartureTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ScheduledDepartureAction} returns this - */ -proto.CarServer.ScheduledDepartureAction.prototype.setDepartureTime = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional PreconditioningTimes preconditioning_times = 3; - * @return {?proto.CarServer.PreconditioningTimes} - */ -proto.CarServer.ScheduledDepartureAction.prototype.getPreconditioningTimes = function() { - return /** @type{?proto.CarServer.PreconditioningTimes} */ ( - jspb.Message.getWrapperField(this, common_pb.PreconditioningTimes, 3)); -}; - - -/** - * @param {?proto.CarServer.PreconditioningTimes|undefined} value - * @return {!proto.CarServer.ScheduledDepartureAction} returns this -*/ -proto.CarServer.ScheduledDepartureAction.prototype.setPreconditioningTimes = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ScheduledDepartureAction} returns this - */ -proto.CarServer.ScheduledDepartureAction.prototype.clearPreconditioningTimes = function() { - return this.setPreconditioningTimes(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ScheduledDepartureAction.prototype.hasPreconditioningTimes = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional OffPeakChargingTimes off_peak_charging_times = 4; - * @return {?proto.CarServer.OffPeakChargingTimes} - */ -proto.CarServer.ScheduledDepartureAction.prototype.getOffPeakChargingTimes = function() { - return /** @type{?proto.CarServer.OffPeakChargingTimes} */ ( - jspb.Message.getWrapperField(this, common_pb.OffPeakChargingTimes, 4)); -}; - - -/** - * @param {?proto.CarServer.OffPeakChargingTimes|undefined} value - * @return {!proto.CarServer.ScheduledDepartureAction} returns this -*/ -proto.CarServer.ScheduledDepartureAction.prototype.setOffPeakChargingTimes = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.ScheduledDepartureAction} returns this - */ -proto.CarServer.ScheduledDepartureAction.prototype.clearOffPeakChargingTimes = function() { - return this.setOffPeakChargingTimes(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.ScheduledDepartureAction.prototype.hasOffPeakChargingTimes = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int32 off_peak_hours_end_time = 5; - * @return {number} - */ -proto.CarServer.ScheduledDepartureAction.prototype.getOffPeakHoursEndTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ScheduledDepartureAction} returns this - */ -proto.CarServer.ScheduledDepartureAction.prototype.setOffPeakHoursEndTime = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.HvacClimateKeeperAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.HvacClimateKeeperAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.HvacClimateKeeperAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacClimateKeeperAction.toObject = function(includeInstance, msg) { - var f, obj = { - climatekeeperaction: jspb.Message.getFieldWithDefault(msg, 1, 0), - manualOverride: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.HvacClimateKeeperAction} - */ -proto.CarServer.HvacClimateKeeperAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.HvacClimateKeeperAction; - return proto.CarServer.HvacClimateKeeperAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.HvacClimateKeeperAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.HvacClimateKeeperAction} - */ -proto.CarServer.HvacClimateKeeperAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.CarServer.HvacClimateKeeperAction.ClimateKeeperAction_E} */ (reader.readEnum()); - msg.setClimatekeeperaction(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setManualOverride(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.HvacClimateKeeperAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.HvacClimateKeeperAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.HvacClimateKeeperAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.HvacClimateKeeperAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClimatekeeperaction(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getManualOverride(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * @enum {number} - */ -proto.CarServer.HvacClimateKeeperAction.ClimateKeeperAction_E = { - CLIMATEKEEPERACTION_OFF: 0, - CLIMATEKEEPERACTION_ON: 1, - CLIMATEKEEPERACTION_DOG: 2, - CLIMATEKEEPERACTION_CAMP: 3 -}; - -/** - * optional ClimateKeeperAction_E ClimateKeeperAction = 1; - * @return {!proto.CarServer.HvacClimateKeeperAction.ClimateKeeperAction_E} - */ -proto.CarServer.HvacClimateKeeperAction.prototype.getClimatekeeperaction = function() { - return /** @type {!proto.CarServer.HvacClimateKeeperAction.ClimateKeeperAction_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.CarServer.HvacClimateKeeperAction.ClimateKeeperAction_E} value - * @return {!proto.CarServer.HvacClimateKeeperAction} returns this - */ -proto.CarServer.HvacClimateKeeperAction.prototype.setClimatekeeperaction = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional bool manual_override = 2; - * @return {boolean} - */ -proto.CarServer.HvacClimateKeeperAction.prototype.getManualOverride = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.HvacClimateKeeperAction} returns this - */ -proto.CarServer.HvacClimateKeeperAction.prototype.setManualOverride = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.SetChargingAmpsAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.SetChargingAmpsAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.SetChargingAmpsAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetChargingAmpsAction.toObject = function(includeInstance, msg) { - var f, obj = { - chargingAmps: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.SetChargingAmpsAction} - */ -proto.CarServer.SetChargingAmpsAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.SetChargingAmpsAction; - return proto.CarServer.SetChargingAmpsAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.SetChargingAmpsAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.SetChargingAmpsAction} - */ -proto.CarServer.SetChargingAmpsAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setChargingAmps(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.SetChargingAmpsAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.SetChargingAmpsAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.SetChargingAmpsAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetChargingAmpsAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChargingAmps(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } -}; - - -/** - * optional int32 charging_amps = 1; - * @return {number} - */ -proto.CarServer.SetChargingAmpsAction.prototype.getChargingAmps = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.SetChargingAmpsAction} returns this - */ -proto.CarServer.SetChargingAmpsAction.prototype.setChargingAmps = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.RemoveChargeScheduleAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.RemoveChargeScheduleAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.RemoveChargeScheduleAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.RemoveChargeScheduleAction.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.RemoveChargeScheduleAction} - */ -proto.CarServer.RemoveChargeScheduleAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.RemoveChargeScheduleAction; - return proto.CarServer.RemoveChargeScheduleAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.RemoveChargeScheduleAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.RemoveChargeScheduleAction} - */ -proto.CarServer.RemoveChargeScheduleAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.RemoveChargeScheduleAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.RemoveChargeScheduleAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.RemoveChargeScheduleAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.RemoveChargeScheduleAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {number} - */ -proto.CarServer.RemoveChargeScheduleAction.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.RemoveChargeScheduleAction} returns this - */ -proto.CarServer.RemoveChargeScheduleAction.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.BatchRemoveChargeSchedulesAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.BatchRemoveChargeSchedulesAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.toObject = function(includeInstance, msg) { - var f, obj = { - home: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - work: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - other: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.BatchRemoveChargeSchedulesAction} - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.BatchRemoveChargeSchedulesAction; - return proto.CarServer.BatchRemoveChargeSchedulesAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.BatchRemoveChargeSchedulesAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.BatchRemoveChargeSchedulesAction} - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHome(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setWork(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOther(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.BatchRemoveChargeSchedulesAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.BatchRemoveChargeSchedulesAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHome(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getWork(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getOther(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional bool home = 1; - * @return {boolean} - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.getHome = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.BatchRemoveChargeSchedulesAction} returns this - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.setHome = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool work = 2; - * @return {boolean} - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.getWork = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.BatchRemoveChargeSchedulesAction} returns this - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.setWork = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool other = 3; - * @return {boolean} - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.getOther = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.BatchRemoveChargeSchedulesAction} returns this - */ -proto.CarServer.BatchRemoveChargeSchedulesAction.prototype.setOther = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.BatchRemovePreconditionSchedulesAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.BatchRemovePreconditionSchedulesAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.toObject = function(includeInstance, msg) { - var f, obj = { - home: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - work: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - other: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.BatchRemovePreconditionSchedulesAction} - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.BatchRemovePreconditionSchedulesAction; - return proto.CarServer.BatchRemovePreconditionSchedulesAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.BatchRemovePreconditionSchedulesAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.BatchRemovePreconditionSchedulesAction} - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setHome(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setWork(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOther(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.BatchRemovePreconditionSchedulesAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.BatchRemovePreconditionSchedulesAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHome(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getWork(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getOther(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional bool home = 1; - * @return {boolean} - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.getHome = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.BatchRemovePreconditionSchedulesAction} returns this - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.setHome = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool work = 2; - * @return {boolean} - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.getWork = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.BatchRemovePreconditionSchedulesAction} returns this - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.setWork = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool other = 3; - * @return {boolean} - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.getOther = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.BatchRemovePreconditionSchedulesAction} returns this - */ -proto.CarServer.BatchRemovePreconditionSchedulesAction.prototype.setOther = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.RemovePreconditionScheduleAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.RemovePreconditionScheduleAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.RemovePreconditionScheduleAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.RemovePreconditionScheduleAction.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.RemovePreconditionScheduleAction} - */ -proto.CarServer.RemovePreconditionScheduleAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.RemovePreconditionScheduleAction; - return proto.CarServer.RemovePreconditionScheduleAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.RemovePreconditionScheduleAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.RemovePreconditionScheduleAction} - */ -proto.CarServer.RemovePreconditionScheduleAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.RemovePreconditionScheduleAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.RemovePreconditionScheduleAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.RemovePreconditionScheduleAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.RemovePreconditionScheduleAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {number} - */ -proto.CarServer.RemovePreconditionScheduleAction.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.RemovePreconditionScheduleAction} returns this - */ -proto.CarServer.RemovePreconditionScheduleAction.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.SetCabinOverheatProtectionAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.SetCabinOverheatProtectionAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.SetCabinOverheatProtectionAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetCabinOverheatProtectionAction.toObject = function(includeInstance, msg) { - var f, obj = { - on: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - fanOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.SetCabinOverheatProtectionAction} - */ -proto.CarServer.SetCabinOverheatProtectionAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.SetCabinOverheatProtectionAction; - return proto.CarServer.SetCabinOverheatProtectionAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.SetCabinOverheatProtectionAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.SetCabinOverheatProtectionAction} - */ -proto.CarServer.SetCabinOverheatProtectionAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOn(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFanOnly(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.SetCabinOverheatProtectionAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.SetCabinOverheatProtectionAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.SetCabinOverheatProtectionAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetCabinOverheatProtectionAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getFanOnly(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional bool on = 1; - * @return {boolean} - */ -proto.CarServer.SetCabinOverheatProtectionAction.prototype.getOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.SetCabinOverheatProtectionAction} returns this - */ -proto.CarServer.SetCabinOverheatProtectionAction.prototype.setOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool fan_only = 2; - * @return {boolean} - */ -proto.CarServer.SetCabinOverheatProtectionAction.prototype.getFanOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.SetCabinOverheatProtectionAction} returns this - */ -proto.CarServer.SetCabinOverheatProtectionAction.prototype.setFanOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.SetVehicleNameAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.SetVehicleNameAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.SetVehicleNameAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetVehicleNameAction.toObject = function(includeInstance, msg) { - var f, obj = { - vehiclename: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.SetVehicleNameAction} - */ -proto.CarServer.SetVehicleNameAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.SetVehicleNameAction; - return proto.CarServer.SetVehicleNameAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.SetVehicleNameAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.SetVehicleNameAction} - */ -proto.CarServer.SetVehicleNameAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVehiclename(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.SetVehicleNameAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.SetVehicleNameAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.SetVehicleNameAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetVehicleNameAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVehiclename(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string vehicleName = 1; - * @return {string} - */ -proto.CarServer.SetVehicleNameAction.prototype.getVehiclename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.SetVehicleNameAction} returns this - */ -proto.CarServer.SetVehicleNameAction.prototype.setVehiclename = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ChargePortDoorClose.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ChargePortDoorClose.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ChargePortDoorClose} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargePortDoorClose.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ChargePortDoorClose} - */ -proto.CarServer.ChargePortDoorClose.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ChargePortDoorClose; - return proto.CarServer.ChargePortDoorClose.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ChargePortDoorClose} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ChargePortDoorClose} - */ -proto.CarServer.ChargePortDoorClose.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ChargePortDoorClose.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ChargePortDoorClose.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ChargePortDoorClose} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargePortDoorClose.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ChargePortDoorOpen.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ChargePortDoorOpen.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ChargePortDoorOpen} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargePortDoorOpen.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ChargePortDoorOpen} - */ -proto.CarServer.ChargePortDoorOpen.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ChargePortDoorOpen; - return proto.CarServer.ChargePortDoorOpen.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ChargePortDoorOpen} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ChargePortDoorOpen} - */ -proto.CarServer.ChargePortDoorOpen.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ChargePortDoorOpen.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ChargePortDoorOpen.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ChargePortDoorOpen} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargePortDoorOpen.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.SetCopTempAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.SetCopTempAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.SetCopTempAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetCopTempAction.toObject = function(includeInstance, msg) { - var f, obj = { - copactivationtemp: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.SetCopTempAction} - */ -proto.CarServer.SetCopTempAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.SetCopTempAction; - return proto.CarServer.SetCopTempAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.SetCopTempAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.SetCopTempAction} - */ -proto.CarServer.SetCopTempAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.CarServer.ClimateState.CopActivationTemp} */ (reader.readEnum()); - msg.setCopactivationtemp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.SetCopTempAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.SetCopTempAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.SetCopTempAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.SetCopTempAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCopactivationtemp(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional ClimateState.CopActivationTemp copActivationTemp = 1; - * @return {!proto.CarServer.ClimateState.CopActivationTemp} - */ -proto.CarServer.SetCopTempAction.prototype.getCopactivationtemp = function() { - return /** @type {!proto.CarServer.ClimateState.CopActivationTemp} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.CarServer.ClimateState.CopActivationTemp} value - * @return {!proto.CarServer.SetCopTempAction} returns this - */ -proto.CarServer.SetCopTempAction.prototype.setCopactivationtemp = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlSetPinToDriveAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlSetPinToDriveAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlSetPinToDriveAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSetPinToDriveAction.toObject = function(includeInstance, msg) { - var f, obj = { - on: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - password: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlSetPinToDriveAction} - */ -proto.CarServer.VehicleControlSetPinToDriveAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlSetPinToDriveAction; - return proto.CarServer.VehicleControlSetPinToDriveAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlSetPinToDriveAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlSetPinToDriveAction} - */ -proto.CarServer.VehicleControlSetPinToDriveAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOn(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlSetPinToDriveAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlSetPinToDriveAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlSetPinToDriveAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlSetPinToDriveAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOn(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional bool on = 1; - * @return {boolean} - */ -proto.CarServer.VehicleControlSetPinToDriveAction.prototype.getOn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.VehicleControlSetPinToDriveAction} returns this - */ -proto.CarServer.VehicleControlSetPinToDriveAction.prototype.setOn = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string password = 2; - * @return {string} - */ -proto.CarServer.VehicleControlSetPinToDriveAction.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.VehicleControlSetPinToDriveAction} returns this - */ -proto.CarServer.VehicleControlSetPinToDriveAction.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleControlResetPinToDriveAction.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleControlResetPinToDriveAction.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleControlResetPinToDriveAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlResetPinToDriveAction.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleControlResetPinToDriveAction} - */ -proto.CarServer.VehicleControlResetPinToDriveAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleControlResetPinToDriveAction; - return proto.CarServer.VehicleControlResetPinToDriveAction.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleControlResetPinToDriveAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleControlResetPinToDriveAction} - */ -proto.CarServer.VehicleControlResetPinToDriveAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleControlResetPinToDriveAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleControlResetPinToDriveAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleControlResetPinToDriveAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleControlResetPinToDriveAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -/** - * @enum {number} - */ -proto.CarServer.OperationStatus_E = { - OPERATIONSTATUS_OK: 0, - OPERATIONSTATUS_ERROR: 1 -}; - -goog.object.extend(exports, proto.CarServer); diff --git a/src/pb2/common_pb.d.ts b/src/pb2/common_pb.d.ts deleted file mode 100644 index f7a4af4..0000000 --- a/src/pb2/common_pb.d.ts +++ /dev/null @@ -1,229 +0,0 @@ -// package: CarServer -// file: common.proto - -import * as jspb from "google-protobuf"; - -export class Void extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Void.AsObject; - static toObject(includeInstance: boolean, msg: Void): Void.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Void, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Void; - static deserializeBinaryFromReader(message: Void, reader: jspb.BinaryReader): Void; -} - -export namespace Void { - export type AsObject = { - } -} - -export class LatLong extends jspb.Message { - getLatitude(): number; - setLatitude(value: number): void; - - getLongitude(): number; - setLongitude(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LatLong.AsObject; - static toObject(includeInstance: boolean, msg: LatLong): LatLong.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: LatLong, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): LatLong; - static deserializeBinaryFromReader(message: LatLong, reader: jspb.BinaryReader): LatLong; -} - -export namespace LatLong { - export type AsObject = { - latitude: number, - longitude: number, - } -} - -export class PreconditioningTimes extends jspb.Message { - hasAllWeek(): boolean; - clearAllWeek(): void; - getAllWeek(): Void | undefined; - setAllWeek(value?: Void): void; - - hasWeekdays(): boolean; - clearWeekdays(): void; - getWeekdays(): Void | undefined; - setWeekdays(value?: Void): void; - - getTimesCase(): PreconditioningTimes.TimesCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PreconditioningTimes.AsObject; - static toObject(includeInstance: boolean, msg: PreconditioningTimes): PreconditioningTimes.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PreconditioningTimes, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PreconditioningTimes; - static deserializeBinaryFromReader(message: PreconditioningTimes, reader: jspb.BinaryReader): PreconditioningTimes; -} - -export namespace PreconditioningTimes { - export type AsObject = { - allWeek?: Void.AsObject, - weekdays?: Void.AsObject, - } - - export enum TimesCase { - TIMES_NOT_SET = 0, - ALL_WEEK = 1, - WEEKDAYS = 2, - } -} - -export class OffPeakChargingTimes extends jspb.Message { - hasAllWeek(): boolean; - clearAllWeek(): void; - getAllWeek(): Void | undefined; - setAllWeek(value?: Void): void; - - hasWeekdays(): boolean; - clearWeekdays(): void; - getWeekdays(): Void | undefined; - setWeekdays(value?: Void): void; - - getTimesCase(): OffPeakChargingTimes.TimesCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): OffPeakChargingTimes.AsObject; - static toObject(includeInstance: boolean, msg: OffPeakChargingTimes): OffPeakChargingTimes.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: OffPeakChargingTimes, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): OffPeakChargingTimes; - static deserializeBinaryFromReader(message: OffPeakChargingTimes, reader: jspb.BinaryReader): OffPeakChargingTimes; -} - -export namespace OffPeakChargingTimes { - export type AsObject = { - allWeek?: Void.AsObject, - weekdays?: Void.AsObject, - } - - export enum TimesCase { - TIMES_NOT_SET = 0, - ALL_WEEK = 1, - WEEKDAYS = 2, - } -} - -export class ChargeSchedule extends jspb.Message { - getId(): number; - setId(value: number): void; - - getName(): string; - setName(value: string): void; - - getDaysOfWeek(): number; - setDaysOfWeek(value: number): void; - - getStartEnabled(): boolean; - setStartEnabled(value: boolean): void; - - getStartTime(): number; - setStartTime(value: number): void; - - getEndEnabled(): boolean; - setEndEnabled(value: boolean): void; - - getEndTime(): number; - setEndTime(value: number): void; - - getOneTime(): boolean; - setOneTime(value: boolean): void; - - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getLatitude(): number; - setLatitude(value: number): void; - - getLongitude(): number; - setLongitude(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ChargeSchedule.AsObject; - static toObject(includeInstance: boolean, msg: ChargeSchedule): ChargeSchedule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ChargeSchedule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ChargeSchedule; - static deserializeBinaryFromReader(message: ChargeSchedule, reader: jspb.BinaryReader): ChargeSchedule; -} - -export namespace ChargeSchedule { - export type AsObject = { - id: number, - name: string, - daysOfWeek: number, - startEnabled: boolean, - startTime: number, - endEnabled: boolean, - endTime: number, - oneTime: boolean, - enabled: boolean, - latitude: number, - longitude: number, - } -} - -export class PreconditionSchedule extends jspb.Message { - getId(): number; - setId(value: number): void; - - getName(): string; - setName(value: string): void; - - getDaysOfWeek(): number; - setDaysOfWeek(value: number): void; - - getPreconditionTime(): number; - setPreconditionTime(value: number): void; - - getOneTime(): boolean; - setOneTime(value: boolean): void; - - getEnabled(): boolean; - setEnabled(value: boolean): void; - - getLatitude(): number; - setLatitude(value: number): void; - - getLongitude(): number; - setLongitude(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PreconditionSchedule.AsObject; - static toObject(includeInstance: boolean, msg: PreconditionSchedule): PreconditionSchedule.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PreconditionSchedule, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PreconditionSchedule; - static deserializeBinaryFromReader(message: PreconditionSchedule, reader: jspb.BinaryReader): PreconditionSchedule; -} - -export namespace PreconditionSchedule { - export type AsObject = { - id: number, - name: string, - daysOfWeek: number, - preconditionTime: number, - oneTime: boolean, - enabled: boolean, - latitude: number, - longitude: number, - } -} - -export interface InvalidMap { - INVALID: 0; -} - -export const Invalid: InvalidMap; - diff --git a/src/pb2/common_pb.js b/src/pb2/common_pb.js deleted file mode 100644 index 94a07f8..0000000 --- a/src/pb2/common_pb.js +++ /dev/null @@ -1,1653 +0,0 @@ -// source: common.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.CarServer.ChargeSchedule', null, global); -goog.exportSymbol('proto.CarServer.Invalid', null, global); -goog.exportSymbol('proto.CarServer.LatLong', null, global); -goog.exportSymbol('proto.CarServer.OffPeakChargingTimes', null, global); -goog.exportSymbol('proto.CarServer.OffPeakChargingTimes.TimesCase', null, global); -goog.exportSymbol('proto.CarServer.PreconditionSchedule', null, global); -goog.exportSymbol('proto.CarServer.PreconditioningTimes', null, global); -goog.exportSymbol('proto.CarServer.PreconditioningTimes.TimesCase', null, global); -goog.exportSymbol('proto.CarServer.Void', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.Void = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.Void, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.Void.displayName = 'proto.CarServer.Void'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.LatLong = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.LatLong, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.LatLong.displayName = 'proto.CarServer.LatLong'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.PreconditioningTimes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.PreconditioningTimes.oneofGroups_); -}; -goog.inherits(proto.CarServer.PreconditioningTimes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.PreconditioningTimes.displayName = 'proto.CarServer.PreconditioningTimes'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.OffPeakChargingTimes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.CarServer.OffPeakChargingTimes.oneofGroups_); -}; -goog.inherits(proto.CarServer.OffPeakChargingTimes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.OffPeakChargingTimes.displayName = 'proto.CarServer.OffPeakChargingTimes'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ChargeSchedule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ChargeSchedule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ChargeSchedule.displayName = 'proto.CarServer.ChargeSchedule'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.PreconditionSchedule = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.PreconditionSchedule, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.PreconditionSchedule.displayName = 'proto.CarServer.PreconditionSchedule'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.Void.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.Void.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.Void} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Void.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.Void} - */ -proto.CarServer.Void.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.Void; - return proto.CarServer.Void.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.Void} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.Void} - */ -proto.CarServer.Void.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.Void.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.Void.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.Void} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.Void.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.LatLong.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.LatLong.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.LatLong} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.LatLong.toObject = function(includeInstance, msg) { - var f, obj = { - latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.LatLong} - */ -proto.CarServer.LatLong.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.LatLong; - return proto.CarServer.LatLong.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.LatLong} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.LatLong} - */ -proto.CarServer.LatLong.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLatitude(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLongitude(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.LatLong.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.LatLong.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.LatLong} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.LatLong.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLatitude(); - if (f !== 0.0) { - writer.writeFloat( - 1, - f - ); - } - f = message.getLongitude(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } -}; - - -/** - * optional float latitude = 1; - * @return {number} - */ -proto.CarServer.LatLong.prototype.getLatitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.LatLong} returns this - */ -proto.CarServer.LatLong.prototype.setLatitude = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional float longitude = 2; - * @return {number} - */ -proto.CarServer.LatLong.prototype.getLongitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.LatLong} returns this - */ -proto.CarServer.LatLong.prototype.setLongitude = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.PreconditioningTimes.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.CarServer.PreconditioningTimes.TimesCase = { - TIMES_NOT_SET: 0, - ALL_WEEK: 1, - WEEKDAYS: 2 -}; - -/** - * @return {proto.CarServer.PreconditioningTimes.TimesCase} - */ -proto.CarServer.PreconditioningTimes.prototype.getTimesCase = function() { - return /** @type {proto.CarServer.PreconditioningTimes.TimesCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.PreconditioningTimes.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.PreconditioningTimes.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.PreconditioningTimes.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.PreconditioningTimes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.PreconditioningTimes.toObject = function(includeInstance, msg) { - var f, obj = { - allWeek: (f = msg.getAllWeek()) && proto.CarServer.Void.toObject(includeInstance, f), - weekdays: (f = msg.getWeekdays()) && proto.CarServer.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.PreconditioningTimes} - */ -proto.CarServer.PreconditioningTimes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.PreconditioningTimes; - return proto.CarServer.PreconditioningTimes.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.PreconditioningTimes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.PreconditioningTimes} - */ -proto.CarServer.PreconditioningTimes.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.CarServer.Void; - reader.readMessage(value,proto.CarServer.Void.deserializeBinaryFromReader); - msg.setAllWeek(value); - break; - case 2: - var value = new proto.CarServer.Void; - reader.readMessage(value,proto.CarServer.Void.deserializeBinaryFromReader); - msg.setWeekdays(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.PreconditioningTimes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.PreconditioningTimes.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.PreconditioningTimes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.PreconditioningTimes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAllWeek(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.CarServer.Void.serializeBinaryToWriter - ); - } - f = message.getWeekdays(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.CarServer.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Void all_week = 1; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.PreconditioningTimes.prototype.getAllWeek = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.Void, 1)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.PreconditioningTimes} returns this -*/ -proto.CarServer.PreconditioningTimes.prototype.setAllWeek = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.CarServer.PreconditioningTimes.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.PreconditioningTimes} returns this - */ -proto.CarServer.PreconditioningTimes.prototype.clearAllWeek = function() { - return this.setAllWeek(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.PreconditioningTimes.prototype.hasAllWeek = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Void weekdays = 2; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.PreconditioningTimes.prototype.getWeekdays = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.Void, 2)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.PreconditioningTimes} returns this -*/ -proto.CarServer.PreconditioningTimes.prototype.setWeekdays = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.PreconditioningTimes.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.PreconditioningTimes} returns this - */ -proto.CarServer.PreconditioningTimes.prototype.clearWeekdays = function() { - return this.setWeekdays(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.PreconditioningTimes.prototype.hasWeekdays = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.CarServer.OffPeakChargingTimes.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.CarServer.OffPeakChargingTimes.TimesCase = { - TIMES_NOT_SET: 0, - ALL_WEEK: 1, - WEEKDAYS: 2 -}; - -/** - * @return {proto.CarServer.OffPeakChargingTimes.TimesCase} - */ -proto.CarServer.OffPeakChargingTimes.prototype.getTimesCase = function() { - return /** @type {proto.CarServer.OffPeakChargingTimes.TimesCase} */(jspb.Message.computeOneofCase(this, proto.CarServer.OffPeakChargingTimes.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.OffPeakChargingTimes.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.OffPeakChargingTimes.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.OffPeakChargingTimes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.OffPeakChargingTimes.toObject = function(includeInstance, msg) { - var f, obj = { - allWeek: (f = msg.getAllWeek()) && proto.CarServer.Void.toObject(includeInstance, f), - weekdays: (f = msg.getWeekdays()) && proto.CarServer.Void.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.OffPeakChargingTimes} - */ -proto.CarServer.OffPeakChargingTimes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.OffPeakChargingTimes; - return proto.CarServer.OffPeakChargingTimes.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.OffPeakChargingTimes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.OffPeakChargingTimes} - */ -proto.CarServer.OffPeakChargingTimes.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.CarServer.Void; - reader.readMessage(value,proto.CarServer.Void.deserializeBinaryFromReader); - msg.setAllWeek(value); - break; - case 2: - var value = new proto.CarServer.Void; - reader.readMessage(value,proto.CarServer.Void.deserializeBinaryFromReader); - msg.setWeekdays(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.OffPeakChargingTimes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.OffPeakChargingTimes.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.OffPeakChargingTimes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.OffPeakChargingTimes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAllWeek(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.CarServer.Void.serializeBinaryToWriter - ); - } - f = message.getWeekdays(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.CarServer.Void.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Void all_week = 1; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.OffPeakChargingTimes.prototype.getAllWeek = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.Void, 1)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.OffPeakChargingTimes} returns this -*/ -proto.CarServer.OffPeakChargingTimes.prototype.setAllWeek = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.CarServer.OffPeakChargingTimes.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.OffPeakChargingTimes} returns this - */ -proto.CarServer.OffPeakChargingTimes.prototype.clearAllWeek = function() { - return this.setAllWeek(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.OffPeakChargingTimes.prototype.hasAllWeek = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Void weekdays = 2; - * @return {?proto.CarServer.Void} - */ -proto.CarServer.OffPeakChargingTimes.prototype.getWeekdays = function() { - return /** @type{?proto.CarServer.Void} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.Void, 2)); -}; - - -/** - * @param {?proto.CarServer.Void|undefined} value - * @return {!proto.CarServer.OffPeakChargingTimes} returns this -*/ -proto.CarServer.OffPeakChargingTimes.prototype.setWeekdays = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.CarServer.OffPeakChargingTimes.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.OffPeakChargingTimes} returns this - */ -proto.CarServer.OffPeakChargingTimes.prototype.clearWeekdays = function() { - return this.setWeekdays(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.OffPeakChargingTimes.prototype.hasWeekdays = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ChargeSchedule.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ChargeSchedule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ChargeSchedule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargeSchedule.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - daysOfWeek: jspb.Message.getFieldWithDefault(msg, 3, 0), - startEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - startTime: jspb.Message.getFieldWithDefault(msg, 5, 0), - endEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - endTime: jspb.Message.getFieldWithDefault(msg, 7, 0), - oneTime: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), - longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ChargeSchedule} - */ -proto.CarServer.ChargeSchedule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ChargeSchedule; - return proto.CarServer.ChargeSchedule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ChargeSchedule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ChargeSchedule} - */ -proto.CarServer.ChargeSchedule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setDaysOfWeek(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setStartEnabled(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStartTime(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEndEnabled(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt32()); - msg.setEndTime(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOneTime(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 10: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLatitude(value); - break; - case 11: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLongitude(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ChargeSchedule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ChargeSchedule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ChargeSchedule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ChargeSchedule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDaysOfWeek(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getStartEnabled(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getStartTime(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getEndEnabled(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getEndTime(); - if (f !== 0) { - writer.writeInt32( - 7, - f - ); - } - f = message.getOneTime(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getEnabled(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getLatitude(); - if (f !== 0.0) { - writer.writeFloat( - 10, - f - ); - } - f = message.getLongitude(); - if (f !== 0.0) { - writer.writeFloat( - 11, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {number} - */ -proto.CarServer.ChargeSchedule.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.CarServer.ChargeSchedule.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 days_of_week = 3; - * @return {number} - */ -proto.CarServer.ChargeSchedule.prototype.getDaysOfWeek = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setDaysOfWeek = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool start_enabled = 4; - * @return {boolean} - */ -proto.CarServer.ChargeSchedule.prototype.getStartEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setStartEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional int32 start_time = 5; - * @return {number} - */ -proto.CarServer.ChargeSchedule.prototype.getStartTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setStartTime = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional bool end_enabled = 6; - * @return {boolean} - */ -proto.CarServer.ChargeSchedule.prototype.getEndEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setEndEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional int32 end_time = 7; - * @return {number} - */ -proto.CarServer.ChargeSchedule.prototype.getEndTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setEndTime = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional bool one_time = 8; - * @return {boolean} - */ -proto.CarServer.ChargeSchedule.prototype.getOneTime = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setOneTime = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool enabled = 9; - * @return {boolean} - */ -proto.CarServer.ChargeSchedule.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional float latitude = 10; - * @return {number} - */ -proto.CarServer.ChargeSchedule.prototype.getLatitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setLatitude = function(value) { - return jspb.Message.setProto3FloatField(this, 10, value); -}; - - -/** - * optional float longitude = 11; - * @return {number} - */ -proto.CarServer.ChargeSchedule.prototype.getLongitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.ChargeSchedule} returns this - */ -proto.CarServer.ChargeSchedule.prototype.setLongitude = function(value) { - return jspb.Message.setProto3FloatField(this, 11, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.PreconditionSchedule.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.PreconditionSchedule.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.PreconditionSchedule} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.PreconditionSchedule.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - daysOfWeek: jspb.Message.getFieldWithDefault(msg, 3, 0), - preconditionTime: jspb.Message.getFieldWithDefault(msg, 4, 0), - oneTime: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.PreconditionSchedule} - */ -proto.CarServer.PreconditionSchedule.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.PreconditionSchedule; - return proto.CarServer.PreconditionSchedule.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.PreconditionSchedule} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.PreconditionSchedule} - */ -proto.CarServer.PreconditionSchedule.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setDaysOfWeek(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPreconditionTime(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOneTime(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLatitude(value); - break; - case 8: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLongitude(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.PreconditionSchedule.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.PreconditionSchedule.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.PreconditionSchedule} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.PreconditionSchedule.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDaysOfWeek(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getPreconditionTime(); - if (f !== 0) { - writer.writeInt32( - 4, - f - ); - } - f = message.getOneTime(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getEnabled(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getLatitude(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } - f = message.getLongitude(); - if (f !== 0.0) { - writer.writeFloat( - 8, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {number} - */ -proto.CarServer.PreconditionSchedule.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string name = 2; - * @return {string} - */ -proto.CarServer.PreconditionSchedule.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int32 days_of_week = 3; - * @return {number} - */ -proto.CarServer.PreconditionSchedule.prototype.getDaysOfWeek = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setDaysOfWeek = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int32 precondition_time = 4; - * @return {number} - */ -proto.CarServer.PreconditionSchedule.prototype.getPreconditionTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setPreconditionTime = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bool one_time = 5; - * @return {boolean} - */ -proto.CarServer.PreconditionSchedule.prototype.getOneTime = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setOneTime = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool enabled = 6; - * @return {boolean} - */ -proto.CarServer.PreconditionSchedule.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional float latitude = 7; - * @return {number} - */ -proto.CarServer.PreconditionSchedule.prototype.getLatitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setLatitude = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); -}; - - -/** - * optional float longitude = 8; - * @return {number} - */ -proto.CarServer.PreconditionSchedule.prototype.getLongitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.CarServer.PreconditionSchedule} returns this - */ -proto.CarServer.PreconditionSchedule.prototype.setLongitude = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); -}; - - -/** - * @enum {number} - */ -proto.CarServer.Invalid = { - INVALID: 0 -}; - -goog.object.extend(exports, proto.CarServer); diff --git a/src/pb2/errors_pb.d.ts b/src/pb2/errors_pb.d.ts deleted file mode 100644 index 7602181..0000000 --- a/src/pb2/errors_pb.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -// package: Errors -// file: errors.proto - -import * as jspb from "google-protobuf"; - -export class NominalError extends jspb.Message { - getGenericerror(): GenericError_EMap[keyof GenericError_EMap]; - setGenericerror(value: GenericError_EMap[keyof GenericError_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NominalError.AsObject; - static toObject(includeInstance: boolean, msg: NominalError): NominalError.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NominalError, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NominalError; - static deserializeBinaryFromReader(message: NominalError, reader: jspb.BinaryReader): NominalError; -} - -export namespace NominalError { - export type AsObject = { - genericerror: GenericError_EMap[keyof GenericError_EMap], - } -} - -export interface GenericError_EMap { - GENERICERROR_NONE: 0; - GENERICERROR_UNKNOWN: 1; - GENERICERROR_CLOSURES_OPEN: 2; - GENERICERROR_ALREADY_ON: 3; - GENERICERROR_DISABLED_FOR_USER_COMMAND: 4; - GENERICERROR_VEHICLE_NOT_IN_PARK: 5; - GENERICERROR_UNAUTHORIZED: 6; - GENERICERROR_NOT_ALLOWED_OVER_TRANSPORT: 7; -} - -export const GenericError_E: GenericError_EMap; - diff --git a/src/pb2/errors_pb.js b/src/pb2/errors_pb.js deleted file mode 100644 index efd29aa..0000000 --- a/src/pb2/errors_pb.js +++ /dev/null @@ -1,191 +0,0 @@ -// source: errors.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.Errors.GenericError_E', null, global); -goog.exportSymbol('proto.Errors.NominalError', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Errors.NominalError = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Errors.NominalError, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Errors.NominalError.displayName = 'proto.Errors.NominalError'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Errors.NominalError.prototype.toObject = function(opt_includeInstance) { - return proto.Errors.NominalError.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Errors.NominalError} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Errors.NominalError.toObject = function(includeInstance, msg) { - var f, obj = { - genericerror: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Errors.NominalError} - */ -proto.Errors.NominalError.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Errors.NominalError; - return proto.Errors.NominalError.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Errors.NominalError} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Errors.NominalError} - */ -proto.Errors.NominalError.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.Errors.GenericError_E} */ (reader.readEnum()); - msg.setGenericerror(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Errors.NominalError.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Errors.NominalError.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Errors.NominalError} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Errors.NominalError.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGenericerror(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional GenericError_E genericError = 1; - * @return {!proto.Errors.GenericError_E} - */ -proto.Errors.NominalError.prototype.getGenericerror = function() { - return /** @type {!proto.Errors.GenericError_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.Errors.GenericError_E} value - * @return {!proto.Errors.NominalError} returns this - */ -proto.Errors.NominalError.prototype.setGenericerror = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * @enum {number} - */ -proto.Errors.GenericError_E = { - GENERICERROR_NONE: 0, - GENERICERROR_UNKNOWN: 1, - GENERICERROR_CLOSURES_OPEN: 2, - GENERICERROR_ALREADY_ON: 3, - GENERICERROR_DISABLED_FOR_USER_COMMAND: 4, - GENERICERROR_VEHICLE_NOT_IN_PARK: 5, - GENERICERROR_UNAUTHORIZED: 6, - GENERICERROR_NOT_ALLOWED_OVER_TRANSPORT: 7 -}; - -goog.object.extend(exports, proto.Errors); diff --git a/src/pb2/keys_pb.d.ts b/src/pb2/keys_pb.d.ts deleted file mode 100644 index d27e7ab..0000000 --- a/src/pb2/keys_pb.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// package: Keys -// file: keys.proto - -import * as jspb from "google-protobuf"; - -export interface RoleMap { - ROLE_NONE: 0; - ROLE_SERVICE: 1; - ROLE_OWNER: 2; - ROLE_DRIVER: 3; - ROLE_FM: 4; - ROLE_VEHICLE_MONITOR: 5; - ROLE_CHARGING_MANAGER: 6; -} - -export const Role: RoleMap; - diff --git a/src/pb2/keys_pb.js b/src/pb2/keys_pb.js deleted file mode 100644 index 570f361..0000000 --- a/src/pb2/keys_pb.js +++ /dev/null @@ -1,38 +0,0 @@ -// source: keys.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.Keys.Role', null, global); -/** - * @enum {number} - */ -proto.Keys.Role = { - ROLE_NONE: 0, - ROLE_SERVICE: 1, - ROLE_OWNER: 2, - ROLE_DRIVER: 3, - ROLE_FM: 4, - ROLE_VEHICLE_MONITOR: 5, - ROLE_CHARGING_MANAGER: 6 -}; - -goog.object.extend(exports, proto.Keys); diff --git a/src/pb2/signatures_pb.d.ts b/src/pb2/signatures_pb.d.ts deleted file mode 100644 index 6935964..0000000 --- a/src/pb2/signatures_pb.d.ts +++ /dev/null @@ -1,286 +0,0 @@ -// package: Signatures -// file: signatures.proto - -import * as jspb from "google-protobuf"; - -export class KeyIdentity extends jspb.Message { - hasPublicKey(): boolean; - clearPublicKey(): void; - getPublicKey(): Uint8Array | string; - getPublicKey_asU8(): Uint8Array; - getPublicKey_asB64(): string; - setPublicKey(value: Uint8Array | string): void; - - hasHandle(): boolean; - clearHandle(): void; - getHandle(): number; - setHandle(value: number): void; - - getIdentityTypeCase(): KeyIdentity.IdentityTypeCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeyIdentity.AsObject; - static toObject(includeInstance: boolean, msg: KeyIdentity): KeyIdentity.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: KeyIdentity, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeyIdentity; - static deserializeBinaryFromReader(message: KeyIdentity, reader: jspb.BinaryReader): KeyIdentity; -} - -export namespace KeyIdentity { - export type AsObject = { - publicKey: Uint8Array | string, - handle: number, - } - - export enum IdentityTypeCase { - IDENTITY_TYPE_NOT_SET = 0, - PUBLIC_KEY = 1, - HANDLE = 3, - } -} - -export class AES_GCM_Personalized_Signature_Data extends jspb.Message { - getEpoch(): Uint8Array | string; - getEpoch_asU8(): Uint8Array; - getEpoch_asB64(): string; - setEpoch(value: Uint8Array | string): void; - - getNonce(): Uint8Array | string; - getNonce_asU8(): Uint8Array; - getNonce_asB64(): string; - setNonce(value: Uint8Array | string): void; - - getCounter(): number; - setCounter(value: number): void; - - getExpiresAt(): number; - setExpiresAt(value: number): void; - - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AES_GCM_Personalized_Signature_Data.AsObject; - static toObject(includeInstance: boolean, msg: AES_GCM_Personalized_Signature_Data): AES_GCM_Personalized_Signature_Data.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AES_GCM_Personalized_Signature_Data, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AES_GCM_Personalized_Signature_Data; - static deserializeBinaryFromReader(message: AES_GCM_Personalized_Signature_Data, reader: jspb.BinaryReader): AES_GCM_Personalized_Signature_Data; -} - -export namespace AES_GCM_Personalized_Signature_Data { - export type AsObject = { - epoch: Uint8Array | string, - nonce: Uint8Array | string, - counter: number, - expiresAt: number, - tag: Uint8Array | string, - } -} - -export class HMAC_Signature_Data extends jspb.Message { - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HMAC_Signature_Data.AsObject; - static toObject(includeInstance: boolean, msg: HMAC_Signature_Data): HMAC_Signature_Data.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HMAC_Signature_Data, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HMAC_Signature_Data; - static deserializeBinaryFromReader(message: HMAC_Signature_Data, reader: jspb.BinaryReader): HMAC_Signature_Data; -} - -export namespace HMAC_Signature_Data { - export type AsObject = { - tag: Uint8Array | string, - } -} - -export class HMAC_Personalized_Signature_Data extends jspb.Message { - getEpoch(): Uint8Array | string; - getEpoch_asU8(): Uint8Array; - getEpoch_asB64(): string; - setEpoch(value: Uint8Array | string): void; - - getCounter(): number; - setCounter(value: number): void; - - getExpiresAt(): number; - setExpiresAt(value: number): void; - - getTag(): Uint8Array | string; - getTag_asU8(): Uint8Array; - getTag_asB64(): string; - setTag(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HMAC_Personalized_Signature_Data.AsObject; - static toObject(includeInstance: boolean, msg: HMAC_Personalized_Signature_Data): HMAC_Personalized_Signature_Data.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: HMAC_Personalized_Signature_Data, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): HMAC_Personalized_Signature_Data; - static deserializeBinaryFromReader(message: HMAC_Personalized_Signature_Data, reader: jspb.BinaryReader): HMAC_Personalized_Signature_Data; -} - -export namespace HMAC_Personalized_Signature_Data { - export type AsObject = { - epoch: Uint8Array | string, - counter: number, - expiresAt: number, - tag: Uint8Array | string, - } -} - -export class SignatureData extends jspb.Message { - hasSignerIdentity(): boolean; - clearSignerIdentity(): void; - getSignerIdentity(): KeyIdentity | undefined; - setSignerIdentity(value?: KeyIdentity): void; - - hasAesGcmPersonalizedData(): boolean; - clearAesGcmPersonalizedData(): void; - getAesGcmPersonalizedData(): AES_GCM_Personalized_Signature_Data | undefined; - setAesGcmPersonalizedData(value?: AES_GCM_Personalized_Signature_Data): void; - - hasSessionInfoTag(): boolean; - clearSessionInfoTag(): void; - getSessionInfoTag(): HMAC_Signature_Data | undefined; - setSessionInfoTag(value?: HMAC_Signature_Data): void; - - hasHmacPersonalizedData(): boolean; - clearHmacPersonalizedData(): void; - getHmacPersonalizedData(): HMAC_Personalized_Signature_Data | undefined; - setHmacPersonalizedData(value?: HMAC_Personalized_Signature_Data): void; - - getSigTypeCase(): SignatureData.SigTypeCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignatureData.AsObject; - static toObject(includeInstance: boolean, msg: SignatureData): SignatureData.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SignatureData, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignatureData; - static deserializeBinaryFromReader(message: SignatureData, reader: jspb.BinaryReader): SignatureData; -} - -export namespace SignatureData { - export type AsObject = { - signerIdentity?: KeyIdentity.AsObject, - aesGcmPersonalizedData?: AES_GCM_Personalized_Signature_Data.AsObject, - sessionInfoTag?: HMAC_Signature_Data.AsObject, - hmacPersonalizedData?: HMAC_Personalized_Signature_Data.AsObject, - } - - export enum SigTypeCase { - SIG_TYPE_NOT_SET = 0, - AES_GCM_PERSONALIZED_DATA = 5, - SESSION_INFO_TAG = 6, - HMAC_PERSONALIZED_DATA = 8, - } -} - -export class GetSessionInfoRequest extends jspb.Message { - hasKeyIdentity(): boolean; - clearKeyIdentity(): void; - getKeyIdentity(): KeyIdentity | undefined; - setKeyIdentity(value?: KeyIdentity): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetSessionInfoRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetSessionInfoRequest): GetSessionInfoRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetSessionInfoRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetSessionInfoRequest; - static deserializeBinaryFromReader(message: GetSessionInfoRequest, reader: jspb.BinaryReader): GetSessionInfoRequest; -} - -export namespace GetSessionInfoRequest { - export type AsObject = { - keyIdentity?: KeyIdentity.AsObject, - } -} - -export class SessionInfo extends jspb.Message { - getCounter(): number; - setCounter(value: number): void; - - getPublickey(): Uint8Array | string; - getPublickey_asU8(): Uint8Array; - getPublickey_asB64(): string; - setPublickey(value: Uint8Array | string): void; - - getEpoch(): Uint8Array | string; - getEpoch_asU8(): Uint8Array; - getEpoch_asB64(): string; - setEpoch(value: Uint8Array | string): void; - - getClockTime(): number; - setClockTime(value: number): void; - - getStatus(): Session_Info_StatusMap[keyof Session_Info_StatusMap]; - setStatus(value: Session_Info_StatusMap[keyof Session_Info_StatusMap]): void; - - getHandle(): number; - setHandle(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SessionInfo.AsObject; - static toObject(includeInstance: boolean, msg: SessionInfo): SessionInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SessionInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SessionInfo; - static deserializeBinaryFromReader(message: SessionInfo, reader: jspb.BinaryReader): SessionInfo; -} - -export namespace SessionInfo { - export type AsObject = { - counter: number, - publickey: Uint8Array | string, - epoch: Uint8Array | string, - clockTime: number, - status: Session_Info_StatusMap[keyof Session_Info_StatusMap], - handle: number, - } -} - -export interface TagMap { - TAG_SIGNATURE_TYPE: 0; - TAG_DOMAIN: 1; - TAG_PERSONALIZATION: 2; - TAG_EPOCH: 3; - TAG_EXPIRES_AT: 4; - TAG_COUNTER: 5; - TAG_CHALLENGE: 6; - TAG_FLAGS: 7; - TAG_END: 255; -} - -export const Tag: TagMap; - -export interface SignatureTypeMap { - SIGNATURE_TYPE_AES_GCM: 0; - SIGNATURE_TYPE_AES_GCM_PERSONALIZED: 5; - SIGNATURE_TYPE_HMAC: 6; - SIGNATURE_TYPE_HMAC_PERSONALIZED: 8; -} - -export const SignatureType: SignatureTypeMap; - -export interface Session_Info_StatusMap { - SESSION_INFO_STATUS_OK: 0; - SESSION_INFO_STATUS_KEY_NOT_ON_WHITELIST: 1; -} - -export const Session_Info_Status: Session_Info_StatusMap; - diff --git a/src/pb2/signatures_pb.js b/src/pb2/signatures_pb.js deleted file mode 100644 index b3e34c9..0000000 --- a/src/pb2/signatures_pb.js +++ /dev/null @@ -1,2016 +0,0 @@ -// source: signatures.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.Signatures.AES_GCM_Personalized_Signature_Data', null, global); -goog.exportSymbol('proto.Signatures.GetSessionInfoRequest', null, global); -goog.exportSymbol('proto.Signatures.HMAC_Personalized_Signature_Data', null, global); -goog.exportSymbol('proto.Signatures.HMAC_Signature_Data', null, global); -goog.exportSymbol('proto.Signatures.KeyIdentity', null, global); -goog.exportSymbol('proto.Signatures.KeyIdentity.IdentityTypeCase', null, global); -goog.exportSymbol('proto.Signatures.SessionInfo', null, global); -goog.exportSymbol('proto.Signatures.Session_Info_Status', null, global); -goog.exportSymbol('proto.Signatures.SignatureData', null, global); -goog.exportSymbol('proto.Signatures.SignatureData.SigTypeCase', null, global); -goog.exportSymbol('proto.Signatures.SignatureType', null, global); -goog.exportSymbol('proto.Signatures.Tag', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Signatures.KeyIdentity = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Signatures.KeyIdentity.oneofGroups_); -}; -goog.inherits(proto.Signatures.KeyIdentity, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Signatures.KeyIdentity.displayName = 'proto.Signatures.KeyIdentity'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Signatures.AES_GCM_Personalized_Signature_Data, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Signatures.AES_GCM_Personalized_Signature_Data.displayName = 'proto.Signatures.AES_GCM_Personalized_Signature_Data'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Signatures.HMAC_Signature_Data = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Signatures.HMAC_Signature_Data, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Signatures.HMAC_Signature_Data.displayName = 'proto.Signatures.HMAC_Signature_Data'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Signatures.HMAC_Personalized_Signature_Data = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Signatures.HMAC_Personalized_Signature_Data, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Signatures.HMAC_Personalized_Signature_Data.displayName = 'proto.Signatures.HMAC_Personalized_Signature_Data'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Signatures.SignatureData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Signatures.SignatureData.oneofGroups_); -}; -goog.inherits(proto.Signatures.SignatureData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Signatures.SignatureData.displayName = 'proto.Signatures.SignatureData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Signatures.GetSessionInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Signatures.GetSessionInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Signatures.GetSessionInfoRequest.displayName = 'proto.Signatures.GetSessionInfoRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Signatures.SessionInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Signatures.SessionInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Signatures.SessionInfo.displayName = 'proto.Signatures.SessionInfo'; -} - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.Signatures.KeyIdentity.oneofGroups_ = [[1,3]]; - -/** - * @enum {number} - */ -proto.Signatures.KeyIdentity.IdentityTypeCase = { - IDENTITY_TYPE_NOT_SET: 0, - PUBLIC_KEY: 1, - HANDLE: 3 -}; - -/** - * @return {proto.Signatures.KeyIdentity.IdentityTypeCase} - */ -proto.Signatures.KeyIdentity.prototype.getIdentityTypeCase = function() { - return /** @type {proto.Signatures.KeyIdentity.IdentityTypeCase} */(jspb.Message.computeOneofCase(this, proto.Signatures.KeyIdentity.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Signatures.KeyIdentity.prototype.toObject = function(opt_includeInstance) { - return proto.Signatures.KeyIdentity.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Signatures.KeyIdentity} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.KeyIdentity.toObject = function(includeInstance, msg) { - var f, obj = { - publicKey: msg.getPublicKey_asB64(), - handle: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Signatures.KeyIdentity} - */ -proto.Signatures.KeyIdentity.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Signatures.KeyIdentity; - return proto.Signatures.KeyIdentity.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Signatures.KeyIdentity} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Signatures.KeyIdentity} - */ -proto.Signatures.KeyIdentity.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPublicKey(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setHandle(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Signatures.KeyIdentity.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Signatures.KeyIdentity.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Signatures.KeyIdentity} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.KeyIdentity.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeBytes( - 1, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional bytes public_key = 1; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.KeyIdentity.prototype.getPublicKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes public_key = 1; - * This is a type-conversion wrapper around `getPublicKey()` - * @return {string} - */ -proto.Signatures.KeyIdentity.prototype.getPublicKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPublicKey())); -}; - - -/** - * optional bytes public_key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPublicKey()` - * @return {!Uint8Array} - */ -proto.Signatures.KeyIdentity.prototype.getPublicKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPublicKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.KeyIdentity} returns this - */ -proto.Signatures.KeyIdentity.prototype.setPublicKey = function(value) { - return jspb.Message.setOneofField(this, 1, proto.Signatures.KeyIdentity.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.Signatures.KeyIdentity} returns this - */ -proto.Signatures.KeyIdentity.prototype.clearPublicKey = function() { - return jspb.Message.setOneofField(this, 1, proto.Signatures.KeyIdentity.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Signatures.KeyIdentity.prototype.hasPublicKey = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint32 handle = 3; - * @return {number} - */ -proto.Signatures.KeyIdentity.prototype.getHandle = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.KeyIdentity} returns this - */ -proto.Signatures.KeyIdentity.prototype.setHandle = function(value) { - return jspb.Message.setOneofField(this, 3, proto.Signatures.KeyIdentity.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.Signatures.KeyIdentity} returns this - */ -proto.Signatures.KeyIdentity.prototype.clearHandle = function() { - return jspb.Message.setOneofField(this, 3, proto.Signatures.KeyIdentity.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Signatures.KeyIdentity.prototype.hasHandle = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.toObject = function(opt_includeInstance) { - return proto.Signatures.AES_GCM_Personalized_Signature_Data.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Signatures.AES_GCM_Personalized_Signature_Data} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.toObject = function(includeInstance, msg) { - var f, obj = { - epoch: msg.getEpoch_asB64(), - nonce: msg.getNonce_asB64(), - counter: jspb.Message.getFieldWithDefault(msg, 3, 0), - expiresAt: jspb.Message.getFieldWithDefault(msg, 4, 0), - tag: msg.getTag_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Signatures.AES_GCM_Personalized_Signature_Data} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Signatures.AES_GCM_Personalized_Signature_Data; - return proto.Signatures.AES_GCM_Personalized_Signature_Data.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Signatures.AES_GCM_Personalized_Signature_Data} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Signatures.AES_GCM_Personalized_Signature_Data} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEpoch(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setNonce(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCounter(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFixed32()); - msg.setExpiresAt(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Signatures.AES_GCM_Personalized_Signature_Data.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Signatures.AES_GCM_Personalized_Signature_Data} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEpoch_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getNonce_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getCounter(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getExpiresAt(); - if (f !== 0) { - writer.writeFixed32( - 4, - f - ); - } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } -}; - - -/** - * optional bytes epoch = 1; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getEpoch = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes epoch = 1; - * This is a type-conversion wrapper around `getEpoch()` - * @return {string} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getEpoch_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEpoch())); -}; - - -/** - * optional bytes epoch = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEpoch()` - * @return {!Uint8Array} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getEpoch_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEpoch())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.AES_GCM_Personalized_Signature_Data} returns this - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.setEpoch = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes nonce = 2; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getNonce = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes nonce = 2; - * This is a type-conversion wrapper around `getNonce()` - * @return {string} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getNonce_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getNonce())); -}; - - -/** - * optional bytes nonce = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNonce()` - * @return {!Uint8Array} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getNonce_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getNonce())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.AES_GCM_Personalized_Signature_Data} returns this - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.setNonce = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional uint32 counter = 3; - * @return {number} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getCounter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.AES_GCM_Personalized_Signature_Data} returns this - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.setCounter = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional fixed32 expires_at = 4; - * @return {number} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getExpiresAt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.AES_GCM_Personalized_Signature_Data} returns this - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.setExpiresAt = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bytes tag = 5; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes tag = 5; - * This is a type-conversion wrapper around `getTag()` - * @return {string} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); -}; - - -/** - * optional bytes tag = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.AES_GCM_Personalized_Signature_Data} returns this - */ -proto.Signatures.AES_GCM_Personalized_Signature_Data.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Signatures.HMAC_Signature_Data.prototype.toObject = function(opt_includeInstance) { - return proto.Signatures.HMAC_Signature_Data.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Signatures.HMAC_Signature_Data} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.HMAC_Signature_Data.toObject = function(includeInstance, msg) { - var f, obj = { - tag: msg.getTag_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Signatures.HMAC_Signature_Data} - */ -proto.Signatures.HMAC_Signature_Data.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Signatures.HMAC_Signature_Data; - return proto.Signatures.HMAC_Signature_Data.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Signatures.HMAC_Signature_Data} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Signatures.HMAC_Signature_Data} - */ -proto.Signatures.HMAC_Signature_Data.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Signatures.HMAC_Signature_Data.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Signatures.HMAC_Signature_Data.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Signatures.HMAC_Signature_Data} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.HMAC_Signature_Data.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes tag = 1; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.HMAC_Signature_Data.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes tag = 1; - * This is a type-conversion wrapper around `getTag()` - * @return {string} - */ -proto.Signatures.HMAC_Signature_Data.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); -}; - - -/** - * optional bytes tag = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} - */ -proto.Signatures.HMAC_Signature_Data.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.HMAC_Signature_Data} returns this - */ -proto.Signatures.HMAC_Signature_Data.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.toObject = function(opt_includeInstance) { - return proto.Signatures.HMAC_Personalized_Signature_Data.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Signatures.HMAC_Personalized_Signature_Data} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.HMAC_Personalized_Signature_Data.toObject = function(includeInstance, msg) { - var f, obj = { - epoch: msg.getEpoch_asB64(), - counter: jspb.Message.getFieldWithDefault(msg, 2, 0), - expiresAt: jspb.Message.getFieldWithDefault(msg, 3, 0), - tag: msg.getTag_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Signatures.HMAC_Personalized_Signature_Data} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Signatures.HMAC_Personalized_Signature_Data; - return proto.Signatures.HMAC_Personalized_Signature_Data.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Signatures.HMAC_Personalized_Signature_Data} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Signatures.HMAC_Personalized_Signature_Data} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEpoch(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCounter(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFixed32()); - msg.setExpiresAt(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTag(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Signatures.HMAC_Personalized_Signature_Data.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Signatures.HMAC_Personalized_Signature_Data} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.HMAC_Personalized_Signature_Data.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEpoch_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getCounter(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getExpiresAt(); - if (f !== 0) { - writer.writeFixed32( - 3, - f - ); - } - f = message.getTag_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - - -/** - * optional bytes epoch = 1; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getEpoch = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes epoch = 1; - * This is a type-conversion wrapper around `getEpoch()` - * @return {string} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getEpoch_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEpoch())); -}; - - -/** - * optional bytes epoch = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEpoch()` - * @return {!Uint8Array} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getEpoch_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEpoch())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.HMAC_Personalized_Signature_Data} returns this - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.setEpoch = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint32 counter = 2; - * @return {number} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getCounter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.HMAC_Personalized_Signature_Data} returns this - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.setCounter = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional fixed32 expires_at = 3; - * @return {number} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getExpiresAt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.HMAC_Personalized_Signature_Data} returns this - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.setExpiresAt = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes tag = 4; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getTag = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes tag = 4; - * This is a type-conversion wrapper around `getTag()` - * @return {string} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getTag_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTag())); -}; - - -/** - * optional bytes tag = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTag()` - * @return {!Uint8Array} - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.getTag_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTag())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.HMAC_Personalized_Signature_Data} returns this - */ -proto.Signatures.HMAC_Personalized_Signature_Data.prototype.setTag = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.Signatures.SignatureData.oneofGroups_ = [[5,6,8]]; - -/** - * @enum {number} - */ -proto.Signatures.SignatureData.SigTypeCase = { - SIG_TYPE_NOT_SET: 0, - AES_GCM_PERSONALIZED_DATA: 5, - SESSION_INFO_TAG: 6, - HMAC_PERSONALIZED_DATA: 8 -}; - -/** - * @return {proto.Signatures.SignatureData.SigTypeCase} - */ -proto.Signatures.SignatureData.prototype.getSigTypeCase = function() { - return /** @type {proto.Signatures.SignatureData.SigTypeCase} */(jspb.Message.computeOneofCase(this, proto.Signatures.SignatureData.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Signatures.SignatureData.prototype.toObject = function(opt_includeInstance) { - return proto.Signatures.SignatureData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Signatures.SignatureData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.SignatureData.toObject = function(includeInstance, msg) { - var f, obj = { - signerIdentity: (f = msg.getSignerIdentity()) && proto.Signatures.KeyIdentity.toObject(includeInstance, f), - aesGcmPersonalizedData: (f = msg.getAesGcmPersonalizedData()) && proto.Signatures.AES_GCM_Personalized_Signature_Data.toObject(includeInstance, f), - sessionInfoTag: (f = msg.getSessionInfoTag()) && proto.Signatures.HMAC_Signature_Data.toObject(includeInstance, f), - hmacPersonalizedData: (f = msg.getHmacPersonalizedData()) && proto.Signatures.HMAC_Personalized_Signature_Data.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Signatures.SignatureData} - */ -proto.Signatures.SignatureData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Signatures.SignatureData; - return proto.Signatures.SignatureData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Signatures.SignatureData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Signatures.SignatureData} - */ -proto.Signatures.SignatureData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.Signatures.KeyIdentity; - reader.readMessage(value,proto.Signatures.KeyIdentity.deserializeBinaryFromReader); - msg.setSignerIdentity(value); - break; - case 5: - var value = new proto.Signatures.AES_GCM_Personalized_Signature_Data; - reader.readMessage(value,proto.Signatures.AES_GCM_Personalized_Signature_Data.deserializeBinaryFromReader); - msg.setAesGcmPersonalizedData(value); - break; - case 6: - var value = new proto.Signatures.HMAC_Signature_Data; - reader.readMessage(value,proto.Signatures.HMAC_Signature_Data.deserializeBinaryFromReader); - msg.setSessionInfoTag(value); - break; - case 8: - var value = new proto.Signatures.HMAC_Personalized_Signature_Data; - reader.readMessage(value,proto.Signatures.HMAC_Personalized_Signature_Data.deserializeBinaryFromReader); - msg.setHmacPersonalizedData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Signatures.SignatureData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Signatures.SignatureData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Signatures.SignatureData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.SignatureData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSignerIdentity(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.Signatures.KeyIdentity.serializeBinaryToWriter - ); - } - f = message.getAesGcmPersonalizedData(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.Signatures.AES_GCM_Personalized_Signature_Data.serializeBinaryToWriter - ); - } - f = message.getSessionInfoTag(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.Signatures.HMAC_Signature_Data.serializeBinaryToWriter - ); - } - f = message.getHmacPersonalizedData(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.Signatures.HMAC_Personalized_Signature_Data.serializeBinaryToWriter - ); - } -}; - - -/** - * optional KeyIdentity signer_identity = 1; - * @return {?proto.Signatures.KeyIdentity} - */ -proto.Signatures.SignatureData.prototype.getSignerIdentity = function() { - return /** @type{?proto.Signatures.KeyIdentity} */ ( - jspb.Message.getWrapperField(this, proto.Signatures.KeyIdentity, 1)); -}; - - -/** - * @param {?proto.Signatures.KeyIdentity|undefined} value - * @return {!proto.Signatures.SignatureData} returns this -*/ -proto.Signatures.SignatureData.prototype.setSignerIdentity = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Signatures.SignatureData} returns this - */ -proto.Signatures.SignatureData.prototype.clearSignerIdentity = function() { - return this.setSignerIdentity(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Signatures.SignatureData.prototype.hasSignerIdentity = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional AES_GCM_Personalized_Signature_Data AES_GCM_Personalized_data = 5; - * @return {?proto.Signatures.AES_GCM_Personalized_Signature_Data} - */ -proto.Signatures.SignatureData.prototype.getAesGcmPersonalizedData = function() { - return /** @type{?proto.Signatures.AES_GCM_Personalized_Signature_Data} */ ( - jspb.Message.getWrapperField(this, proto.Signatures.AES_GCM_Personalized_Signature_Data, 5)); -}; - - -/** - * @param {?proto.Signatures.AES_GCM_Personalized_Signature_Data|undefined} value - * @return {!proto.Signatures.SignatureData} returns this -*/ -proto.Signatures.SignatureData.prototype.setAesGcmPersonalizedData = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.Signatures.SignatureData.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Signatures.SignatureData} returns this - */ -proto.Signatures.SignatureData.prototype.clearAesGcmPersonalizedData = function() { - return this.setAesGcmPersonalizedData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Signatures.SignatureData.prototype.hasAesGcmPersonalizedData = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional HMAC_Signature_Data session_info_tag = 6; - * @return {?proto.Signatures.HMAC_Signature_Data} - */ -proto.Signatures.SignatureData.prototype.getSessionInfoTag = function() { - return /** @type{?proto.Signatures.HMAC_Signature_Data} */ ( - jspb.Message.getWrapperField(this, proto.Signatures.HMAC_Signature_Data, 6)); -}; - - -/** - * @param {?proto.Signatures.HMAC_Signature_Data|undefined} value - * @return {!proto.Signatures.SignatureData} returns this -*/ -proto.Signatures.SignatureData.prototype.setSessionInfoTag = function(value) { - return jspb.Message.setOneofWrapperField(this, 6, proto.Signatures.SignatureData.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Signatures.SignatureData} returns this - */ -proto.Signatures.SignatureData.prototype.clearSessionInfoTag = function() { - return this.setSessionInfoTag(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Signatures.SignatureData.prototype.hasSessionInfoTag = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional HMAC_Personalized_Signature_Data HMAC_Personalized_data = 8; - * @return {?proto.Signatures.HMAC_Personalized_Signature_Data} - */ -proto.Signatures.SignatureData.prototype.getHmacPersonalizedData = function() { - return /** @type{?proto.Signatures.HMAC_Personalized_Signature_Data} */ ( - jspb.Message.getWrapperField(this, proto.Signatures.HMAC_Personalized_Signature_Data, 8)); -}; - - -/** - * @param {?proto.Signatures.HMAC_Personalized_Signature_Data|undefined} value - * @return {!proto.Signatures.SignatureData} returns this -*/ -proto.Signatures.SignatureData.prototype.setHmacPersonalizedData = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.Signatures.SignatureData.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Signatures.SignatureData} returns this - */ -proto.Signatures.SignatureData.prototype.clearHmacPersonalizedData = function() { - return this.setHmacPersonalizedData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Signatures.SignatureData.prototype.hasHmacPersonalizedData = function() { - return jspb.Message.getField(this, 8) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Signatures.GetSessionInfoRequest.prototype.toObject = function(opt_includeInstance) { - return proto.Signatures.GetSessionInfoRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Signatures.GetSessionInfoRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.GetSessionInfoRequest.toObject = function(includeInstance, msg) { - var f, obj = { - keyIdentity: (f = msg.getKeyIdentity()) && proto.Signatures.KeyIdentity.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Signatures.GetSessionInfoRequest} - */ -proto.Signatures.GetSessionInfoRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Signatures.GetSessionInfoRequest; - return proto.Signatures.GetSessionInfoRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Signatures.GetSessionInfoRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Signatures.GetSessionInfoRequest} - */ -proto.Signatures.GetSessionInfoRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.Signatures.KeyIdentity; - reader.readMessage(value,proto.Signatures.KeyIdentity.deserializeBinaryFromReader); - msg.setKeyIdentity(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Signatures.GetSessionInfoRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Signatures.GetSessionInfoRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Signatures.GetSessionInfoRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.GetSessionInfoRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKeyIdentity(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.Signatures.KeyIdentity.serializeBinaryToWriter - ); - } -}; - - -/** - * optional KeyIdentity key_identity = 1; - * @return {?proto.Signatures.KeyIdentity} - */ -proto.Signatures.GetSessionInfoRequest.prototype.getKeyIdentity = function() { - return /** @type{?proto.Signatures.KeyIdentity} */ ( - jspb.Message.getWrapperField(this, proto.Signatures.KeyIdentity, 1)); -}; - - -/** - * @param {?proto.Signatures.KeyIdentity|undefined} value - * @return {!proto.Signatures.GetSessionInfoRequest} returns this -*/ -proto.Signatures.GetSessionInfoRequest.prototype.setKeyIdentity = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Signatures.GetSessionInfoRequest} returns this - */ -proto.Signatures.GetSessionInfoRequest.prototype.clearKeyIdentity = function() { - return this.setKeyIdentity(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Signatures.GetSessionInfoRequest.prototype.hasKeyIdentity = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.Signatures.SessionInfo.prototype.toObject = function(opt_includeInstance) { - return proto.Signatures.SessionInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.Signatures.SessionInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.SessionInfo.toObject = function(includeInstance, msg) { - var f, obj = { - counter: jspb.Message.getFieldWithDefault(msg, 1, 0), - publickey: msg.getPublickey_asB64(), - epoch: msg.getEpoch_asB64(), - clockTime: jspb.Message.getFieldWithDefault(msg, 4, 0), - status: jspb.Message.getFieldWithDefault(msg, 5, 0), - handle: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.Signatures.SessionInfo} - */ -proto.Signatures.SessionInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.Signatures.SessionInfo; - return proto.Signatures.SessionInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.Signatures.SessionInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.Signatures.SessionInfo} - */ -proto.Signatures.SessionInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCounter(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPublickey(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setEpoch(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFixed32()); - msg.setClockTime(value); - break; - case 5: - var value = /** @type {!proto.Signatures.Session_Info_Status} */ (reader.readEnum()); - msg.setStatus(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setHandle(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.Signatures.SessionInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.Signatures.SessionInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.Signatures.SessionInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.Signatures.SessionInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCounter(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getPublickey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getEpoch_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getClockTime(); - if (f !== 0) { - writer.writeFixed32( - 4, - f - ); - } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getHandle(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } -}; - - -/** - * optional uint32 counter = 1; - * @return {number} - */ -proto.Signatures.SessionInfo.prototype.getCounter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.SessionInfo} returns this - */ -proto.Signatures.SessionInfo.prototype.setCounter = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes publicKey = 2; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.SessionInfo.prototype.getPublickey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes publicKey = 2; - * This is a type-conversion wrapper around `getPublickey()` - * @return {string} - */ -proto.Signatures.SessionInfo.prototype.getPublickey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPublickey())); -}; - - -/** - * optional bytes publicKey = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPublickey()` - * @return {!Uint8Array} - */ -proto.Signatures.SessionInfo.prototype.getPublickey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPublickey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.SessionInfo} returns this - */ -proto.Signatures.SessionInfo.prototype.setPublickey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes epoch = 3; - * @return {!(string|Uint8Array)} - */ -proto.Signatures.SessionInfo.prototype.getEpoch = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes epoch = 3; - * This is a type-conversion wrapper around `getEpoch()` - * @return {string} - */ -proto.Signatures.SessionInfo.prototype.getEpoch_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getEpoch())); -}; - - -/** - * optional bytes epoch = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getEpoch()` - * @return {!Uint8Array} - */ -proto.Signatures.SessionInfo.prototype.getEpoch_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getEpoch())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Signatures.SessionInfo} returns this - */ -proto.Signatures.SessionInfo.prototype.setEpoch = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional fixed32 clock_time = 4; - * @return {number} - */ -proto.Signatures.SessionInfo.prototype.getClockTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.SessionInfo} returns this - */ -proto.Signatures.SessionInfo.prototype.setClockTime = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional Session_Info_Status status = 5; - * @return {!proto.Signatures.Session_Info_Status} - */ -proto.Signatures.SessionInfo.prototype.getStatus = function() { - return /** @type {!proto.Signatures.Session_Info_Status} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.Signatures.Session_Info_Status} value - * @return {!proto.Signatures.SessionInfo} returns this - */ -proto.Signatures.SessionInfo.prototype.setStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional uint32 handle = 6; - * @return {number} - */ -proto.Signatures.SessionInfo.prototype.getHandle = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.Signatures.SessionInfo} returns this - */ -proto.Signatures.SessionInfo.prototype.setHandle = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * @enum {number} - */ -proto.Signatures.Tag = { - TAG_SIGNATURE_TYPE: 0, - TAG_DOMAIN: 1, - TAG_PERSONALIZATION: 2, - TAG_EPOCH: 3, - TAG_EXPIRES_AT: 4, - TAG_COUNTER: 5, - TAG_CHALLENGE: 6, - TAG_FLAGS: 7, - TAG_END: 255 -}; - -/** - * @enum {number} - */ -proto.Signatures.SignatureType = { - SIGNATURE_TYPE_AES_GCM: 0, - SIGNATURE_TYPE_AES_GCM_PERSONALIZED: 5, - SIGNATURE_TYPE_HMAC: 6, - SIGNATURE_TYPE_HMAC_PERSONALIZED: 8 -}; - -/** - * @enum {number} - */ -proto.Signatures.Session_Info_Status = { - SESSION_INFO_STATUS_OK: 0, - SESSION_INFO_STATUS_KEY_NOT_ON_WHITELIST: 1 -}; - -goog.object.extend(exports, proto.Signatures); diff --git a/src/pb2/universal_message_pb.d.ts b/src/pb2/universal_message_pb.d.ts deleted file mode 100644 index 4d187e2..0000000 --- a/src/pb2/universal_message_pb.d.ts +++ /dev/null @@ -1,238 +0,0 @@ -// package: UniversalMessage -// file: universal_message.proto - -import * as jspb from "google-protobuf"; -import * as signatures_pb from "./signatures_pb"; - -export class Destination extends jspb.Message { - hasDomain(): boolean; - clearDomain(): void; - getDomain(): DomainMap[keyof DomainMap]; - setDomain(value: DomainMap[keyof DomainMap]): void; - - hasRoutingAddress(): boolean; - clearRoutingAddress(): void; - getRoutingAddress(): Uint8Array | string; - getRoutingAddress_asU8(): Uint8Array; - getRoutingAddress_asB64(): string; - setRoutingAddress(value: Uint8Array | string): void; - - getSubDestinationCase(): Destination.SubDestinationCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Destination.AsObject; - static toObject(includeInstance: boolean, msg: Destination): Destination.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Destination, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Destination; - static deserializeBinaryFromReader(message: Destination, reader: jspb.BinaryReader): Destination; -} - -export namespace Destination { - export type AsObject = { - domain: DomainMap[keyof DomainMap], - routingAddress: Uint8Array | string, - } - - export enum SubDestinationCase { - SUB_DESTINATION_NOT_SET = 0, - DOMAIN = 1, - ROUTING_ADDRESS = 2, - } -} - -export class MessageStatus extends jspb.Message { - getOperationStatus(): OperationStatus_EMap[keyof OperationStatus_EMap]; - setOperationStatus(value: OperationStatus_EMap[keyof OperationStatus_EMap]): void; - - getSignedMessageFault(): MessageFault_EMap[keyof MessageFault_EMap]; - setSignedMessageFault(value: MessageFault_EMap[keyof MessageFault_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MessageStatus.AsObject; - static toObject(includeInstance: boolean, msg: MessageStatus): MessageStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MessageStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MessageStatus; - static deserializeBinaryFromReader(message: MessageStatus, reader: jspb.BinaryReader): MessageStatus; -} - -export namespace MessageStatus { - export type AsObject = { - operationStatus: OperationStatus_EMap[keyof OperationStatus_EMap], - signedMessageFault: MessageFault_EMap[keyof MessageFault_EMap], - } -} - -export class SessionInfoRequest extends jspb.Message { - getPublicKey(): Uint8Array | string; - getPublicKey_asU8(): Uint8Array; - getPublicKey_asB64(): string; - setPublicKey(value: Uint8Array | string): void; - - getChallenge(): Uint8Array | string; - getChallenge_asU8(): Uint8Array; - getChallenge_asB64(): string; - setChallenge(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SessionInfoRequest.AsObject; - static toObject(includeInstance: boolean, msg: SessionInfoRequest): SessionInfoRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SessionInfoRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SessionInfoRequest; - static deserializeBinaryFromReader(message: SessionInfoRequest, reader: jspb.BinaryReader): SessionInfoRequest; -} - -export namespace SessionInfoRequest { - export type AsObject = { - publicKey: Uint8Array | string, - challenge: Uint8Array | string, - } -} - -export class RoutableMessage extends jspb.Message { - hasToDestination(): boolean; - clearToDestination(): void; - getToDestination(): Destination | undefined; - setToDestination(value?: Destination): void; - - hasFromDestination(): boolean; - clearFromDestination(): void; - getFromDestination(): Destination | undefined; - setFromDestination(value?: Destination): void; - - hasProtobufMessageAsBytes(): boolean; - clearProtobufMessageAsBytes(): void; - getProtobufMessageAsBytes(): Uint8Array | string; - getProtobufMessageAsBytes_asU8(): Uint8Array; - getProtobufMessageAsBytes_asB64(): string; - setProtobufMessageAsBytes(value: Uint8Array | string): void; - - hasSessionInfoRequest(): boolean; - clearSessionInfoRequest(): void; - getSessionInfoRequest(): SessionInfoRequest | undefined; - setSessionInfoRequest(value?: SessionInfoRequest): void; - - hasSessionInfo(): boolean; - clearSessionInfo(): void; - getSessionInfo(): Uint8Array | string; - getSessionInfo_asU8(): Uint8Array; - getSessionInfo_asB64(): string; - setSessionInfo(value: Uint8Array | string): void; - - hasSignatureData(): boolean; - clearSignatureData(): void; - getSignatureData(): signatures_pb.SignatureData | undefined; - setSignatureData(value?: signatures_pb.SignatureData): void; - - hasSignedmessagestatus(): boolean; - clearSignedmessagestatus(): void; - getSignedmessagestatus(): MessageStatus | undefined; - setSignedmessagestatus(value?: MessageStatus): void; - - getRequestUuid(): Uint8Array | string; - getRequestUuid_asU8(): Uint8Array; - getRequestUuid_asB64(): string; - setRequestUuid(value: Uint8Array | string): void; - - getUuid(): Uint8Array | string; - getUuid_asU8(): Uint8Array; - getUuid_asB64(): string; - setUuid(value: Uint8Array | string): void; - - getFlags(): number; - setFlags(value: number): void; - - getPayloadCase(): RoutableMessage.PayloadCase; - getSubSigdataCase(): RoutableMessage.SubSigdataCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RoutableMessage.AsObject; - static toObject(includeInstance: boolean, msg: RoutableMessage): RoutableMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RoutableMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RoutableMessage; - static deserializeBinaryFromReader(message: RoutableMessage, reader: jspb.BinaryReader): RoutableMessage; -} - -export namespace RoutableMessage { - export type AsObject = { - toDestination?: Destination.AsObject, - fromDestination?: Destination.AsObject, - protobufMessageAsBytes: Uint8Array | string, - sessionInfoRequest?: SessionInfoRequest.AsObject, - sessionInfo: Uint8Array | string, - signatureData?: signatures_pb.SignatureData.AsObject, - signedmessagestatus?: MessageStatus.AsObject, - requestUuid: Uint8Array | string, - uuid: Uint8Array | string, - flags: number, - } - - export enum PayloadCase { - PAYLOAD_NOT_SET = 0, - PROTOBUF_MESSAGE_AS_BYTES = 10, - SESSION_INFO_REQUEST = 14, - SESSION_INFO = 15, - } - - export enum SubSigdataCase { - SUB_SIGDATA_NOT_SET = 0, - SIGNATURE_DATA = 13, - } -} - -export interface DomainMap { - DOMAIN_BROADCAST: 0; - DOMAIN_VEHICLE_SECURITY: 2; - DOMAIN_INFOTAINMENT: 3; -} - -export const Domain: DomainMap; - -export interface OperationStatus_EMap { - OPERATIONSTATUS_OK: 0; - OPERATIONSTATUS_WAIT: 1; - OPERATIONSTATUS_ERROR: 2; -} - -export const OperationStatus_E: OperationStatus_EMap; - -export interface MessageFault_EMap { - MESSAGEFAULT_ERROR_NONE: 0; - MESSAGEFAULT_ERROR_BUSY: 1; - MESSAGEFAULT_ERROR_TIMEOUT: 2; - MESSAGEFAULT_ERROR_UNKNOWN_KEY_ID: 3; - MESSAGEFAULT_ERROR_INACTIVE_KEY: 4; - MESSAGEFAULT_ERROR_INVALID_SIGNATURE: 5; - MESSAGEFAULT_ERROR_INVALID_TOKEN_OR_COUNTER: 6; - MESSAGEFAULT_ERROR_INSUFFICIENT_PRIVILEGES: 7; - MESSAGEFAULT_ERROR_INVALID_DOMAINS: 8; - MESSAGEFAULT_ERROR_INVALID_COMMAND: 9; - MESSAGEFAULT_ERROR_DECODING: 10; - MESSAGEFAULT_ERROR_INTERNAL: 11; - MESSAGEFAULT_ERROR_WRONG_PERSONALIZATION: 12; - MESSAGEFAULT_ERROR_BAD_PARAMETER: 13; - MESSAGEFAULT_ERROR_KEYCHAIN_IS_FULL: 14; - MESSAGEFAULT_ERROR_INCORRECT_EPOCH: 15; - MESSAGEFAULT_ERROR_IV_INCORRECT_LENGTH: 16; - MESSAGEFAULT_ERROR_TIME_EXPIRED: 17; - MESSAGEFAULT_ERROR_NOT_PROVISIONED_WITH_IDENTITY: 18; - MESSAGEFAULT_ERROR_COULD_NOT_HASH_METADATA: 19; - MESSAGEFAULT_ERROR_TIME_TO_LIVE_TOO_LONG: 20; - MESSAGEFAULT_ERROR_REMOTE_ACCESS_DISABLED: 21; - MESSAGEFAULT_ERROR_REMOTE_SERVICE_ACCESS_DISABLED: 22; - MESSAGEFAULT_ERROR_COMMAND_REQUIRES_ACCOUNT_CREDENTIALS: 23; -} - -export const MessageFault_E: MessageFault_EMap; - -export interface FlagsMap { - FLAG_USER_COMMAND: 0; -} - -export const Flags: FlagsMap; - diff --git a/src/pb2/universal_message_pb.js b/src/pb2/universal_message_pb.js deleted file mode 100644 index 5961d0b..0000000 --- a/src/pb2/universal_message_pb.js +++ /dev/null @@ -1,1469 +0,0 @@ -// source: universal_message.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var signatures_pb = require('./signatures_pb.js'); -goog.object.extend(proto, signatures_pb); -goog.exportSymbol('proto.UniversalMessage.Destination', null, global); -goog.exportSymbol('proto.UniversalMessage.Destination.SubDestinationCase', null, global); -goog.exportSymbol('proto.UniversalMessage.Domain', null, global); -goog.exportSymbol('proto.UniversalMessage.Flags', null, global); -goog.exportSymbol('proto.UniversalMessage.MessageFault_E', null, global); -goog.exportSymbol('proto.UniversalMessage.MessageStatus', null, global); -goog.exportSymbol('proto.UniversalMessage.OperationStatus_E', null, global); -goog.exportSymbol('proto.UniversalMessage.RoutableMessage', null, global); -goog.exportSymbol('proto.UniversalMessage.RoutableMessage.PayloadCase', null, global); -goog.exportSymbol('proto.UniversalMessage.RoutableMessage.SubSigdataCase', null, global); -goog.exportSymbol('proto.UniversalMessage.SessionInfoRequest', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.UniversalMessage.Destination = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.UniversalMessage.Destination.oneofGroups_); -}; -goog.inherits(proto.UniversalMessage.Destination, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.UniversalMessage.Destination.displayName = 'proto.UniversalMessage.Destination'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.UniversalMessage.MessageStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.UniversalMessage.MessageStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.UniversalMessage.MessageStatus.displayName = 'proto.UniversalMessage.MessageStatus'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.UniversalMessage.SessionInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.UniversalMessage.SessionInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.UniversalMessage.SessionInfoRequest.displayName = 'proto.UniversalMessage.SessionInfoRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.UniversalMessage.RoutableMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.UniversalMessage.RoutableMessage.oneofGroups_); -}; -goog.inherits(proto.UniversalMessage.RoutableMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.UniversalMessage.RoutableMessage.displayName = 'proto.UniversalMessage.RoutableMessage'; -} - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.UniversalMessage.Destination.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.UniversalMessage.Destination.SubDestinationCase = { - SUB_DESTINATION_NOT_SET: 0, - DOMAIN: 1, - ROUTING_ADDRESS: 2 -}; - -/** - * @return {proto.UniversalMessage.Destination.SubDestinationCase} - */ -proto.UniversalMessage.Destination.prototype.getSubDestinationCase = function() { - return /** @type {proto.UniversalMessage.Destination.SubDestinationCase} */(jspb.Message.computeOneofCase(this, proto.UniversalMessage.Destination.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.UniversalMessage.Destination.prototype.toObject = function(opt_includeInstance) { - return proto.UniversalMessage.Destination.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.UniversalMessage.Destination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.Destination.toObject = function(includeInstance, msg) { - var f, obj = { - domain: jspb.Message.getFieldWithDefault(msg, 1, 0), - routingAddress: msg.getRoutingAddress_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.UniversalMessage.Destination} - */ -proto.UniversalMessage.Destination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.UniversalMessage.Destination; - return proto.UniversalMessage.Destination.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.UniversalMessage.Destination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.UniversalMessage.Destination} - */ -proto.UniversalMessage.Destination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.UniversalMessage.Domain} */ (reader.readEnum()); - msg.setDomain(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRoutingAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.UniversalMessage.Destination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.UniversalMessage.Destination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.UniversalMessage.Destination} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.Destination.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = /** @type {!proto.UniversalMessage.Domain} */ (jspb.Message.getField(message, 1)); - if (f != null) { - writer.writeEnum( - 1, - f - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional Domain domain = 1; - * @return {!proto.UniversalMessage.Domain} - */ -proto.UniversalMessage.Destination.prototype.getDomain = function() { - return /** @type {!proto.UniversalMessage.Domain} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.UniversalMessage.Domain} value - * @return {!proto.UniversalMessage.Destination} returns this - */ -proto.UniversalMessage.Destination.prototype.setDomain = function(value) { - return jspb.Message.setOneofField(this, 1, proto.UniversalMessage.Destination.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.UniversalMessage.Destination} returns this - */ -proto.UniversalMessage.Destination.prototype.clearDomain = function() { - return jspb.Message.setOneofField(this, 1, proto.UniversalMessage.Destination.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.Destination.prototype.hasDomain = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bytes routing_address = 2; - * @return {!(string|Uint8Array)} - */ -proto.UniversalMessage.Destination.prototype.getRoutingAddress = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes routing_address = 2; - * This is a type-conversion wrapper around `getRoutingAddress()` - * @return {string} - */ -proto.UniversalMessage.Destination.prototype.getRoutingAddress_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRoutingAddress())); -}; - - -/** - * optional bytes routing_address = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRoutingAddress()` - * @return {!Uint8Array} - */ -proto.UniversalMessage.Destination.prototype.getRoutingAddress_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRoutingAddress())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.UniversalMessage.Destination} returns this - */ -proto.UniversalMessage.Destination.prototype.setRoutingAddress = function(value) { - return jspb.Message.setOneofField(this, 2, proto.UniversalMessage.Destination.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.UniversalMessage.Destination} returns this - */ -proto.UniversalMessage.Destination.prototype.clearRoutingAddress = function() { - return jspb.Message.setOneofField(this, 2, proto.UniversalMessage.Destination.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.Destination.prototype.hasRoutingAddress = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.UniversalMessage.MessageStatus.prototype.toObject = function(opt_includeInstance) { - return proto.UniversalMessage.MessageStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.UniversalMessage.MessageStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.MessageStatus.toObject = function(includeInstance, msg) { - var f, obj = { - operationStatus: jspb.Message.getFieldWithDefault(msg, 1, 0), - signedMessageFault: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.UniversalMessage.MessageStatus} - */ -proto.UniversalMessage.MessageStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.UniversalMessage.MessageStatus; - return proto.UniversalMessage.MessageStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.UniversalMessage.MessageStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.UniversalMessage.MessageStatus} - */ -proto.UniversalMessage.MessageStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.UniversalMessage.OperationStatus_E} */ (reader.readEnum()); - msg.setOperationStatus(value); - break; - case 2: - var value = /** @type {!proto.UniversalMessage.MessageFault_E} */ (reader.readEnum()); - msg.setSignedMessageFault(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.UniversalMessage.MessageStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.UniversalMessage.MessageStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.UniversalMessage.MessageStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.MessageStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOperationStatus(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getSignedMessageFault(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional OperationStatus_E operation_status = 1; - * @return {!proto.UniversalMessage.OperationStatus_E} - */ -proto.UniversalMessage.MessageStatus.prototype.getOperationStatus = function() { - return /** @type {!proto.UniversalMessage.OperationStatus_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.UniversalMessage.OperationStatus_E} value - * @return {!proto.UniversalMessage.MessageStatus} returns this - */ -proto.UniversalMessage.MessageStatus.prototype.setOperationStatus = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional MessageFault_E signed_message_fault = 2; - * @return {!proto.UniversalMessage.MessageFault_E} - */ -proto.UniversalMessage.MessageStatus.prototype.getSignedMessageFault = function() { - return /** @type {!proto.UniversalMessage.MessageFault_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.UniversalMessage.MessageFault_E} value - * @return {!proto.UniversalMessage.MessageStatus} returns this - */ -proto.UniversalMessage.MessageStatus.prototype.setSignedMessageFault = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.toObject = function(opt_includeInstance) { - return proto.UniversalMessage.SessionInfoRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.UniversalMessage.SessionInfoRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.SessionInfoRequest.toObject = function(includeInstance, msg) { - var f, obj = { - publicKey: msg.getPublicKey_asB64(), - challenge: msg.getChallenge_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.UniversalMessage.SessionInfoRequest} - */ -proto.UniversalMessage.SessionInfoRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.UniversalMessage.SessionInfoRequest; - return proto.UniversalMessage.SessionInfoRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.UniversalMessage.SessionInfoRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.UniversalMessage.SessionInfoRequest} - */ -proto.UniversalMessage.SessionInfoRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPublicKey(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setChallenge(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.UniversalMessage.SessionInfoRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.UniversalMessage.SessionInfoRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.SessionInfoRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPublicKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getChallenge_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional bytes public_key = 1; - * @return {!(string|Uint8Array)} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.getPublicKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes public_key = 1; - * This is a type-conversion wrapper around `getPublicKey()` - * @return {string} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.getPublicKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPublicKey())); -}; - - -/** - * optional bytes public_key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPublicKey()` - * @return {!Uint8Array} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.getPublicKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPublicKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.UniversalMessage.SessionInfoRequest} returns this - */ -proto.UniversalMessage.SessionInfoRequest.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bytes challenge = 2; - * @return {!(string|Uint8Array)} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.getChallenge = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes challenge = 2; - * This is a type-conversion wrapper around `getChallenge()` - * @return {string} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.getChallenge_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getChallenge())); -}; - - -/** - * optional bytes challenge = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getChallenge()` - * @return {!Uint8Array} - */ -proto.UniversalMessage.SessionInfoRequest.prototype.getChallenge_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getChallenge())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.UniversalMessage.SessionInfoRequest} returns this - */ -proto.UniversalMessage.SessionInfoRequest.prototype.setChallenge = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.UniversalMessage.RoutableMessage.oneofGroups_ = [[10,14,15],[13]]; - -/** - * @enum {number} - */ -proto.UniversalMessage.RoutableMessage.PayloadCase = { - PAYLOAD_NOT_SET: 0, - PROTOBUF_MESSAGE_AS_BYTES: 10, - SESSION_INFO_REQUEST: 14, - SESSION_INFO: 15 -}; - -/** - * @return {proto.UniversalMessage.RoutableMessage.PayloadCase} - */ -proto.UniversalMessage.RoutableMessage.prototype.getPayloadCase = function() { - return /** @type {proto.UniversalMessage.RoutableMessage.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.UniversalMessage.RoutableMessage.oneofGroups_[0])); -}; - -/** - * @enum {number} - */ -proto.UniversalMessage.RoutableMessage.SubSigdataCase = { - SUB_SIGDATA_NOT_SET: 0, - SIGNATURE_DATA: 13 -}; - -/** - * @return {proto.UniversalMessage.RoutableMessage.SubSigdataCase} - */ -proto.UniversalMessage.RoutableMessage.prototype.getSubSigdataCase = function() { - return /** @type {proto.UniversalMessage.RoutableMessage.SubSigdataCase} */(jspb.Message.computeOneofCase(this, proto.UniversalMessage.RoutableMessage.oneofGroups_[1])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.UniversalMessage.RoutableMessage.prototype.toObject = function(opt_includeInstance) { - return proto.UniversalMessage.RoutableMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.UniversalMessage.RoutableMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.RoutableMessage.toObject = function(includeInstance, msg) { - var f, obj = { - toDestination: (f = msg.getToDestination()) && proto.UniversalMessage.Destination.toObject(includeInstance, f), - fromDestination: (f = msg.getFromDestination()) && proto.UniversalMessage.Destination.toObject(includeInstance, f), - protobufMessageAsBytes: msg.getProtobufMessageAsBytes_asB64(), - sessionInfoRequest: (f = msg.getSessionInfoRequest()) && proto.UniversalMessage.SessionInfoRequest.toObject(includeInstance, f), - sessionInfo: msg.getSessionInfo_asB64(), - signatureData: (f = msg.getSignatureData()) && signatures_pb.SignatureData.toObject(includeInstance, f), - signedmessagestatus: (f = msg.getSignedmessagestatus()) && proto.UniversalMessage.MessageStatus.toObject(includeInstance, f), - requestUuid: msg.getRequestUuid_asB64(), - uuid: msg.getUuid_asB64(), - flags: jspb.Message.getFieldWithDefault(msg, 52, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.UniversalMessage.RoutableMessage} - */ -proto.UniversalMessage.RoutableMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.UniversalMessage.RoutableMessage; - return proto.UniversalMessage.RoutableMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.UniversalMessage.RoutableMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.UniversalMessage.RoutableMessage} - */ -proto.UniversalMessage.RoutableMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 6: - var value = new proto.UniversalMessage.Destination; - reader.readMessage(value,proto.UniversalMessage.Destination.deserializeBinaryFromReader); - msg.setToDestination(value); - break; - case 7: - var value = new proto.UniversalMessage.Destination; - reader.readMessage(value,proto.UniversalMessage.Destination.deserializeBinaryFromReader); - msg.setFromDestination(value); - break; - case 10: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setProtobufMessageAsBytes(value); - break; - case 14: - var value = new proto.UniversalMessage.SessionInfoRequest; - reader.readMessage(value,proto.UniversalMessage.SessionInfoRequest.deserializeBinaryFromReader); - msg.setSessionInfoRequest(value); - break; - case 15: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSessionInfo(value); - break; - case 13: - var value = new signatures_pb.SignatureData; - reader.readMessage(value,signatures_pb.SignatureData.deserializeBinaryFromReader); - msg.setSignatureData(value); - break; - case 12: - var value = new proto.UniversalMessage.MessageStatus; - reader.readMessage(value,proto.UniversalMessage.MessageStatus.deserializeBinaryFromReader); - msg.setSignedmessagestatus(value); - break; - case 50: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRequestUuid(value); - break; - case 51: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setUuid(value); - break; - case 52: - var value = /** @type {number} */ (reader.readUint32()); - msg.setFlags(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.UniversalMessage.RoutableMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.UniversalMessage.RoutableMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.UniversalMessage.RoutableMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.UniversalMessage.RoutableMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getToDestination(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.UniversalMessage.Destination.serializeBinaryToWriter - ); - } - f = message.getFromDestination(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.UniversalMessage.Destination.serializeBinaryToWriter - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeBytes( - 10, - f - ); - } - f = message.getSessionInfoRequest(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.UniversalMessage.SessionInfoRequest.serializeBinaryToWriter - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 15)); - if (f != null) { - writer.writeBytes( - 15, - f - ); - } - f = message.getSignatureData(); - if (f != null) { - writer.writeMessage( - 13, - f, - signatures_pb.SignatureData.serializeBinaryToWriter - ); - } - f = message.getSignedmessagestatus(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.UniversalMessage.MessageStatus.serializeBinaryToWriter - ); - } - f = message.getRequestUuid_asU8(); - if (f.length > 0) { - writer.writeBytes( - 50, - f - ); - } - f = message.getUuid_asU8(); - if (f.length > 0) { - writer.writeBytes( - 51, - f - ); - } - f = message.getFlags(); - if (f !== 0) { - writer.writeUint32( - 52, - f - ); - } -}; - - -/** - * optional Destination to_destination = 6; - * @return {?proto.UniversalMessage.Destination} - */ -proto.UniversalMessage.RoutableMessage.prototype.getToDestination = function() { - return /** @type{?proto.UniversalMessage.Destination} */ ( - jspb.Message.getWrapperField(this, proto.UniversalMessage.Destination, 6)); -}; - - -/** - * @param {?proto.UniversalMessage.Destination|undefined} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this -*/ -proto.UniversalMessage.RoutableMessage.prototype.setToDestination = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.clearToDestination = function() { - return this.setToDestination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.RoutableMessage.prototype.hasToDestination = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional Destination from_destination = 7; - * @return {?proto.UniversalMessage.Destination} - */ -proto.UniversalMessage.RoutableMessage.prototype.getFromDestination = function() { - return /** @type{?proto.UniversalMessage.Destination} */ ( - jspb.Message.getWrapperField(this, proto.UniversalMessage.Destination, 7)); -}; - - -/** - * @param {?proto.UniversalMessage.Destination|undefined} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this -*/ -proto.UniversalMessage.RoutableMessage.prototype.setFromDestination = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.clearFromDestination = function() { - return this.setFromDestination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.RoutableMessage.prototype.hasFromDestination = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional bytes protobuf_message_as_bytes = 10; - * @return {!(string|Uint8Array)} - */ -proto.UniversalMessage.RoutableMessage.prototype.getProtobufMessageAsBytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * optional bytes protobuf_message_as_bytes = 10; - * This is a type-conversion wrapper around `getProtobufMessageAsBytes()` - * @return {string} - */ -proto.UniversalMessage.RoutableMessage.prototype.getProtobufMessageAsBytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getProtobufMessageAsBytes())); -}; - - -/** - * optional bytes protobuf_message_as_bytes = 10; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getProtobufMessageAsBytes()` - * @return {!Uint8Array} - */ -proto.UniversalMessage.RoutableMessage.prototype.getProtobufMessageAsBytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getProtobufMessageAsBytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.setProtobufMessageAsBytes = function(value) { - return jspb.Message.setOneofField(this, 10, proto.UniversalMessage.RoutableMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.clearProtobufMessageAsBytes = function() { - return jspb.Message.setOneofField(this, 10, proto.UniversalMessage.RoutableMessage.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.RoutableMessage.prototype.hasProtobufMessageAsBytes = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional SessionInfoRequest session_info_request = 14; - * @return {?proto.UniversalMessage.SessionInfoRequest} - */ -proto.UniversalMessage.RoutableMessage.prototype.getSessionInfoRequest = function() { - return /** @type{?proto.UniversalMessage.SessionInfoRequest} */ ( - jspb.Message.getWrapperField(this, proto.UniversalMessage.SessionInfoRequest, 14)); -}; - - -/** - * @param {?proto.UniversalMessage.SessionInfoRequest|undefined} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this -*/ -proto.UniversalMessage.RoutableMessage.prototype.setSessionInfoRequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.UniversalMessage.RoutableMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.clearSessionInfoRequest = function() { - return this.setSessionInfoRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.RoutableMessage.prototype.hasSessionInfoRequest = function() { - return jspb.Message.getField(this, 14) != null; -}; - - -/** - * optional bytes session_info = 15; - * @return {!(string|Uint8Array)} - */ -proto.UniversalMessage.RoutableMessage.prototype.getSessionInfo = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * optional bytes session_info = 15; - * This is a type-conversion wrapper around `getSessionInfo()` - * @return {string} - */ -proto.UniversalMessage.RoutableMessage.prototype.getSessionInfo_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSessionInfo())); -}; - - -/** - * optional bytes session_info = 15; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSessionInfo()` - * @return {!Uint8Array} - */ -proto.UniversalMessage.RoutableMessage.prototype.getSessionInfo_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSessionInfo())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.setSessionInfo = function(value) { - return jspb.Message.setOneofField(this, 15, proto.UniversalMessage.RoutableMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.clearSessionInfo = function() { - return jspb.Message.setOneofField(this, 15, proto.UniversalMessage.RoutableMessage.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.RoutableMessage.prototype.hasSessionInfo = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional Signatures.SignatureData signature_data = 13; - * @return {?proto.Signatures.SignatureData} - */ -proto.UniversalMessage.RoutableMessage.prototype.getSignatureData = function() { - return /** @type{?proto.Signatures.SignatureData} */ ( - jspb.Message.getWrapperField(this, signatures_pb.SignatureData, 13)); -}; - - -/** - * @param {?proto.Signatures.SignatureData|undefined} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this -*/ -proto.UniversalMessage.RoutableMessage.prototype.setSignatureData = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.UniversalMessage.RoutableMessage.oneofGroups_[1], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.clearSignatureData = function() { - return this.setSignatureData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.RoutableMessage.prototype.hasSignatureData = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional MessageStatus signedMessageStatus = 12; - * @return {?proto.UniversalMessage.MessageStatus} - */ -proto.UniversalMessage.RoutableMessage.prototype.getSignedmessagestatus = function() { - return /** @type{?proto.UniversalMessage.MessageStatus} */ ( - jspb.Message.getWrapperField(this, proto.UniversalMessage.MessageStatus, 12)); -}; - - -/** - * @param {?proto.UniversalMessage.MessageStatus|undefined} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this -*/ -proto.UniversalMessage.RoutableMessage.prototype.setSignedmessagestatus = function(value) { - return jspb.Message.setWrapperField(this, 12, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.clearSignedmessagestatus = function() { - return this.setSignedmessagestatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.UniversalMessage.RoutableMessage.prototype.hasSignedmessagestatus = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional bytes request_uuid = 50; - * @return {!(string|Uint8Array)} - */ -proto.UniversalMessage.RoutableMessage.prototype.getRequestUuid = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 50, "")); -}; - - -/** - * optional bytes request_uuid = 50; - * This is a type-conversion wrapper around `getRequestUuid()` - * @return {string} - */ -proto.UniversalMessage.RoutableMessage.prototype.getRequestUuid_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRequestUuid())); -}; - - -/** - * optional bytes request_uuid = 50; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRequestUuid()` - * @return {!Uint8Array} - */ -proto.UniversalMessage.RoutableMessage.prototype.getRequestUuid_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRequestUuid())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.setRequestUuid = function(value) { - return jspb.Message.setProto3BytesField(this, 50, value); -}; - - -/** - * optional bytes uuid = 51; - * @return {!(string|Uint8Array)} - */ -proto.UniversalMessage.RoutableMessage.prototype.getUuid = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 51, "")); -}; - - -/** - * optional bytes uuid = 51; - * This is a type-conversion wrapper around `getUuid()` - * @return {string} - */ -proto.UniversalMessage.RoutableMessage.prototype.getUuid_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getUuid())); -}; - - -/** - * optional bytes uuid = 51; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getUuid()` - * @return {!Uint8Array} - */ -proto.UniversalMessage.RoutableMessage.prototype.getUuid_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getUuid())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.setUuid = function(value) { - return jspb.Message.setProto3BytesField(this, 51, value); -}; - - -/** - * optional uint32 flags = 52; - * @return {number} - */ -proto.UniversalMessage.RoutableMessage.prototype.getFlags = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 52, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.UniversalMessage.RoutableMessage} returns this - */ -proto.UniversalMessage.RoutableMessage.prototype.setFlags = function(value) { - return jspb.Message.setProto3IntField(this, 52, value); -}; - - -/** - * @enum {number} - */ -proto.UniversalMessage.Domain = { - DOMAIN_BROADCAST: 0, - DOMAIN_VEHICLE_SECURITY: 2, - DOMAIN_INFOTAINMENT: 3 -}; - -/** - * @enum {number} - */ -proto.UniversalMessage.OperationStatus_E = { - OPERATIONSTATUS_OK: 0, - OPERATIONSTATUS_WAIT: 1, - OPERATIONSTATUS_ERROR: 2 -}; - -/** - * @enum {number} - */ -proto.UniversalMessage.MessageFault_E = { - MESSAGEFAULT_ERROR_NONE: 0, - MESSAGEFAULT_ERROR_BUSY: 1, - MESSAGEFAULT_ERROR_TIMEOUT: 2, - MESSAGEFAULT_ERROR_UNKNOWN_KEY_ID: 3, - MESSAGEFAULT_ERROR_INACTIVE_KEY: 4, - MESSAGEFAULT_ERROR_INVALID_SIGNATURE: 5, - MESSAGEFAULT_ERROR_INVALID_TOKEN_OR_COUNTER: 6, - MESSAGEFAULT_ERROR_INSUFFICIENT_PRIVILEGES: 7, - MESSAGEFAULT_ERROR_INVALID_DOMAINS: 8, - MESSAGEFAULT_ERROR_INVALID_COMMAND: 9, - MESSAGEFAULT_ERROR_DECODING: 10, - MESSAGEFAULT_ERROR_INTERNAL: 11, - MESSAGEFAULT_ERROR_WRONG_PERSONALIZATION: 12, - MESSAGEFAULT_ERROR_BAD_PARAMETER: 13, - MESSAGEFAULT_ERROR_KEYCHAIN_IS_FULL: 14, - MESSAGEFAULT_ERROR_INCORRECT_EPOCH: 15, - MESSAGEFAULT_ERROR_IV_INCORRECT_LENGTH: 16, - MESSAGEFAULT_ERROR_TIME_EXPIRED: 17, - MESSAGEFAULT_ERROR_NOT_PROVISIONED_WITH_IDENTITY: 18, - MESSAGEFAULT_ERROR_COULD_NOT_HASH_METADATA: 19, - MESSAGEFAULT_ERROR_TIME_TO_LIVE_TOO_LONG: 20, - MESSAGEFAULT_ERROR_REMOTE_ACCESS_DISABLED: 21, - MESSAGEFAULT_ERROR_REMOTE_SERVICE_ACCESS_DISABLED: 22, - MESSAGEFAULT_ERROR_COMMAND_REQUIRES_ACCOUNT_CREDENTIALS: 23 -}; - -/** - * @enum {number} - */ -proto.UniversalMessage.Flags = { - FLAG_USER_COMMAND: 0 -}; - -goog.object.extend(exports, proto.UniversalMessage); diff --git a/src/pb2/vcsec_pb.d.ts b/src/pb2/vcsec_pb.d.ts deleted file mode 100644 index 5e84add..0000000 --- a/src/pb2/vcsec_pb.d.ts +++ /dev/null @@ -1,912 +0,0 @@ -// package: VCSEC -// file: vcsec.proto - -import * as jspb from "google-protobuf"; -import * as keys_pb from "./keys_pb"; -import * as errors_pb from "./errors_pb"; - -export class SignedMessage extends jspb.Message { - getProtobufmessageasbytes(): Uint8Array | string; - getProtobufmessageasbytes_asU8(): Uint8Array; - getProtobufmessageasbytes_asB64(): string; - setProtobufmessageasbytes(value: Uint8Array | string): void; - - getSignaturetype(): SignatureTypeMap[keyof SignatureTypeMap]; - setSignaturetype(value: SignatureTypeMap[keyof SignatureTypeMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignedMessage.AsObject; - static toObject(includeInstance: boolean, msg: SignedMessage): SignedMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SignedMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignedMessage; - static deserializeBinaryFromReader(message: SignedMessage, reader: jspb.BinaryReader): SignedMessage; -} - -export namespace SignedMessage { - export type AsObject = { - protobufmessageasbytes: Uint8Array | string, - signaturetype: SignatureTypeMap[keyof SignatureTypeMap], - } -} - -export class ToVCSECMessage extends jspb.Message { - hasSignedmessage(): boolean; - clearSignedmessage(): void; - getSignedmessage(): SignedMessage | undefined; - setSignedmessage(value?: SignedMessage): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ToVCSECMessage.AsObject; - static toObject(includeInstance: boolean, msg: ToVCSECMessage): ToVCSECMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ToVCSECMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ToVCSECMessage; - static deserializeBinaryFromReader(message: ToVCSECMessage, reader: jspb.BinaryReader): ToVCSECMessage; -} - -export namespace ToVCSECMessage { - export type AsObject = { - signedmessage?: SignedMessage.AsObject, - } -} - -export class KeyIdentifier extends jspb.Message { - getPublickeysha1(): Uint8Array | string; - getPublickeysha1_asU8(): Uint8Array; - getPublickeysha1_asB64(): string; - setPublickeysha1(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeyIdentifier.AsObject; - static toObject(includeInstance: boolean, msg: KeyIdentifier): KeyIdentifier.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: KeyIdentifier, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeyIdentifier; - static deserializeBinaryFromReader(message: KeyIdentifier, reader: jspb.BinaryReader): KeyIdentifier; -} - -export namespace KeyIdentifier { - export type AsObject = { - publickeysha1: Uint8Array | string, - } -} - -export class KeyMetadata extends jspb.Message { - getKeyformfactor(): KeyFormFactorMap[keyof KeyFormFactorMap]; - setKeyformfactor(value: KeyFormFactorMap[keyof KeyFormFactorMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): KeyMetadata.AsObject; - static toObject(includeInstance: boolean, msg: KeyMetadata): KeyMetadata.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: KeyMetadata, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): KeyMetadata; - static deserializeBinaryFromReader(message: KeyMetadata, reader: jspb.BinaryReader): KeyMetadata; -} - -export namespace KeyMetadata { - export type AsObject = { - keyformfactor: KeyFormFactorMap[keyof KeyFormFactorMap], - } -} - -export class PublicKey extends jspb.Message { - getPublickeyraw(): Uint8Array | string; - getPublickeyraw_asU8(): Uint8Array; - getPublickeyraw_asB64(): string; - setPublickeyraw(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PublicKey.AsObject; - static toObject(includeInstance: boolean, msg: PublicKey): PublicKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PublicKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PublicKey; - static deserializeBinaryFromReader(message: PublicKey, reader: jspb.BinaryReader): PublicKey; -} - -export namespace PublicKey { - export type AsObject = { - publickeyraw: Uint8Array | string, - } -} - -export class WhitelistInfo extends jspb.Message { - getNumberofentries(): number; - setNumberofentries(value: number): void; - - clearWhitelistentriesList(): void; - getWhitelistentriesList(): Array; - setWhitelistentriesList(value: Array): void; - addWhitelistentries(value?: KeyIdentifier, index?: number): KeyIdentifier; - - getSlotmask(): number; - setSlotmask(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WhitelistInfo.AsObject; - static toObject(includeInstance: boolean, msg: WhitelistInfo): WhitelistInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WhitelistInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WhitelistInfo; - static deserializeBinaryFromReader(message: WhitelistInfo, reader: jspb.BinaryReader): WhitelistInfo; -} - -export namespace WhitelistInfo { - export type AsObject = { - numberofentries: number, - whitelistentriesList: Array, - slotmask: number, - } -} - -export class WhitelistEntryInfo extends jspb.Message { - hasKeyid(): boolean; - clearKeyid(): void; - getKeyid(): KeyIdentifier | undefined; - setKeyid(value?: KeyIdentifier): void; - - hasPublickey(): boolean; - clearPublickey(): void; - getPublickey(): PublicKey | undefined; - setPublickey(value?: PublicKey): void; - - hasMetadataforkey(): boolean; - clearMetadataforkey(): void; - getMetadataforkey(): KeyMetadata | undefined; - setMetadataforkey(value?: KeyMetadata): void; - - getSlot(): number; - setSlot(value: number): void; - - getKeyrole(): keys_pb.RoleMap[keyof keys_pb.RoleMap]; - setKeyrole(value: keys_pb.RoleMap[keyof keys_pb.RoleMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WhitelistEntryInfo.AsObject; - static toObject(includeInstance: boolean, msg: WhitelistEntryInfo): WhitelistEntryInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WhitelistEntryInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WhitelistEntryInfo; - static deserializeBinaryFromReader(message: WhitelistEntryInfo, reader: jspb.BinaryReader): WhitelistEntryInfo; -} - -export namespace WhitelistEntryInfo { - export type AsObject = { - keyid?: KeyIdentifier.AsObject, - publickey?: PublicKey.AsObject, - metadataforkey?: KeyMetadata.AsObject, - slot: number, - keyrole: keys_pb.RoleMap[keyof keys_pb.RoleMap], - } -} - -export class InformationRequest extends jspb.Message { - getInformationrequesttype(): InformationRequestTypeMap[keyof InformationRequestTypeMap]; - setInformationrequesttype(value: InformationRequestTypeMap[keyof InformationRequestTypeMap]): void; - - hasKeyid(): boolean; - clearKeyid(): void; - getKeyid(): KeyIdentifier | undefined; - setKeyid(value?: KeyIdentifier): void; - - hasPublickey(): boolean; - clearPublickey(): void; - getPublickey(): Uint8Array | string; - getPublickey_asU8(): Uint8Array; - getPublickey_asB64(): string; - setPublickey(value: Uint8Array | string): void; - - hasSlot(): boolean; - clearSlot(): void; - getSlot(): number; - setSlot(value: number): void; - - getKeyCase(): InformationRequest.KeyCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): InformationRequest.AsObject; - static toObject(includeInstance: boolean, msg: InformationRequest): InformationRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: InformationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): InformationRequest; - static deserializeBinaryFromReader(message: InformationRequest, reader: jspb.BinaryReader): InformationRequest; -} - -export namespace InformationRequest { - export type AsObject = { - informationrequesttype: InformationRequestTypeMap[keyof InformationRequestTypeMap], - keyid?: KeyIdentifier.AsObject, - publickey: Uint8Array | string, - slot: number, - } - - export enum KeyCase { - KEY_NOT_SET = 0, - KEYID = 2, - PUBLICKEY = 3, - SLOT = 4, - } -} - -export class ClosureMoveRequest extends jspb.Message { - getFrontdriverdoor(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setFrontdriverdoor(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - getFrontpassengerdoor(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setFrontpassengerdoor(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - getReardriverdoor(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setReardriverdoor(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - getRearpassengerdoor(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setRearpassengerdoor(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - getReartrunk(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setReartrunk(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - getFronttrunk(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setFronttrunk(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - getChargeport(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setChargeport(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - getTonneau(): ClosureMoveType_EMap[keyof ClosureMoveType_EMap]; - setTonneau(value: ClosureMoveType_EMap[keyof ClosureMoveType_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClosureMoveRequest.AsObject; - static toObject(includeInstance: boolean, msg: ClosureMoveRequest): ClosureMoveRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClosureMoveRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClosureMoveRequest; - static deserializeBinaryFromReader(message: ClosureMoveRequest, reader: jspb.BinaryReader): ClosureMoveRequest; -} - -export namespace ClosureMoveRequest { - export type AsObject = { - frontdriverdoor: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - frontpassengerdoor: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - reardriverdoor: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - rearpassengerdoor: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - reartrunk: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - fronttrunk: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - chargeport: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - tonneau: ClosureMoveType_EMap[keyof ClosureMoveType_EMap], - } -} - -export class PermissionChange extends jspb.Message { - hasKey(): boolean; - clearKey(): void; - getKey(): PublicKey | undefined; - setKey(value?: PublicKey): void; - - getSecondstobeactive(): number; - setSecondstobeactive(value: number): void; - - getKeyrole(): keys_pb.RoleMap[keyof keys_pb.RoleMap]; - setKeyrole(value: keys_pb.RoleMap[keyof keys_pb.RoleMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PermissionChange.AsObject; - static toObject(includeInstance: boolean, msg: PermissionChange): PermissionChange.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PermissionChange, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PermissionChange; - static deserializeBinaryFromReader(message: PermissionChange, reader: jspb.BinaryReader): PermissionChange; -} - -export namespace PermissionChange { - export type AsObject = { - key?: PublicKey.AsObject, - secondstobeactive: number, - keyrole: keys_pb.RoleMap[keyof keys_pb.RoleMap], - } -} - -export class ReplaceKey extends jspb.Message { - hasPublickeytoreplace(): boolean; - clearPublickeytoreplace(): void; - getPublickeytoreplace(): PublicKey | undefined; - setPublickeytoreplace(value?: PublicKey): void; - - hasSlottoreplace(): boolean; - clearSlottoreplace(): void; - getSlottoreplace(): number; - setSlottoreplace(value: number): void; - - hasKeytoadd(): boolean; - clearKeytoadd(): void; - getKeytoadd(): PublicKey | undefined; - setKeytoadd(value?: PublicKey): void; - - getKeyrole(): keys_pb.RoleMap[keyof keys_pb.RoleMap]; - setKeyrole(value: keys_pb.RoleMap[keyof keys_pb.RoleMap]): void; - - getImpermanent(): boolean; - setImpermanent(value: boolean): void; - - getKeytoreplaceCase(): ReplaceKey.KeytoreplaceCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ReplaceKey.AsObject; - static toObject(includeInstance: boolean, msg: ReplaceKey): ReplaceKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ReplaceKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ReplaceKey; - static deserializeBinaryFromReader(message: ReplaceKey, reader: jspb.BinaryReader): ReplaceKey; -} - -export namespace ReplaceKey { - export type AsObject = { - publickeytoreplace?: PublicKey.AsObject, - slottoreplace: number, - keytoadd?: PublicKey.AsObject, - keyrole: keys_pb.RoleMap[keyof keys_pb.RoleMap], - impermanent: boolean, - } - - export enum KeytoreplaceCase { - KEYTOREPLACE_NOT_SET = 0, - PUBLICKEYTOREPLACE = 1, - SLOTTOREPLACE = 2, - } -} - -export class WhitelistOperation extends jspb.Message { - hasAddpublickeytowhitelist(): boolean; - clearAddpublickeytowhitelist(): void; - getAddpublickeytowhitelist(): PublicKey | undefined; - setAddpublickeytowhitelist(value?: PublicKey): void; - - hasRemovepublickeyfromwhitelist(): boolean; - clearRemovepublickeyfromwhitelist(): void; - getRemovepublickeyfromwhitelist(): PublicKey | undefined; - setRemovepublickeyfromwhitelist(value?: PublicKey): void; - - hasAddpermissionstopublickey(): boolean; - clearAddpermissionstopublickey(): void; - getAddpermissionstopublickey(): PermissionChange | undefined; - setAddpermissionstopublickey(value?: PermissionChange): void; - - hasRemovepermissionsfrompublickey(): boolean; - clearRemovepermissionsfrompublickey(): void; - getRemovepermissionsfrompublickey(): PermissionChange | undefined; - setRemovepermissionsfrompublickey(value?: PermissionChange): void; - - hasAddkeytowhitelistandaddpermissions(): boolean; - clearAddkeytowhitelistandaddpermissions(): void; - getAddkeytowhitelistandaddpermissions(): PermissionChange | undefined; - setAddkeytowhitelistandaddpermissions(value?: PermissionChange): void; - - hasUpdatekeyandpermissions(): boolean; - clearUpdatekeyandpermissions(): void; - getUpdatekeyandpermissions(): PermissionChange | undefined; - setUpdatekeyandpermissions(value?: PermissionChange): void; - - hasAddimpermanentkey(): boolean; - clearAddimpermanentkey(): void; - getAddimpermanentkey(): PermissionChange | undefined; - setAddimpermanentkey(value?: PermissionChange): void; - - hasAddimpermanentkeyandremoveexisting(): boolean; - clearAddimpermanentkeyandremoveexisting(): void; - getAddimpermanentkeyandremoveexisting(): PermissionChange | undefined; - setAddimpermanentkeyandremoveexisting(value?: PermissionChange): void; - - hasRemoveallimpermanentkeys(): boolean; - clearRemoveallimpermanentkeys(): void; - getRemoveallimpermanentkeys(): boolean; - setRemoveallimpermanentkeys(value: boolean): void; - - hasReplacekey(): boolean; - clearReplacekey(): void; - getReplacekey(): ReplaceKey | undefined; - setReplacekey(value?: ReplaceKey): void; - - hasMetadataforkey(): boolean; - clearMetadataforkey(): void; - getMetadataforkey(): KeyMetadata | undefined; - setMetadataforkey(value?: KeyMetadata): void; - - getSubMessageCase(): WhitelistOperation.SubMessageCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WhitelistOperation.AsObject; - static toObject(includeInstance: boolean, msg: WhitelistOperation): WhitelistOperation.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WhitelistOperation, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WhitelistOperation; - static deserializeBinaryFromReader(message: WhitelistOperation, reader: jspb.BinaryReader): WhitelistOperation; -} - -export namespace WhitelistOperation { - export type AsObject = { - addpublickeytowhitelist?: PublicKey.AsObject, - removepublickeyfromwhitelist?: PublicKey.AsObject, - addpermissionstopublickey?: PermissionChange.AsObject, - removepermissionsfrompublickey?: PermissionChange.AsObject, - addkeytowhitelistandaddpermissions?: PermissionChange.AsObject, - updatekeyandpermissions?: PermissionChange.AsObject, - addimpermanentkey?: PermissionChange.AsObject, - addimpermanentkeyandremoveexisting?: PermissionChange.AsObject, - removeallimpermanentkeys: boolean, - replacekey?: ReplaceKey.AsObject, - metadataforkey?: KeyMetadata.AsObject, - } - - export enum SubMessageCase { - SUB_MESSAGE_NOT_SET = 0, - ADDPUBLICKEYTOWHITELIST = 1, - REMOVEPUBLICKEYFROMWHITELIST = 2, - ADDPERMISSIONSTOPUBLICKEY = 3, - REMOVEPERMISSIONSFROMPUBLICKEY = 4, - ADDKEYTOWHITELISTANDADDPERMISSIONS = 5, - UPDATEKEYANDPERMISSIONS = 7, - ADDIMPERMANENTKEY = 8, - ADDIMPERMANENTKEYANDREMOVEEXISTING = 9, - REMOVEALLIMPERMANENTKEYS = 16, - REPLACEKEY = 17, - } -} - -export class WhitelistOperation_status extends jspb.Message { - getWhitelistoperationinformation(): WhitelistOperation_information_EMap[keyof WhitelistOperation_information_EMap]; - setWhitelistoperationinformation(value: WhitelistOperation_information_EMap[keyof WhitelistOperation_information_EMap]): void; - - hasSignerofoperation(): boolean; - clearSignerofoperation(): void; - getSignerofoperation(): KeyIdentifier | undefined; - setSignerofoperation(value?: KeyIdentifier): void; - - getOperationstatus(): OperationStatus_EMap[keyof OperationStatus_EMap]; - setOperationstatus(value: OperationStatus_EMap[keyof OperationStatus_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): WhitelistOperation_status.AsObject; - static toObject(includeInstance: boolean, msg: WhitelistOperation_status): WhitelistOperation_status.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: WhitelistOperation_status, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): WhitelistOperation_status; - static deserializeBinaryFromReader(message: WhitelistOperation_status, reader: jspb.BinaryReader): WhitelistOperation_status; -} - -export namespace WhitelistOperation_status { - export type AsObject = { - whitelistoperationinformation: WhitelistOperation_information_EMap[keyof WhitelistOperation_information_EMap], - signerofoperation?: KeyIdentifier.AsObject, - operationstatus: OperationStatus_EMap[keyof OperationStatus_EMap], - } -} - -export class SignedMessage_status extends jspb.Message { - getCounter(): number; - setCounter(value: number): void; - - getSignedmessageinformation(): SignedMessage_information_EMap[keyof SignedMessage_information_EMap]; - setSignedmessageinformation(value: SignedMessage_information_EMap[keyof SignedMessage_information_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SignedMessage_status.AsObject; - static toObject(includeInstance: boolean, msg: SignedMessage_status): SignedMessage_status.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SignedMessage_status, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SignedMessage_status; - static deserializeBinaryFromReader(message: SignedMessage_status, reader: jspb.BinaryReader): SignedMessage_status; -} - -export namespace SignedMessage_status { - export type AsObject = { - counter: number, - signedmessageinformation: SignedMessage_information_EMap[keyof SignedMessage_information_EMap], - } -} - -export class CommandStatus extends jspb.Message { - getOperationstatus(): OperationStatus_EMap[keyof OperationStatus_EMap]; - setOperationstatus(value: OperationStatus_EMap[keyof OperationStatus_EMap]): void; - - hasSignedmessagestatus(): boolean; - clearSignedmessagestatus(): void; - getSignedmessagestatus(): SignedMessage_status | undefined; - setSignedmessagestatus(value?: SignedMessage_status): void; - - hasWhitelistoperationstatus(): boolean; - clearWhitelistoperationstatus(): void; - getWhitelistoperationstatus(): WhitelistOperation_status | undefined; - setWhitelistoperationstatus(value?: WhitelistOperation_status): void; - - getSubMessageCase(): CommandStatus.SubMessageCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CommandStatus.AsObject; - static toObject(includeInstance: boolean, msg: CommandStatus): CommandStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CommandStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CommandStatus; - static deserializeBinaryFromReader(message: CommandStatus, reader: jspb.BinaryReader): CommandStatus; -} - -export namespace CommandStatus { - export type AsObject = { - operationstatus: OperationStatus_EMap[keyof OperationStatus_EMap], - signedmessagestatus?: SignedMessage_status.AsObject, - whitelistoperationstatus?: WhitelistOperation_status.AsObject, - } - - export enum SubMessageCase { - SUB_MESSAGE_NOT_SET = 0, - SIGNEDMESSAGESTATUS = 2, - WHITELISTOPERATIONSTATUS = 3, - } -} - -export class UnsignedMessage extends jspb.Message { - hasInformationrequest(): boolean; - clearInformationrequest(): void; - getInformationrequest(): InformationRequest | undefined; - setInformationrequest(value?: InformationRequest): void; - - hasRkeaction(): boolean; - clearRkeaction(): void; - getRkeaction(): RKEAction_EMap[keyof RKEAction_EMap]; - setRkeaction(value: RKEAction_EMap[keyof RKEAction_EMap]): void; - - hasClosuremoverequest(): boolean; - clearClosuremoverequest(): void; - getClosuremoverequest(): ClosureMoveRequest | undefined; - setClosuremoverequest(value?: ClosureMoveRequest): void; - - hasWhitelistoperation(): boolean; - clearWhitelistoperation(): void; - getWhitelistoperation(): WhitelistOperation | undefined; - setWhitelistoperation(value?: WhitelistOperation): void; - - getSubMessageCase(): UnsignedMessage.SubMessageCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UnsignedMessage.AsObject; - static toObject(includeInstance: boolean, msg: UnsignedMessage): UnsignedMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: UnsignedMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): UnsignedMessage; - static deserializeBinaryFromReader(message: UnsignedMessage, reader: jspb.BinaryReader): UnsignedMessage; -} - -export namespace UnsignedMessage { - export type AsObject = { - informationrequest?: InformationRequest.AsObject, - rkeaction: RKEAction_EMap[keyof RKEAction_EMap], - closuremoverequest?: ClosureMoveRequest.AsObject, - whitelistoperation?: WhitelistOperation.AsObject, - } - - export enum SubMessageCase { - SUB_MESSAGE_NOT_SET = 0, - INFORMATIONREQUEST = 1, - RKEACTION = 2, - CLOSUREMOVEREQUEST = 4, - WHITELISTOPERATION = 16, - } -} - -export class ClosureStatuses extends jspb.Message { - getFrontdriverdoor(): ClosureState_EMap[keyof ClosureState_EMap]; - setFrontdriverdoor(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - getFrontpassengerdoor(): ClosureState_EMap[keyof ClosureState_EMap]; - setFrontpassengerdoor(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - getReardriverdoor(): ClosureState_EMap[keyof ClosureState_EMap]; - setReardriverdoor(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - getRearpassengerdoor(): ClosureState_EMap[keyof ClosureState_EMap]; - setRearpassengerdoor(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - getReartrunk(): ClosureState_EMap[keyof ClosureState_EMap]; - setReartrunk(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - getFronttrunk(): ClosureState_EMap[keyof ClosureState_EMap]; - setFronttrunk(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - getChargeport(): ClosureState_EMap[keyof ClosureState_EMap]; - setChargeport(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - getTonneau(): ClosureState_EMap[keyof ClosureState_EMap]; - setTonneau(value: ClosureState_EMap[keyof ClosureState_EMap]): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClosureStatuses.AsObject; - static toObject(includeInstance: boolean, msg: ClosureStatuses): ClosureStatuses.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClosureStatuses, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClosureStatuses; - static deserializeBinaryFromReader(message: ClosureStatuses, reader: jspb.BinaryReader): ClosureStatuses; -} - -export namespace ClosureStatuses { - export type AsObject = { - frontdriverdoor: ClosureState_EMap[keyof ClosureState_EMap], - frontpassengerdoor: ClosureState_EMap[keyof ClosureState_EMap], - reardriverdoor: ClosureState_EMap[keyof ClosureState_EMap], - rearpassengerdoor: ClosureState_EMap[keyof ClosureState_EMap], - reartrunk: ClosureState_EMap[keyof ClosureState_EMap], - fronttrunk: ClosureState_EMap[keyof ClosureState_EMap], - chargeport: ClosureState_EMap[keyof ClosureState_EMap], - tonneau: ClosureState_EMap[keyof ClosureState_EMap], - } -} - -export class DetailedClosureStatus extends jspb.Message { - getTonneaupercentopen(): number; - setTonneaupercentopen(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DetailedClosureStatus.AsObject; - static toObject(includeInstance: boolean, msg: DetailedClosureStatus): DetailedClosureStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DetailedClosureStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DetailedClosureStatus; - static deserializeBinaryFromReader(message: DetailedClosureStatus, reader: jspb.BinaryReader): DetailedClosureStatus; -} - -export namespace DetailedClosureStatus { - export type AsObject = { - tonneaupercentopen: number, - } -} - -export class VehicleStatus extends jspb.Message { - hasClosurestatuses(): boolean; - clearClosurestatuses(): void; - getClosurestatuses(): ClosureStatuses | undefined; - setClosurestatuses(value?: ClosureStatuses): void; - - getVehiclelockstate(): VehicleLockState_EMap[keyof VehicleLockState_EMap]; - setVehiclelockstate(value: VehicleLockState_EMap[keyof VehicleLockState_EMap]): void; - - getVehiclesleepstatus(): VehicleSleepStatus_EMap[keyof VehicleSleepStatus_EMap]; - setVehiclesleepstatus(value: VehicleSleepStatus_EMap[keyof VehicleSleepStatus_EMap]): void; - - getUserpresence(): UserPresence_EMap[keyof UserPresence_EMap]; - setUserpresence(value: UserPresence_EMap[keyof UserPresence_EMap]): void; - - hasDetailedclosurestatus(): boolean; - clearDetailedclosurestatus(): void; - getDetailedclosurestatus(): DetailedClosureStatus | undefined; - setDetailedclosurestatus(value?: DetailedClosureStatus): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleStatus.AsObject; - static toObject(includeInstance: boolean, msg: VehicleStatus): VehicleStatus.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleStatus, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleStatus; - static deserializeBinaryFromReader(message: VehicleStatus, reader: jspb.BinaryReader): VehicleStatus; -} - -export namespace VehicleStatus { - export type AsObject = { - closurestatuses?: ClosureStatuses.AsObject, - vehiclelockstate: VehicleLockState_EMap[keyof VehicleLockState_EMap], - vehiclesleepstatus: VehicleSleepStatus_EMap[keyof VehicleSleepStatus_EMap], - userpresence: UserPresence_EMap[keyof UserPresence_EMap], - detailedclosurestatus?: DetailedClosureStatus.AsObject, - } -} - -export class FromVCSECMessage extends jspb.Message { - hasVehiclestatus(): boolean; - clearVehiclestatus(): void; - getVehiclestatus(): VehicleStatus | undefined; - setVehiclestatus(value?: VehicleStatus): void; - - hasCommandstatus(): boolean; - clearCommandstatus(): void; - getCommandstatus(): CommandStatus | undefined; - setCommandstatus(value?: CommandStatus): void; - - hasWhitelistinfo(): boolean; - clearWhitelistinfo(): void; - getWhitelistinfo(): WhitelistInfo | undefined; - setWhitelistinfo(value?: WhitelistInfo): void; - - hasWhitelistentryinfo(): boolean; - clearWhitelistentryinfo(): void; - getWhitelistentryinfo(): WhitelistEntryInfo | undefined; - setWhitelistentryinfo(value?: WhitelistEntryInfo): void; - - hasNominalerror(): boolean; - clearNominalerror(): void; - getNominalerror(): errors_pb.NominalError | undefined; - setNominalerror(value?: errors_pb.NominalError): void; - - getSubMessageCase(): FromVCSECMessage.SubMessageCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FromVCSECMessage.AsObject; - static toObject(includeInstance: boolean, msg: FromVCSECMessage): FromVCSECMessage.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FromVCSECMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FromVCSECMessage; - static deserializeBinaryFromReader(message: FromVCSECMessage, reader: jspb.BinaryReader): FromVCSECMessage; -} - -export namespace FromVCSECMessage { - export type AsObject = { - vehiclestatus?: VehicleStatus.AsObject, - commandstatus?: CommandStatus.AsObject, - whitelistinfo?: WhitelistInfo.AsObject, - whitelistentryinfo?: WhitelistEntryInfo.AsObject, - nominalerror?: errors_pb.NominalError.AsObject, - } - - export enum SubMessageCase { - SUB_MESSAGE_NOT_SET = 0, - VEHICLESTATUS = 1, - COMMANDSTATUS = 4, - WHITELISTINFO = 16, - WHITELISTENTRYINFO = 17, - NOMINALERROR = 46, - } -} - -export interface SignatureTypeMap { - SIGNATURE_TYPE_NONE: 0; - SIGNATURE_TYPE_PRESENT_KEY: 2; -} - -export const SignatureType: SignatureTypeMap; - -export interface KeyFormFactorMap { - KEY_FORM_FACTOR_UNKNOWN: 0; - KEY_FORM_FACTOR_NFC_CARD: 1; - KEY_FORM_FACTOR_IOS_DEVICE: 6; - KEY_FORM_FACTOR_ANDROID_DEVICE: 7; - KEY_FORM_FACTOR_CLOUD_KEY: 9; -} - -export const KeyFormFactor: KeyFormFactorMap; - -export interface InformationRequestTypeMap { - INFORMATION_REQUEST_TYPE_GET_STATUS: 0; - INFORMATION_REQUEST_TYPE_GET_WHITELIST_INFO: 5; - INFORMATION_REQUEST_TYPE_GET_WHITELIST_ENTRY_INFO: 6; -} - -export const InformationRequestType: InformationRequestTypeMap; - -export interface RKEAction_EMap { - RKE_ACTION_UNLOCK: 0; - RKE_ACTION_LOCK: 1; - RKE_ACTION_REMOTE_DRIVE: 20; - RKE_ACTION_AUTO_SECURE_VEHICLE: 29; - RKE_ACTION_WAKE_VEHICLE: 30; -} - -export const RKEAction_E: RKEAction_EMap; - -export interface ClosureMoveType_EMap { - CLOSURE_MOVE_TYPE_NONE: 0; - CLOSURE_MOVE_TYPE_MOVE: 1; - CLOSURE_MOVE_TYPE_STOP: 2; - CLOSURE_MOVE_TYPE_OPEN: 3; - CLOSURE_MOVE_TYPE_CLOSE: 4; -} - -export const ClosureMoveType_E: ClosureMoveType_EMap; - -export interface OperationStatus_EMap { - OPERATIONSTATUS_OK: 0; - OPERATIONSTATUS_WAIT: 1; - OPERATIONSTATUS_ERROR: 2; -} - -export const OperationStatus_E: OperationStatus_EMap; - -export interface SignedMessage_information_EMap { - SIGNEDMESSAGE_INFORMATION_NONE: 0; - SIGNEDMESSAGE_INFORMATION_FAULT_UNKNOWN: 1; - SIGNEDMESSAGE_INFORMATION_FAULT_NOT_ON_WHITELIST: 2; - SIGNEDMESSAGE_INFORMATION_FAULT_IV_SMALLER_THAN_EXPECTED: 3; - SIGNEDMESSAGE_INFORMATION_FAULT_INVALID_TOKEN: 4; - SIGNEDMESSAGE_INFORMATION_FAULT_TOKEN_AND_COUNTER_INVALID: 5; - SIGNEDMESSAGE_INFORMATION_FAULT_AES_DECRYPT_AUTH: 6; - SIGNEDMESSAGE_INFORMATION_FAULT_ECDSA_INPUT: 7; - SIGNEDMESSAGE_INFORMATION_FAULT_ECDSA_SIGNATURE: 8; - SIGNEDMESSAGE_INFORMATION_FAULT_LOCAL_ENTITY_START: 9; - SIGNEDMESSAGE_INFORMATION_FAULT_LOCAL_ENTITY_RESULT: 10; - SIGNEDMESSAGE_INFORMATION_FAULT_COULD_NOT_RETRIEVE_KEY: 11; - SIGNEDMESSAGE_INFORMATION_FAULT_COULD_NOT_RETRIEVE_TOKEN: 12; - SIGNEDMESSAGE_INFORMATION_FAULT_SIGNATURE_TOO_SHORT: 13; - SIGNEDMESSAGE_INFORMATION_FAULT_TOKEN_IS_INCORRECT_LENGTH: 14; - SIGNEDMESSAGE_INFORMATION_FAULT_INCORRECT_EPOCH: 15; - SIGNEDMESSAGE_INFORMATION_FAULT_IV_INCORRECT_LENGTH: 16; - SIGNEDMESSAGE_INFORMATION_FAULT_TIME_EXPIRED: 17; - SIGNEDMESSAGE_INFORMATION_FAULT_NOT_PROVISIONED_WITH_IDENTITY: 18; - SIGNEDMESSAGE_INFORMATION_FAULT_COULD_NOT_HASH_METADATA: 19; -} - -export const SignedMessage_information_E: SignedMessage_information_EMap; - -export interface WhitelistOperation_information_EMap { - WHITELISTOPERATION_INFORMATION_NONE: 0; - WHITELISTOPERATION_INFORMATION_UNDOCUMENTED_ERROR: 1; - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_REMOVE_ONESELF: 2; - WHITELISTOPERATION_INFORMATION_KEYFOB_SLOTS_FULL: 3; - WHITELISTOPERATION_INFORMATION_WHITELIST_FULL: 4; - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_ADD: 5; - WHITELISTOPERATION_INFORMATION_INVALID_PUBLIC_KEY: 6; - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_REMOVE: 7; - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_CHANGE_PERMISSIONS: 8; - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ELEVATE_OTHER_ABOVE_ONESELF: 9; - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_DEMOTE_SUPERIOR_TO_ONESELF: 10; - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_REMOVE_OWN_PERMISSIONS: 11; - WHITELISTOPERATION_INFORMATION_PUBLIC_KEY_NOT_ON_WHITELIST: 12; - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ADD_KEY_THAT_IS_ALREADY_ON_THE_WHITELIST: 13; - WHITELISTOPERATION_INFORMATION_NOT_ALLOWED_TO_ADD_UNLESS_ON_READER: 14; - WHITELISTOPERATION_INFORMATION_FM_MODIFYING_OUTSIDE_OF_F_MODE: 15; - WHITELISTOPERATION_INFORMATION_FM_ATTEMPTING_TO_ADD_PERMANENT_KEY: 16; - WHITELISTOPERATION_INFORMATION_FM_ATTEMPTING_TO_REMOVE_PERMANENT_KEY: 17; - WHITELISTOPERATION_INFORMATION_KEYCHAIN_WHILE_FS_FULL: 18; - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ADD_KEY_WITHOUT_ROLE: 19; - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ADD_KEY_WITH_SERVICE_ROLE: 20; - WHITELISTOPERATION_INFORMATION_NON_SERVICE_KEY_ATTEMPTING_TO_ADD_SERVICE_TECH: 21; - WHITELISTOPERATION_INFORMATION_SERVICE_KEY_ATTEMPTING_TO_ADD_SERVICE_TECH_OUTSIDE_SERVICE_MODE: 22; -} - -export const WhitelistOperation_information_E: WhitelistOperation_information_EMap; - -export interface ClosureState_EMap { - CLOSURESTATE_CLOSED: 0; - CLOSURESTATE_OPEN: 1; - CLOSURESTATE_AJAR: 2; - CLOSURESTATE_UNKNOWN: 3; - CLOSURESTATE_FAILED_UNLATCH: 4; - CLOSURESTATE_OPENING: 5; - CLOSURESTATE_CLOSING: 6; -} - -export const ClosureState_E: ClosureState_EMap; - -export interface VehicleLockState_EMap { - VEHICLELOCKSTATE_UNLOCKED: 0; - VEHICLELOCKSTATE_LOCKED: 1; - VEHICLELOCKSTATE_INTERNAL_LOCKED: 2; - VEHICLELOCKSTATE_SELECTIVE_UNLOCKED: 3; -} - -export const VehicleLockState_E: VehicleLockState_EMap; - -export interface VehicleSleepStatus_EMap { - VEHICLE_SLEEP_STATUS_UNKNOWN: 0; - VEHICLE_SLEEP_STATUS_AWAKE: 1; - VEHICLE_SLEEP_STATUS_ASLEEP: 2; -} - -export const VehicleSleepStatus_E: VehicleSleepStatus_EMap; - -export interface UserPresence_EMap { - VEHICLE_USER_PRESENCE_UNKNOWN: 0; - VEHICLE_USER_PRESENCE_NOT_PRESENT: 1; - VEHICLE_USER_PRESENCE_PRESENT: 2; -} - -export const UserPresence_E: UserPresence_EMap; - diff --git a/src/pb2/vcsec_pb.js b/src/pb2/vcsec_pb.js deleted file mode 100644 index ea3d733..0000000 --- a/src/pb2/vcsec_pb.js +++ /dev/null @@ -1,5958 +0,0 @@ -// source: vcsec.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -var keys_pb = require('./keys_pb.js'); -goog.object.extend(proto, keys_pb); -var errors_pb = require('./errors_pb.js'); -goog.object.extend(proto, errors_pb); -goog.exportSymbol('proto.VCSEC.ClosureMoveRequest', null, global); -goog.exportSymbol('proto.VCSEC.ClosureMoveType_E', null, global); -goog.exportSymbol('proto.VCSEC.ClosureState_E', null, global); -goog.exportSymbol('proto.VCSEC.ClosureStatuses', null, global); -goog.exportSymbol('proto.VCSEC.CommandStatus', null, global); -goog.exportSymbol('proto.VCSEC.CommandStatus.SubMessageCase', null, global); -goog.exportSymbol('proto.VCSEC.DetailedClosureStatus', null, global); -goog.exportSymbol('proto.VCSEC.FromVCSECMessage', null, global); -goog.exportSymbol('proto.VCSEC.FromVCSECMessage.SubMessageCase', null, global); -goog.exportSymbol('proto.VCSEC.InformationRequest', null, global); -goog.exportSymbol('proto.VCSEC.InformationRequest.KeyCase', null, global); -goog.exportSymbol('proto.VCSEC.InformationRequestType', null, global); -goog.exportSymbol('proto.VCSEC.KeyFormFactor', null, global); -goog.exportSymbol('proto.VCSEC.KeyIdentifier', null, global); -goog.exportSymbol('proto.VCSEC.KeyMetadata', null, global); -goog.exportSymbol('proto.VCSEC.OperationStatus_E', null, global); -goog.exportSymbol('proto.VCSEC.PermissionChange', null, global); -goog.exportSymbol('proto.VCSEC.PublicKey', null, global); -goog.exportSymbol('proto.VCSEC.RKEAction_E', null, global); -goog.exportSymbol('proto.VCSEC.ReplaceKey', null, global); -goog.exportSymbol('proto.VCSEC.ReplaceKey.KeytoreplaceCase', null, global); -goog.exportSymbol('proto.VCSEC.SignatureType', null, global); -goog.exportSymbol('proto.VCSEC.SignedMessage', null, global); -goog.exportSymbol('proto.VCSEC.SignedMessage_information_E', null, global); -goog.exportSymbol('proto.VCSEC.SignedMessage_status', null, global); -goog.exportSymbol('proto.VCSEC.ToVCSECMessage', null, global); -goog.exportSymbol('proto.VCSEC.UnsignedMessage', null, global); -goog.exportSymbol('proto.VCSEC.UnsignedMessage.SubMessageCase', null, global); -goog.exportSymbol('proto.VCSEC.UserPresence_E', null, global); -goog.exportSymbol('proto.VCSEC.VehicleLockState_E', null, global); -goog.exportSymbol('proto.VCSEC.VehicleSleepStatus_E', null, global); -goog.exportSymbol('proto.VCSEC.VehicleStatus', null, global); -goog.exportSymbol('proto.VCSEC.WhitelistEntryInfo', null, global); -goog.exportSymbol('proto.VCSEC.WhitelistInfo', null, global); -goog.exportSymbol('proto.VCSEC.WhitelistOperation', null, global); -goog.exportSymbol('proto.VCSEC.WhitelistOperation.SubMessageCase', null, global); -goog.exportSymbol('proto.VCSEC.WhitelistOperation_information_E', null, global); -goog.exportSymbol('proto.VCSEC.WhitelistOperation_status', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.SignedMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.SignedMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.SignedMessage.displayName = 'proto.VCSEC.SignedMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.ToVCSECMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.ToVCSECMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.ToVCSECMessage.displayName = 'proto.VCSEC.ToVCSECMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.KeyIdentifier = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.KeyIdentifier, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.KeyIdentifier.displayName = 'proto.VCSEC.KeyIdentifier'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.KeyMetadata = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.KeyMetadata, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.KeyMetadata.displayName = 'proto.VCSEC.KeyMetadata'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.PublicKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.PublicKey, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.PublicKey.displayName = 'proto.VCSEC.PublicKey'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.WhitelistInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.VCSEC.WhitelistInfo.repeatedFields_, null); -}; -goog.inherits(proto.VCSEC.WhitelistInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.WhitelistInfo.displayName = 'proto.VCSEC.WhitelistInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.WhitelistEntryInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.WhitelistEntryInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.WhitelistEntryInfo.displayName = 'proto.VCSEC.WhitelistEntryInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.InformationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.VCSEC.InformationRequest.oneofGroups_); -}; -goog.inherits(proto.VCSEC.InformationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.InformationRequest.displayName = 'proto.VCSEC.InformationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.ClosureMoveRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.ClosureMoveRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.ClosureMoveRequest.displayName = 'proto.VCSEC.ClosureMoveRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.PermissionChange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.PermissionChange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.PermissionChange.displayName = 'proto.VCSEC.PermissionChange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.ReplaceKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.VCSEC.ReplaceKey.oneofGroups_); -}; -goog.inherits(proto.VCSEC.ReplaceKey, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.ReplaceKey.displayName = 'proto.VCSEC.ReplaceKey'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.WhitelistOperation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.VCSEC.WhitelistOperation.oneofGroups_); -}; -goog.inherits(proto.VCSEC.WhitelistOperation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.WhitelistOperation.displayName = 'proto.VCSEC.WhitelistOperation'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.WhitelistOperation_status = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.WhitelistOperation_status, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.WhitelistOperation_status.displayName = 'proto.VCSEC.WhitelistOperation_status'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.SignedMessage_status = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.SignedMessage_status, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.SignedMessage_status.displayName = 'proto.VCSEC.SignedMessage_status'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.CommandStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.VCSEC.CommandStatus.oneofGroups_); -}; -goog.inherits(proto.VCSEC.CommandStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.CommandStatus.displayName = 'proto.VCSEC.CommandStatus'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.UnsignedMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.VCSEC.UnsignedMessage.oneofGroups_); -}; -goog.inherits(proto.VCSEC.UnsignedMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.UnsignedMessage.displayName = 'proto.VCSEC.UnsignedMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.ClosureStatuses = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.ClosureStatuses, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.ClosureStatuses.displayName = 'proto.VCSEC.ClosureStatuses'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.DetailedClosureStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.DetailedClosureStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.DetailedClosureStatus.displayName = 'proto.VCSEC.DetailedClosureStatus'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.VehicleStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.VCSEC.VehicleStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.VehicleStatus.displayName = 'proto.VCSEC.VehicleStatus'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.VCSEC.FromVCSECMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.VCSEC.FromVCSECMessage.oneofGroups_); -}; -goog.inherits(proto.VCSEC.FromVCSECMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.VCSEC.FromVCSECMessage.displayName = 'proto.VCSEC.FromVCSECMessage'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.SignedMessage.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.SignedMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.SignedMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.SignedMessage.toObject = function(includeInstance, msg) { - var f, obj = { - protobufmessageasbytes: msg.getProtobufmessageasbytes_asB64(), - signaturetype: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.SignedMessage} - */ -proto.VCSEC.SignedMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.SignedMessage; - return proto.VCSEC.SignedMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.SignedMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.SignedMessage} - */ -proto.VCSEC.SignedMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setProtobufmessageasbytes(value); - break; - case 3: - var value = /** @type {!proto.VCSEC.SignatureType} */ (reader.readEnum()); - msg.setSignaturetype(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.SignedMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.SignedMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.SignedMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.SignedMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProtobufmessageasbytes_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getSignaturetype(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * optional bytes protobufMessageAsBytes = 2; - * @return {!(string|Uint8Array)} - */ -proto.VCSEC.SignedMessage.prototype.getProtobufmessageasbytes = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes protobufMessageAsBytes = 2; - * This is a type-conversion wrapper around `getProtobufmessageasbytes()` - * @return {string} - */ -proto.VCSEC.SignedMessage.prototype.getProtobufmessageasbytes_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getProtobufmessageasbytes())); -}; - - -/** - * optional bytes protobufMessageAsBytes = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getProtobufmessageasbytes()` - * @return {!Uint8Array} - */ -proto.VCSEC.SignedMessage.prototype.getProtobufmessageasbytes_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getProtobufmessageasbytes())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.VCSEC.SignedMessage} returns this - */ -proto.VCSEC.SignedMessage.prototype.setProtobufmessageasbytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional SignatureType signatureType = 3; - * @return {!proto.VCSEC.SignatureType} - */ -proto.VCSEC.SignedMessage.prototype.getSignaturetype = function() { - return /** @type {!proto.VCSEC.SignatureType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.VCSEC.SignatureType} value - * @return {!proto.VCSEC.SignedMessage} returns this - */ -proto.VCSEC.SignedMessage.prototype.setSignaturetype = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.ToVCSECMessage.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.ToVCSECMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.ToVCSECMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ToVCSECMessage.toObject = function(includeInstance, msg) { - var f, obj = { - signedmessage: (f = msg.getSignedmessage()) && proto.VCSEC.SignedMessage.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.ToVCSECMessage} - */ -proto.VCSEC.ToVCSECMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.ToVCSECMessage; - return proto.VCSEC.ToVCSECMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.ToVCSECMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.ToVCSECMessage} - */ -proto.VCSEC.ToVCSECMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.SignedMessage; - reader.readMessage(value,proto.VCSEC.SignedMessage.deserializeBinaryFromReader); - msg.setSignedmessage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.ToVCSECMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.ToVCSECMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.ToVCSECMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ToVCSECMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSignedmessage(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.SignedMessage.serializeBinaryToWriter - ); - } -}; - - -/** - * optional SignedMessage signedMessage = 1; - * @return {?proto.VCSEC.SignedMessage} - */ -proto.VCSEC.ToVCSECMessage.prototype.getSignedmessage = function() { - return /** @type{?proto.VCSEC.SignedMessage} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.SignedMessage, 1)); -}; - - -/** - * @param {?proto.VCSEC.SignedMessage|undefined} value - * @return {!proto.VCSEC.ToVCSECMessage} returns this -*/ -proto.VCSEC.ToVCSECMessage.prototype.setSignedmessage = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.ToVCSECMessage} returns this - */ -proto.VCSEC.ToVCSECMessage.prototype.clearSignedmessage = function() { - return this.setSignedmessage(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.ToVCSECMessage.prototype.hasSignedmessage = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.KeyIdentifier.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.KeyIdentifier.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.KeyIdentifier} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.KeyIdentifier.toObject = function(includeInstance, msg) { - var f, obj = { - publickeysha1: msg.getPublickeysha1_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.KeyIdentifier} - */ -proto.VCSEC.KeyIdentifier.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.KeyIdentifier; - return proto.VCSEC.KeyIdentifier.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.KeyIdentifier} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.KeyIdentifier} - */ -proto.VCSEC.KeyIdentifier.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPublickeysha1(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.KeyIdentifier.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.KeyIdentifier.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.KeyIdentifier} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.KeyIdentifier.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPublickeysha1_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes publicKeySHA1 = 1; - * @return {!(string|Uint8Array)} - */ -proto.VCSEC.KeyIdentifier.prototype.getPublickeysha1 = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes publicKeySHA1 = 1; - * This is a type-conversion wrapper around `getPublickeysha1()` - * @return {string} - */ -proto.VCSEC.KeyIdentifier.prototype.getPublickeysha1_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPublickeysha1())); -}; - - -/** - * optional bytes publicKeySHA1 = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPublickeysha1()` - * @return {!Uint8Array} - */ -proto.VCSEC.KeyIdentifier.prototype.getPublickeysha1_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPublickeysha1())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.VCSEC.KeyIdentifier} returns this - */ -proto.VCSEC.KeyIdentifier.prototype.setPublickeysha1 = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.KeyMetadata.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.KeyMetadata.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.KeyMetadata} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.KeyMetadata.toObject = function(includeInstance, msg) { - var f, obj = { - keyformfactor: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.KeyMetadata} - */ -proto.VCSEC.KeyMetadata.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.KeyMetadata; - return proto.VCSEC.KeyMetadata.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.KeyMetadata} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.KeyMetadata} - */ -proto.VCSEC.KeyMetadata.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.VCSEC.KeyFormFactor} */ (reader.readEnum()); - msg.setKeyformfactor(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.KeyMetadata.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.KeyMetadata.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.KeyMetadata} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.KeyMetadata.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKeyformfactor(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } -}; - - -/** - * optional KeyFormFactor keyFormFactor = 1; - * @return {!proto.VCSEC.KeyFormFactor} - */ -proto.VCSEC.KeyMetadata.prototype.getKeyformfactor = function() { - return /** @type {!proto.VCSEC.KeyFormFactor} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.VCSEC.KeyFormFactor} value - * @return {!proto.VCSEC.KeyMetadata} returns this - */ -proto.VCSEC.KeyMetadata.prototype.setKeyformfactor = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.PublicKey.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.PublicKey.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.PublicKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.PublicKey.toObject = function(includeInstance, msg) { - var f, obj = { - publickeyraw: msg.getPublickeyraw_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.PublicKey} - */ -proto.VCSEC.PublicKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.PublicKey; - return proto.VCSEC.PublicKey.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.PublicKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.PublicKey} - */ -proto.VCSEC.PublicKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPublickeyraw(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.PublicKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.PublicKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.PublicKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.PublicKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPublickeyraw_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes PublicKeyRaw = 1; - * @return {!(string|Uint8Array)} - */ -proto.VCSEC.PublicKey.prototype.getPublickeyraw = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes PublicKeyRaw = 1; - * This is a type-conversion wrapper around `getPublickeyraw()` - * @return {string} - */ -proto.VCSEC.PublicKey.prototype.getPublickeyraw_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPublickeyraw())); -}; - - -/** - * optional bytes PublicKeyRaw = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPublickeyraw()` - * @return {!Uint8Array} - */ -proto.VCSEC.PublicKey.prototype.getPublickeyraw_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPublickeyraw())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.VCSEC.PublicKey} returns this - */ -proto.VCSEC.PublicKey.prototype.setPublickeyraw = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.VCSEC.WhitelistInfo.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.WhitelistInfo.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.WhitelistInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.WhitelistInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistInfo.toObject = function(includeInstance, msg) { - var f, obj = { - numberofentries: jspb.Message.getFieldWithDefault(msg, 1, 0), - whitelistentriesList: jspb.Message.toObjectList(msg.getWhitelistentriesList(), - proto.VCSEC.KeyIdentifier.toObject, includeInstance), - slotmask: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.WhitelistInfo} - */ -proto.VCSEC.WhitelistInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.WhitelistInfo; - return proto.VCSEC.WhitelistInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.WhitelistInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.WhitelistInfo} - */ -proto.VCSEC.WhitelistInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNumberofentries(value); - break; - case 2: - var value = new proto.VCSEC.KeyIdentifier; - reader.readMessage(value,proto.VCSEC.KeyIdentifier.deserializeBinaryFromReader); - msg.addWhitelistentries(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSlotmask(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.WhitelistInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.WhitelistInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.WhitelistInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNumberofentries(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getWhitelistentriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.VCSEC.KeyIdentifier.serializeBinaryToWriter - ); - } - f = message.getSlotmask(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } -}; - - -/** - * optional uint32 numberOfEntries = 1; - * @return {number} - */ -proto.VCSEC.WhitelistInfo.prototype.getNumberofentries = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.WhitelistInfo} returns this - */ -proto.VCSEC.WhitelistInfo.prototype.setNumberofentries = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * repeated KeyIdentifier whitelistEntries = 2; - * @return {!Array} - */ -proto.VCSEC.WhitelistInfo.prototype.getWhitelistentriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.VCSEC.KeyIdentifier, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.VCSEC.WhitelistInfo} returns this -*/ -proto.VCSEC.WhitelistInfo.prototype.setWhitelistentriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.VCSEC.KeyIdentifier=} opt_value - * @param {number=} opt_index - * @return {!proto.VCSEC.KeyIdentifier} - */ -proto.VCSEC.WhitelistInfo.prototype.addWhitelistentries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.VCSEC.KeyIdentifier, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.VCSEC.WhitelistInfo} returns this - */ -proto.VCSEC.WhitelistInfo.prototype.clearWhitelistentriesList = function() { - return this.setWhitelistentriesList([]); -}; - - -/** - * optional uint32 slotMask = 3; - * @return {number} - */ -proto.VCSEC.WhitelistInfo.prototype.getSlotmask = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.WhitelistInfo} returns this - */ -proto.VCSEC.WhitelistInfo.prototype.setSlotmask = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.WhitelistEntryInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.WhitelistEntryInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistEntryInfo.toObject = function(includeInstance, msg) { - var f, obj = { - keyid: (f = msg.getKeyid()) && proto.VCSEC.KeyIdentifier.toObject(includeInstance, f), - publickey: (f = msg.getPublickey()) && proto.VCSEC.PublicKey.toObject(includeInstance, f), - metadataforkey: (f = msg.getMetadataforkey()) && proto.VCSEC.KeyMetadata.toObject(includeInstance, f), - slot: jspb.Message.getFieldWithDefault(msg, 6, 0), - keyrole: jspb.Message.getFieldWithDefault(msg, 7, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.WhitelistEntryInfo} - */ -proto.VCSEC.WhitelistEntryInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.WhitelistEntryInfo; - return proto.VCSEC.WhitelistEntryInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.WhitelistEntryInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.WhitelistEntryInfo} - */ -proto.VCSEC.WhitelistEntryInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.KeyIdentifier; - reader.readMessage(value,proto.VCSEC.KeyIdentifier.deserializeBinaryFromReader); - msg.setKeyid(value); - break; - case 2: - var value = new proto.VCSEC.PublicKey; - reader.readMessage(value,proto.VCSEC.PublicKey.deserializeBinaryFromReader); - msg.setPublickey(value); - break; - case 4: - var value = new proto.VCSEC.KeyMetadata; - reader.readMessage(value,proto.VCSEC.KeyMetadata.deserializeBinaryFromReader); - msg.setMetadataforkey(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSlot(value); - break; - case 7: - var value = /** @type {!proto.Keys.Role} */ (reader.readEnum()); - msg.setKeyrole(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.WhitelistEntryInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.WhitelistEntryInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistEntryInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKeyid(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.KeyIdentifier.serializeBinaryToWriter - ); - } - f = message.getPublickey(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.VCSEC.PublicKey.serializeBinaryToWriter - ); - } - f = message.getMetadataforkey(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.VCSEC.KeyMetadata.serializeBinaryToWriter - ); - } - f = message.getSlot(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getKeyrole(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } -}; - - -/** - * optional KeyIdentifier keyId = 1; - * @return {?proto.VCSEC.KeyIdentifier} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.getKeyid = function() { - return /** @type{?proto.VCSEC.KeyIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.KeyIdentifier, 1)); -}; - - -/** - * @param {?proto.VCSEC.KeyIdentifier|undefined} value - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this -*/ -proto.VCSEC.WhitelistEntryInfo.prototype.setKeyid = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this - */ -proto.VCSEC.WhitelistEntryInfo.prototype.clearKeyid = function() { - return this.setKeyid(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.hasKeyid = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional PublicKey publicKey = 2; - * @return {?proto.VCSEC.PublicKey} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.getPublickey = function() { - return /** @type{?proto.VCSEC.PublicKey} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PublicKey, 2)); -}; - - -/** - * @param {?proto.VCSEC.PublicKey|undefined} value - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this -*/ -proto.VCSEC.WhitelistEntryInfo.prototype.setPublickey = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this - */ -proto.VCSEC.WhitelistEntryInfo.prototype.clearPublickey = function() { - return this.setPublickey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.hasPublickey = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional KeyMetadata metadataForKey = 4; - * @return {?proto.VCSEC.KeyMetadata} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.getMetadataforkey = function() { - return /** @type{?proto.VCSEC.KeyMetadata} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.KeyMetadata, 4)); -}; - - -/** - * @param {?proto.VCSEC.KeyMetadata|undefined} value - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this -*/ -proto.VCSEC.WhitelistEntryInfo.prototype.setMetadataforkey = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this - */ -proto.VCSEC.WhitelistEntryInfo.prototype.clearMetadataforkey = function() { - return this.setMetadataforkey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.hasMetadataforkey = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional uint32 slot = 6; - * @return {number} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.getSlot = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this - */ -proto.VCSEC.WhitelistEntryInfo.prototype.setSlot = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional Keys.Role keyRole = 7; - * @return {!proto.Keys.Role} - */ -proto.VCSEC.WhitelistEntryInfo.prototype.getKeyrole = function() { - return /** @type {!proto.Keys.Role} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.Keys.Role} value - * @return {!proto.VCSEC.WhitelistEntryInfo} returns this - */ -proto.VCSEC.WhitelistEntryInfo.prototype.setKeyrole = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.VCSEC.InformationRequest.oneofGroups_ = [[2,3,4]]; - -/** - * @enum {number} - */ -proto.VCSEC.InformationRequest.KeyCase = { - KEY_NOT_SET: 0, - KEYID: 2, - PUBLICKEY: 3, - SLOT: 4 -}; - -/** - * @return {proto.VCSEC.InformationRequest.KeyCase} - */ -proto.VCSEC.InformationRequest.prototype.getKeyCase = function() { - return /** @type {proto.VCSEC.InformationRequest.KeyCase} */(jspb.Message.computeOneofCase(this, proto.VCSEC.InformationRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.InformationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.InformationRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.InformationRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.InformationRequest.toObject = function(includeInstance, msg) { - var f, obj = { - informationrequesttype: jspb.Message.getFieldWithDefault(msg, 1, 0), - keyid: (f = msg.getKeyid()) && proto.VCSEC.KeyIdentifier.toObject(includeInstance, f), - publickey: msg.getPublickey_asB64(), - slot: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.InformationRequest} - */ -proto.VCSEC.InformationRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.InformationRequest; - return proto.VCSEC.InformationRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.InformationRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.InformationRequest} - */ -proto.VCSEC.InformationRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.VCSEC.InformationRequestType} */ (reader.readEnum()); - msg.setInformationrequesttype(value); - break; - case 2: - var value = new proto.VCSEC.KeyIdentifier; - reader.readMessage(value,proto.VCSEC.KeyIdentifier.deserializeBinaryFromReader); - msg.setKeyid(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPublickey(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSlot(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.InformationRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.InformationRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.InformationRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.InformationRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInformationrequesttype(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getKeyid(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.VCSEC.KeyIdentifier.serializeBinaryToWriter - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeBytes( - 3, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeUint32( - 4, - f - ); - } -}; - - -/** - * optional InformationRequestType informationRequestType = 1; - * @return {!proto.VCSEC.InformationRequestType} - */ -proto.VCSEC.InformationRequest.prototype.getInformationrequesttype = function() { - return /** @type {!proto.VCSEC.InformationRequestType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.VCSEC.InformationRequestType} value - * @return {!proto.VCSEC.InformationRequest} returns this - */ -proto.VCSEC.InformationRequest.prototype.setInformationrequesttype = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional KeyIdentifier keyId = 2; - * @return {?proto.VCSEC.KeyIdentifier} - */ -proto.VCSEC.InformationRequest.prototype.getKeyid = function() { - return /** @type{?proto.VCSEC.KeyIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.KeyIdentifier, 2)); -}; - - -/** - * @param {?proto.VCSEC.KeyIdentifier|undefined} value - * @return {!proto.VCSEC.InformationRequest} returns this -*/ -proto.VCSEC.InformationRequest.prototype.setKeyid = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.VCSEC.InformationRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.InformationRequest} returns this - */ -proto.VCSEC.InformationRequest.prototype.clearKeyid = function() { - return this.setKeyid(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.InformationRequest.prototype.hasKeyid = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional bytes publicKey = 3; - * @return {!(string|Uint8Array)} - */ -proto.VCSEC.InformationRequest.prototype.getPublickey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes publicKey = 3; - * This is a type-conversion wrapper around `getPublickey()` - * @return {string} - */ -proto.VCSEC.InformationRequest.prototype.getPublickey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPublickey())); -}; - - -/** - * optional bytes publicKey = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPublickey()` - * @return {!Uint8Array} - */ -proto.VCSEC.InformationRequest.prototype.getPublickey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPublickey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.VCSEC.InformationRequest} returns this - */ -proto.VCSEC.InformationRequest.prototype.setPublickey = function(value) { - return jspb.Message.setOneofField(this, 3, proto.VCSEC.InformationRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.VCSEC.InformationRequest} returns this - */ -proto.VCSEC.InformationRequest.prototype.clearPublickey = function() { - return jspb.Message.setOneofField(this, 3, proto.VCSEC.InformationRequest.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.InformationRequest.prototype.hasPublickey = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint32 slot = 4; - * @return {number} - */ -proto.VCSEC.InformationRequest.prototype.getSlot = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.InformationRequest} returns this - */ -proto.VCSEC.InformationRequest.prototype.setSlot = function(value) { - return jspb.Message.setOneofField(this, 4, proto.VCSEC.InformationRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.VCSEC.InformationRequest} returns this - */ -proto.VCSEC.InformationRequest.prototype.clearSlot = function() { - return jspb.Message.setOneofField(this, 4, proto.VCSEC.InformationRequest.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.InformationRequest.prototype.hasSlot = function() { - return jspb.Message.getField(this, 4) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.ClosureMoveRequest.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.ClosureMoveRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.ClosureMoveRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ClosureMoveRequest.toObject = function(includeInstance, msg) { - var f, obj = { - frontdriverdoor: jspb.Message.getFieldWithDefault(msg, 1, 0), - frontpassengerdoor: jspb.Message.getFieldWithDefault(msg, 2, 0), - reardriverdoor: jspb.Message.getFieldWithDefault(msg, 3, 0), - rearpassengerdoor: jspb.Message.getFieldWithDefault(msg, 4, 0), - reartrunk: jspb.Message.getFieldWithDefault(msg, 5, 0), - fronttrunk: jspb.Message.getFieldWithDefault(msg, 6, 0), - chargeport: jspb.Message.getFieldWithDefault(msg, 7, 0), - tonneau: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.ClosureMoveRequest} - */ -proto.VCSEC.ClosureMoveRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.ClosureMoveRequest; - return proto.VCSEC.ClosureMoveRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.ClosureMoveRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.ClosureMoveRequest} - */ -proto.VCSEC.ClosureMoveRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setFrontdriverdoor(value); - break; - case 2: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setFrontpassengerdoor(value); - break; - case 3: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setReardriverdoor(value); - break; - case 4: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setRearpassengerdoor(value); - break; - case 5: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setReartrunk(value); - break; - case 6: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setFronttrunk(value); - break; - case 7: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setChargeport(value); - break; - case 8: - var value = /** @type {!proto.VCSEC.ClosureMoveType_E} */ (reader.readEnum()); - msg.setTonneau(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.ClosureMoveRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.ClosureMoveRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.ClosureMoveRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ClosureMoveRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrontdriverdoor(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getFrontpassengerdoor(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getReardriverdoor(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getRearpassengerdoor(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getReartrunk(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getFronttrunk(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getChargeport(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getTonneau(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } -}; - - -/** - * optional ClosureMoveType_E frontDriverDoor = 1; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getFrontdriverdoor = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setFrontdriverdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional ClosureMoveType_E frontPassengerDoor = 2; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getFrontpassengerdoor = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setFrontpassengerdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional ClosureMoveType_E rearDriverDoor = 3; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getReardriverdoor = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setReardriverdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional ClosureMoveType_E rearPassengerDoor = 4; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getRearpassengerdoor = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setRearpassengerdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional ClosureMoveType_E rearTrunk = 5; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getReartrunk = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setReartrunk = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional ClosureMoveType_E frontTrunk = 6; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getFronttrunk = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setFronttrunk = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional ClosureMoveType_E chargePort = 7; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getChargeport = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setChargeport = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional ClosureMoveType_E tonneau = 8; - * @return {!proto.VCSEC.ClosureMoveType_E} - */ -proto.VCSEC.ClosureMoveRequest.prototype.getTonneau = function() { - return /** @type {!proto.VCSEC.ClosureMoveType_E} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureMoveType_E} value - * @return {!proto.VCSEC.ClosureMoveRequest} returns this - */ -proto.VCSEC.ClosureMoveRequest.prototype.setTonneau = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.PermissionChange.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.PermissionChange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.PermissionChange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.PermissionChange.toObject = function(includeInstance, msg) { - var f, obj = { - key: (f = msg.getKey()) && proto.VCSEC.PublicKey.toObject(includeInstance, f), - secondstobeactive: jspb.Message.getFieldWithDefault(msg, 3, 0), - keyrole: jspb.Message.getFieldWithDefault(msg, 4, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.PermissionChange} - */ -proto.VCSEC.PermissionChange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.PermissionChange; - return proto.VCSEC.PermissionChange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.PermissionChange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.PermissionChange} - */ -proto.VCSEC.PermissionChange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.PublicKey; - reader.readMessage(value,proto.VCSEC.PublicKey.deserializeBinaryFromReader); - msg.setKey(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSecondstobeactive(value); - break; - case 4: - var value = /** @type {!proto.Keys.Role} */ (reader.readEnum()); - msg.setKeyrole(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.PermissionChange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.PermissionChange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.PermissionChange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.PermissionChange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.PublicKey.serializeBinaryToWriter - ); - } - f = message.getSecondstobeactive(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getKeyrole(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } -}; - - -/** - * optional PublicKey key = 1; - * @return {?proto.VCSEC.PublicKey} - */ -proto.VCSEC.PermissionChange.prototype.getKey = function() { - return /** @type{?proto.VCSEC.PublicKey} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PublicKey, 1)); -}; - - -/** - * @param {?proto.VCSEC.PublicKey|undefined} value - * @return {!proto.VCSEC.PermissionChange} returns this -*/ -proto.VCSEC.PermissionChange.prototype.setKey = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.PermissionChange} returns this - */ -proto.VCSEC.PermissionChange.prototype.clearKey = function() { - return this.setKey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.PermissionChange.prototype.hasKey = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint32 secondsToBeActive = 3; - * @return {number} - */ -proto.VCSEC.PermissionChange.prototype.getSecondstobeactive = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.PermissionChange} returns this - */ -proto.VCSEC.PermissionChange.prototype.setSecondstobeactive = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional Keys.Role keyRole = 4; - * @return {!proto.Keys.Role} - */ -proto.VCSEC.PermissionChange.prototype.getKeyrole = function() { - return /** @type {!proto.Keys.Role} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.Keys.Role} value - * @return {!proto.VCSEC.PermissionChange} returns this - */ -proto.VCSEC.PermissionChange.prototype.setKeyrole = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.VCSEC.ReplaceKey.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.VCSEC.ReplaceKey.KeytoreplaceCase = { - KEYTOREPLACE_NOT_SET: 0, - PUBLICKEYTOREPLACE: 1, - SLOTTOREPLACE: 2 -}; - -/** - * @return {proto.VCSEC.ReplaceKey.KeytoreplaceCase} - */ -proto.VCSEC.ReplaceKey.prototype.getKeytoreplaceCase = function() { - return /** @type {proto.VCSEC.ReplaceKey.KeytoreplaceCase} */(jspb.Message.computeOneofCase(this, proto.VCSEC.ReplaceKey.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.ReplaceKey.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.ReplaceKey.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.ReplaceKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ReplaceKey.toObject = function(includeInstance, msg) { - var f, obj = { - publickeytoreplace: (f = msg.getPublickeytoreplace()) && proto.VCSEC.PublicKey.toObject(includeInstance, f), - slottoreplace: jspb.Message.getFieldWithDefault(msg, 2, 0), - keytoadd: (f = msg.getKeytoadd()) && proto.VCSEC.PublicKey.toObject(includeInstance, f), - keyrole: jspb.Message.getFieldWithDefault(msg, 4, 0), - impermanent: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.ReplaceKey} - */ -proto.VCSEC.ReplaceKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.ReplaceKey; - return proto.VCSEC.ReplaceKey.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.ReplaceKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.ReplaceKey} - */ -proto.VCSEC.ReplaceKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.PublicKey; - reader.readMessage(value,proto.VCSEC.PublicKey.deserializeBinaryFromReader); - msg.setPublickeytoreplace(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSlottoreplace(value); - break; - case 3: - var value = new proto.VCSEC.PublicKey; - reader.readMessage(value,proto.VCSEC.PublicKey.deserializeBinaryFromReader); - msg.setKeytoadd(value); - break; - case 4: - var value = /** @type {!proto.Keys.Role} */ (reader.readEnum()); - msg.setKeyrole(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setImpermanent(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.ReplaceKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.ReplaceKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.ReplaceKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ReplaceKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPublickeytoreplace(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.PublicKey.serializeBinaryToWriter - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeUint32( - 2, - f - ); - } - f = message.getKeytoadd(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.VCSEC.PublicKey.serializeBinaryToWriter - ); - } - f = message.getKeyrole(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getImpermanent(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional PublicKey publicKeyToReplace = 1; - * @return {?proto.VCSEC.PublicKey} - */ -proto.VCSEC.ReplaceKey.prototype.getPublickeytoreplace = function() { - return /** @type{?proto.VCSEC.PublicKey} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PublicKey, 1)); -}; - - -/** - * @param {?proto.VCSEC.PublicKey|undefined} value - * @return {!proto.VCSEC.ReplaceKey} returns this -*/ -proto.VCSEC.ReplaceKey.prototype.setPublickeytoreplace = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.VCSEC.ReplaceKey.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.ReplaceKey} returns this - */ -proto.VCSEC.ReplaceKey.prototype.clearPublickeytoreplace = function() { - return this.setPublickeytoreplace(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.ReplaceKey.prototype.hasPublickeytoreplace = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint32 slotToReplace = 2; - * @return {number} - */ -proto.VCSEC.ReplaceKey.prototype.getSlottoreplace = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.ReplaceKey} returns this - */ -proto.VCSEC.ReplaceKey.prototype.setSlottoreplace = function(value) { - return jspb.Message.setOneofField(this, 2, proto.VCSEC.ReplaceKey.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.VCSEC.ReplaceKey} returns this - */ -proto.VCSEC.ReplaceKey.prototype.clearSlottoreplace = function() { - return jspb.Message.setOneofField(this, 2, proto.VCSEC.ReplaceKey.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.ReplaceKey.prototype.hasSlottoreplace = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PublicKey keyToAdd = 3; - * @return {?proto.VCSEC.PublicKey} - */ -proto.VCSEC.ReplaceKey.prototype.getKeytoadd = function() { - return /** @type{?proto.VCSEC.PublicKey} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PublicKey, 3)); -}; - - -/** - * @param {?proto.VCSEC.PublicKey|undefined} value - * @return {!proto.VCSEC.ReplaceKey} returns this -*/ -proto.VCSEC.ReplaceKey.prototype.setKeytoadd = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.ReplaceKey} returns this - */ -proto.VCSEC.ReplaceKey.prototype.clearKeytoadd = function() { - return this.setKeytoadd(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.ReplaceKey.prototype.hasKeytoadd = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Keys.Role keyRole = 4; - * @return {!proto.Keys.Role} - */ -proto.VCSEC.ReplaceKey.prototype.getKeyrole = function() { - return /** @type {!proto.Keys.Role} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.Keys.Role} value - * @return {!proto.VCSEC.ReplaceKey} returns this - */ -proto.VCSEC.ReplaceKey.prototype.setKeyrole = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional bool impermanent = 5; - * @return {boolean} - */ -proto.VCSEC.ReplaceKey.prototype.getImpermanent = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.VCSEC.ReplaceKey} returns this - */ -proto.VCSEC.ReplaceKey.prototype.setImpermanent = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.VCSEC.WhitelistOperation.oneofGroups_ = [[1,2,3,4,5,7,8,9,16,17]]; - -/** - * @enum {number} - */ -proto.VCSEC.WhitelistOperation.SubMessageCase = { - SUB_MESSAGE_NOT_SET: 0, - ADDPUBLICKEYTOWHITELIST: 1, - REMOVEPUBLICKEYFROMWHITELIST: 2, - ADDPERMISSIONSTOPUBLICKEY: 3, - REMOVEPERMISSIONSFROMPUBLICKEY: 4, - ADDKEYTOWHITELISTANDADDPERMISSIONS: 5, - UPDATEKEYANDPERMISSIONS: 7, - ADDIMPERMANENTKEY: 8, - ADDIMPERMANENTKEYANDREMOVEEXISTING: 9, - REMOVEALLIMPERMANENTKEYS: 16, - REPLACEKEY: 17 -}; - -/** - * @return {proto.VCSEC.WhitelistOperation.SubMessageCase} - */ -proto.VCSEC.WhitelistOperation.prototype.getSubMessageCase = function() { - return /** @type {proto.VCSEC.WhitelistOperation.SubMessageCase} */(jspb.Message.computeOneofCase(this, proto.VCSEC.WhitelistOperation.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.WhitelistOperation.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.WhitelistOperation.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.WhitelistOperation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistOperation.toObject = function(includeInstance, msg) { - var f, obj = { - addpublickeytowhitelist: (f = msg.getAddpublickeytowhitelist()) && proto.VCSEC.PublicKey.toObject(includeInstance, f), - removepublickeyfromwhitelist: (f = msg.getRemovepublickeyfromwhitelist()) && proto.VCSEC.PublicKey.toObject(includeInstance, f), - addpermissionstopublickey: (f = msg.getAddpermissionstopublickey()) && proto.VCSEC.PermissionChange.toObject(includeInstance, f), - removepermissionsfrompublickey: (f = msg.getRemovepermissionsfrompublickey()) && proto.VCSEC.PermissionChange.toObject(includeInstance, f), - addkeytowhitelistandaddpermissions: (f = msg.getAddkeytowhitelistandaddpermissions()) && proto.VCSEC.PermissionChange.toObject(includeInstance, f), - updatekeyandpermissions: (f = msg.getUpdatekeyandpermissions()) && proto.VCSEC.PermissionChange.toObject(includeInstance, f), - addimpermanentkey: (f = msg.getAddimpermanentkey()) && proto.VCSEC.PermissionChange.toObject(includeInstance, f), - addimpermanentkeyandremoveexisting: (f = msg.getAddimpermanentkeyandremoveexisting()) && proto.VCSEC.PermissionChange.toObject(includeInstance, f), - removeallimpermanentkeys: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), - replacekey: (f = msg.getReplacekey()) && proto.VCSEC.ReplaceKey.toObject(includeInstance, f), - metadataforkey: (f = msg.getMetadataforkey()) && proto.VCSEC.KeyMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.WhitelistOperation} - */ -proto.VCSEC.WhitelistOperation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.WhitelistOperation; - return proto.VCSEC.WhitelistOperation.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.WhitelistOperation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.WhitelistOperation} - */ -proto.VCSEC.WhitelistOperation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.PublicKey; - reader.readMessage(value,proto.VCSEC.PublicKey.deserializeBinaryFromReader); - msg.setAddpublickeytowhitelist(value); - break; - case 2: - var value = new proto.VCSEC.PublicKey; - reader.readMessage(value,proto.VCSEC.PublicKey.deserializeBinaryFromReader); - msg.setRemovepublickeyfromwhitelist(value); - break; - case 3: - var value = new proto.VCSEC.PermissionChange; - reader.readMessage(value,proto.VCSEC.PermissionChange.deserializeBinaryFromReader); - msg.setAddpermissionstopublickey(value); - break; - case 4: - var value = new proto.VCSEC.PermissionChange; - reader.readMessage(value,proto.VCSEC.PermissionChange.deserializeBinaryFromReader); - msg.setRemovepermissionsfrompublickey(value); - break; - case 5: - var value = new proto.VCSEC.PermissionChange; - reader.readMessage(value,proto.VCSEC.PermissionChange.deserializeBinaryFromReader); - msg.setAddkeytowhitelistandaddpermissions(value); - break; - case 7: - var value = new proto.VCSEC.PermissionChange; - reader.readMessage(value,proto.VCSEC.PermissionChange.deserializeBinaryFromReader); - msg.setUpdatekeyandpermissions(value); - break; - case 8: - var value = new proto.VCSEC.PermissionChange; - reader.readMessage(value,proto.VCSEC.PermissionChange.deserializeBinaryFromReader); - msg.setAddimpermanentkey(value); - break; - case 9: - var value = new proto.VCSEC.PermissionChange; - reader.readMessage(value,proto.VCSEC.PermissionChange.deserializeBinaryFromReader); - msg.setAddimpermanentkeyandremoveexisting(value); - break; - case 16: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRemoveallimpermanentkeys(value); - break; - case 17: - var value = new proto.VCSEC.ReplaceKey; - reader.readMessage(value,proto.VCSEC.ReplaceKey.deserializeBinaryFromReader); - msg.setReplacekey(value); - break; - case 6: - var value = new proto.VCSEC.KeyMetadata; - reader.readMessage(value,proto.VCSEC.KeyMetadata.deserializeBinaryFromReader); - msg.setMetadataforkey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.WhitelistOperation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.WhitelistOperation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.WhitelistOperation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistOperation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddpublickeytowhitelist(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.PublicKey.serializeBinaryToWriter - ); - } - f = message.getRemovepublickeyfromwhitelist(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.VCSEC.PublicKey.serializeBinaryToWriter - ); - } - f = message.getAddpermissionstopublickey(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.VCSEC.PermissionChange.serializeBinaryToWriter - ); - } - f = message.getRemovepermissionsfrompublickey(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.VCSEC.PermissionChange.serializeBinaryToWriter - ); - } - f = message.getAddkeytowhitelistandaddpermissions(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.VCSEC.PermissionChange.serializeBinaryToWriter - ); - } - f = message.getUpdatekeyandpermissions(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.VCSEC.PermissionChange.serializeBinaryToWriter - ); - } - f = message.getAddimpermanentkey(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.VCSEC.PermissionChange.serializeBinaryToWriter - ); - } - f = message.getAddimpermanentkeyandremoveexisting(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.VCSEC.PermissionChange.serializeBinaryToWriter - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 16)); - if (f != null) { - writer.writeBool( - 16, - f - ); - } - f = message.getReplacekey(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.VCSEC.ReplaceKey.serializeBinaryToWriter - ); - } - f = message.getMetadataforkey(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.VCSEC.KeyMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PublicKey addPublicKeyToWhitelist = 1; - * @return {?proto.VCSEC.PublicKey} - */ -proto.VCSEC.WhitelistOperation.prototype.getAddpublickeytowhitelist = function() { - return /** @type{?proto.VCSEC.PublicKey} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PublicKey, 1)); -}; - - -/** - * @param {?proto.VCSEC.PublicKey|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setAddpublickeytowhitelist = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearAddpublickeytowhitelist = function() { - return this.setAddpublickeytowhitelist(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasAddpublickeytowhitelist = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional PublicKey removePublicKeyFromWhitelist = 2; - * @return {?proto.VCSEC.PublicKey} - */ -proto.VCSEC.WhitelistOperation.prototype.getRemovepublickeyfromwhitelist = function() { - return /** @type{?proto.VCSEC.PublicKey} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PublicKey, 2)); -}; - - -/** - * @param {?proto.VCSEC.PublicKey|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setRemovepublickeyfromwhitelist = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearRemovepublickeyfromwhitelist = function() { - return this.setRemovepublickeyfromwhitelist(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasRemovepublickeyfromwhitelist = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional PermissionChange addPermissionsToPublicKey = 3; - * @return {?proto.VCSEC.PermissionChange} - */ -proto.VCSEC.WhitelistOperation.prototype.getAddpermissionstopublickey = function() { - return /** @type{?proto.VCSEC.PermissionChange} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PermissionChange, 3)); -}; - - -/** - * @param {?proto.VCSEC.PermissionChange|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setAddpermissionstopublickey = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearAddpermissionstopublickey = function() { - return this.setAddpermissionstopublickey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasAddpermissionstopublickey = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional PermissionChange removePermissionsFromPublicKey = 4; - * @return {?proto.VCSEC.PermissionChange} - */ -proto.VCSEC.WhitelistOperation.prototype.getRemovepermissionsfrompublickey = function() { - return /** @type{?proto.VCSEC.PermissionChange} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PermissionChange, 4)); -}; - - -/** - * @param {?proto.VCSEC.PermissionChange|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setRemovepermissionsfrompublickey = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearRemovepermissionsfrompublickey = function() { - return this.setRemovepermissionsfrompublickey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasRemovepermissionsfrompublickey = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional PermissionChange addKeyToWhitelistAndAddPermissions = 5; - * @return {?proto.VCSEC.PermissionChange} - */ -proto.VCSEC.WhitelistOperation.prototype.getAddkeytowhitelistandaddpermissions = function() { - return /** @type{?proto.VCSEC.PermissionChange} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PermissionChange, 5)); -}; - - -/** - * @param {?proto.VCSEC.PermissionChange|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setAddkeytowhitelistandaddpermissions = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearAddkeytowhitelistandaddpermissions = function() { - return this.setAddkeytowhitelistandaddpermissions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasAddkeytowhitelistandaddpermissions = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional PermissionChange updateKeyAndPermissions = 7; - * @return {?proto.VCSEC.PermissionChange} - */ -proto.VCSEC.WhitelistOperation.prototype.getUpdatekeyandpermissions = function() { - return /** @type{?proto.VCSEC.PermissionChange} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PermissionChange, 7)); -}; - - -/** - * @param {?proto.VCSEC.PermissionChange|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setUpdatekeyandpermissions = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearUpdatekeyandpermissions = function() { - return this.setUpdatekeyandpermissions(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasUpdatekeyandpermissions = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional PermissionChange addImpermanentKey = 8; - * @return {?proto.VCSEC.PermissionChange} - */ -proto.VCSEC.WhitelistOperation.prototype.getAddimpermanentkey = function() { - return /** @type{?proto.VCSEC.PermissionChange} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PermissionChange, 8)); -}; - - -/** - * @param {?proto.VCSEC.PermissionChange|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setAddimpermanentkey = function(value) { - return jspb.Message.setOneofWrapperField(this, 8, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearAddimpermanentkey = function() { - return this.setAddimpermanentkey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasAddimpermanentkey = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional PermissionChange addImpermanentKeyAndRemoveExisting = 9; - * @return {?proto.VCSEC.PermissionChange} - */ -proto.VCSEC.WhitelistOperation.prototype.getAddimpermanentkeyandremoveexisting = function() { - return /** @type{?proto.VCSEC.PermissionChange} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.PermissionChange, 9)); -}; - - -/** - * @param {?proto.VCSEC.PermissionChange|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setAddimpermanentkeyandremoveexisting = function(value) { - return jspb.Message.setOneofWrapperField(this, 9, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearAddimpermanentkeyandremoveexisting = function() { - return this.setAddimpermanentkeyandremoveexisting(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasAddimpermanentkeyandremoveexisting = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional bool removeAllImpermanentKeys = 16; - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.getRemoveallimpermanentkeys = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.setRemoveallimpermanentkeys = function(value) { - return jspb.Message.setOneofField(this, 16, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearRemoveallimpermanentkeys = function() { - return jspb.Message.setOneofField(this, 16, proto.VCSEC.WhitelistOperation.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasRemoveallimpermanentkeys = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional ReplaceKey replaceKey = 17; - * @return {?proto.VCSEC.ReplaceKey} - */ -proto.VCSEC.WhitelistOperation.prototype.getReplacekey = function() { - return /** @type{?proto.VCSEC.ReplaceKey} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.ReplaceKey, 17)); -}; - - -/** - * @param {?proto.VCSEC.ReplaceKey|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setReplacekey = function(value) { - return jspb.Message.setOneofWrapperField(this, 17, proto.VCSEC.WhitelistOperation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearReplacekey = function() { - return this.setReplacekey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasReplacekey = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional KeyMetadata metadataForKey = 6; - * @return {?proto.VCSEC.KeyMetadata} - */ -proto.VCSEC.WhitelistOperation.prototype.getMetadataforkey = function() { - return /** @type{?proto.VCSEC.KeyMetadata} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.KeyMetadata, 6)); -}; - - -/** - * @param {?proto.VCSEC.KeyMetadata|undefined} value - * @return {!proto.VCSEC.WhitelistOperation} returns this -*/ -proto.VCSEC.WhitelistOperation.prototype.setMetadataforkey = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation} returns this - */ -proto.VCSEC.WhitelistOperation.prototype.clearMetadataforkey = function() { - return this.setMetadataforkey(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation.prototype.hasMetadataforkey = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.WhitelistOperation_status.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.WhitelistOperation_status.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.WhitelistOperation_status} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistOperation_status.toObject = function(includeInstance, msg) { - var f, obj = { - whitelistoperationinformation: jspb.Message.getFieldWithDefault(msg, 1, 0), - signerofoperation: (f = msg.getSignerofoperation()) && proto.VCSEC.KeyIdentifier.toObject(includeInstance, f), - operationstatus: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.WhitelistOperation_status} - */ -proto.VCSEC.WhitelistOperation_status.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.WhitelistOperation_status; - return proto.VCSEC.WhitelistOperation_status.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.WhitelistOperation_status} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.WhitelistOperation_status} - */ -proto.VCSEC.WhitelistOperation_status.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.VCSEC.WhitelistOperation_information_E} */ (reader.readEnum()); - msg.setWhitelistoperationinformation(value); - break; - case 2: - var value = new proto.VCSEC.KeyIdentifier; - reader.readMessage(value,proto.VCSEC.KeyIdentifier.deserializeBinaryFromReader); - msg.setSignerofoperation(value); - break; - case 3: - var value = /** @type {!proto.VCSEC.OperationStatus_E} */ (reader.readEnum()); - msg.setOperationstatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.WhitelistOperation_status.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.WhitelistOperation_status.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.WhitelistOperation_status} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.WhitelistOperation_status.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWhitelistoperationinformation(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getSignerofoperation(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.VCSEC.KeyIdentifier.serializeBinaryToWriter - ); - } - f = message.getOperationstatus(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * optional WhitelistOperation_information_E whitelistOperationInformation = 1; - * @return {!proto.VCSEC.WhitelistOperation_information_E} - */ -proto.VCSEC.WhitelistOperation_status.prototype.getWhitelistoperationinformation = function() { - return /** @type {!proto.VCSEC.WhitelistOperation_information_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.VCSEC.WhitelistOperation_information_E} value - * @return {!proto.VCSEC.WhitelistOperation_status} returns this - */ -proto.VCSEC.WhitelistOperation_status.prototype.setWhitelistoperationinformation = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional KeyIdentifier signerOfOperation = 2; - * @return {?proto.VCSEC.KeyIdentifier} - */ -proto.VCSEC.WhitelistOperation_status.prototype.getSignerofoperation = function() { - return /** @type{?proto.VCSEC.KeyIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.KeyIdentifier, 2)); -}; - - -/** - * @param {?proto.VCSEC.KeyIdentifier|undefined} value - * @return {!proto.VCSEC.WhitelistOperation_status} returns this -*/ -proto.VCSEC.WhitelistOperation_status.prototype.setSignerofoperation = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.WhitelistOperation_status} returns this - */ -proto.VCSEC.WhitelistOperation_status.prototype.clearSignerofoperation = function() { - return this.setSignerofoperation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.WhitelistOperation_status.prototype.hasSignerofoperation = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional OperationStatus_E operationStatus = 3; - * @return {!proto.VCSEC.OperationStatus_E} - */ -proto.VCSEC.WhitelistOperation_status.prototype.getOperationstatus = function() { - return /** @type {!proto.VCSEC.OperationStatus_E} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.VCSEC.OperationStatus_E} value - * @return {!proto.VCSEC.WhitelistOperation_status} returns this - */ -proto.VCSEC.WhitelistOperation_status.prototype.setOperationstatus = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.SignedMessage_status.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.SignedMessage_status.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.SignedMessage_status} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.SignedMessage_status.toObject = function(includeInstance, msg) { - var f, obj = { - counter: jspb.Message.getFieldWithDefault(msg, 1, 0), - signedmessageinformation: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.SignedMessage_status} - */ -proto.VCSEC.SignedMessage_status.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.SignedMessage_status; - return proto.VCSEC.SignedMessage_status.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.SignedMessage_status} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.SignedMessage_status} - */ -proto.VCSEC.SignedMessage_status.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCounter(value); - break; - case 2: - var value = /** @type {!proto.VCSEC.SignedMessage_information_E} */ (reader.readEnum()); - msg.setSignedmessageinformation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.SignedMessage_status.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.SignedMessage_status.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.SignedMessage_status} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.SignedMessage_status.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCounter(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getSignedmessageinformation(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } -}; - - -/** - * optional uint32 counter = 1; - * @return {number} - */ -proto.VCSEC.SignedMessage_status.prototype.getCounter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.SignedMessage_status} returns this - */ -proto.VCSEC.SignedMessage_status.prototype.setCounter = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional SignedMessage_information_E signedMessageInformation = 2; - * @return {!proto.VCSEC.SignedMessage_information_E} - */ -proto.VCSEC.SignedMessage_status.prototype.getSignedmessageinformation = function() { - return /** @type {!proto.VCSEC.SignedMessage_information_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.VCSEC.SignedMessage_information_E} value - * @return {!proto.VCSEC.SignedMessage_status} returns this - */ -proto.VCSEC.SignedMessage_status.prototype.setSignedmessageinformation = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.VCSEC.CommandStatus.oneofGroups_ = [[2,3]]; - -/** - * @enum {number} - */ -proto.VCSEC.CommandStatus.SubMessageCase = { - SUB_MESSAGE_NOT_SET: 0, - SIGNEDMESSAGESTATUS: 2, - WHITELISTOPERATIONSTATUS: 3 -}; - -/** - * @return {proto.VCSEC.CommandStatus.SubMessageCase} - */ -proto.VCSEC.CommandStatus.prototype.getSubMessageCase = function() { - return /** @type {proto.VCSEC.CommandStatus.SubMessageCase} */(jspb.Message.computeOneofCase(this, proto.VCSEC.CommandStatus.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.CommandStatus.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.CommandStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.CommandStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.CommandStatus.toObject = function(includeInstance, msg) { - var f, obj = { - operationstatus: jspb.Message.getFieldWithDefault(msg, 1, 0), - signedmessagestatus: (f = msg.getSignedmessagestatus()) && proto.VCSEC.SignedMessage_status.toObject(includeInstance, f), - whitelistoperationstatus: (f = msg.getWhitelistoperationstatus()) && proto.VCSEC.WhitelistOperation_status.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.CommandStatus} - */ -proto.VCSEC.CommandStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.CommandStatus; - return proto.VCSEC.CommandStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.CommandStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.CommandStatus} - */ -proto.VCSEC.CommandStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.VCSEC.OperationStatus_E} */ (reader.readEnum()); - msg.setOperationstatus(value); - break; - case 2: - var value = new proto.VCSEC.SignedMessage_status; - reader.readMessage(value,proto.VCSEC.SignedMessage_status.deserializeBinaryFromReader); - msg.setSignedmessagestatus(value); - break; - case 3: - var value = new proto.VCSEC.WhitelistOperation_status; - reader.readMessage(value,proto.VCSEC.WhitelistOperation_status.deserializeBinaryFromReader); - msg.setWhitelistoperationstatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.CommandStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.CommandStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.CommandStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.CommandStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOperationstatus(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getSignedmessagestatus(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.VCSEC.SignedMessage_status.serializeBinaryToWriter - ); - } - f = message.getWhitelistoperationstatus(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.VCSEC.WhitelistOperation_status.serializeBinaryToWriter - ); - } -}; - - -/** - * optional OperationStatus_E operationStatus = 1; - * @return {!proto.VCSEC.OperationStatus_E} - */ -proto.VCSEC.CommandStatus.prototype.getOperationstatus = function() { - return /** @type {!proto.VCSEC.OperationStatus_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.VCSEC.OperationStatus_E} value - * @return {!proto.VCSEC.CommandStatus} returns this - */ -proto.VCSEC.CommandStatus.prototype.setOperationstatus = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional SignedMessage_status signedMessageStatus = 2; - * @return {?proto.VCSEC.SignedMessage_status} - */ -proto.VCSEC.CommandStatus.prototype.getSignedmessagestatus = function() { - return /** @type{?proto.VCSEC.SignedMessage_status} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.SignedMessage_status, 2)); -}; - - -/** - * @param {?proto.VCSEC.SignedMessage_status|undefined} value - * @return {!proto.VCSEC.CommandStatus} returns this -*/ -proto.VCSEC.CommandStatus.prototype.setSignedmessagestatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.VCSEC.CommandStatus.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.CommandStatus} returns this - */ -proto.VCSEC.CommandStatus.prototype.clearSignedmessagestatus = function() { - return this.setSignedmessagestatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.CommandStatus.prototype.hasSignedmessagestatus = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional WhitelistOperation_status whitelistOperationStatus = 3; - * @return {?proto.VCSEC.WhitelistOperation_status} - */ -proto.VCSEC.CommandStatus.prototype.getWhitelistoperationstatus = function() { - return /** @type{?proto.VCSEC.WhitelistOperation_status} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.WhitelistOperation_status, 3)); -}; - - -/** - * @param {?proto.VCSEC.WhitelistOperation_status|undefined} value - * @return {!proto.VCSEC.CommandStatus} returns this -*/ -proto.VCSEC.CommandStatus.prototype.setWhitelistoperationstatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.VCSEC.CommandStatus.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.CommandStatus} returns this - */ -proto.VCSEC.CommandStatus.prototype.clearWhitelistoperationstatus = function() { - return this.setWhitelistoperationstatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.CommandStatus.prototype.hasWhitelistoperationstatus = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.VCSEC.UnsignedMessage.oneofGroups_ = [[1,2,4,16]]; - -/** - * @enum {number} - */ -proto.VCSEC.UnsignedMessage.SubMessageCase = { - SUB_MESSAGE_NOT_SET: 0, - INFORMATIONREQUEST: 1, - RKEACTION: 2, - CLOSUREMOVEREQUEST: 4, - WHITELISTOPERATION: 16 -}; - -/** - * @return {proto.VCSEC.UnsignedMessage.SubMessageCase} - */ -proto.VCSEC.UnsignedMessage.prototype.getSubMessageCase = function() { - return /** @type {proto.VCSEC.UnsignedMessage.SubMessageCase} */(jspb.Message.computeOneofCase(this, proto.VCSEC.UnsignedMessage.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.UnsignedMessage.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.UnsignedMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.UnsignedMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.UnsignedMessage.toObject = function(includeInstance, msg) { - var f, obj = { - informationrequest: (f = msg.getInformationrequest()) && proto.VCSEC.InformationRequest.toObject(includeInstance, f), - rkeaction: jspb.Message.getFieldWithDefault(msg, 2, 0), - closuremoverequest: (f = msg.getClosuremoverequest()) && proto.VCSEC.ClosureMoveRequest.toObject(includeInstance, f), - whitelistoperation: (f = msg.getWhitelistoperation()) && proto.VCSEC.WhitelistOperation.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.UnsignedMessage} - */ -proto.VCSEC.UnsignedMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.UnsignedMessage; - return proto.VCSEC.UnsignedMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.UnsignedMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.UnsignedMessage} - */ -proto.VCSEC.UnsignedMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.InformationRequest; - reader.readMessage(value,proto.VCSEC.InformationRequest.deserializeBinaryFromReader); - msg.setInformationrequest(value); - break; - case 2: - var value = /** @type {!proto.VCSEC.RKEAction_E} */ (reader.readEnum()); - msg.setRkeaction(value); - break; - case 4: - var value = new proto.VCSEC.ClosureMoveRequest; - reader.readMessage(value,proto.VCSEC.ClosureMoveRequest.deserializeBinaryFromReader); - msg.setClosuremoverequest(value); - break; - case 16: - var value = new proto.VCSEC.WhitelistOperation; - reader.readMessage(value,proto.VCSEC.WhitelistOperation.deserializeBinaryFromReader); - msg.setWhitelistoperation(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.UnsignedMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.UnsignedMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.UnsignedMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.UnsignedMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInformationrequest(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.InformationRequest.serializeBinaryToWriter - ); - } - f = /** @type {!proto.VCSEC.RKEAction_E} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeEnum( - 2, - f - ); - } - f = message.getClosuremoverequest(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.VCSEC.ClosureMoveRequest.serializeBinaryToWriter - ); - } - f = message.getWhitelistoperation(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.VCSEC.WhitelistOperation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional InformationRequest InformationRequest = 1; - * @return {?proto.VCSEC.InformationRequest} - */ -proto.VCSEC.UnsignedMessage.prototype.getInformationrequest = function() { - return /** @type{?proto.VCSEC.InformationRequest} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.InformationRequest, 1)); -}; - - -/** - * @param {?proto.VCSEC.InformationRequest|undefined} value - * @return {!proto.VCSEC.UnsignedMessage} returns this -*/ -proto.VCSEC.UnsignedMessage.prototype.setInformationrequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.VCSEC.UnsignedMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.UnsignedMessage} returns this - */ -proto.VCSEC.UnsignedMessage.prototype.clearInformationrequest = function() { - return this.setInformationrequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.UnsignedMessage.prototype.hasInformationrequest = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional RKEAction_E RKEAction = 2; - * @return {!proto.VCSEC.RKEAction_E} - */ -proto.VCSEC.UnsignedMessage.prototype.getRkeaction = function() { - return /** @type {!proto.VCSEC.RKEAction_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.VCSEC.RKEAction_E} value - * @return {!proto.VCSEC.UnsignedMessage} returns this - */ -proto.VCSEC.UnsignedMessage.prototype.setRkeaction = function(value) { - return jspb.Message.setOneofField(this, 2, proto.VCSEC.UnsignedMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.VCSEC.UnsignedMessage} returns this - */ -proto.VCSEC.UnsignedMessage.prototype.clearRkeaction = function() { - return jspb.Message.setOneofField(this, 2, proto.VCSEC.UnsignedMessage.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.UnsignedMessage.prototype.hasRkeaction = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ClosureMoveRequest closureMoveRequest = 4; - * @return {?proto.VCSEC.ClosureMoveRequest} - */ -proto.VCSEC.UnsignedMessage.prototype.getClosuremoverequest = function() { - return /** @type{?proto.VCSEC.ClosureMoveRequest} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.ClosureMoveRequest, 4)); -}; - - -/** - * @param {?proto.VCSEC.ClosureMoveRequest|undefined} value - * @return {!proto.VCSEC.UnsignedMessage} returns this -*/ -proto.VCSEC.UnsignedMessage.prototype.setClosuremoverequest = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.VCSEC.UnsignedMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.UnsignedMessage} returns this - */ -proto.VCSEC.UnsignedMessage.prototype.clearClosuremoverequest = function() { - return this.setClosuremoverequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.UnsignedMessage.prototype.hasClosuremoverequest = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional WhitelistOperation WhitelistOperation = 16; - * @return {?proto.VCSEC.WhitelistOperation} - */ -proto.VCSEC.UnsignedMessage.prototype.getWhitelistoperation = function() { - return /** @type{?proto.VCSEC.WhitelistOperation} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.WhitelistOperation, 16)); -}; - - -/** - * @param {?proto.VCSEC.WhitelistOperation|undefined} value - * @return {!proto.VCSEC.UnsignedMessage} returns this -*/ -proto.VCSEC.UnsignedMessage.prototype.setWhitelistoperation = function(value) { - return jspb.Message.setOneofWrapperField(this, 16, proto.VCSEC.UnsignedMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.UnsignedMessage} returns this - */ -proto.VCSEC.UnsignedMessage.prototype.clearWhitelistoperation = function() { - return this.setWhitelistoperation(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.UnsignedMessage.prototype.hasWhitelistoperation = function() { - return jspb.Message.getField(this, 16) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.ClosureStatuses.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.ClosureStatuses.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.ClosureStatuses} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ClosureStatuses.toObject = function(includeInstance, msg) { - var f, obj = { - frontdriverdoor: jspb.Message.getFieldWithDefault(msg, 1, 0), - frontpassengerdoor: jspb.Message.getFieldWithDefault(msg, 2, 0), - reardriverdoor: jspb.Message.getFieldWithDefault(msg, 3, 0), - rearpassengerdoor: jspb.Message.getFieldWithDefault(msg, 4, 0), - reartrunk: jspb.Message.getFieldWithDefault(msg, 5, 0), - fronttrunk: jspb.Message.getFieldWithDefault(msg, 6, 0), - chargeport: jspb.Message.getFieldWithDefault(msg, 7, 0), - tonneau: jspb.Message.getFieldWithDefault(msg, 8, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.ClosureStatuses} - */ -proto.VCSEC.ClosureStatuses.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.ClosureStatuses; - return proto.VCSEC.ClosureStatuses.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.ClosureStatuses} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.ClosureStatuses} - */ -proto.VCSEC.ClosureStatuses.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setFrontdriverdoor(value); - break; - case 2: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setFrontpassengerdoor(value); - break; - case 3: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setReardriverdoor(value); - break; - case 4: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setRearpassengerdoor(value); - break; - case 5: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setReartrunk(value); - break; - case 6: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setFronttrunk(value); - break; - case 7: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setChargeport(value); - break; - case 8: - var value = /** @type {!proto.VCSEC.ClosureState_E} */ (reader.readEnum()); - msg.setTonneau(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.ClosureStatuses.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.ClosureStatuses.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.ClosureStatuses} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.ClosureStatuses.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFrontdriverdoor(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getFrontpassengerdoor(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getReardriverdoor(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getRearpassengerdoor(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getReartrunk(); - if (f !== 0.0) { - writer.writeEnum( - 5, - f - ); - } - f = message.getFronttrunk(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getChargeport(); - if (f !== 0.0) { - writer.writeEnum( - 7, - f - ); - } - f = message.getTonneau(); - if (f !== 0.0) { - writer.writeEnum( - 8, - f - ); - } -}; - - -/** - * optional ClosureState_E frontDriverDoor = 1; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getFrontdriverdoor = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setFrontdriverdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional ClosureState_E frontPassengerDoor = 2; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getFrontpassengerdoor = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setFrontpassengerdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional ClosureState_E rearDriverDoor = 3; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getReardriverdoor = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setReardriverdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional ClosureState_E rearPassengerDoor = 4; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getRearpassengerdoor = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setRearpassengerdoor = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional ClosureState_E rearTrunk = 5; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getReartrunk = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setReartrunk = function(value) { - return jspb.Message.setProto3EnumField(this, 5, value); -}; - - -/** - * optional ClosureState_E frontTrunk = 6; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getFronttrunk = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setFronttrunk = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional ClosureState_E chargePort = 7; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getChargeport = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setChargeport = function(value) { - return jspb.Message.setProto3EnumField(this, 7, value); -}; - - -/** - * optional ClosureState_E tonneau = 8; - * @return {!proto.VCSEC.ClosureState_E} - */ -proto.VCSEC.ClosureStatuses.prototype.getTonneau = function() { - return /** @type {!proto.VCSEC.ClosureState_E} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {!proto.VCSEC.ClosureState_E} value - * @return {!proto.VCSEC.ClosureStatuses} returns this - */ -proto.VCSEC.ClosureStatuses.prototype.setTonneau = function(value) { - return jspb.Message.setProto3EnumField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.DetailedClosureStatus.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.DetailedClosureStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.DetailedClosureStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.DetailedClosureStatus.toObject = function(includeInstance, msg) { - var f, obj = { - tonneaupercentopen: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.DetailedClosureStatus} - */ -proto.VCSEC.DetailedClosureStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.DetailedClosureStatus; - return proto.VCSEC.DetailedClosureStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.DetailedClosureStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.DetailedClosureStatus} - */ -proto.VCSEC.DetailedClosureStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTonneaupercentopen(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.DetailedClosureStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.DetailedClosureStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.DetailedClosureStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.DetailedClosureStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTonneaupercentopen(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 tonneauPercentOpen = 1; - * @return {number} - */ -proto.VCSEC.DetailedClosureStatus.prototype.getTonneaupercentopen = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.VCSEC.DetailedClosureStatus} returns this - */ -proto.VCSEC.DetailedClosureStatus.prototype.setTonneaupercentopen = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.VehicleStatus.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.VehicleStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.VehicleStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.VehicleStatus.toObject = function(includeInstance, msg) { - var f, obj = { - closurestatuses: (f = msg.getClosurestatuses()) && proto.VCSEC.ClosureStatuses.toObject(includeInstance, f), - vehiclelockstate: jspb.Message.getFieldWithDefault(msg, 2, 0), - vehiclesleepstatus: jspb.Message.getFieldWithDefault(msg, 3, 0), - userpresence: jspb.Message.getFieldWithDefault(msg, 4, 0), - detailedclosurestatus: (f = msg.getDetailedclosurestatus()) && proto.VCSEC.DetailedClosureStatus.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.VehicleStatus} - */ -proto.VCSEC.VehicleStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.VehicleStatus; - return proto.VCSEC.VehicleStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.VehicleStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.VehicleStatus} - */ -proto.VCSEC.VehicleStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.ClosureStatuses; - reader.readMessage(value,proto.VCSEC.ClosureStatuses.deserializeBinaryFromReader); - msg.setClosurestatuses(value); - break; - case 2: - var value = /** @type {!proto.VCSEC.VehicleLockState_E} */ (reader.readEnum()); - msg.setVehiclelockstate(value); - break; - case 3: - var value = /** @type {!proto.VCSEC.VehicleSleepStatus_E} */ (reader.readEnum()); - msg.setVehiclesleepstatus(value); - break; - case 4: - var value = /** @type {!proto.VCSEC.UserPresence_E} */ (reader.readEnum()); - msg.setUserpresence(value); - break; - case 5: - var value = new proto.VCSEC.DetailedClosureStatus; - reader.readMessage(value,proto.VCSEC.DetailedClosureStatus.deserializeBinaryFromReader); - msg.setDetailedclosurestatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.VehicleStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.VehicleStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.VehicleStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.VehicleStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getClosurestatuses(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.ClosureStatuses.serializeBinaryToWriter - ); - } - f = message.getVehiclelockstate(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getVehiclesleepstatus(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getUserpresence(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getDetailedclosurestatus(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.VCSEC.DetailedClosureStatus.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ClosureStatuses closureStatuses = 1; - * @return {?proto.VCSEC.ClosureStatuses} - */ -proto.VCSEC.VehicleStatus.prototype.getClosurestatuses = function() { - return /** @type{?proto.VCSEC.ClosureStatuses} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.ClosureStatuses, 1)); -}; - - -/** - * @param {?proto.VCSEC.ClosureStatuses|undefined} value - * @return {!proto.VCSEC.VehicleStatus} returns this -*/ -proto.VCSEC.VehicleStatus.prototype.setClosurestatuses = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.VehicleStatus} returns this - */ -proto.VCSEC.VehicleStatus.prototype.clearClosurestatuses = function() { - return this.setClosurestatuses(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.VehicleStatus.prototype.hasClosurestatuses = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional VehicleLockState_E vehicleLockState = 2; - * @return {!proto.VCSEC.VehicleLockState_E} - */ -proto.VCSEC.VehicleStatus.prototype.getVehiclelockstate = function() { - return /** @type {!proto.VCSEC.VehicleLockState_E} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.VCSEC.VehicleLockState_E} value - * @return {!proto.VCSEC.VehicleStatus} returns this - */ -proto.VCSEC.VehicleStatus.prototype.setVehiclelockstate = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional VehicleSleepStatus_E vehicleSleepStatus = 3; - * @return {!proto.VCSEC.VehicleSleepStatus_E} - */ -proto.VCSEC.VehicleStatus.prototype.getVehiclesleepstatus = function() { - return /** @type {!proto.VCSEC.VehicleSleepStatus_E} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.VCSEC.VehicleSleepStatus_E} value - * @return {!proto.VCSEC.VehicleStatus} returns this - */ -proto.VCSEC.VehicleStatus.prototype.setVehiclesleepstatus = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional UserPresence_E userPresence = 4; - * @return {!proto.VCSEC.UserPresence_E} - */ -proto.VCSEC.VehicleStatus.prototype.getUserpresence = function() { - return /** @type {!proto.VCSEC.UserPresence_E} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.VCSEC.UserPresence_E} value - * @return {!proto.VCSEC.VehicleStatus} returns this - */ -proto.VCSEC.VehicleStatus.prototype.setUserpresence = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional DetailedClosureStatus detailedClosureStatus = 5; - * @return {?proto.VCSEC.DetailedClosureStatus} - */ -proto.VCSEC.VehicleStatus.prototype.getDetailedclosurestatus = function() { - return /** @type{?proto.VCSEC.DetailedClosureStatus} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.DetailedClosureStatus, 5)); -}; - - -/** - * @param {?proto.VCSEC.DetailedClosureStatus|undefined} value - * @return {!proto.VCSEC.VehicleStatus} returns this -*/ -proto.VCSEC.VehicleStatus.prototype.setDetailedclosurestatus = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.VehicleStatus} returns this - */ -proto.VCSEC.VehicleStatus.prototype.clearDetailedclosurestatus = function() { - return this.setDetailedclosurestatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.VehicleStatus.prototype.hasDetailedclosurestatus = function() { - return jspb.Message.getField(this, 5) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.VCSEC.FromVCSECMessage.oneofGroups_ = [[1,4,16,17,46]]; - -/** - * @enum {number} - */ -proto.VCSEC.FromVCSECMessage.SubMessageCase = { - SUB_MESSAGE_NOT_SET: 0, - VEHICLESTATUS: 1, - COMMANDSTATUS: 4, - WHITELISTINFO: 16, - WHITELISTENTRYINFO: 17, - NOMINALERROR: 46 -}; - -/** - * @return {proto.VCSEC.FromVCSECMessage.SubMessageCase} - */ -proto.VCSEC.FromVCSECMessage.prototype.getSubMessageCase = function() { - return /** @type {proto.VCSEC.FromVCSECMessage.SubMessageCase} */(jspb.Message.computeOneofCase(this, proto.VCSEC.FromVCSECMessage.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.VCSEC.FromVCSECMessage.prototype.toObject = function(opt_includeInstance) { - return proto.VCSEC.FromVCSECMessage.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.VCSEC.FromVCSECMessage} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.FromVCSECMessage.toObject = function(includeInstance, msg) { - var f, obj = { - vehiclestatus: (f = msg.getVehiclestatus()) && proto.VCSEC.VehicleStatus.toObject(includeInstance, f), - commandstatus: (f = msg.getCommandstatus()) && proto.VCSEC.CommandStatus.toObject(includeInstance, f), - whitelistinfo: (f = msg.getWhitelistinfo()) && proto.VCSEC.WhitelistInfo.toObject(includeInstance, f), - whitelistentryinfo: (f = msg.getWhitelistentryinfo()) && proto.VCSEC.WhitelistEntryInfo.toObject(includeInstance, f), - nominalerror: (f = msg.getNominalerror()) && errors_pb.NominalError.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.VCSEC.FromVCSECMessage} - */ -proto.VCSEC.FromVCSECMessage.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.VCSEC.FromVCSECMessage; - return proto.VCSEC.FromVCSECMessage.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.VCSEC.FromVCSECMessage} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.VCSEC.FromVCSECMessage} - */ -proto.VCSEC.FromVCSECMessage.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.VCSEC.VehicleStatus; - reader.readMessage(value,proto.VCSEC.VehicleStatus.deserializeBinaryFromReader); - msg.setVehiclestatus(value); - break; - case 4: - var value = new proto.VCSEC.CommandStatus; - reader.readMessage(value,proto.VCSEC.CommandStatus.deserializeBinaryFromReader); - msg.setCommandstatus(value); - break; - case 16: - var value = new proto.VCSEC.WhitelistInfo; - reader.readMessage(value,proto.VCSEC.WhitelistInfo.deserializeBinaryFromReader); - msg.setWhitelistinfo(value); - break; - case 17: - var value = new proto.VCSEC.WhitelistEntryInfo; - reader.readMessage(value,proto.VCSEC.WhitelistEntryInfo.deserializeBinaryFromReader); - msg.setWhitelistentryinfo(value); - break; - case 46: - var value = new errors_pb.NominalError; - reader.readMessage(value,errors_pb.NominalError.deserializeBinaryFromReader); - msg.setNominalerror(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.VCSEC.FromVCSECMessage.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.VCSEC.FromVCSECMessage.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.VCSEC.FromVCSECMessage} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.VCSEC.FromVCSECMessage.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVehiclestatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.VCSEC.VehicleStatus.serializeBinaryToWriter - ); - } - f = message.getCommandstatus(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.VCSEC.CommandStatus.serializeBinaryToWriter - ); - } - f = message.getWhitelistinfo(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.VCSEC.WhitelistInfo.serializeBinaryToWriter - ); - } - f = message.getWhitelistentryinfo(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.VCSEC.WhitelistEntryInfo.serializeBinaryToWriter - ); - } - f = message.getNominalerror(); - if (f != null) { - writer.writeMessage( - 46, - f, - errors_pb.NominalError.serializeBinaryToWriter - ); - } -}; - - -/** - * optional VehicleStatus vehicleStatus = 1; - * @return {?proto.VCSEC.VehicleStatus} - */ -proto.VCSEC.FromVCSECMessage.prototype.getVehiclestatus = function() { - return /** @type{?proto.VCSEC.VehicleStatus} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.VehicleStatus, 1)); -}; - - -/** - * @param {?proto.VCSEC.VehicleStatus|undefined} value - * @return {!proto.VCSEC.FromVCSECMessage} returns this -*/ -proto.VCSEC.FromVCSECMessage.prototype.setVehiclestatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.VCSEC.FromVCSECMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.FromVCSECMessage} returns this - */ -proto.VCSEC.FromVCSECMessage.prototype.clearVehiclestatus = function() { - return this.setVehiclestatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.FromVCSECMessage.prototype.hasVehiclestatus = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional CommandStatus commandStatus = 4; - * @return {?proto.VCSEC.CommandStatus} - */ -proto.VCSEC.FromVCSECMessage.prototype.getCommandstatus = function() { - return /** @type{?proto.VCSEC.CommandStatus} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.CommandStatus, 4)); -}; - - -/** - * @param {?proto.VCSEC.CommandStatus|undefined} value - * @return {!proto.VCSEC.FromVCSECMessage} returns this -*/ -proto.VCSEC.FromVCSECMessage.prototype.setCommandstatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.VCSEC.FromVCSECMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.FromVCSECMessage} returns this - */ -proto.VCSEC.FromVCSECMessage.prototype.clearCommandstatus = function() { - return this.setCommandstatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.FromVCSECMessage.prototype.hasCommandstatus = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional WhitelistInfo whitelistInfo = 16; - * @return {?proto.VCSEC.WhitelistInfo} - */ -proto.VCSEC.FromVCSECMessage.prototype.getWhitelistinfo = function() { - return /** @type{?proto.VCSEC.WhitelistInfo} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.WhitelistInfo, 16)); -}; - - -/** - * @param {?proto.VCSEC.WhitelistInfo|undefined} value - * @return {!proto.VCSEC.FromVCSECMessage} returns this -*/ -proto.VCSEC.FromVCSECMessage.prototype.setWhitelistinfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 16, proto.VCSEC.FromVCSECMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.FromVCSECMessage} returns this - */ -proto.VCSEC.FromVCSECMessage.prototype.clearWhitelistinfo = function() { - return this.setWhitelistinfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.FromVCSECMessage.prototype.hasWhitelistinfo = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional WhitelistEntryInfo whitelistEntryInfo = 17; - * @return {?proto.VCSEC.WhitelistEntryInfo} - */ -proto.VCSEC.FromVCSECMessage.prototype.getWhitelistentryinfo = function() { - return /** @type{?proto.VCSEC.WhitelistEntryInfo} */ ( - jspb.Message.getWrapperField(this, proto.VCSEC.WhitelistEntryInfo, 17)); -}; - - -/** - * @param {?proto.VCSEC.WhitelistEntryInfo|undefined} value - * @return {!proto.VCSEC.FromVCSECMessage} returns this -*/ -proto.VCSEC.FromVCSECMessage.prototype.setWhitelistentryinfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 17, proto.VCSEC.FromVCSECMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.FromVCSECMessage} returns this - */ -proto.VCSEC.FromVCSECMessage.prototype.clearWhitelistentryinfo = function() { - return this.setWhitelistentryinfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.FromVCSECMessage.prototype.hasWhitelistentryinfo = function() { - return jspb.Message.getField(this, 17) != null; -}; - - -/** - * optional Errors.NominalError nominalError = 46; - * @return {?proto.Errors.NominalError} - */ -proto.VCSEC.FromVCSECMessage.prototype.getNominalerror = function() { - return /** @type{?proto.Errors.NominalError} */ ( - jspb.Message.getWrapperField(this, errors_pb.NominalError, 46)); -}; - - -/** - * @param {?proto.Errors.NominalError|undefined} value - * @return {!proto.VCSEC.FromVCSECMessage} returns this -*/ -proto.VCSEC.FromVCSECMessage.prototype.setNominalerror = function(value) { - return jspb.Message.setOneofWrapperField(this, 46, proto.VCSEC.FromVCSECMessage.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.VCSEC.FromVCSECMessage} returns this - */ -proto.VCSEC.FromVCSECMessage.prototype.clearNominalerror = function() { - return this.setNominalerror(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.VCSEC.FromVCSECMessage.prototype.hasNominalerror = function() { - return jspb.Message.getField(this, 46) != null; -}; - - -/** - * @enum {number} - */ -proto.VCSEC.SignatureType = { - SIGNATURE_TYPE_NONE: 0, - SIGNATURE_TYPE_PRESENT_KEY: 2 -}; - -/** - * @enum {number} - */ -proto.VCSEC.KeyFormFactor = { - KEY_FORM_FACTOR_UNKNOWN: 0, - KEY_FORM_FACTOR_NFC_CARD: 1, - KEY_FORM_FACTOR_IOS_DEVICE: 6, - KEY_FORM_FACTOR_ANDROID_DEVICE: 7, - KEY_FORM_FACTOR_CLOUD_KEY: 9 -}; - -/** - * @enum {number} - */ -proto.VCSEC.InformationRequestType = { - INFORMATION_REQUEST_TYPE_GET_STATUS: 0, - INFORMATION_REQUEST_TYPE_GET_WHITELIST_INFO: 5, - INFORMATION_REQUEST_TYPE_GET_WHITELIST_ENTRY_INFO: 6 -}; - -/** - * @enum {number} - */ -proto.VCSEC.RKEAction_E = { - RKE_ACTION_UNLOCK: 0, - RKE_ACTION_LOCK: 1, - RKE_ACTION_REMOTE_DRIVE: 20, - RKE_ACTION_AUTO_SECURE_VEHICLE: 29, - RKE_ACTION_WAKE_VEHICLE: 30 -}; - -/** - * @enum {number} - */ -proto.VCSEC.ClosureMoveType_E = { - CLOSURE_MOVE_TYPE_NONE: 0, - CLOSURE_MOVE_TYPE_MOVE: 1, - CLOSURE_MOVE_TYPE_STOP: 2, - CLOSURE_MOVE_TYPE_OPEN: 3, - CLOSURE_MOVE_TYPE_CLOSE: 4 -}; - -/** - * @enum {number} - */ -proto.VCSEC.OperationStatus_E = { - OPERATIONSTATUS_OK: 0, - OPERATIONSTATUS_WAIT: 1, - OPERATIONSTATUS_ERROR: 2 -}; - -/** - * @enum {number} - */ -proto.VCSEC.SignedMessage_information_E = { - SIGNEDMESSAGE_INFORMATION_NONE: 0, - SIGNEDMESSAGE_INFORMATION_FAULT_UNKNOWN: 1, - SIGNEDMESSAGE_INFORMATION_FAULT_NOT_ON_WHITELIST: 2, - SIGNEDMESSAGE_INFORMATION_FAULT_IV_SMALLER_THAN_EXPECTED: 3, - SIGNEDMESSAGE_INFORMATION_FAULT_INVALID_TOKEN: 4, - SIGNEDMESSAGE_INFORMATION_FAULT_TOKEN_AND_COUNTER_INVALID: 5, - SIGNEDMESSAGE_INFORMATION_FAULT_AES_DECRYPT_AUTH: 6, - SIGNEDMESSAGE_INFORMATION_FAULT_ECDSA_INPUT: 7, - SIGNEDMESSAGE_INFORMATION_FAULT_ECDSA_SIGNATURE: 8, - SIGNEDMESSAGE_INFORMATION_FAULT_LOCAL_ENTITY_START: 9, - SIGNEDMESSAGE_INFORMATION_FAULT_LOCAL_ENTITY_RESULT: 10, - SIGNEDMESSAGE_INFORMATION_FAULT_COULD_NOT_RETRIEVE_KEY: 11, - SIGNEDMESSAGE_INFORMATION_FAULT_COULD_NOT_RETRIEVE_TOKEN: 12, - SIGNEDMESSAGE_INFORMATION_FAULT_SIGNATURE_TOO_SHORT: 13, - SIGNEDMESSAGE_INFORMATION_FAULT_TOKEN_IS_INCORRECT_LENGTH: 14, - SIGNEDMESSAGE_INFORMATION_FAULT_INCORRECT_EPOCH: 15, - SIGNEDMESSAGE_INFORMATION_FAULT_IV_INCORRECT_LENGTH: 16, - SIGNEDMESSAGE_INFORMATION_FAULT_TIME_EXPIRED: 17, - SIGNEDMESSAGE_INFORMATION_FAULT_NOT_PROVISIONED_WITH_IDENTITY: 18, - SIGNEDMESSAGE_INFORMATION_FAULT_COULD_NOT_HASH_METADATA: 19 -}; - -/** - * @enum {number} - */ -proto.VCSEC.WhitelistOperation_information_E = { - WHITELISTOPERATION_INFORMATION_NONE: 0, - WHITELISTOPERATION_INFORMATION_UNDOCUMENTED_ERROR: 1, - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_REMOVE_ONESELF: 2, - WHITELISTOPERATION_INFORMATION_KEYFOB_SLOTS_FULL: 3, - WHITELISTOPERATION_INFORMATION_WHITELIST_FULL: 4, - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_ADD: 5, - WHITELISTOPERATION_INFORMATION_INVALID_PUBLIC_KEY: 6, - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_REMOVE: 7, - WHITELISTOPERATION_INFORMATION_NO_PERMISSION_TO_CHANGE_PERMISSIONS: 8, - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ELEVATE_OTHER_ABOVE_ONESELF: 9, - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_DEMOTE_SUPERIOR_TO_ONESELF: 10, - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_REMOVE_OWN_PERMISSIONS: 11, - WHITELISTOPERATION_INFORMATION_PUBLIC_KEY_NOT_ON_WHITELIST: 12, - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ADD_KEY_THAT_IS_ALREADY_ON_THE_WHITELIST: 13, - WHITELISTOPERATION_INFORMATION_NOT_ALLOWED_TO_ADD_UNLESS_ON_READER: 14, - WHITELISTOPERATION_INFORMATION_FM_MODIFYING_OUTSIDE_OF_F_MODE: 15, - WHITELISTOPERATION_INFORMATION_FM_ATTEMPTING_TO_ADD_PERMANENT_KEY: 16, - WHITELISTOPERATION_INFORMATION_FM_ATTEMPTING_TO_REMOVE_PERMANENT_KEY: 17, - WHITELISTOPERATION_INFORMATION_KEYCHAIN_WHILE_FS_FULL: 18, - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ADD_KEY_WITHOUT_ROLE: 19, - WHITELISTOPERATION_INFORMATION_ATTEMPTING_TO_ADD_KEY_WITH_SERVICE_ROLE: 20, - WHITELISTOPERATION_INFORMATION_NON_SERVICE_KEY_ATTEMPTING_TO_ADD_SERVICE_TECH: 21, - WHITELISTOPERATION_INFORMATION_SERVICE_KEY_ATTEMPTING_TO_ADD_SERVICE_TECH_OUTSIDE_SERVICE_MODE: 22 -}; - -/** - * @enum {number} - */ -proto.VCSEC.ClosureState_E = { - CLOSURESTATE_CLOSED: 0, - CLOSURESTATE_OPEN: 1, - CLOSURESTATE_AJAR: 2, - CLOSURESTATE_UNKNOWN: 3, - CLOSURESTATE_FAILED_UNLATCH: 4, - CLOSURESTATE_OPENING: 5, - CLOSURESTATE_CLOSING: 6 -}; - -/** - * @enum {number} - */ -proto.VCSEC.VehicleLockState_E = { - VEHICLELOCKSTATE_UNLOCKED: 0, - VEHICLELOCKSTATE_LOCKED: 1, - VEHICLELOCKSTATE_INTERNAL_LOCKED: 2, - VEHICLELOCKSTATE_SELECTIVE_UNLOCKED: 3 -}; - -/** - * @enum {number} - */ -proto.VCSEC.VehicleSleepStatus_E = { - VEHICLE_SLEEP_STATUS_UNKNOWN: 0, - VEHICLE_SLEEP_STATUS_AWAKE: 1, - VEHICLE_SLEEP_STATUS_ASLEEP: 2 -}; - -/** - * @enum {number} - */ -proto.VCSEC.UserPresence_E = { - VEHICLE_USER_PRESENCE_UNKNOWN: 0, - VEHICLE_USER_PRESENCE_NOT_PRESENT: 1, - VEHICLE_USER_PRESENCE_PRESENT: 2 -}; - -goog.object.extend(exports, proto.VCSEC); diff --git a/src/pb2/vehicle_pb.d.ts b/src/pb2/vehicle_pb.d.ts deleted file mode 100644 index d9962c8..0000000 --- a/src/pb2/vehicle_pb.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -// package: CarServer -// file: vehicle.proto - -import * as jspb from "google-protobuf"; - -export class VehicleState extends jspb.Message { - hasGuestmode(): boolean; - clearGuestmode(): void; - getGuestmode(): VehicleState.GuestMode | undefined; - setGuestmode(value?: VehicleState.GuestMode): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): VehicleState.AsObject; - static toObject(includeInstance: boolean, msg: VehicleState): VehicleState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: VehicleState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): VehicleState; - static deserializeBinaryFromReader(message: VehicleState, reader: jspb.BinaryReader): VehicleState; -} - -export namespace VehicleState { - export type AsObject = { - guestmode?: VehicleState.GuestMode.AsObject, - } - - export class GuestMode extends jspb.Message { - getGuestmodeactive(): boolean; - setGuestmodeactive(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GuestMode.AsObject; - static toObject(includeInstance: boolean, msg: GuestMode): GuestMode.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GuestMode, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GuestMode; - static deserializeBinaryFromReader(message: GuestMode, reader: jspb.BinaryReader): GuestMode; - } - - export namespace GuestMode { - export type AsObject = { - guestmodeactive: boolean, - } - } -} - -export class ClimateState extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ClimateState.AsObject; - static toObject(includeInstance: boolean, msg: ClimateState): ClimateState.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ClimateState, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ClimateState; - static deserializeBinaryFromReader(message: ClimateState, reader: jspb.BinaryReader): ClimateState; -} - -export namespace ClimateState { - export type AsObject = { - } - - export interface CopActivationTempMap { - COPACTIVATIONTEMPUNSPECIFIED: 0; - COPACTIVATIONTEMPLOW: 1; - COPACTIVATIONTEMPMEDIUM: 2; - COPACTIVATIONTEMPHIGH: 3; - } - - export const CopActivationTemp: CopActivationTempMap; -} - diff --git a/src/pb2/vehicle_pb.js b/src/pb2/vehicle_pb.js deleted file mode 100644 index c7e1946..0000000 --- a/src/pb2/vehicle_pb.js +++ /dev/null @@ -1,483 +0,0 @@ -// source: vehicle.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); - -goog.exportSymbol('proto.CarServer.ClimateState', null, global); -goog.exportSymbol('proto.CarServer.ClimateState.CopActivationTemp', null, global); -goog.exportSymbol('proto.CarServer.VehicleState', null, global); -goog.exportSymbol('proto.CarServer.VehicleState.GuestMode', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleState.displayName = 'proto.CarServer.VehicleState'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.VehicleState.GuestMode = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.VehicleState.GuestMode, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.VehicleState.GuestMode.displayName = 'proto.CarServer.VehicleState.GuestMode'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.CarServer.ClimateState = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.CarServer.ClimateState, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.CarServer.ClimateState.displayName = 'proto.CarServer.ClimateState'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleState.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleState.toObject = function(includeInstance, msg) { - var f, obj = { - guestmode: (f = msg.getGuestmode()) && proto.CarServer.VehicleState.GuestMode.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleState} - */ -proto.CarServer.VehicleState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleState; - return proto.CarServer.VehicleState.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleState} - */ -proto.CarServer.VehicleState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 74: - var value = new proto.CarServer.VehicleState.GuestMode; - reader.readMessage(value,proto.CarServer.VehicleState.GuestMode.deserializeBinaryFromReader); - msg.setGuestmode(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGuestmode(); - if (f != null) { - writer.writeMessage( - 74, - f, - proto.CarServer.VehicleState.GuestMode.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.VehicleState.GuestMode.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.VehicleState.GuestMode.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.VehicleState.GuestMode} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleState.GuestMode.toObject = function(includeInstance, msg) { - var f, obj = { - guestmodeactive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.VehicleState.GuestMode} - */ -proto.CarServer.VehicleState.GuestMode.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.VehicleState.GuestMode; - return proto.CarServer.VehicleState.GuestMode.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.VehicleState.GuestMode} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.VehicleState.GuestMode} - */ -proto.CarServer.VehicleState.GuestMode.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setGuestmodeactive(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.VehicleState.GuestMode.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.VehicleState.GuestMode.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.VehicleState.GuestMode} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.VehicleState.GuestMode.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGuestmodeactive(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool GuestModeActive = 1; - * @return {boolean} - */ -proto.CarServer.VehicleState.GuestMode.prototype.getGuestmodeactive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.CarServer.VehicleState.GuestMode} returns this - */ -proto.CarServer.VehicleState.GuestMode.prototype.setGuestmodeactive = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional GuestMode guestMode = 74; - * @return {?proto.CarServer.VehicleState.GuestMode} - */ -proto.CarServer.VehicleState.prototype.getGuestmode = function() { - return /** @type{?proto.CarServer.VehicleState.GuestMode} */ ( - jspb.Message.getWrapperField(this, proto.CarServer.VehicleState.GuestMode, 74)); -}; - - -/** - * @param {?proto.CarServer.VehicleState.GuestMode|undefined} value - * @return {!proto.CarServer.VehicleState} returns this -*/ -proto.CarServer.VehicleState.prototype.setGuestmode = function(value) { - return jspb.Message.setWrapperField(this, 74, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.CarServer.VehicleState} returns this - */ -proto.CarServer.VehicleState.prototype.clearGuestmode = function() { - return this.setGuestmode(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.CarServer.VehicleState.prototype.hasGuestmode = function() { - return jspb.Message.getField(this, 74) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.CarServer.ClimateState.prototype.toObject = function(opt_includeInstance) { - return proto.CarServer.ClimateState.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.CarServer.ClimateState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ClimateState.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.CarServer.ClimateState} - */ -proto.CarServer.ClimateState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.CarServer.ClimateState; - return proto.CarServer.ClimateState.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.CarServer.ClimateState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.CarServer.ClimateState} - */ -proto.CarServer.ClimateState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.CarServer.ClimateState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.CarServer.ClimateState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.CarServer.ClimateState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.CarServer.ClimateState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - -/** - * @enum {number} - */ -proto.CarServer.ClimateState.CopActivationTemp = { - COPACTIVATIONTEMPUNSPECIFIED: 0, - COPACTIVATIONTEMPLOW: 1, - COPACTIVATIONTEMPMEDIUM: 2, - COPACTIVATIONTEMPHIGH: 3 -}; - -goog.object.extend(exports, proto.CarServer); diff --git a/src/teslafleetapi.ts b/src/teslafleetapi.ts index 76bc2f2..cdc68af 100644 --- a/src/teslafleetapi.ts +++ b/src/teslafleetapi.ts @@ -177,5 +177,6 @@ export default class TeslaFleetApi { publicKeyEncoding: { type: "spki", format: "pem" }, privateKeyEncoding: { type: "pkcs8", format: "pem" }, }); - }); + }); + } } diff --git a/src/vehiclesigned.ts b/src/vehiclesigned.ts index 98a29b8..c034cec 100644 --- a/src/vehiclesigned.ts +++ b/src/vehiclesigned.ts @@ -10,21 +10,11 @@ import { Trunk, VehicleDataEndpoint, } from "./types/commands.js"; -import { - RoutableMessage, - Domain, - OperationStatus_E, -} from "./pb2/universal_message_pb.js"; -import { - HMAC_Personalized_Signature_Data, - HMAC_Signature_Data, -} from "./pb2/signatures_pb.js"; -import * as VcSec from "./pb2/vcsec_pb.js"; -import * as CarServer from "./pb2/car_server_pb.js"; +import { HMACPersonalizedSignatureData } from "@teslemetry/tesla-protocol/command/signatures"; import { OptionsResponse } from "./types/responses.js"; import { VehicleResponse } from "./types/vehicle.js"; import { VehicleDataResponse } from "./types/vehicle_data.js"; -import { FleetTelemetryConfig } from "./types/fleet_telemetry_config.js"; +import { FleetTelemetryConfig } from "./types/commands.js"; import Vehicle from "./vehicle.js"; import VehicleSpecific from "./vehiclespecific.js"; @@ -49,23 +39,23 @@ export class Session { this.hmac = hmac.digest(); } - get(): HMAC_Personalized_Signature_Data { + get(): HMACPersonalizedSignatureData { this.counter++; - const signature = new HMAC_Personalized_Signature_Data(); - signature.setCounter(this.counter); - signature.setEpoch(this.epoch); - signature.setExpiresAt(Math.floor(Date.now() / 1000) - this.delta + 10); - return signature; + return HMACPersonalizedSignatureData.create({ + counter: this.counter, + epoch: this.epoch, + expiresAt: Math.floor(Date.now() / 1000) - this.delta + 10, + }); } tag( - signature: HMAC_Personalized_Signature_Data, + signature: HMACPersonalizedSignatureData, command: Buffer, metadata: Buffer, - ): HMAC_Personalized_Signature_Data { + ): HMACPersonalizedSignatureData { let hmac = crypto.createHmac("sha256", this.hmac); hmac.update(Buffer.concat([metadata, command])); - signature.setTag(hmac.digest()); + signature.tag = hmac.digest(); return signature; } } @@ -76,7 +66,6 @@ export default class VehicleSigned extends VehicleSpecific { _from_destination: Buffer; _session: Session[]; -} // Vehicle Commands /** @@ -723,7 +712,7 @@ export default class VehicleSigned extends VehicleSpecific { * @returns */ async fleet_telemetry_config( - config: FleetTelemetryConfig, + config: FleetTelemetryConfig["config"], ): Promise> { return this.parent.fleet_telemetry_config({ vins: [this.vin], diff --git a/src/vehiclespecific.ts b/src/vehiclespecific.ts index 0eba64a..7a541ac 100644 --- a/src/vehiclespecific.ts +++ b/src/vehiclespecific.ts @@ -12,7 +12,7 @@ import { import { OptionsResponse } from "./types/responses.js"; import { VehicleResponse } from "./types/vehicle.js"; import { VehicleDataResponse } from "./types/vehicle_data.js"; -import { FleetTelemetryConfig } from "./types/fleet_telemetry_config.js"; +import { FleetTelemetryConfig } from "./types/commands.js"; import Vehicle from "./vehicle.js"; export default class VehicleSpecific { @@ -674,7 +674,7 @@ export default class VehicleSpecific { * @returns */ async fleet_telemetry_config( - config: FleetTelemetryConfig, + config: FleetTelemetryConfig["config"], ): Promise> { return this.parent.fleet_telemetry_config({ vins: [this.vin], diff --git a/tsconfig.json b/tsconfig.json index e11ef95..bc989c6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "target": "es2020", - "module": "ESNext", + "module": "NodeNext", + "moduleResolution": "NodeNext", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "noImplicitAny": true,