From 43696c5cdebb36c0e6ec6ec948666b22e00c8ddb Mon Sep 17 00:00:00 2001 From: Ibrahim Diallo <20114089+thisisibrahimd@users.noreply.github.com> Date: Sat, 27 Aug 2022 18:55:29 -0400 Subject: [PATCH] add buf generated package and refactor compmenu --- Dockerfile | 26 +- package-lock.json | 52 +- package.json | 1 + src/App.tsx | 3 - src/components/MainNav.tsx | 7 +- .../MaterialTables/HostGroupMaterialTable.tsx | 6 +- .../MaterialTables/HostMaterialTable.tsx | 4 +- .../MaterialTables/PropertyMaterialTable.tsx | 4 +- .../MaterialTables/ServiceGroupMenuTable.tsx | 8 +- .../MaterialTables/ServiceMaterialTable.tsx | 14 +- .../MaterialTables/TeamMaterialTable.tsx | 9 +- .../MaterialTables/UserMaterialTable.tsx | 70 +- .../ScoreBoard/SingleTeamDetails.tsx | 18 +- .../SettingMenus/Bulk/HostCreate.tsx | 19 +- .../SettingMenus/Bulk/PropertiesCreate.tsx | 8 +- .../SettingMenus/Bulk/ServiceCreate.tsx | 18 +- .../SettingMenus/Bulk/TeamCreate.tsx | 4 +- src/components/SettingMenus/CompMenu.tsx | 232 +- src/contexts/BannerTitleContext.tsx | 34 - src/contexts/PolicyContext.tsx | 6 +- src/contexts/ReportContext.tsx | 14 +- src/grpc/gRPCClients.ts | 116 +- src/layouts/ScoreboardLayout.tsx | 2 +- src/lib/material-table/host-groups.ts | 4 +- src/lib/material-table/hosts.ts | 4 +- src/lib/material-table/properties.ts | 4 +- src/lib/material-table/rounds.ts | 2 +- src/lib/material-table/service-groups.ts | 4 +- src/lib/material-table/services.ts | 4 +- src/lib/material-table/teams.ts | 4 +- src/lib/material-table/users.ts | 4 +- src/lib/queries/competition.ts | 88 + src/lib/queries/config.ts | 46 + src/lib/queries/host_groups.ts | 14 +- src/lib/queries/hosts.ts | 14 +- src/lib/queries/policy.ts | 26 + src/lib/queries/properties.ts | 14 +- src/lib/queries/rounds.ts | 6 +- src/lib/queries/service-groups.ts | 14 +- src/lib/queries/services.ts | 15 +- src/lib/queries/teams.ts | 14 +- src/lib/queries/users.ts | 22 +- .../grpc/health/v1/HealthServiceClientPb.ts | 109 - .../grpc/health/v1/health_pb.d.ts | 62 - .../scoretrakapis/grpc/health/v1/health_pb.js | 377 -- .../scoretrak/auth/v1/AuthServiceClientPb.ts | 86 - .../scoretrak/auth/v1/auth_pb.d.ts | 59 - .../scoretrak/auth/v1/auth_pb.js | 374 -- .../check/v1/CheckServiceClientPb.ts | 186 - .../scoretrak/check/v1/check_pb.d.ts | 228 -- .../scoretrak/check/v1/check_pb.js | 1561 --------- .../v1/CompetitionServiceClientPb.ts | 304 -- .../competition/v1/competition_pb.d.ts | 387 --- .../competition/v1/competition_pb.js | 2615 -------------- .../config/v1/ConfigServiceClientPb.ts | 208 -- .../scoretrak/config/v1/config_pb.d.ts | 187 - .../scoretrak/config/v1/config_pb.js | 1210 ------- .../scoretrak/host/v1/HostServiceClientPb.ts | 286 -- .../scoretrak/host/v1/host_pb.d.ts | 352 -- .../scoretrak/host/v1/host_pb.js | 2420 ------------- .../v1/Host_groupServiceClientPb.ts | 286 -- .../host_group/v1/host_group_pb.d.ts | 325 -- .../scoretrak/host_group/v1/host_group_pb.js | 2250 ------------ .../policy/v1/PolicyServiceClientPb.ts | 109 - .../scoretrak/policy/v1/policy_pb.d.ts | 167 - .../scoretrak/policy/v1/policy_pb.js | 1088 ------ .../property/v1/PropertyServiceClientPb.ts | 340 -- .../scoretrak/property/v1/property_pb.d.ts | 383 --- .../scoretrak/property/v1/property_pb.js | 2571 -------------- .../scoretrak/proto/v1/uuid_pb.d.ts | 25 - .../scoretrak/proto/v1/uuid_pb.js | 180 - .../report/v1/ReportServiceClientPb.ts | 59 - .../scoretrak/report/v1/report_pb.d.ts | 84 - .../scoretrak/report/v1/report_pb.js | 559 --- .../round/v1/RoundServiceClientPb.ts | 238 -- .../scoretrak/round/v1/round_pb.d.ts | 266 -- .../scoretrak/round/v1/round_pb.js | 1796 ---------- .../service/v1/ServiceServiceClientPb.ts | 336 -- .../scoretrak/service/v1/service_pb.d.ts | 436 --- .../scoretrak/service/v1/service_pb.js | 3054 ----------------- .../v1/Service_groupServiceClientPb.ts | 344 -- .../service_group/v1/service_group_pb.d.ts | 387 --- .../service_group/v1/service_group_pb.js | 2639 -------------- .../scoretrak/team/v1/TeamServiceClientPb.ts | 286 -- .../scoretrak/team/v1/team_pb.d.ts | 344 -- .../scoretrak/team/v1/team_pb.js | 2332 ------------- .../scoretrak/user/v1/UserServiceClientPb.ts | 336 -- .../scoretrak/user/v1/user_pb.d.ts | 386 --- .../scoretrak/user/v1/user_pb.js | 2512 -------------- src/routes/auth/sign_in.tsx | 4 +- src/routes/logs.tsx | 6 +- src/routes/settings/index.tsx | 1 - 92 files changed, 461 insertions(+), 35657 deletions(-) delete mode 100644 src/contexts/BannerTitleContext.tsx create mode 100644 src/lib/queries/competition.ts create mode 100644 src/lib/queries/config.ts create mode 100644 src/lib/queries/policy.ts delete mode 100644 src/lib/scoretrakapis/grpc/health/v1/HealthServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/grpc/health/v1/health_pb.d.ts delete mode 100644 src/lib/scoretrakapis/grpc/health/v1/health_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/auth/v1/AuthServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/check/v1/CheckServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/check/v1/check_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/check/v1/check_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/competition/v1/CompetitionServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/config/v1/ConfigServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/config/v1/config_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/config/v1/config_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/host/v1/HostServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/host/v1/host_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/host/v1/host_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/host_group/v1/Host_groupServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/policy/v1/PolicyServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/property/v1/PropertyServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/property/v1/property_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/property/v1/property_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/report/v1/ReportServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/report/v1/report_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/report/v1/report_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/round/v1/RoundServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/round/v1/round_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/round/v1/round_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/service/v1/ServiceServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/service/v1/service_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/service/v1/service_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/service_group/v1/Service_groupServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/team/v1/TeamServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/team/v1/team_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/team/v1/team_pb.js delete mode 100644 src/lib/scoretrakapis/scoretrak/user/v1/UserServiceClientPb.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/user/v1/user_pb.d.ts delete mode 100644 src/lib/scoretrakapis/scoretrak/user/v1/user_pb.js diff --git a/Dockerfile b/Dockerfile index 6b2b217..e2f442d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,31 +5,7 @@ FROM node:16 AS builder WORKDIR /app # Copy all files from current directory to working dir in image COPY . . -RUN BIN="/usr/local/bin" && \ - VERSION="3.15.8" && \ - BINARY_NAME="protoc" && \ - echo "${BINARY_NAME}-${VERSION}-$(uname -s)-$(uname -m).zip" && \ - curl -LO \ - "https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/${BINARY_NAME}-${VERSION}-$(uname -s)-$(uname -m).zip" && \ - unzip "${BINARY_NAME}-${VERSION}-$(uname -s)-$(uname -m).zip" -d /tmp && \ - cp "/tmp/bin/${BINARY_NAME}" "${BIN}/${BINARY_NAME}" && \ - chmod +x "${BIN}/${BINARY_NAME}" -# install protoc-gen-grpc-web -RUN BIN="/usr/local/bin" && \ - VERSION="1.3.0" && \ - BINARY_NAME="protoc-gen-grpc-web" && \ - curl -sSL \ - "https://github.com/grpc/grpc-web/releases/download/${VERSION}/${BINARY_NAME}-${VERSION}-$(uname -s)-$(uname -m)" \ - -o "${BIN}/${BINARY_NAME}" && \ - chmod +x "${BIN}/${BINARY_NAME}" -# install buf -RUN BIN="/usr/local/bin" && \ - VERSION="1.0.0-rc10" && \ - BINARY_NAME="buf" && \ - curl -sSL \ - "https://github.com/bufbuild/buf/releases/download/v${VERSION}/${BINARY_NAME}-$(uname -s)-$(uname -m)" \ - -o "${BIN}/${BINARY_NAME}" && \ - chmod +x "${BIN}/${BINARY_NAME}" + # Only install production packages RUN npm install # Build app diff --git a/package-lock.json b/package-lock.json index f35635d..cf81ea2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "scoretrak-client", "version": "0.1.0", "dependencies": { + "@buf/grpc_web_scoretrak_scoretrakapis": "^1.7.5", "@date-io/core": "^1.3.13", "@material-table/core": "^4.3.44", "@material-ui/core": "^4.11.3", @@ -2478,6 +2479,27 @@ "version": "0.2.3", "license": "MIT" }, + "node_modules/@buf/grpc_web_googleapis_googleapis": { + "version": "1.7.504", + "resolved": "https://npm.buf.build/@buf/grpc_web_googleapis_googleapis/1.7.504/tarball", + "peerDependencies": { + "@types/google-protobuf": "3.15.5", + "google-protobuf": "v3.20.1", + "grpc-web": "1.3.1" + } + }, + "node_modules/@buf/grpc_web_scoretrak_scoretrakapis": { + "version": "1.7.5", + "resolved": "https://npm.buf.build/@buf/grpc_web_scoretrak_scoretrakapis/1.7.5/tarball", + "dependencies": { + "@buf/grpc_web_googleapis_googleapis": "1.7.504" + }, + "peerDependencies": { + "@types/google-protobuf": "3.15.5", + "google-protobuf": "v3.20.1", + "grpc-web": "1.3.1" + } + }, "node_modules/@csstools/normalize.css": { "version": "12.0.0", "license": "CC0-1.0" @@ -9296,16 +9318,18 @@ } }, "node_modules/google-protobuf": { - "version": "3.19.3", - "license": "BSD-3-Clause" + "version": "3.20.1", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.20.1.tgz", + "integrity": "sha512-XMf1+O32FjYIV3CYu6Tuh5PNbfNEU5Xu22X+Xkdb/DUexFlCzhvv7d5Iirm4AOwn8lv4al1YvIhzGrg2j9Zfzw==" }, "node_modules/graceful-fs": { "version": "4.2.10", "license": "ISC" }, "node_modules/grpc-web": { - "version": "1.3.0", - "license": "Apache-2.0" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/grpc-web/-/grpc-web-1.3.1.tgz", + "integrity": "sha512-VxyYEAGsatecAFY3xieRDzsuhm92yQBsJD7fd5Z3MY150hZWPwkrUWetzJ0QK5W0uym4+VedPQrei38wk0eIjQ==" }, "node_modules/gzip-size": { "version": "6.0.0", @@ -18234,6 +18258,18 @@ "@bcoe/v8-coverage": { "version": "0.2.3" }, + "@buf/grpc_web_googleapis_googleapis": { + "version": "1.7.504", + "resolved": "https://npm.buf.build/@buf/grpc_web_googleapis_googleapis/1.7.504/tarball", + "requires": {} + }, + "@buf/grpc_web_scoretrak_scoretrakapis": { + "version": "1.7.5", + "resolved": "https://npm.buf.build/@buf/grpc_web_scoretrak_scoretrakapis/1.7.5/tarball", + "requires": { + "@buf/grpc_web_googleapis_googleapis": "1.7.504" + } + }, "@csstools/normalize.css": { "version": "12.0.0" }, @@ -22462,13 +22498,17 @@ } }, "google-protobuf": { - "version": "3.19.3" + "version": "3.20.1", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.20.1.tgz", + "integrity": "sha512-XMf1+O32FjYIV3CYu6Tuh5PNbfNEU5Xu22X+Xkdb/DUexFlCzhvv7d5Iirm4AOwn8lv4al1YvIhzGrg2j9Zfzw==" }, "graceful-fs": { "version": "4.2.10" }, "grpc-web": { - "version": "1.3.0" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/grpc-web/-/grpc-web-1.3.1.tgz", + "integrity": "sha512-VxyYEAGsatecAFY3xieRDzsuhm92yQBsJD7fd5Z3MY150hZWPwkrUWetzJ0QK5W0uym4+VedPQrei38wk0eIjQ==" }, "gzip-size": { "version": "6.0.0", diff --git a/package.json b/package.json index 1517594..9710036 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { + "@buf/grpc_web_scoretrak_scoretrakapis": "^1.7.5", "@date-io/core": "^1.3.13", "@material-table/core": "^4.3.44", "@material-ui/core": "^4.11.3", diff --git a/src/App.tsx b/src/App.tsx index 30e3704..6ea6cd2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,7 +15,6 @@ import { createTheme } from "@material-ui/core"; import { useTitle } from "react-use"; import { usePaletteType } from "./contexts/PaletteTypeContext"; import { Route, Routes } from "react-router-dom"; -import { TitleContextProvider } from "./contexts/BannerTitleContext"; import DefaultLayout from "./layouts/DefaultLayout"; import AuthLayout from "./layouts/AuthLayout"; import SignIn from "./routes/auth/sign_in"; @@ -65,7 +64,6 @@ function App() { > - }> } /> @@ -85,7 +83,6 @@ function App() { } /> - diff --git a/src/components/MainNav.tsx b/src/components/MainNav.tsx index 0272434..229d4da 100644 --- a/src/components/MainNav.tsx +++ b/src/components/MainNav.tsx @@ -4,9 +4,8 @@ import Typography from "@material-ui/core/Typography"; import AppBar from "@material-ui/core/AppBar"; import { makeStyles } from "@material-ui/core/styles"; import { Brightness4, Brightness7 } from "@material-ui/icons"; -import { Box, Button, Container, Menu, MenuItem, useTheme } from "@material-ui/core"; +import { Box, Button, Container, useTheme } from "@material-ui/core"; import { usePaletteType } from "../contexts/PaletteTypeContext"; -import { useBannerTitle } from "../contexts/BannerTitleContext"; import { Role, token } from "../grpc/token/token"; import SettingsIcon from "@material-ui/icons/Settings"; import DescriptionIcon from "@material-ui/icons/Description"; @@ -14,14 +13,11 @@ import BarChartIcon from "@material-ui/icons/BarChart"; import DetailsIcon from "@material-ui/icons/Details"; import { Link as RouterLink, - NavigateOptions, - To, useNavigate, } from "react-router-dom"; import { useReport } from "../contexts/ReportContext"; import CheckCircleIcon from "@material-ui/icons/CheckCircle"; import { usePolicy } from "../contexts/PolicyContext"; -import { MouseEvent, useState } from "react"; const useStyles = makeStyles((_) => ({ root: { @@ -42,7 +38,6 @@ export function MainNav() { const theme = useTheme(); const { togglePaletteType } = usePaletteType(); const classes = useStyles(); - const { bannerTitle } = useBannerTitle(); const navigate = useNavigate(); const handleLogout = () => { diff --git a/src/components/MaterialTables/HostGroupMaterialTable.tsx b/src/components/MaterialTables/HostGroupMaterialTable.tsx index fb0ef87..5990871 100644 --- a/src/components/MaterialTables/HostGroupMaterialTable.tsx +++ b/src/components/MaterialTables/HostGroupMaterialTable.tsx @@ -1,14 +1,12 @@ -import { useEffect, useState } from "react"; -import Box from "@material-ui/core/Box"; import MaterialTable, { Column } from "@material-table/core"; import { Severity } from "../../types/types"; import { CircularProgress } from "@material-ui/core"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { DeleteRequest, StoreRequest, UpdateRequest, -} from "../../lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_pb"; import { useSnackbar } from "notistack"; import { SnackbarDismissButton } from "../SnackbarDismissButton"; import { diff --git a/src/components/MaterialTables/HostMaterialTable.tsx b/src/components/MaterialTables/HostMaterialTable.tsx index 19c4b9c..abfab1a 100644 --- a/src/components/MaterialTables/HostMaterialTable.tsx +++ b/src/components/MaterialTables/HostMaterialTable.tsx @@ -7,8 +7,8 @@ import { DeleteRequest, StoreRequest, UpdateRequest, -} from "../../lib/scoretrakapis/scoretrak/host/v1/host_pb"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { CircularProgress } from "@material-ui/core"; import { IHost } from "../../types/material_table"; import { diff --git a/src/components/MaterialTables/PropertyMaterialTable.tsx b/src/components/MaterialTables/PropertyMaterialTable.tsx index b36cf2e..1e2dac0 100644 --- a/src/components/MaterialTables/PropertyMaterialTable.tsx +++ b/src/components/MaterialTables/PropertyMaterialTable.tsx @@ -7,9 +7,9 @@ import { DeleteRequest, StoreRequest, UpdateRequest, -} from "../../lib/scoretrakapis/scoretrak/property/v1/property_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/property/v1/property_pb"; import Box from "@material-ui/core/Box"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { CircularProgress } from "@material-ui/core"; import { useAddPropertyMutation, diff --git a/src/components/MaterialTables/ServiceGroupMenuTable.tsx b/src/components/MaterialTables/ServiceGroupMenuTable.tsx index 6dade7c..d21f3c5 100644 --- a/src/components/MaterialTables/ServiceGroupMenuTable.tsx +++ b/src/components/MaterialTables/ServiceGroupMenuTable.tsx @@ -4,10 +4,10 @@ import { RedeployRequest, StoreRequest, UpdateRequest, -} from "../../lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service_group/v1/service_group_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import MaterialTable, { Column } from "@material-table/core"; -import { Box, CircularProgress } from "@material-ui/core"; +import { CircularProgress } from "@material-ui/core"; import { useSnackbar } from "notistack"; import { SnackbarDismissButton } from "../SnackbarDismissButton"; import { gRPCClients } from "../../grpc/gRPCClients"; @@ -62,7 +62,7 @@ export default function ServiceGroupMaterialTable() { icon: "replay", tooltip: "redeploy workers", onClick: (event, rowData) => { - return gRPCClients.serviceGroupClient + return gRPCClients.service_group.v1.serviceGroupServicePromiseClient .redeploy( new RedeployRequest().setId( new UUID().setValue( diff --git a/src/components/MaterialTables/ServiceMaterialTable.tsx b/src/components/MaterialTables/ServiceMaterialTable.tsx index eb83d7a..163a63e 100644 --- a/src/components/MaterialTables/ServiceMaterialTable.tsx +++ b/src/components/MaterialTables/ServiceMaterialTable.tsx @@ -8,8 +8,8 @@ import { StoreRequest, TestServiceRequest, UpdateRequest, -} from "../../lib/scoretrakapis/scoretrak/service/v1/service_pb"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service/v1/service_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { CircularProgress } from "@material-ui/core"; import { gRPCClients } from "../../grpc/gRPCClients"; import { IService } from "../../types/material_table"; @@ -38,13 +38,9 @@ export function ServiceMaterialTable() { } = useServicesQuery(); const { data: serviceGroupsData, - isLoading: serviceGroupsIsLoading, - isSuccess: serviceGroupsIsSuccess, } = useServiceGroupsQuery(); const { data: hostsData, - isLoading: hostsIsLoading, - isSuccess: hostsIsSuccess, } = useHostsQuery(); const addService = useAddServiceMutation(); @@ -126,7 +122,7 @@ export function ServiceMaterialTable() { setColumns((prevState) => { for (let i = 0; i < prevState.length; i++) { const column = prevState[i]; - if (column.title == "Service Group ID") { + if (column.title === "Service Group ID") { column.lookup = lookup; } } @@ -150,7 +146,7 @@ export function ServiceMaterialTable() { setColumns((prevState) => { for (let i = 0; i < prevState.length; i++) { const column = prevState[i]; - if (column.title == "Host ID") { + if (column.title === "Host ID") { column.lookup = lookup; } } @@ -170,7 +166,7 @@ export function ServiceMaterialTable() { icon: "flash_on", tooltip: "test service", onClick: (event, rowData) => { - return gRPCClients.serviceClient + return gRPCClients.service.v1.serviceServicePromiseClient .testService( new TestServiceRequest().setId( new UUID().setValue((rowData as IService).id as string) diff --git a/src/components/MaterialTables/TeamMaterialTable.tsx b/src/components/MaterialTables/TeamMaterialTable.tsx index 70afcb0..8d92739 100644 --- a/src/components/MaterialTables/TeamMaterialTable.tsx +++ b/src/components/MaterialTables/TeamMaterialTable.tsx @@ -3,17 +3,12 @@ import MaterialTable, { Column } from "@material-table/core"; import { DeleteRequest, StoreRequest, - Team, UpdateRequest, -} from "../../lib/scoretrakapis/scoretrak/team/v1/team_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_pb"; import { Severity } from "../../types/types"; import { SnackbarDismissButton } from "../SnackbarDismissButton"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { CircularProgress } from "@material-ui/core"; -import { - BoolValue, - UInt64Value, -} from "google-protobuf/google/protobuf/wrappers_pb"; import { ITeam } from "../../types/material_table"; import { useAddTeamMutation, diff --git a/src/components/MaterialTables/UserMaterialTable.tsx b/src/components/MaterialTables/UserMaterialTable.tsx index 03f095e..e076360 100644 --- a/src/components/MaterialTables/UserMaterialTable.tsx +++ b/src/components/MaterialTables/UserMaterialTable.tsx @@ -1,23 +1,17 @@ import React, { useEffect, useState } from "react"; import { Role } from "../../grpc/token/token"; -import Box from "@material-ui/core/Box"; import MaterialTable, { Column } from "@material-table/core"; -import { GetAllRequest as GetAllRequestTeam } from "../../lib/scoretrakapis/scoretrak/team/v1/team_pb"; import { DeleteRequest, - GetAllRequest as GetAllRequestUser, - Role as ProtoRole, StoreRequest, UpdateRequest, - User, -} from "../../lib/scoretrakapis/scoretrak/user/v1/user_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/user/v1/user_pb"; import { Severity } from "../../types/types"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { CircularProgress } from "@material-ui/core"; import { useSnackbar } from "notistack"; import { SnackbarDismissButton } from "../SnackbarDismissButton"; -import { gRPCClients } from "../../grpc/gRPCClients"; -import { IHost, IUser } from "../../types/material_table"; +import { IUser } from "../../types/material_table"; import { useAddUserMutation, useDeleteUserMutation, @@ -28,50 +22,6 @@ import { useTeamsQuery } from "../../lib/queries/teams"; import { IUserToUser, userToIUser } from "../../lib/material-table/users"; import grpcWeb from "grpc-web"; -type userColumns = { - id: string | undefined; - username: string; - password: string; - passwordHash: string | undefined; - teamId: string | undefined; - role: Role | undefined; -}; - -function userToUserColumn(user: User): userColumns { - return { - id: user.getId()?.getValue(), - password: user.getPassword(), - passwordHash: user.getPasswordHash(), - role: ProtoRoleToRole(user.getRole()), - teamId: user.getTeamId()?.getValue(), - username: user.getUsername(), - }; -} - -function userColumnsToUser(userC: userColumns): User { - const u = new User(); - if (userC.id && userC.id !== "") u.setId(new UUID().setValue(userC.id)); - u.setPassword(userC.password); - u.setUsername(userC.username); - u.setRole(RoleToProtoRole(userC.role)); - if (userC.teamId && userC.teamId !== "") - u.setTeamId(new UUID().setValue(userC.teamId)); - return u; -} - -function ProtoRoleToRole(eRole: ProtoRole): Role | undefined { - if (eRole === ProtoRole.ROLE_BLUE) return Role.Blue; - if (eRole === ProtoRole.ROLE_BLACK) return Role.Black; - if (eRole === ProtoRole.ROLE_RED) return Role.Red; - return undefined; -} - -function RoleToProtoRole(role: Role | undefined): ProtoRole { - if (role === Role.Blue) return ProtoRole.ROLE_BLUE; - if (role === Role.Black) return ProtoRole.ROLE_BLACK; - if (role === Role.Red) return ProtoRole.ROLE_RED; - return ProtoRole.ROLE_UNSPECIFIED; -} export default function UserMaterialTable() { const title = "Users"; @@ -84,8 +34,6 @@ export default function UserMaterialTable() { } = useUsersQuery(); const { data: teamsData, - isLoading: teamsIsLoading, - isSuccess: teamsIsSuccess, } = useTeamsQuery(); const addUser = useAddUserMutation(); @@ -131,7 +79,7 @@ export default function UserMaterialTable() { setColumns((prevState) => { for (let i = 0; i < prevState.length; i++) { const column = prevState[i]; - if (column.title == "Team ID") { + if (column.title === "Team ID") { column.lookup = lookup; } } @@ -214,15 +162,7 @@ export default function UserMaterialTable() { deleteUser.mutate(deleteRequest, { onError: (error) => { - enqueueSnackbar( - `Unable to delete user: ${ - (error as grpcWeb.RpcError).message - }. Error code: ${(error as grpcWeb.RpcError).code}`, - { - variant: Severity.Error, - action: SnackbarDismissButton, - } - ); + enqueueSnackbar(`Unable to delete user: ${error.message}. Error code: ${error.code}`, { variant: Severity.Error, action: SnackbarDismissButton, }); reject(); }, }); diff --git a/src/components/ScoreBoard/SingleTeamDetails.tsx b/src/components/ScoreBoard/SingleTeamDetails.tsx index 8dc7f4c..3ddcad5 100644 --- a/src/components/ScoreBoard/SingleTeamDetails.tsx +++ b/src/components/ScoreBoard/SingleTeamDetails.tsx @@ -27,21 +27,21 @@ import PauseCircleOutlineIcon from "@material-ui/icons/PauseCircleOutline"; import { GetAllByServiceIDRequest as GetAllByServiceIDRequestCheck, GetAllByServiceIDResponse as GetAllByServiceIDResponseCheck, -} from "../../lib/scoretrakapis/scoretrak/check/v1/check_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/check/v1/check_pb"; import { GetAllByServiceIDRequest as GetAllByServiceIDRequestProperty, GetAllByServiceIDResponse as GetAllByServiceIDResponseProperty, Property, Status, UpdateRequest as UpdateRequestProperty, -} from "../../lib/scoretrakapis/scoretrak/property/v1/property_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/property/v1/property_pb"; import { GetByIDRequest as GetByIDRequestHost, Host, UpdateRequest as UpdateRequestHost, -} from "../../lib/scoretrakapis/scoretrak/host/v1/host_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_pb"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { StringValue } from "google-protobuf/google/protobuf/wrappers_pb"; import { IconButton, Tooltip } from "@material-ui/core"; import { Replay } from "@material-ui/icons"; @@ -401,7 +401,7 @@ function SingleTeamDetailsAccordionDetailsBox( const uuid = new UUID(); uuid.setValue(service); checksRequest.setServiceId(uuid); - return gRPCClients.checkClient.getAllByServiceID(checksRequest, {}); + return gRPCClients.check.v1.checkServicePromiseClient.getAllByServiceID(checksRequest, {}); } async function reloadProperties( @@ -411,7 +411,7 @@ function SingleTeamDetailsAccordionDetailsBox( const uuid = new UUID(); uuid.setValue(service); propertiesRequest.setServiceId(uuid); - return gRPCClients.propertyClient.getAllByServiceID(propertiesRequest, {}); + return gRPCClients.property.v1.propertyServicePromiseClient.getAllByServiceID(propertiesRequest, {}); } async function reloadHost(hostID: string) { @@ -419,7 +419,7 @@ function SingleTeamDetailsAccordionDetailsBox( const uuid = new UUID(); uuid.setValue(hostID); hostsRequest.setId(uuid); - return gRPCClients.hostClient.getByID(hostsRequest, {}); + return gRPCClients.host.v1.hostServicePromiseClient.getByID(hostsRequest, {}); } function reloadPropertiesSetter( @@ -478,7 +478,7 @@ function SingleTeamDetailsAccordionDetailsBox( host.setId(uuid); host.setAddress(address); hostsRequest.setHost(host); - gRPCClients.hostClient.update(hostsRequest, {}).then( + gRPCClients.host.v1.hostServicePromiseClient.update(hostsRequest, {}).then( (r) => { props.setHostData({ edit_host: true, address }); reloadHostSetter(hstID); @@ -611,7 +611,7 @@ function SingleTeamDetailsAccordionDetailsBox( property.setValue(stringValue); const updatedProperty = new UpdateRequestProperty(); updatedProperty.setProperty(property); - gRPCClients.propertyClient + gRPCClients.property.v1.propertyServicePromiseClient .update(updatedProperty, {}) .then( (r) => { diff --git a/src/components/SettingMenus/Bulk/HostCreate.tsx b/src/components/SettingMenus/Bulk/HostCreate.tsx index 5b9b93b..7e50268 100644 --- a/src/components/SettingMenus/Bulk/HostCreate.tsx +++ b/src/components/SettingMenus/Bulk/HostCreate.tsx @@ -8,12 +8,12 @@ import TextField from "@material-ui/core/TextField"; import Box from "@material-ui/core/Box"; import CircularProgress from "@material-ui/core/CircularProgress"; import Button from "@material-ui/core/Button"; -import { Team } from "../../../lib/scoretrakapis/scoretrak/team/v1/team_pb"; -import { HostGroup } from "../../../lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb"; -import { GetAllRequest as GetAllRequestHostGroup } from "../../../lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb"; -import { GetAllRequest as GetAllRequestTeam } from "../../../lib/scoretrakapis/scoretrak/team/v1/team_pb"; +import { Team } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_pb"; +import { HostGroup } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_pb"; +import { GetAllRequest as GetAllRequestHostGroup } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_pb"; +import { GetAllRequest as GetAllRequestTeam } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_pb"; import { Severity } from "../../../types/types"; -import { StoreRequest } from "../../../lib/scoretrakapis/scoretrak/host/v1/host_pb"; +import { StoreRequest } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_pb"; import Switch from "@material-ui/core/Switch"; import FormControlLabel from "@material-ui/core/FormControlLabel"; import IconButton from "@material-ui/core/IconButton"; @@ -55,7 +55,7 @@ const HostCreate = () => { }); const [rowsData, setRowData] = useState>({}); useEffect(() => { - gRPCClients.teamClient.getAll(new GetAllRequestTeam(), {}).then( + gRPCClients.team.v1.teamServicePromiseClient.getAll(new GetAllRequestTeam(), {}).then( (respTeam) => { setData((prevState) => { return { @@ -82,7 +82,7 @@ const HostCreate = () => { ); } ); - gRPCClients.hostGroupClient.getAll(new GetAllRequestHostGroup(), {}).then( + gRPCClients.host_group.v1.hostGroupServicePromiseClient.getAll(new GetAllRequestHostGroup(), {}).then( (respHostGroup) => { setData((prevState) => { const hostGroupsTemplateState: templateState[] = []; @@ -108,7 +108,7 @@ const HostCreate = () => { ); } ); - }, []); + }, []); // eslint-disable-line react-hooks/exhaustive-deps const modifyRowDataProperty = ( val: valueof, @@ -202,7 +202,7 @@ const HostCreate = () => { }); } - gRPCClients.hostClient.store(storeRequest, {}).then( + gRPCClients.host.v1.hostServicePromiseClient.store(storeRequest, {}).then( (_) => { enqueueSnackbar("Success!", { variant: Severity.Success, @@ -512,6 +512,7 @@ const HostCreate = () => { ); } + return <> })} diff --git a/src/components/SettingMenus/Bulk/PropertiesCreate.tsx b/src/components/SettingMenus/Bulk/PropertiesCreate.tsx index 30564f9..52af992 100644 --- a/src/components/SettingMenus/Bulk/PropertiesCreate.tsx +++ b/src/components/SettingMenus/Bulk/PropertiesCreate.tsx @@ -13,9 +13,9 @@ import MenuItem from "@material-ui/core/MenuItem"; import { availableChecks, Checks } from "../util/serviceDefaultProperties"; import Switch from "@material-ui/core/Switch"; import Button from "@material-ui/core/Button"; -import { GetAllRequest } from "../../../lib/scoretrakapis/scoretrak/service/v1/service_pb"; +import { GetAllRequest } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service/v1/service_pb"; import { Severity } from "../../../types/types"; -import { StoreRequest } from "../../../lib/scoretrakapis/scoretrak/property/v1/property_pb"; +import { StoreRequest } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/property/v1/property_pb"; import { useSnackbar } from "notistack"; import { SnackbarDismissButton } from "../../SnackbarDismissButton"; import { gRPCClients } from "../../../grpc/gRPCClients"; @@ -38,7 +38,7 @@ const PropertiesCreate = () => { const [rowsData, setRowData] = useState({}); useEffect(() => { - gRPCClients.serviceClient.getAll(new GetAllRequest(), {}).then( + gRPCClients.service.v1.serviceServicePromiseClient.getAll(new GetAllRequest(), {}).then( (respService) => { const rowdt: RowType = {}; const displayNames = new Set(); @@ -126,7 +126,7 @@ const PropertiesCreate = () => { properties.forEach((property) => { storeRequest.addProperties(IPropertyToProperty(property)); }); - gRPCClients.propertyClient.store(storeRequest, {}).then( + gRPCClients.property.v1.propertyServicePromiseClient.store(storeRequest, {}).then( () => { enqueueSnackbar("Success!", { variant: Severity.Success, diff --git a/src/components/SettingMenus/Bulk/ServiceCreate.tsx b/src/components/SettingMenus/Bulk/ServiceCreate.tsx index edad555..a6d21f3 100644 --- a/src/components/SettingMenus/Bulk/ServiceCreate.tsx +++ b/src/components/SettingMenus/Bulk/ServiceCreate.tsx @@ -15,17 +15,17 @@ import Button from "@material-ui/core/Button"; import { GetAllRequest as GetAllRequestServiceGroup, ServiceGroup, -} from "../../../lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service_group/v1/service_group_pb"; import { Severity } from "../../../types/types"; import { GetAllRequest as GetAllRequestService, StoreRequest, -} from "../../../lib/scoretrakapis/scoretrak/service/v1/service_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service/v1/service_pb"; import { GetAllRequest as GetAllRequestHost, Host, -} from "../../../lib/scoretrakapis/scoretrak/host/v1/host_pb"; -import { HostGroup } from "../../../lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_pb"; +import { HostGroup } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_pb"; import { useSnackbar } from "notistack"; import { SnackbarDismissButton } from "../../SnackbarDismissButton"; import { gRPCClients } from "../../../grpc/gRPCClients"; @@ -77,7 +77,7 @@ const ServiceCreate = () => { }; useEffect(() => { - gRPCClients.serviceGroupClient.getAll(new GetAllRequestService(), {}).then( + gRPCClients.service_group.v1.serviceGroupServicePromiseClient.getAll(new GetAllRequestService(), {}).then( (respServiceGrp) => { setData((prevState) => { return { @@ -94,7 +94,7 @@ const ServiceCreate = () => { ); } ); - gRPCClients.hostGroupClient + gRPCClients.host_group.v1.hostGroupServicePromiseClient .getAll(new GetAllRequestServiceGroup(), {}) .then( (respHostGroup) => { @@ -122,7 +122,7 @@ const ServiceCreate = () => { } ); - gRPCClients.hostClient.getAll(new GetAllRequestHost(), {}).then( + gRPCClients.host.v1.hostServicePromiseClient.getAll(new GetAllRequestHost(), {}).then( (respHost) => { setData((prevState) => { return { @@ -139,7 +139,7 @@ const ServiceCreate = () => { ); } ); - }, []); + }, []); // eslint-disable-line react-hooks/exhaustive-deps const setNumberOfServices = (hostGroupID: string, value: number) => { if (value >= 0) { @@ -181,7 +181,7 @@ const ServiceCreate = () => { storeRequest.addServices(IServiceToService(servVals)); }); - gRPCClients.serviceClient.store(storeRequest, {}).then( + gRPCClients.service.v1.serviceServicePromiseClient.store(storeRequest, {}).then( (_) => { enqueueSnackbar("Success!", { variant: Severity.Success, diff --git a/src/components/SettingMenus/Bulk/TeamCreate.tsx b/src/components/SettingMenus/Bulk/TeamCreate.tsx index f668c22..2ab4e33 100644 --- a/src/components/SettingMenus/Bulk/TeamCreate.tsx +++ b/src/components/SettingMenus/Bulk/TeamCreate.tsx @@ -9,7 +9,7 @@ import Button from "@material-ui/core/Button"; import { StoreRequest, Team, -} from "../../../lib/scoretrakapis/scoretrak/team/v1/team_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_pb"; import { Severity } from "../../../types/types"; import { UInt64Value } from "google-protobuf/google/protobuf/wrappers_pb"; import { useSnackbar } from "notistack"; @@ -104,7 +104,7 @@ const TeamCreate = () => { 0 ); }); - gRPCClients.teamClient.store(storeRequest, {}).then( + gRPCClients.team.v1.teamServicePromiseClient.store(storeRequest, {}).then( (_) => { enqueueSnackbar(`Teams Created!`, { variant: Severity.Success }); }, diff --git a/src/components/SettingMenus/CompMenu.tsx b/src/components/SettingMenus/CompMenu.tsx index 9d0cae1..e658f04 100644 --- a/src/components/SettingMenus/CompMenu.tsx +++ b/src/components/SettingMenus/CompMenu.tsx @@ -8,7 +8,7 @@ import { GetRequest, GetStaticConfigRequest, UpdateRequest as UpdateRequestDynamicConfig, -} from "../../lib/scoretrakapis/scoretrak/config/v1/config_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/config/v1/config_pb"; import { Severity } from "../../types/types"; import { SnackbarDismissButton } from "../SnackbarDismissButton"; import { @@ -19,7 +19,7 @@ import { import { Policy, UpdateRequest as UpdateRequestPolicy, -} from "../../lib/scoretrakapis/scoretrak/policy/v1/policy_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/policy/v1/policy_pb"; import { Competition, DeleteCompetitionRequest, @@ -27,19 +27,19 @@ import { FetchEntireCompetitionRequest, LoadCompetitionRequest, ResetScoresRequest, -} from "../../lib/scoretrakapis/scoretrak/competition/v1/competition_pb"; -import { Report } from "../../lib/scoretrakapis/scoretrak/report/v1/report_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/competition/v1/competition_pb"; +import { Report } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/report/v1/report_pb"; import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb"; -import { Check } from "../../lib/scoretrakapis/scoretrak/check/v1/check_pb"; -import { UUID } from "../../lib/scoretrakapis/scoretrak/proto/v1/uuid_pb"; -import { Round } from "../../lib/scoretrakapis/scoretrak/round/v1/round_pb"; -import { Team } from "../../lib/scoretrakapis/scoretrak/team/v1/team_pb"; -import { HostGroup } from "../../lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb"; -import { ServiceGroup } from "../../lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb"; -import { User } from "../../lib/scoretrakapis/scoretrak/user/v1/user_pb"; -import { Host } from "../../lib/scoretrakapis/scoretrak/host/v1/host_pb"; -import { Service } from "../../lib/scoretrakapis/scoretrak/service/v1/service_pb"; -import { Property } from "../../lib/scoretrakapis/scoretrak/property/v1/property_pb"; +import { Check } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/check/v1/check_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { Round } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/round/v1/round_pb"; +import { Team } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_pb"; +import { HostGroup } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_pb"; +import { ServiceGroup } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service_group/v1/service_group_pb"; +import { User } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/user/v1/user_pb"; +import { Host } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_pb"; +import { Service } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service/v1/service_pb"; +import { Property } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/property/v1/property_pb"; import { saveAs } from "file-saver"; import Box from "@material-ui/core/Box"; import Accordion from "@material-ui/core/Accordion"; @@ -63,6 +63,13 @@ import CloudUploadIcon from "@material-ui/icons/CloudUpload"; import DialogActions from "@material-ui/core/DialogActions"; import CircularProgress from "@material-ui/core/CircularProgress"; import { gRPCClients } from "../../grpc/gRPCClients"; +import { + useCoreCompetitionQuery, + useDeleteCompetitionMutation, useEntireCompetitionQuery, useLoadCompetitionMutation, + useResetCompetitionMutation +} from "../../lib/queries/competition"; +import { useDynamicConfigMutation, useDynamicConfigQuery, useStaticConfigQuery } from "../../lib/queries/config"; +import { useUpdatePolicyMutation } from "../../lib/queries/policy"; const useStyles = makeStyles((theme) => ({ root: { @@ -99,15 +106,19 @@ export default function CompMenu() { const theme = useTheme(); const { enqueueSnackbar } = useSnackbar(); const classes = useStyles(); - const [dt, setData] = useState<{ - loader: boolean; - dynamicConfig: undefined | DynamicConfig; - staticConfig: object; - }>({ - loader: true, - dynamicConfig: undefined, - staticConfig: {}, - }); + const [staticConfig, setStaticConfig] = useState({}) + + const {data: staticConfigData, isLoading: staticConfigIsLoading} = useStaticConfigQuery() + const {data: dynamicConfigData} = useDynamicConfigQuery() + + const {data: coreCompetitionData} = useCoreCompetitionQuery() + const {data: entireCompetitionData} = useEntireCompetitionQuery() + + const updateDynamicConfig = useDynamicConfigMutation() + const loadCompetition = useLoadCompetitionMutation() + const resetCompetition = useResetCompetitionMutation() + const deleteCompetition = useDeleteCompetitionMutation() + const updatePolicy = useUpdatePolicyMutation() const [open, setOpen] = useState(""); const [fileSelected, setFileSelected] = useState({ @@ -125,6 +136,10 @@ export default function CompMenu() { const [expanded, setExpanded] = useState("panelConfig"); + useEffect(() => { + if (staticConfigData) setStaticConfig(JSON.parse(staticConfigData)) + }, [staticConfigData]) + const handleChange = (panel: string) => (event: React.ChangeEvent<{}>, isExpanded: boolean) => { setExpanded(isExpanded ? panel : ""); @@ -138,70 +153,11 @@ export default function CompMenu() { }); }; - function loadAll() { - gRPCClients.staticConfigClient.get(new GetStaticConfigRequest(), {}).then( - (response) => { - setData((prevState) => { - return { - ...prevState, - staticConfig: JSON.parse(response.getStaticConfig()), - }; - }); - }, - (err: any) => { - enqueueSnackbar( - `Failed to fetch static config: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); - - gRPCClients.dynamicConfigClient.get(new GetRequest(), {}).then( - (response) => { - setData((prevState) => { - return { - ...prevState, - dynamicConfig: response.getDynamicConfig(), - loader: false, - }; - }); - }, - (err: any) => { - enqueueSnackbar( - `Failed to fetch dynamic config: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); - } - useEffect(() => { - loadAll(); - }, []); // eslint-disable-line react-hooks/exhaustive-deps - const handleSetEnabled = (e: React.ChangeEvent) => { const boolVal = new BoolValue().setValue(e.target.checked); - gRPCClients.dynamicConfigClient - .update( - new UpdateRequestDynamicConfig().setDynamicConfig( - new DynamicConfig().setEnabled(boolVal) - ), - {} - ) - .then( - (resp) => { - setData((prevState) => { - const newDN = prevState.dynamicConfig; - newDN?.setEnabled(boolVal); - return { ...prevState, dynamicConfig: newDN }; - }); - }, - (err: any) => { - enqueueSnackbar( - `Failed to enable competition: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); + const updatedDynamicConfig = new DynamicConfig().setEnabled(boolVal) + + updateDynamicConfig.mutate(updatedDynamicConfig) }; const handleSetRoundDuration = (e: React.SyntheticEvent) => { @@ -209,42 +165,13 @@ export default function CompMenu() { const val = Number( (document.getElementById("round_duration") as HTMLInputElement).value ); - gRPCClients.dynamicConfigClient - .update( - new UpdateRequestDynamicConfig().setDynamicConfig( - new DynamicConfig().setRoundDuration(val) - ), - {} - ) - .then( - (resp) => { - setData((prevState) => { - const newDN = prevState.dynamicConfig; - newDN?.setRoundDuration(val); - return { ...prevState, dynamicConfig: newDN }; - }); - }, - (err: any) => { - enqueueSnackbar( - `Failed to enable competition: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); + + const updatedDynamicConfig = new DynamicConfig().setRoundDuration(val) + updateDynamicConfig.mutate(updatedDynamicConfig) }; const handleSetPolicy = (policy: Policy) => { - gRPCClients.policyClient - .update(new UpdateRequestPolicy().setPolicy(policy), {}) - .then( - (resp) => {}, - (err: any) => { - enqueueSnackbar( - `Failed to update policy: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); + updatePolicy.mutate(policy) }; const handleUpload = () => { @@ -466,22 +393,9 @@ export default function CompMenu() { }); comp.setPropertiesList(properties); } - gRPCClients.competitionClient - .loadCompetition( - new LoadCompetitionRequest().setCompetition(comp), - {} - ) - .then( - (resp) => { - enqueueSnackbar("Success!", { variant: Severity.Success }); - }, - (err: any) => { - enqueueSnackbar( - `Failed to upload competition: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); + + + loadCompetition.mutate(comp) }; reader.onerror = function (evt) { enqueueSnackbar(`Failed to open the file`, { @@ -494,40 +408,12 @@ export default function CompMenu() { }; const handleResetCompetition = () => { - gRPCClients.competitionClient - .resetScores(new ResetScoresRequest(), {}) - .then( - (resp) => { - enqueueSnackbar("Successfully reset all of the scores!", { - variant: Severity.Success, - }); - }, - (err: any) => { - enqueueSnackbar( - `Failed to reset scores: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); + resetCompetition.mutate(new ResetScoresRequest()) handleClose(); }; const handleDeleteCompetition = () => { - gRPCClients.competitionClient - .deleteCompetition(new DeleteCompetitionRequest(), {}) - .then( - (resp) => { - enqueueSnackbar("Successfully deleted all competition data!", { - variant: Severity.Success, - }); - }, - (err: any) => { - enqueueSnackbar( - `Failed to delete competition data: ${err.message}. Error code: ${err.code}`, - { variant: Severity.Error, action: SnackbarDismissButton } - ); - } - ); + deleteCompetition.mutate(new DeleteCompetitionRequest()) handleClose(); }; @@ -540,8 +426,6 @@ export default function CompMenu() { return ( <> - {!dt.loader ? - <> } @@ -577,7 +461,7 @@ export default function CompMenu() { Round Duration (Current:{" "} - {dt.dynamicConfig?.getRoundDuration()}) + {dynamicConfigData?.getRoundDuration()}) } onClick={() => { - gRPCClients.competitionClient + gRPCClients.competition.v1.competitionServicePromiseClient .fetchCoreCompetition( new FetchCoreCompetitionRequest(), {} @@ -866,7 +750,7 @@ export default function CompMenu() { className={classes.button} startIcon={} onClick={() => { - gRPCClients.competitionClient + gRPCClients.competition.v1.competitionServicePromiseClient .fetchEntireCompetition( new FetchEntireCompetitionRequest(), {} @@ -990,12 +874,6 @@ export default function CompMenu() { - - : - - - - } ) } diff --git a/src/contexts/BannerTitleContext.tsx b/src/contexts/BannerTitleContext.tsx deleted file mode 100644 index 7648102..0000000 --- a/src/contexts/BannerTitleContext.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { - createContext, - Dispatch, - SetStateAction, - useContext, - useState, -} from "react"; - -interface TitleContextType { - bannerTitle: string; - setBannerTitle: Dispatch>; -} - -const BannerTitleContext = createContext({ - bannerTitle: "", - setBannerTitle: () => {}, -}); - -export function useBannerTitle() { - return useContext(BannerTitleContext); -} - -// @ts-ignore -export function TitleContextProvider({ children }) { - const [bannerTitle, setBannerTitle] = useState(""); - - return ( - - {children} - - ); -} diff --git a/src/contexts/PolicyContext.tsx b/src/contexts/PolicyContext.tsx index 64fac4e..7bdc569 100644 --- a/src/contexts/PolicyContext.tsx +++ b/src/contexts/PolicyContext.tsx @@ -3,7 +3,7 @@ import { GetRequest, GetResponse, Policy, -} from "../lib/scoretrakapis/scoretrak/policy/v1/policy_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/policy/v1/policy_pb"; import { gRPCClients } from "../grpc/gRPCClients"; import grpcWeb from "grpc-web"; import { useSnackbar } from "notistack"; @@ -26,7 +26,7 @@ export function PolicyProvider({ children }) { useEffect(() => { const streamRequest = new GetRequest(); - const stream = gRPCClients.policyClient.get(streamRequest, {}); + const stream = gRPCClients.policy.v1.policyServicePromiseClient.get(streamRequest, {}); // @ts-ignore stream.on("data", (response: GetResponse) => { @@ -52,7 +52,7 @@ export function PolicyProvider({ children }) { }); return () => stream.cancel(); - }, []); + }, []); // eslint-disable-line react-hooks/exhaustive-deps return ( {children} diff --git a/src/contexts/ReportContext.tsx b/src/contexts/ReportContext.tsx index c93355e..bb355cd 100644 --- a/src/contexts/ReportContext.tsx +++ b/src/contexts/ReportContext.tsx @@ -4,13 +4,12 @@ import { useSnackbar } from "notistack"; import { GetRequest, GetResponse, -} from "../lib/scoretrakapis/scoretrak/report/v1/report_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/report/v1/report_pb"; import { gRPCClients } from "../grpc/gRPCClients"; import { useNavigate } from "react-router-dom"; import { token } from "../grpc/token/token"; import { Severity } from "../types/types"; import { SnackbarDismissButton } from "../components/SnackbarDismissButton"; -import { useBannerTitle } from "./BannerTitleContext"; export const ReportContext = createContext(undefined); @@ -23,18 +22,16 @@ export function ReportProvider({ children }) { const { enqueueSnackbar } = useSnackbar(); const [report, setReport] = useState(undefined); const navigate = useNavigate(); - const { setBannerTitle } = useBannerTitle(); useEffect(() => { const streamRequest = new GetRequest(); - const stream = gRPCClients.reportClient.get(streamRequest, {}); + const stream = gRPCClients.report.v1.reportServicePromiseClient.get(streamRequest, {}); stream.on("data", (response) => { const cache = (response as GetResponse).getReport()?.getCache(); if (cache != null) { const report = JSON.parse(cache) as Report; setReport(report); - setBannerTitle(`Round: ${report.Round}`); } }); @@ -51,13 +48,8 @@ export function ReportProvider({ children }) { }); return () => stream.cancel(); - }, []); + }, []); // eslint-disable-line react-hooks/exhaustive-deps - useEffect(() => { - if (report) { - setBannerTitle(`Round: ${report.Round}`); - } - }, [report]); return ( <> diff --git a/src/grpc/gRPCClients.ts b/src/grpc/gRPCClients.ts index 3a6ed5e..9782f53 100644 --- a/src/grpc/gRPCClients.ts +++ b/src/grpc/gRPCClients.ts @@ -1,41 +1,47 @@ import { token } from "./token/token"; -import { AuthServiceClient } from "../lib/scoretrakapis/scoretrak/auth/v1/AuthServiceClientPb"; -import { CheckServiceClient } from "../lib/scoretrakapis/scoretrak/check/v1/CheckServiceClientPb"; -import { CompetitionServiceClient } from "../lib/scoretrakapis/scoretrak/competition/v1/CompetitionServiceClientPb"; +import { AuthServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/auth/v1/auth_grpc_web_pb" +import { CheckServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/check/v1/check_grpc_web_pb"; +import { CompetitionServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/competition/v1/competition_grpc_web_pb"; +import { HostServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_grpc_web_pb"; +import { HostGroupServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_grpc_web_pb"; +import { PolicyServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/policy/v1/policy_grpc_web_pb"; +import { PropertyServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/property/v1/property_grpc_web_pb"; +import { ReportServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/report/v1/report_grpc_web_pb"; +import { RoundServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/round/v1/round_grpc_web_pb"; +import { ServiceServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service/v1/service_grpc_web_pb"; import { - DynamicConfigServiceClient, - StaticConfigServiceClient, -} from "../lib/scoretrakapis/scoretrak/config/v1/ConfigServiceClientPb"; -import { HostServiceClient } from "../lib/scoretrakapis/scoretrak/host/v1/HostServiceClientPb"; -import { HostGroupServiceClient } from "../lib/scoretrakapis/scoretrak/host_group/v1/Host_groupServiceClientPb"; -import { PolicyServiceClient } from "../lib/scoretrakapis/scoretrak/policy/v1/PolicyServiceClientPb"; -import { PropertyServiceClient } from "../lib/scoretrakapis/scoretrak/property/v1/PropertyServiceClientPb"; -import { ReportServiceClient } from "../lib/scoretrakapis/scoretrak/report/v1/ReportServiceClientPb"; -import { RoundServiceClient } from "../lib/scoretrakapis/scoretrak/round/v1/RoundServiceClientPb"; -import { ServiceServiceClient } from "../lib/scoretrakapis/scoretrak/service/v1/ServiceServiceClientPb"; -import { ServiceGroupServiceClient } from "../lib/scoretrakapis/scoretrak/service_group/v1/Service_groupServiceClientPb"; -import { TeamServiceClient } from "../lib/scoretrakapis/scoretrak/team/v1/TeamServiceClientPb"; -import { UserServiceClient } from "../lib/scoretrakapis/scoretrak/user/v1/UserServiceClientPb"; + ServiceGroupServicePromiseClient +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service_group/v1/service_group_grpc_web_pb"; +import { TeamServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_grpc_web_pb"; +import { UserServicePromiseClient } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/user/v1/user_grpc_web_pb"; +import { + DynamicConfigServicePromiseClient, StaticConfigServicePromiseClient +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/config/v1/config_grpc_web_pb"; + -const serverAddress = process.env.PUBLIC_URL +const serverAddress = process.env.REACT_APP_COMPETITION_SERVER_URL ?? process.env.PUBLIC_URL export type GRPCClients = { - authClient: AuthServiceClient; - checkClient: CheckServiceClient; - competitionClient: CompetitionServiceClient; - dynamicConfigClient: DynamicConfigServiceClient; - staticConfigClient: StaticConfigServiceClient; - hostClient: HostServiceClient; - hostGroupClient: HostGroupServiceClient; - policyClient: PolicyServiceClient; - propertyClient: PropertyServiceClient; - reportClient: ReportServiceClient; - roundClient: RoundServiceClient; - serviceClient: ServiceServiceClient; - serviceGroupClient: ServiceGroupServiceClient; - teamClient: TeamServiceClient; - userClient: UserServiceClient; + auth: { v1: { authServicePromiseClient: AuthServicePromiseClient } }, + check: { v1: { checkServicePromiseClient: CheckServicePromiseClient } }, + competition: { v1: { competitionServicePromiseClient: CompetitionServicePromiseClient } }, + config: { + v1: { + dynamicConfigServicePromiseClient: DynamicConfigServicePromiseClient, + staticConfigServicePromiseClient: StaticConfigServicePromiseClient + } + }, + host: { v1: { hostServicePromiseClient: HostServicePromiseClient } }, + host_group: { v1: { hostGroupServicePromiseClient: HostGroupServicePromiseClient } }, + policy: { v1: { policyServicePromiseClient: PolicyServicePromiseClient } }, + property: { v1: { propertyServicePromiseClient: PropertyServicePromiseClient } }, + report: { v1: { reportServicePromiseClient: ReportServicePromiseClient } }, + round: { v1: { roundServicePromiseClient: RoundServicePromiseClient } }, + service: { v1: { serviceServicePromiseClient: ServiceServicePromiseClient } }, + service_group: { v1: { serviceGroupServicePromiseClient: ServiceGroupServicePromiseClient } }, + team: { v1: { teamServicePromiseClient: TeamServicePromiseClient } }, + user: { v1: { userServicePromiseClient: UserServicePromiseClient } }, }; class AuthInterceptor { @@ -54,31 +60,23 @@ const options = { }; export const gRPCClients: GRPCClients = { - authClient: new AuthServiceClient(serverAddress, null, options), - checkClient: new CheckServiceClient(serverAddress, null, options), - competitionClient: new CompetitionServiceClient(serverAddress, null, options), - dynamicConfigClient: new DynamicConfigServiceClient( - serverAddress, - null, - options - ), - staticConfigClient: new StaticConfigServiceClient( - serverAddress, - null, - options - ), - hostClient: new HostServiceClient(serverAddress, null, options), - hostGroupClient: new HostGroupServiceClient(serverAddress, null, options), - policyClient: new PolicyServiceClient(serverAddress, null, options), - propertyClient: new PropertyServiceClient(serverAddress, null, options), - reportClient: new ReportServiceClient(serverAddress, null, options), - roundClient: new RoundServiceClient(serverAddress, null, options), - serviceClient: new ServiceServiceClient(serverAddress, null, options), - serviceGroupClient: new ServiceGroupServiceClient( - serverAddress, - null, - options - ), - teamClient: new TeamServiceClient(serverAddress, null, options), - userClient: new UserServiceClient(serverAddress, null, options), + auth: { v1: { authServicePromiseClient: new AuthServicePromiseClient(serverAddress, null, options) }}, + check: { v1: { checkServicePromiseClient: new CheckServicePromiseClient(serverAddress, null, options) }}, + competition: { v1: { competitionServicePromiseClient: new CompetitionServicePromiseClient(serverAddress, null, options) }}, + config: { + v1: { + dynamicConfigServicePromiseClient: new DynamicConfigServicePromiseClient(serverAddress, null, options), + staticConfigServicePromiseClient: new StaticConfigServicePromiseClient(serverAddress, null, options) + } + }, + host: { v1: { hostServicePromiseClient: new HostServicePromiseClient(serverAddress, null, options) }}, + host_group: { v1: { hostGroupServicePromiseClient: new HostGroupServicePromiseClient(serverAddress, null, options) }}, + policy: { v1: { policyServicePromiseClient: new PolicyServicePromiseClient(serverAddress, null, options) }}, + property: { v1: { propertyServicePromiseClient: new PropertyServicePromiseClient(serverAddress, null, options) }}, + report: { v1: { reportServicePromiseClient: new ReportServicePromiseClient(serverAddress, null, options) }}, + round: { v1: { roundServicePromiseClient: new RoundServicePromiseClient(serverAddress, null, options) }}, + service: { v1: { serviceServicePromiseClient: new ServiceServicePromiseClient(serverAddress, null, options) }}, + service_group: { v1: { serviceGroupServicePromiseClient: new ServiceGroupServicePromiseClient(serverAddress, null, options) }}, + team: { v1: { teamServicePromiseClient: new TeamServicePromiseClient(serverAddress, null, options) }}, + user: { v1: { userServicePromiseClient: new UserServicePromiseClient(serverAddress, null, options) }}, }; diff --git a/src/layouts/ScoreboardLayout.tsx b/src/layouts/ScoreboardLayout.tsx index fbd04f5..2cc6eff 100644 --- a/src/layouts/ScoreboardLayout.tsx +++ b/src/layouts/ScoreboardLayout.tsx @@ -1,7 +1,7 @@ import { Outlet } from "react-router-dom"; import { useReport } from "../contexts/ReportContext"; import React from "react"; -import { Box, CircularProgress, Typography } from "@material-ui/core"; +import { Box, CircularProgress } from "@material-ui/core"; import BaseLayout from "./BaseLayout"; import PreCompBanner from "../components/PreCompBanner"; diff --git a/src/lib/material-table/host-groups.ts b/src/lib/material-table/host-groups.ts index 4dc1b75..e6c365f 100644 --- a/src/lib/material-table/host-groups.ts +++ b/src/lib/material-table/host-groups.ts @@ -1,7 +1,7 @@ -import { HostGroup } from "../scoretrakapis/scoretrak/host_group/v1/host_group_pb"; +import { HostGroup } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_pb"; import { IHostGroup } from "../../types/material_table"; import { BoolValue } from "google-protobuf/google/protobuf/wrappers_pb"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function hostGroupToIHostGroup(hostGroup: HostGroup): IHostGroup { return { diff --git a/src/lib/material-table/hosts.ts b/src/lib/material-table/hosts.ts index 6173eea..b97c68f 100644 --- a/src/lib/material-table/hosts.ts +++ b/src/lib/material-table/hosts.ts @@ -1,6 +1,6 @@ import { IHost } from "../../types/material_table"; -import { Host } from "../scoretrakapis/scoretrak/host/v1/host_pb"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { Host } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { BoolValue, StringValue, diff --git a/src/lib/material-table/properties.ts b/src/lib/material-table/properties.ts index 966a187..aca2a1e 100644 --- a/src/lib/material-table/properties.ts +++ b/src/lib/material-table/properties.ts @@ -1,9 +1,9 @@ import { Property, Status, -} from "../scoretrakapis/scoretrak/property/v1/property_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/property/v1/property_pb"; import { IProperty, IPropertyStatus } from "../../types/material_table"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; function statusToPropertyStatus(status: Status): IPropertyStatus | undefined { if (status === Status.STATUS_VIEW) return IPropertyStatus.View; diff --git a/src/lib/material-table/rounds.ts b/src/lib/material-table/rounds.ts index 1e0ed68..6c1ce9c 100644 --- a/src/lib/material-table/rounds.ts +++ b/src/lib/material-table/rounds.ts @@ -1,4 +1,4 @@ -import { Round } from "../scoretrakapis/scoretrak/round/v1/round_pb"; +import { Round } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/round/v1/round_pb"; import { IRound } from "../../types/material_table"; function roundToIRound(round: Round): IRound { diff --git a/src/lib/material-table/service-groups.ts b/src/lib/material-table/service-groups.ts index 65bc6ce..8d7e162 100644 --- a/src/lib/material-table/service-groups.ts +++ b/src/lib/material-table/service-groups.ts @@ -1,7 +1,7 @@ -import { ServiceGroup } from "../scoretrakapis/scoretrak/service_group/v1/service_group_pb"; +import { ServiceGroup } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service_group/v1/service_group_pb"; import { IServiceGroup } from "../../types/material_table"; import { BoolValue } from "google-protobuf/google/protobuf/wrappers_pb"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function serviceGroupToIServiceGroup( serviceGroup: ServiceGroup diff --git a/src/lib/material-table/services.ts b/src/lib/material-table/services.ts index 272c232..313dfff 100644 --- a/src/lib/material-table/services.ts +++ b/src/lib/material-table/services.ts @@ -1,6 +1,6 @@ -import { Service } from "../scoretrakapis/scoretrak/service/v1/service_pb"; +import { Service } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service/v1/service_pb"; import { IService } from "../../types/material_table"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { BoolValue, UInt64Value, diff --git a/src/lib/material-table/teams.ts b/src/lib/material-table/teams.ts index 47f23bc..db96bdf 100644 --- a/src/lib/material-table/teams.ts +++ b/src/lib/material-table/teams.ts @@ -1,9 +1,9 @@ -import { Team } from "../scoretrakapis/scoretrak/team/v1/team_pb"; +import { Team } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_pb"; import { BoolValue, UInt64Value, } from "google-protobuf/google/protobuf/wrappers_pb"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; import { ITeam } from "../../types/material_table"; export function teamToITeam(team: Team): ITeam { diff --git a/src/lib/material-table/users.ts b/src/lib/material-table/users.ts index 06d1bc0..aac6ecc 100644 --- a/src/lib/material-table/users.ts +++ b/src/lib/material-table/users.ts @@ -1,6 +1,6 @@ import { IUser, UserRole } from "../../types/material_table"; -import { Role, User } from "../scoretrakapis/scoretrak/user/v1/user_pb"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { Role, User } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/user/v1/user_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function userToIUser(user: User): IUser { return { diff --git a/src/lib/queries/competition.ts b/src/lib/queries/competition.ts new file mode 100644 index 0000000..86af83c --- /dev/null +++ b/src/lib/queries/competition.ts @@ -0,0 +1,88 @@ +import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; +import { gRPCClients } from "../../grpc/gRPCClients"; +import { + Competition, + DeleteCompetitionRequest, + DeleteCompetitionResponse, + FetchCoreCompetitionRequest, + FetchCoreCompetitionResponse, + FetchEntireCompetitionRequest, + FetchEntireCompetitionResponse, LoadCompetitionRequest, LoadCompetitionResponse, + ResetScoresRequest, + ResetScoresResponse +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/competition/v1/competition_pb"; +import grpcWeb from "grpc-web"; +import { Severity } from "../../types/types"; +import { useSnackbar } from "notistack"; +import { SnackbarDismissButton } from "../../components/SnackbarDismissButton"; + + +export function useCoreCompetitionQuery() { + const fetchCoreCompetition = async () => { + return await gRPCClients.competition.v1.competitionServicePromiseClient.fetchCoreCompetition(new FetchCoreCompetitionRequest(), {}) + } + + return useQuery(["competition", "core"], fetchCoreCompetition) +} + +export function useEntireCompetitionQuery() { + const fetchEntireCompetition = async () => { + return await gRPCClients.competition.v1.competitionServicePromiseClient.fetchEntireCompetition(new FetchEntireCompetitionRequest(), {}) + } + + return useQuery(["competition", "entire"], fetchEntireCompetition) +} + +export function useLoadCompetitionMutation() { + const queryClient = useQueryClient(); + const {enqueueSnackbar} = useSnackbar() + + const loadCompetition = async (competition: Competition) => { + return await gRPCClients.competition.v1.competitionServicePromiseClient.loadCompetition(new LoadCompetitionRequest().setCompetition(), {}) + } + + return useMutation(loadCompetition, { + onSuccess: () => { + enqueueSnackbar("Success Loading Competition!", { variant: Severity.Success }); + }, + onError: (error) => { + enqueueSnackbar(`Failed to upload competition: ${error.message}. Error code: ${error.code}`, { variant: Severity.Error, action: SnackbarDismissButton }); + } + }) +} + +export function useResetCompetitionMutation() { + const queryClient = useQueryClient(); + const {enqueueSnackbar} = useSnackbar() + + const resetCompetition = async (resetCompetitionRequest: ResetScoresRequest) => { + return await gRPCClients.competition.v1.competitionServicePromiseClient.resetScores(new ResetScoresRequest(), {}) + } + + return useMutation(gRPCClients.competition.v1.competitionServicePromiseClient.resetScores, { + onSuccess: () => { + enqueueSnackbar("Successfully reset all of the scores!", { variant: Severity.Success, }); + }, + onError: (error) => { + enqueueSnackbar(`Failed to reset scores: ${error.message}. Error code: ${error.code}`, { variant: Severity.Error, action: SnackbarDismissButton }); + } + }) +} + +export function useDeleteCompetitionMutation() { + const queryClient = useQueryClient(); + const {enqueueSnackbar} = useSnackbar() + + const deleteCompetition = async (deleteCompetitionRequest: DeleteCompetitionRequest) => { + return await gRPCClients.competition.v1.competitionServicePromiseClient.deleteCompetition(new DeleteCompetitionRequest(), {}) + } + + return useMutation(deleteCompetition, { + onSuccess: () => { + enqueueSnackbar("Successfully deleted all competition data!", { variant: Severity.Success, }); + }, + onError: (error) => { + enqueueSnackbar(`Failed to delete competition data: ${error.message}. Error code: ${error.code}`, { variant: Severity.Error, action: SnackbarDismissButton }); + } + }) +} \ No newline at end of file diff --git a/src/lib/queries/config.ts b/src/lib/queries/config.ts new file mode 100644 index 0000000..38f0820 --- /dev/null +++ b/src/lib/queries/config.ts @@ -0,0 +1,46 @@ +import { gRPCClients } from "../../grpc/gRPCClients"; +import { + DynamicConfig, + GetRequest, + GetStaticConfigRequest, + UpdateRequest, + UpdateResponse +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/config/v1/config_pb"; +import { useMutation, useQuery } from "@tanstack/react-query"; +import grpcWeb from "grpc-web"; +import { Severity } from "../../types/types"; +import { SnackbarDismissButton } from "../../components/SnackbarDismissButton"; +import { useSnackbar } from "notistack"; + + +export function useDynamicConfigQuery() { + const fetchDynamicConfig = async () => { + const dynamicConfigResponse = await gRPCClients.config.v1.dynamicConfigServicePromiseClient.get(new GetRequest(), {}) + return dynamicConfigResponse.getDynamicConfig() + } + + return useQuery(["config", "dynamic"], fetchDynamicConfig) +} + +export function useStaticConfigQuery() { + const fetchStaticConfig = async () => { + const staticConfigResponse = await gRPCClients.config.v1.staticConfigServicePromiseClient.get(new GetStaticConfigRequest(), {}) + return staticConfigResponse.getStaticConfig() + } + + return useQuery(["config", "static"], fetchStaticConfig) +} + +export function useDynamicConfigMutation() { + const {enqueueSnackbar} = useSnackbar() + + const updateDynamicConfig = async (dynamicConfig: DynamicConfig) => { + return await gRPCClients.config.v1.dynamicConfigServicePromiseClient.update(new UpdateRequest().setDynamicConfig(dynamicConfig), {}) + } + + return useMutation(updateDynamicConfig, { + onError: (error) => { + enqueueSnackbar(`Failed to enable competition: ${error.message}. Error code: ${error.code}`, { variant: Severity.Error, action: SnackbarDismissButton }); + } + }) +} \ No newline at end of file diff --git a/src/lib/queries/host_groups.ts b/src/lib/queries/host_groups.ts index 6e9f651..3e5a7ca 100644 --- a/src/lib/queries/host_groups.ts +++ b/src/lib/queries/host_groups.ts @@ -6,14 +6,14 @@ import { HostGroup, StoreRequest, UpdateRequest, -} from "../scoretrakapis/scoretrak/host_group/v1/host_group_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host_group/v1/host_group_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function useHostGroupsQuery() { const fetchHostGroups = async () => { - const hostGroupsResponse = await gRPCClients.hostGroupClient.getAll( + const hostGroupsResponse = await gRPCClients.host_group.v1.hostGroupServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -32,7 +32,7 @@ export function useHostGroupQuery(hostGroupId: string) { uuid.setValue(id); const request = new GetByIDRequest(); request.setId(uuid); - const hostGroupResponse = await gRPCClients.hostGroupClient.getByID( + const hostGroupResponse = await gRPCClients.host_group.v1.hostGroupServicePromiseClient.getByID( request, {} ); @@ -49,7 +49,7 @@ export function useAddHostGroupMutation() { const queryClient = useQueryClient(); const addHostGroup = async (addHostGroupRequest: StoreRequest) => { - return await gRPCClients.hostGroupClient.store(addHostGroupRequest, {}); + return await gRPCClients.host_group.v1.hostGroupServicePromiseClient.store(addHostGroupRequest, {}); }; return useMutation(addHostGroup, { @@ -63,7 +63,7 @@ export function useUpdateHostGroupMutation() { const queryClient = useQueryClient(); const updateHostGroup = async (updateHostGroupRequest: UpdateRequest) => { - return await gRPCClients.hostGroupClient.update(updateHostGroupRequest, {}); + return await gRPCClients.host_group.v1.hostGroupServicePromiseClient.update(updateHostGroupRequest, {}); }; return useMutation(updateHostGroup, { @@ -77,7 +77,7 @@ export function useDeleteHostGroupMutation() { const queryClient = useQueryClient(); const deleteHostGroup = async (deleteHostGroupRequest: DeleteRequest) => { - const deleteResponse = await gRPCClients.hostGroupClient.delete( + await gRPCClients.host_group.v1.hostGroupServicePromiseClient.delete( deleteHostGroupRequest, {} ); diff --git a/src/lib/queries/hosts.ts b/src/lib/queries/hosts.ts index da9d15f..52c7388 100644 --- a/src/lib/queries/hosts.ts +++ b/src/lib/queries/hosts.ts @@ -6,14 +6,14 @@ import { Host, StoreRequest, UpdateRequest, -} from "../scoretrakapis/scoretrak/host/v1/host_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/host/v1/host_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function useHostsQuery() { const fetchHosts = async () => { - const hostsResponse = await gRPCClients.hostClient.getAll( + const hostsResponse = await gRPCClients.host.v1.hostServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -29,7 +29,7 @@ export function useHostQuery(hostId: string) { uuid.setValue(id); const request = new GetByIDRequest(); request.setId(uuid); - const hostResponse = await gRPCClients.hostClient.getByID(request, {}); + const hostResponse = await gRPCClients.host.v1.hostServicePromiseClient.getByID(request, {}); return hostResponse.getHost(); }; @@ -42,7 +42,7 @@ export function useAddHostMutation() { const queryClient = useQueryClient(); const addHost = async (addHostRequest: StoreRequest) => { - return await gRPCClients.hostClient.store(addHostRequest, {}); + return await gRPCClients.host.v1.hostServicePromiseClient.store(addHostRequest, {}); }; return useMutation(addHost, { @@ -56,7 +56,7 @@ export function useUpdateHostMutation() { const queryClient = useQueryClient(); const updateHost = async (updateHostRequest: UpdateRequest) => { - return await gRPCClients.hostClient.update(updateHostRequest, {}); + return await gRPCClients.host.v1.hostServicePromiseClient.update(updateHostRequest, {}); }; return useMutation(updateHost, { @@ -70,7 +70,7 @@ export function useDeleteHostMutation() { const queryClient = useQueryClient(); const deleteHost = async (deleteHostRequest: DeleteRequest) => { - const deleteResponse = await gRPCClients.hostClient.delete( + await gRPCClients.host.v1.hostServicePromiseClient.delete( deleteHostRequest, {} ); diff --git a/src/lib/queries/policy.ts b/src/lib/queries/policy.ts new file mode 100644 index 0000000..dfe2bc6 --- /dev/null +++ b/src/lib/queries/policy.ts @@ -0,0 +1,26 @@ +import { gRPCClients } from "../../grpc/gRPCClients"; +import { + Policy, + UpdateRequest, + UpdateResponse +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/policy/v1/policy_pb"; +import { useMutation } from "@tanstack/react-query"; +import grpcWeb from "grpc-web"; +import { Severity } from "../../types/types"; +import { SnackbarDismissButton } from "../../components/SnackbarDismissButton"; +import { useSnackbar } from "notistack"; + + +export function useUpdatePolicyMutation() { + const {enqueueSnackbar} = useSnackbar() + + const updatePolicy = async (policy: Policy) => { + return await gRPCClients.policy.v1.policyServicePromiseClient.update(new UpdateRequest().setPolicy(policy), {}) + } + + return useMutation(updatePolicy, { + onError: (error) => { + enqueueSnackbar(`Failed to update policy: ${error.message}. Error code: ${error.code}`, { variant: Severity.Error, action: SnackbarDismissButton }); + } + }) +} \ No newline at end of file diff --git a/src/lib/queries/properties.ts b/src/lib/queries/properties.ts index cbe7d73..b5f781f 100644 --- a/src/lib/queries/properties.ts +++ b/src/lib/queries/properties.ts @@ -6,14 +6,14 @@ import { Property, StoreRequest, UpdateRequest, -} from "../scoretrakapis/scoretrak/property/v1/property_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/property/v1/property_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function usePropertiesQuery() { const fetchProperties = async () => { - const propertiesResponse = await gRPCClients.propertyClient.getAll( + const propertiesResponse = await gRPCClients.property.v1.propertyServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -33,7 +33,7 @@ export function usePropertiesByServiceIdQuery(serviceId: string) { const request = new GetAllByServiceIDRequest(); request.setServiceId(uuid); const propertiesResponse = - await gRPCClients.propertyClient.getAllByServiceID(request, {}); + await gRPCClients.property.v1.propertyServicePromiseClient.getAllByServiceID(request, {}); return propertiesResponse.getPropertiesList(); }; @@ -46,7 +46,7 @@ export function useAddPropertyMutation() { const queryClient = useQueryClient(); const addProperty = async (addPropertyRequest: StoreRequest) => { - return await gRPCClients.propertyClient.store(addPropertyRequest, {}); + return await gRPCClients.property.v1.propertyServicePromiseClient.store(addPropertyRequest, {}); }; return useMutation(addProperty, { @@ -60,7 +60,7 @@ export function useUpdatePropertyMutation() { const queryClient = useQueryClient(); const updateProperty = async (updatePropertyRequest: UpdateRequest) => { - return await gRPCClients.propertyClient.update(updatePropertyRequest, {}); + return await gRPCClients.property.v1.propertyServicePromiseClient.update(updatePropertyRequest, {}); }; return useMutation(updateProperty, { @@ -74,7 +74,7 @@ export function useDeletePropertyMutation() { const queryClient = useQueryClient(); const deleteProperty = async (deletePropertyRequest: DeleteRequest) => { - await gRPCClients.propertyClient.delete(deletePropertyRequest, {}); + await gRPCClients.property.v1.propertyServicePromiseClient.delete(deletePropertyRequest, {}); return deletePropertyRequest.getServiceId(); }; diff --git a/src/lib/queries/rounds.ts b/src/lib/queries/rounds.ts index 851392a..881a66d 100644 --- a/src/lib/queries/rounds.ts +++ b/src/lib/queries/rounds.ts @@ -3,13 +3,13 @@ import { GetAllRequest, GetByIDRequest, Round, -} from "../scoretrakapis/scoretrak/round/v1/round_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/round/v1/round_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; export function useRoundsQuery() { async function fetchRounds() { - const roundsResponse = await gRPCClients.roundClient.getAll( + const roundsResponse = await gRPCClients.round.v1.roundServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -22,7 +22,7 @@ export function useRoundsQuery() { export function useRoundQuery(roundId: string) { async function fetchRoundById(id: string) { const request = new GetByIDRequest().setId(parseInt(id)); - const roundResponse = await gRPCClients.roundClient.getAll(request, {}); + const roundResponse = await gRPCClients.round.v1.roundServicePromiseClient.getAll(request, {}); return roundResponse.getRoundsList(); } diff --git a/src/lib/queries/service-groups.ts b/src/lib/queries/service-groups.ts index df7b356..5491bf9 100644 --- a/src/lib/queries/service-groups.ts +++ b/src/lib/queries/service-groups.ts @@ -6,14 +6,14 @@ import { ServiceGroup, StoreRequest, UpdateRequest, -} from "../scoretrakapis/scoretrak/service_group/v1/service_group_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service_group/v1/service_group_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function useServiceGroupsQuery() { const fetchServiceGroups = async () => { - const serviceGroupsResponse = await gRPCClients.serviceGroupClient.getAll( + const serviceGroupsResponse = await gRPCClients.service_group.v1.serviceGroupServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -32,7 +32,7 @@ export function useServiceGroupQuery(serviceGroupId: string) { uuid.setValue(id); const request = new GetByIDRequest(); request.setId(uuid); - const serviceGroupResponse = await gRPCClients.serviceGroupClient.getByID( + const serviceGroupResponse = await gRPCClients.service_group.v1.serviceGroupServicePromiseClient.getByID( request, {} ); @@ -49,7 +49,7 @@ export function useAddServiceGroupMutation() { const queryClient = useQueryClient(); const addServiceGroup = async (addServiceGroupRequest: StoreRequest) => { - return await gRPCClients.serviceGroupClient.store( + return await gRPCClients.service_group.v1.serviceGroupServicePromiseClient.store( addServiceGroupRequest, {} ); @@ -68,7 +68,7 @@ export function useUpdateServiceGroupMutation() { const updateServiceGroup = async ( updateServiceGroupRequest: UpdateRequest ) => { - return await gRPCClients.serviceGroupClient.update( + return await gRPCClients.service_group.v1.serviceGroupServicePromiseClient.update( updateServiceGroupRequest, {} ); @@ -87,7 +87,7 @@ export function useDeleteServiceGroupMutation() { const deleteServiceGroup = async ( deleteServiceGroupRequest: DeleteRequest ) => { - const deleteResponse = await gRPCClients.serviceGroupClient.delete( + await gRPCClients.service_group.v1.serviceGroupServicePromiseClient.delete( deleteServiceGroupRequest, {} ); diff --git a/src/lib/queries/services.ts b/src/lib/queries/services.ts index 692f0f4..1ddc2fb 100644 --- a/src/lib/queries/services.ts +++ b/src/lib/queries/services.ts @@ -6,14 +6,14 @@ import { Service, StoreRequest, UpdateRequest, -} from "../scoretrakapis/scoretrak/service/v1/service_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/service/v1/service_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function useServicesQuery() { const fetchServices = async () => { - const serviceResponse = await gRPCClients.serviceClient.getAll( + const serviceResponse = await gRPCClients.service.v1.serviceServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -29,7 +29,7 @@ export function useServiceQuery(serviceId: string) { uuid.setValue(id); const request = new GetByIDRequest(); request.setId(uuid); - const serviceResponse = await gRPCClients.serviceClient.getByID( + const serviceResponse = await gRPCClients.service.v1.serviceServicePromiseClient.getByID( request, {} ); @@ -46,7 +46,7 @@ export function useAddServiceMutation() { const queryClient = useQueryClient(); const addService = async (addServiceRequest: StoreRequest) => { - return await gRPCClients.serviceClient.store(addServiceRequest, {}); + return await gRPCClients.service.v1.serviceServicePromiseClient.store(addServiceRequest, {}); }; return useMutation(addService, { @@ -60,7 +60,7 @@ export function useUpdateServiceMutation() { const queryClient = useQueryClient(); const updateService = async (updateServiceRequest: UpdateRequest) => { - return await gRPCClients.serviceClient.update(updateServiceRequest, {}); + return await gRPCClients.service.v1.serviceServicePromiseClient.update(updateServiceRequest, {}); }; return useMutation(updateService, { @@ -74,7 +74,7 @@ export function useDeleteServiceMutation() { const queryClient = useQueryClient(); const deleteService = async (deleteServiceRequest: DeleteRequest) => { - const deleteResponse = await gRPCClients.serviceClient.delete( + await gRPCClients.service.v1.serviceServicePromiseClient.delete( deleteServiceRequest, {} ); @@ -87,3 +87,4 @@ export function useDeleteServiceMutation() { }, }); } + diff --git a/src/lib/queries/teams.ts b/src/lib/queries/teams.ts index 53c1dfc..46d3fc6 100644 --- a/src/lib/queries/teams.ts +++ b/src/lib/queries/teams.ts @@ -6,14 +6,14 @@ import { Team, StoreRequest, UpdateRequest, -} from "../scoretrakapis/scoretrak/team/v1/team_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/team/v1/team_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function useTeamsQuery() { const fetchTeams = async () => { - const teamsResponse = await gRPCClients.teamClient.getAll( + const teamsResponse = await gRPCClients.team.v1.teamServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -29,7 +29,7 @@ export function useTeamQuery(teamId: string) { uuid.setValue(id); const request = new GetByIDRequest(); request.setId(uuid); - const teamResponse = await gRPCClients.teamClient.getByID(request, {}); + const teamResponse = await gRPCClients.team.v1.teamServicePromiseClient.getByID(request, {}); return teamResponse.getTeam(); }; @@ -42,7 +42,7 @@ export function useAddTeamMutation() { const queryClient = useQueryClient(); const addTeam = async (addTeamRequest: StoreRequest) => { - return await gRPCClients.teamClient.store(addTeamRequest, {}); + return await gRPCClients.team.v1.teamServicePromiseClient.store(addTeamRequest, {}); }; return useMutation(addTeam, { @@ -56,7 +56,7 @@ export function useUpdateTeamMutation() { const queryClient = useQueryClient(); const updateTeam = async (updateTeamRequest: UpdateRequest) => { - return await gRPCClients.teamClient.update(updateTeamRequest, {}); + return await gRPCClients.team.v1.teamServicePromiseClient.update(updateTeamRequest, {}); }; return useMutation(updateTeam, { @@ -70,7 +70,7 @@ export function useDeleteTeamMutation() { const queryClient = useQueryClient(); const deleteTeam = async (deleteTeamRequest: DeleteRequest) => { - const deleteResponse = await gRPCClients.teamClient.delete( + await gRPCClients.team.v1.teamServicePromiseClient.delete( deleteTeamRequest, {} ); diff --git a/src/lib/queries/users.ts b/src/lib/queries/users.ts index 494c014..9f52c55 100644 --- a/src/lib/queries/users.ts +++ b/src/lib/queries/users.ts @@ -5,15 +5,15 @@ import { GetByIDRequest, User, StoreRequest, - UpdateRequest, -} from "../scoretrakapis/scoretrak/user/v1/user_pb"; + UpdateRequest, StoreResponse, DeleteResponse, UpdateResponse +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/user/v1/user_pb"; import grpcWeb from "grpc-web"; import { gRPCClients } from "../../grpc/gRPCClients"; -import { UUID } from "../scoretrakapis/scoretrak/proto/v1/uuid_pb"; +import { UUID } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/proto/v1/uuid_pb"; export function useUsersQuery() { const fetchUsers = async () => { - const userResponse = await gRPCClients.userClient.getAll( + const userResponse = await gRPCClients.user.v1.userServicePromiseClient.getAll( new GetAllRequest(), {} ); @@ -29,7 +29,7 @@ export function useUserQuery(userId: string) { uuid.setValue(id); const request = new GetByIDRequest(); request.setId(uuid); - const userResponse = await gRPCClients.userClient.getByID(request, {}); + const userResponse = await gRPCClients.user.v1.userServicePromiseClient.getByID(request, {}); return userResponse.getUser(); }; @@ -42,10 +42,10 @@ export function useAddUserMutation() { const queryClient = useQueryClient(); const addUser = async (addUserRequest: StoreRequest) => { - return await gRPCClients.userClient.store(addUserRequest, {}); + return await gRPCClients.user.v1.userServicePromiseClient.store(addUserRequest, {}); }; - return useMutation(addUser, { + return useMutation(addUser, { onSuccess: () => { return queryClient.invalidateQueries(["users"]); }, @@ -56,10 +56,10 @@ export function useUpdateUserMutation() { const queryClient = useQueryClient(); const updateUser = async (updateUserRequest: UpdateRequest) => { - return await gRPCClients.userClient.update(updateUserRequest, {}); + return await gRPCClients.user.v1.userServicePromiseClient.update(updateUserRequest, {}); }; - return useMutation(updateUser, { + return useMutation(updateUser, { onSuccess: () => { return queryClient.invalidateQueries(["users"]); }, @@ -70,14 +70,14 @@ export function useDeleteUserMutation() { const queryClient = useQueryClient(); const deleteUser = async (deleteUserRequest: DeleteRequest) => { - const deleteResponse = await gRPCClients.userClient.delete( + await gRPCClients.user.v1.userServicePromiseClient.delete( deleteUserRequest, {} ); return deleteUserRequest.getId(); }; - return useMutation(deleteUser, { + return useMutation(deleteUser, { onSuccess: () => { return queryClient.invalidateQueries(["users"]); }, diff --git a/src/lib/scoretrakapis/grpc/health/v1/HealthServiceClientPb.ts b/src/lib/scoretrakapis/grpc/health/v1/HealthServiceClientPb.ts deleted file mode 100644 index 236668a..0000000 --- a/src/lib/scoretrakapis/grpc/health/v1/HealthServiceClientPb.ts +++ /dev/null @@ -1,109 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for grpc.health.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as grpc_health_v1_health_pb from "../../../grpc/health/v1/health_pb"; - -export class HealthClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorCheck = new grpcWeb.MethodDescriptor( - "/grpc.health.v1.Health/Check", - grpcWeb.MethodType.UNARY, - grpc_health_v1_health_pb.HealthCheckRequest, - grpc_health_v1_health_pb.HealthCheckResponse, - (request: grpc_health_v1_health_pb.HealthCheckRequest) => { - return request.serializeBinary(); - }, - grpc_health_v1_health_pb.HealthCheckResponse.deserializeBinary - ); - - check( - request: grpc_health_v1_health_pb.HealthCheckRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - check( - request: grpc_health_v1_health_pb.HealthCheckRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: grpc_health_v1_health_pb.HealthCheckResponse - ) => void - ): grpcWeb.ClientReadableStream; - - check( - request: grpc_health_v1_health_pb.HealthCheckRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: grpc_health_v1_health_pb.HealthCheckResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/grpc.health.v1.Health/Check", - request, - metadata || {}, - this.methodDescriptorCheck, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/grpc.health.v1.Health/Check", - request, - metadata || {}, - this.methodDescriptorCheck - ); - } - - methodDescriptorWatch = new grpcWeb.MethodDescriptor( - "/grpc.health.v1.Health/Watch", - grpcWeb.MethodType.SERVER_STREAMING, - grpc_health_v1_health_pb.HealthCheckRequest, - grpc_health_v1_health_pb.HealthCheckResponse, - (request: grpc_health_v1_health_pb.HealthCheckRequest) => { - return request.serializeBinary(); - }, - grpc_health_v1_health_pb.HealthCheckResponse.deserializeBinary - ); - - watch( - request: grpc_health_v1_health_pb.HealthCheckRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream { - return this.client_.serverStreaming( - this.hostname_ + "/grpc.health.v1.Health/Watch", - request, - metadata || {}, - this.methodDescriptorWatch - ); - } -} diff --git a/src/lib/scoretrakapis/grpc/health/v1/health_pb.d.ts b/src/lib/scoretrakapis/grpc/health/v1/health_pb.d.ts deleted file mode 100644 index d0bbbae..0000000 --- a/src/lib/scoretrakapis/grpc/health/v1/health_pb.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import * as jspb from "google-protobuf"; - -export class HealthCheckRequest extends jspb.Message { - getService(): string; - setService(value: string): HealthCheckRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HealthCheckRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: HealthCheckRequest - ): HealthCheckRequest.AsObject; - static serializeBinaryToWriter( - message: HealthCheckRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): HealthCheckRequest; - static deserializeBinaryFromReader( - message: HealthCheckRequest, - reader: jspb.BinaryReader - ): HealthCheckRequest; -} - -export namespace HealthCheckRequest { - export type AsObject = { - service: string; - }; -} - -export class HealthCheckResponse extends jspb.Message { - getStatus(): HealthCheckResponse.ServingStatus; - setStatus(value: HealthCheckResponse.ServingStatus): HealthCheckResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HealthCheckResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: HealthCheckResponse - ): HealthCheckResponse.AsObject; - static serializeBinaryToWriter( - message: HealthCheckResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): HealthCheckResponse; - static deserializeBinaryFromReader( - message: HealthCheckResponse, - reader: jspb.BinaryReader - ): HealthCheckResponse; -} - -export namespace HealthCheckResponse { - export type AsObject = { - status: HealthCheckResponse.ServingStatus; - }; - - export enum ServingStatus { - UNKNOWN = 0, - SERVING = 1, - NOT_SERVING = 2, - SERVICE_UNKNOWN = 3, - } -} diff --git a/src/lib/scoretrakapis/grpc/health/v1/health_pb.js b/src/lib/scoretrakapis/grpc/health/v1/health_pb.js deleted file mode 100644 index 6d961f2..0000000 --- a/src/lib/scoretrakapis/grpc/health/v1/health_pb.js +++ /dev/null @@ -1,377 +0,0 @@ -// source: grpc/health/v1/health.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.grpc.health.v1.HealthCheckRequest", null, global); -goog.exportSymbol("proto.grpc.health.v1.HealthCheckResponse", null, global); -goog.exportSymbol( - "proto.grpc.health.v1.HealthCheckResponse.ServingStatus", - 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.grpc.health.v1.HealthCheckRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.grpc.health.v1.HealthCheckRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.grpc.health.v1.HealthCheckRequest.displayName = - "proto.grpc.health.v1.HealthCheckRequest"; -} -/** - * 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.grpc.health.v1.HealthCheckResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.grpc.health.v1.HealthCheckResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.grpc.health.v1.HealthCheckResponse.displayName = - "proto.grpc.health.v1.HealthCheckResponse"; -} - -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.grpc.health.v1.HealthCheckRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.grpc.health.v1.HealthCheckRequest.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.grpc.health.v1.HealthCheckRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.grpc.health.v1.HealthCheckRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - service: 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.grpc.health.v1.HealthCheckRequest} - */ -proto.grpc.health.v1.HealthCheckRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.grpc.health.v1.HealthCheckRequest(); - return proto.grpc.health.v1.HealthCheckRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.grpc.health.v1.HealthCheckRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.grpc.health.v1.HealthCheckRequest} - */ -proto.grpc.health.v1.HealthCheckRequest.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.setService(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.grpc.health.v1.HealthCheckRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.grpc.health.v1.HealthCheckRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.grpc.health.v1.HealthCheckRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.grpc.health.v1.HealthCheckRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getService(); - if (f.length > 0) { - writer.writeString(1, f); - } -}; - -/** - * optional string service = 1; - * @return {string} - */ -proto.grpc.health.v1.HealthCheckRequest.prototype.getService = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.grpc.health.v1.HealthCheckRequest} returns this - */ -proto.grpc.health.v1.HealthCheckRequest.prototype.setService = 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.grpc.health.v1.HealthCheckResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.grpc.health.v1.HealthCheckResponse.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.grpc.health.v1.HealthCheckResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.grpc.health.v1.HealthCheckResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - status: 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.grpc.health.v1.HealthCheckResponse} - */ -proto.grpc.health.v1.HealthCheckResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.grpc.health.v1.HealthCheckResponse(); - return proto.grpc.health.v1.HealthCheckResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.grpc.health.v1.HealthCheckResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.grpc.health.v1.HealthCheckResponse} - */ -proto.grpc.health.v1.HealthCheckResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = - /** @type {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus} */ ( - reader.readEnum() - ); - msg.setStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.grpc.health.v1.HealthCheckResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.grpc.health.v1.HealthCheckResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.grpc.health.v1.HealthCheckResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.grpc.health.v1.HealthCheckResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum(1, f); - } -}; - -/** - * @enum {number} - */ -proto.grpc.health.v1.HealthCheckResponse.ServingStatus = { - UNKNOWN: 0, - SERVING: 1, - NOT_SERVING: 2, - SERVICE_UNKNOWN: 3, -}; - -/** - * optional ServingStatus status = 1; - * @return {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus} - */ -proto.grpc.health.v1.HealthCheckResponse.prototype.getStatus = function () { - return /** @type {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus} */ ( - jspb.Message.getFieldWithDefault(this, 1, 0) - ); -}; - -/** - * @param {!proto.grpc.health.v1.HealthCheckResponse.ServingStatus} value - * @return {!proto.grpc.health.v1.HealthCheckResponse} returns this - */ -proto.grpc.health.v1.HealthCheckResponse.prototype.setStatus = function ( - value -) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - -goog.object.extend(exports, proto.grpc.health.v1); diff --git a/src/lib/scoretrakapis/scoretrak/auth/v1/AuthServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/auth/v1/AuthServiceClientPb.ts deleted file mode 100644 index 9614103..0000000 --- a/src/lib/scoretrakapis/scoretrak/auth/v1/AuthServiceClientPb.ts +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.auth.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_auth_v1_auth_pb from "../../../scoretrak/auth/v1/auth_pb"; - -export class AuthServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorLogin = new grpcWeb.MethodDescriptor( - "/scoretrak.auth.v1.AuthService/Login", - grpcWeb.MethodType.UNARY, - scoretrak_auth_v1_auth_pb.LoginRequest, - scoretrak_auth_v1_auth_pb.LoginResponse, - (request: scoretrak_auth_v1_auth_pb.LoginRequest) => { - return request.serializeBinary(); - }, - scoretrak_auth_v1_auth_pb.LoginResponse.deserializeBinary - ); - - login( - request: scoretrak_auth_v1_auth_pb.LoginRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - login( - request: scoretrak_auth_v1_auth_pb.LoginRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_auth_v1_auth_pb.LoginResponse - ) => void - ): grpcWeb.ClientReadableStream; - - login( - request: scoretrak_auth_v1_auth_pb.LoginRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_auth_v1_auth_pb.LoginResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.auth.v1.AuthService/Login", - request, - metadata || {}, - this.methodDescriptorLogin, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.auth.v1.AuthService/Login", - request, - metadata || {}, - this.methodDescriptorLogin - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.d.ts b/src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.d.ts deleted file mode 100644 index 5913d62..0000000 --- a/src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import * as jspb from "google-protobuf"; - -export class LoginRequest extends jspb.Message { - getUsername(): string; - setUsername(value: string): LoginRequest; - - getPassword(): string; - setPassword(value: string): LoginRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: LoginRequest - ): LoginRequest.AsObject; - static serializeBinaryToWriter( - message: LoginRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): LoginRequest; - static deserializeBinaryFromReader( - message: LoginRequest, - reader: jspb.BinaryReader - ): LoginRequest; -} - -export namespace LoginRequest { - export type AsObject = { - username: string; - password: string; - }; -} - -export class LoginResponse extends jspb.Message { - getAccessToken(): string; - setAccessToken(value: string): LoginResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoginResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: LoginResponse - ): LoginResponse.AsObject; - static serializeBinaryToWriter( - message: LoginResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): LoginResponse; - static deserializeBinaryFromReader( - message: LoginResponse, - reader: jspb.BinaryReader - ): LoginResponse; -} - -export namespace LoginResponse { - export type AsObject = { - accessToken: string; - }; -} diff --git a/src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.js b/src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.js deleted file mode 100644 index a7e35b0..0000000 --- a/src/lib/scoretrakapis/scoretrak/auth/v1/auth_pb.js +++ /dev/null @@ -1,374 +0,0 @@ -// source: scoretrak/auth/v1/auth.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.scoretrak.auth.v1.LoginRequest", null, global); -goog.exportSymbol("proto.scoretrak.auth.v1.LoginResponse", 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.scoretrak.auth.v1.LoginRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.auth.v1.LoginRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.auth.v1.LoginRequest.displayName = - "proto.scoretrak.auth.v1.LoginRequest"; -} -/** - * 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.scoretrak.auth.v1.LoginResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.auth.v1.LoginResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.auth.v1.LoginResponse.displayName = - "proto.scoretrak.auth.v1.LoginResponse"; -} - -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.scoretrak.auth.v1.LoginRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.auth.v1.LoginRequest.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.scoretrak.auth.v1.LoginRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.auth.v1.LoginRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - username: jspb.Message.getFieldWithDefault(msg, 1, ""), - 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.scoretrak.auth.v1.LoginRequest} - */ -proto.scoretrak.auth.v1.LoginRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.auth.v1.LoginRequest(); - return proto.scoretrak.auth.v1.LoginRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.auth.v1.LoginRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.auth.v1.LoginRequest} - */ -proto.scoretrak.auth.v1.LoginRequest.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.setUsername(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.scoretrak.auth.v1.LoginRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.auth.v1.LoginRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.auth.v1.LoginRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.auth.v1.LoginRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getUsername(); - if (f.length > 0) { - writer.writeString(1, f); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString(2, f); - } -}; - -/** - * optional string username = 1; - * @return {string} - */ -proto.scoretrak.auth.v1.LoginRequest.prototype.getUsername = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.auth.v1.LoginRequest} returns this - */ -proto.scoretrak.auth.v1.LoginRequest.prototype.setUsername = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -/** - * optional string password = 2; - * @return {string} - */ -proto.scoretrak.auth.v1.LoginRequest.prototype.getPassword = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.auth.v1.LoginRequest} returns this - */ -proto.scoretrak.auth.v1.LoginRequest.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.scoretrak.auth.v1.LoginResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.auth.v1.LoginResponse.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.scoretrak.auth.v1.LoginResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.auth.v1.LoginResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - accessToken: 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.scoretrak.auth.v1.LoginResponse} - */ -proto.scoretrak.auth.v1.LoginResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.auth.v1.LoginResponse(); - return proto.scoretrak.auth.v1.LoginResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.auth.v1.LoginResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.auth.v1.LoginResponse} - */ -proto.scoretrak.auth.v1.LoginResponse.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.setAccessToken(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.auth.v1.LoginResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.auth.v1.LoginResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.auth.v1.LoginResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.auth.v1.LoginResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getAccessToken(); - if (f.length > 0) { - writer.writeString(1, f); - } -}; - -/** - * optional string access_token = 1; - * @return {string} - */ -proto.scoretrak.auth.v1.LoginResponse.prototype.getAccessToken = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.auth.v1.LoginResponse} returns this - */ -proto.scoretrak.auth.v1.LoginResponse.prototype.setAccessToken = function ( - value -) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -goog.object.extend(exports, proto.scoretrak.auth.v1); diff --git a/src/lib/scoretrakapis/scoretrak/check/v1/CheckServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/check/v1/CheckServiceClientPb.ts deleted file mode 100644 index 9853731..0000000 --- a/src/lib/scoretrakapis/scoretrak/check/v1/CheckServiceClientPb.ts +++ /dev/null @@ -1,186 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.check.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_check_v1_check_pb from "../../../scoretrak/check/v1/check_pb"; - -export class CheckServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAllByRoundID = new grpcWeb.MethodDescriptor( - "/scoretrak.check.v1.CheckService/GetAllByRoundID", - grpcWeb.MethodType.UNARY, - scoretrak_check_v1_check_pb.GetAllByRoundIDRequest, - scoretrak_check_v1_check_pb.GetAllByRoundIDResponse, - (request: scoretrak_check_v1_check_pb.GetAllByRoundIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_check_v1_check_pb.GetAllByRoundIDResponse.deserializeBinary - ); - - getAllByRoundID( - request: scoretrak_check_v1_check_pb.GetAllByRoundIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAllByRoundID( - request: scoretrak_check_v1_check_pb.GetAllByRoundIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_check_v1_check_pb.GetAllByRoundIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAllByRoundID( - request: scoretrak_check_v1_check_pb.GetAllByRoundIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_check_v1_check_pb.GetAllByRoundIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.check.v1.CheckService/GetAllByRoundID", - request, - metadata || {}, - this.methodDescriptorGetAllByRoundID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.check.v1.CheckService/GetAllByRoundID", - request, - metadata || {}, - this.methodDescriptorGetAllByRoundID - ); - } - - methodDescriptorGetByRoundServiceID = new grpcWeb.MethodDescriptor( - "/scoretrak.check.v1.CheckService/GetByRoundServiceID", - grpcWeb.MethodType.UNARY, - scoretrak_check_v1_check_pb.GetByRoundServiceIDRequest, - scoretrak_check_v1_check_pb.GetByRoundServiceIDResponse, - (request: scoretrak_check_v1_check_pb.GetByRoundServiceIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_check_v1_check_pb.GetByRoundServiceIDResponse.deserializeBinary - ); - - getByRoundServiceID( - request: scoretrak_check_v1_check_pb.GetByRoundServiceIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByRoundServiceID( - request: scoretrak_check_v1_check_pb.GetByRoundServiceIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_check_v1_check_pb.GetByRoundServiceIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByRoundServiceID( - request: scoretrak_check_v1_check_pb.GetByRoundServiceIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_check_v1_check_pb.GetByRoundServiceIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.check.v1.CheckService/GetByRoundServiceID", - request, - metadata || {}, - this.methodDescriptorGetByRoundServiceID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.check.v1.CheckService/GetByRoundServiceID", - request, - metadata || {}, - this.methodDescriptorGetByRoundServiceID - ); - } - - methodDescriptorGetAllByServiceID = new grpcWeb.MethodDescriptor( - "/scoretrak.check.v1.CheckService/GetAllByServiceID", - grpcWeb.MethodType.UNARY, - scoretrak_check_v1_check_pb.GetAllByServiceIDRequest, - scoretrak_check_v1_check_pb.GetAllByServiceIDResponse, - (request: scoretrak_check_v1_check_pb.GetAllByServiceIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_check_v1_check_pb.GetAllByServiceIDResponse.deserializeBinary - ); - - getAllByServiceID( - request: scoretrak_check_v1_check_pb.GetAllByServiceIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAllByServiceID( - request: scoretrak_check_v1_check_pb.GetAllByServiceIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_check_v1_check_pb.GetAllByServiceIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAllByServiceID( - request: scoretrak_check_v1_check_pb.GetAllByServiceIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_check_v1_check_pb.GetAllByServiceIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.check.v1.CheckService/GetAllByServiceID", - request, - metadata || {}, - this.methodDescriptorGetAllByServiceID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.check.v1.CheckService/GetAllByServiceID", - request, - metadata || {}, - this.methodDescriptorGetAllByServiceID - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/check/v1/check_pb.d.ts b/src/lib/scoretrakapis/scoretrak/check/v1/check_pb.d.ts deleted file mode 100644 index 322f606..0000000 --- a/src/lib/scoretrakapis/scoretrak/check/v1/check_pb.d.ts +++ /dev/null @@ -1,228 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; - -export class Check extends jspb.Message { - getServiceId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceId(value?: scoretrak_proto_v1_uuid_pb.UUID): Check; - hasServiceId(): boolean; - clearServiceId(): Check; - - getRoundId(): number; - setRoundId(value: number): Check; - - getLog(): string; - setLog(value: string): Check; - - getErr(): string; - setErr(value: string): Check; - - getPassed(): google_protobuf_wrappers_pb.BoolValue | undefined; - setPassed(value?: google_protobuf_wrappers_pb.BoolValue): Check; - hasPassed(): boolean; - clearPassed(): Check; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Check.AsObject; - static toObject(includeInstance: boolean, msg: Check): Check.AsObject; - static serializeBinaryToWriter( - message: Check, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Check; - static deserializeBinaryFromReader( - message: Check, - reader: jspb.BinaryReader - ): Check; -} - -export namespace Check { - export type AsObject = { - serviceId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - roundId: number; - log: string; - err: string; - passed?: google_protobuf_wrappers_pb.BoolValue.AsObject; - }; -} - -export class GetAllByRoundIDRequest extends jspb.Message { - getRoundId(): number; - setRoundId(value: number): GetAllByRoundIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllByRoundIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllByRoundIDRequest - ): GetAllByRoundIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllByRoundIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllByRoundIDRequest; - static deserializeBinaryFromReader( - message: GetAllByRoundIDRequest, - reader: jspb.BinaryReader - ): GetAllByRoundIDRequest; -} - -export namespace GetAllByRoundIDRequest { - export type AsObject = { - roundId: number; - }; -} - -export class GetAllByRoundIDResponse extends jspb.Message { - getChecksList(): Array; - setChecksList(value: Array): GetAllByRoundIDResponse; - clearChecksList(): GetAllByRoundIDResponse; - addChecks(value?: Check, index?: number): Check; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllByRoundIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllByRoundIDResponse - ): GetAllByRoundIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllByRoundIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllByRoundIDResponse; - static deserializeBinaryFromReader( - message: GetAllByRoundIDResponse, - reader: jspb.BinaryReader - ): GetAllByRoundIDResponse; -} - -export namespace GetAllByRoundIDResponse { - export type AsObject = { - checksList: Array; - }; -} - -export class GetByRoundServiceIDRequest extends jspb.Message { - getServiceId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceId( - value?: scoretrak_proto_v1_uuid_pb.UUID - ): GetByRoundServiceIDRequest; - hasServiceId(): boolean; - clearServiceId(): GetByRoundServiceIDRequest; - - getRoundId(): number; - setRoundId(value: number): GetByRoundServiceIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByRoundServiceIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByRoundServiceIDRequest - ): GetByRoundServiceIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByRoundServiceIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByRoundServiceIDRequest; - static deserializeBinaryFromReader( - message: GetByRoundServiceIDRequest, - reader: jspb.BinaryReader - ): GetByRoundServiceIDRequest; -} - -export namespace GetByRoundServiceIDRequest { - export type AsObject = { - serviceId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - roundId: number; - }; -} - -export class GetByRoundServiceIDResponse extends jspb.Message { - getCheck(): Check | undefined; - setCheck(value?: Check): GetByRoundServiceIDResponse; - hasCheck(): boolean; - clearCheck(): GetByRoundServiceIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByRoundServiceIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByRoundServiceIDResponse - ): GetByRoundServiceIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByRoundServiceIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByRoundServiceIDResponse; - static deserializeBinaryFromReader( - message: GetByRoundServiceIDResponse, - reader: jspb.BinaryReader - ): GetByRoundServiceIDResponse; -} - -export namespace GetByRoundServiceIDResponse { - export type AsObject = { - check?: Check.AsObject; - }; -} - -export class GetAllByServiceIDRequest extends jspb.Message { - getServiceId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceId( - value?: scoretrak_proto_v1_uuid_pb.UUID - ): GetAllByServiceIDRequest; - hasServiceId(): boolean; - clearServiceId(): GetAllByServiceIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllByServiceIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllByServiceIDRequest - ): GetAllByServiceIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllByServiceIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllByServiceIDRequest; - static deserializeBinaryFromReader( - message: GetAllByServiceIDRequest, - reader: jspb.BinaryReader - ): GetAllByServiceIDRequest; -} - -export namespace GetAllByServiceIDRequest { - export type AsObject = { - serviceId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetAllByServiceIDResponse extends jspb.Message { - getChecksList(): Array; - setChecksList(value: Array): GetAllByServiceIDResponse; - clearChecksList(): GetAllByServiceIDResponse; - addChecks(value?: Check, index?: number): Check; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllByServiceIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllByServiceIDResponse - ): GetAllByServiceIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllByServiceIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllByServiceIDResponse; - static deserializeBinaryFromReader( - message: GetAllByServiceIDResponse, - reader: jspb.BinaryReader - ): GetAllByServiceIDResponse; -} - -export namespace GetAllByServiceIDResponse { - export type AsObject = { - checksList: Array; - }; -} diff --git a/src/lib/scoretrakapis/scoretrak/check/v1/check_pb.js b/src/lib/scoretrakapis/scoretrak/check/v1/check_pb.js deleted file mode 100644 index 75b0a51..0000000 --- a/src/lib/scoretrakapis/scoretrak/check/v1/check_pb.js +++ /dev/null @@ -1,1561 +0,0 @@ -// source: scoretrak/check/v1/check.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -goog.exportSymbol("proto.scoretrak.check.v1.Check", null, global); -goog.exportSymbol( - "proto.scoretrak.check.v1.GetAllByRoundIDRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.check.v1.GetAllByRoundIDResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.check.v1.GetAllByServiceIDRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.check.v1.GetAllByServiceIDResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.check.v1.GetByRoundServiceIDRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.check.v1.GetByRoundServiceIDResponse", - 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.scoretrak.check.v1.Check = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.check.v1.Check, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.check.v1.Check.displayName = "proto.scoretrak.check.v1.Check"; -} -/** - * 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.scoretrak.check.v1.GetAllByRoundIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.check.v1.GetAllByRoundIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.check.v1.GetAllByRoundIDRequest.displayName = - "proto.scoretrak.check.v1.GetAllByRoundIDRequest"; -} -/** - * 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.scoretrak.check.v1.GetAllByRoundIDResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.check.v1.GetAllByRoundIDResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.check.v1.GetAllByRoundIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.check.v1.GetAllByRoundIDResponse.displayName = - "proto.scoretrak.check.v1.GetAllByRoundIDResponse"; -} -/** - * 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.scoretrak.check.v1.GetByRoundServiceIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.check.v1.GetByRoundServiceIDRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.check.v1.GetByRoundServiceIDRequest.displayName = - "proto.scoretrak.check.v1.GetByRoundServiceIDRequest"; -} -/** - * 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.scoretrak.check.v1.GetByRoundServiceIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.check.v1.GetByRoundServiceIDResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.check.v1.GetByRoundServiceIDResponse.displayName = - "proto.scoretrak.check.v1.GetByRoundServiceIDResponse"; -} -/** - * 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.scoretrak.check.v1.GetAllByServiceIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.check.v1.GetAllByServiceIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.check.v1.GetAllByServiceIDRequest.displayName = - "proto.scoretrak.check.v1.GetAllByServiceIDRequest"; -} -/** - * 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.scoretrak.check.v1.GetAllByServiceIDResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.check.v1.GetAllByServiceIDResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.check.v1.GetAllByServiceIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.check.v1.GetAllByServiceIDResponse.displayName = - "proto.scoretrak.check.v1.GetAllByServiceIDResponse"; -} - -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.scoretrak.check.v1.Check.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.check.v1.Check.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.scoretrak.check.v1.Check} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.check.v1.Check.toObject = function (includeInstance, msg) { - var f, - obj = { - serviceId: - (f = msg.getServiceId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - roundId: jspb.Message.getFieldWithDefault(msg, 2, 0), - log: jspb.Message.getFieldWithDefault(msg, 3, ""), - err: jspb.Message.getFieldWithDefault(msg, 4, ""), - passed: - (f = msg.getPassed()) && - google_protobuf_wrappers_pb.BoolValue.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.scoretrak.check.v1.Check} - */ -proto.scoretrak.check.v1.Check.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.check.v1.Check(); - return proto.scoretrak.check.v1.Check.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.check.v1.Check} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.check.v1.Check.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRoundId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLog(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setErr(value); - break; - case 5: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setPassed(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.check.v1.Check.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.check.v1.Check.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.check.v1.Check} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.check.v1.Check.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getServiceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getRoundId(); - if (f !== 0) { - writer.writeUint64(2, f); - } - f = message.getLog(); - if (f.length > 0) { - writer.writeString(3, f); - } - f = message.getErr(); - if (f.length > 0) { - writer.writeString(4, f); - } - f = message.getPassed(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID service_id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.check.v1.Check.prototype.getServiceId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.check.v1.Check} returns this - */ -proto.scoretrak.check.v1.Check.prototype.setServiceId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.check.v1.Check} returns this - */ -proto.scoretrak.check.v1.Check.prototype.clearServiceId = function () { - return this.setServiceId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.check.v1.Check.prototype.hasServiceId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional uint64 round_id = 2; - * @return {number} - */ -proto.scoretrak.check.v1.Check.prototype.getRoundId = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - -/** - * @param {number} value - * @return {!proto.scoretrak.check.v1.Check} returns this - */ -proto.scoretrak.check.v1.Check.prototype.setRoundId = function (value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - -/** - * optional string log = 3; - * @return {string} - */ -proto.scoretrak.check.v1.Check.prototype.getLog = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.check.v1.Check} returns this - */ -proto.scoretrak.check.v1.Check.prototype.setLog = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional string err = 4; - * @return {string} - */ -proto.scoretrak.check.v1.Check.prototype.getErr = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.check.v1.Check} returns this - */ -proto.scoretrak.check.v1.Check.prototype.setErr = function (value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - -/** - * optional google.protobuf.BoolValue passed = 5; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.check.v1.Check.prototype.getPassed = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 5) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.check.v1.Check} returns this - */ -proto.scoretrak.check.v1.Check.prototype.setPassed = function (value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.check.v1.Check} returns this - */ -proto.scoretrak.check.v1.Check.prototype.clearPassed = function () { - return this.setPassed(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.check.v1.Check.prototype.hasPassed = 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.scoretrak.check.v1.GetAllByRoundIDRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.check.v1.GetAllByRoundIDRequest.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.scoretrak.check.v1.GetAllByRoundIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.check.v1.GetAllByRoundIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - roundId: 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.scoretrak.check.v1.GetAllByRoundIDRequest} - */ -proto.scoretrak.check.v1.GetAllByRoundIDRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.check.v1.GetAllByRoundIDRequest(); - return proto.scoretrak.check.v1.GetAllByRoundIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.check.v1.GetAllByRoundIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.check.v1.GetAllByRoundIDRequest} - */ -proto.scoretrak.check.v1.GetAllByRoundIDRequest.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.setRoundId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.check.v1.GetAllByRoundIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.check.v1.GetAllByRoundIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.check.v1.GetAllByRoundIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.check.v1.GetAllByRoundIDRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getRoundId(); - if (f !== 0) { - writer.writeUint64(1, f); - } - }; - -/** - * optional uint64 round_id = 1; - * @return {number} - */ -proto.scoretrak.check.v1.GetAllByRoundIDRequest.prototype.getRoundId = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); - }; - -/** - * @param {number} value - * @return {!proto.scoretrak.check.v1.GetAllByRoundIDRequest} returns this - */ -proto.scoretrak.check.v1.GetAllByRoundIDRequest.prototype.setRoundId = - function (value) { - return jspb.Message.setProto3IntField(this, 1, value); - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.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.scoretrak.check.v1.GetAllByRoundIDResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.check.v1.GetAllByRoundIDResponse.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.scoretrak.check.v1.GetAllByRoundIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.check.v1.GetAllByRoundIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - checksList: jspb.Message.toObjectList( - msg.getChecksList(), - proto.scoretrak.check.v1.Check.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.scoretrak.check.v1.GetAllByRoundIDResponse} - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.check.v1.GetAllByRoundIDResponse(); - return proto.scoretrak.check.v1.GetAllByRoundIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.check.v1.GetAllByRoundIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.check.v1.GetAllByRoundIDResponse} - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.check.v1.Check(); - reader.readMessage( - value, - proto.scoretrak.check.v1.Check.deserializeBinaryFromReader - ); - msg.addChecks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.check.v1.GetAllByRoundIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.check.v1.GetAllByRoundIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getChecksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.check.v1.Check.serializeBinaryToWriter - ); - } - }; - -/** - * repeated Check checks = 1; - * @return {!Array} - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.prototype.getChecksList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.check.v1.Check, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.check.v1.GetAllByRoundIDResponse} returns this - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.prototype.setChecksList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.check.v1.Check=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.prototype.addChecks = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.check.v1.Check, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.check.v1.GetAllByRoundIDResponse} returns this - */ -proto.scoretrak.check.v1.GetAllByRoundIDResponse.prototype.clearChecksList = - function () { - return this.setChecksList([]); - }; - -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.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.check.v1.GetByRoundServiceIDRequest.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.scoretrak.check.v1.GetByRoundServiceIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.check.v1.GetByRoundServiceIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceId: - (f = msg.getServiceId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - roundId: 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.scoretrak.check.v1.GetByRoundServiceIDRequest} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.check.v1.GetByRoundServiceIDRequest(); - return proto.scoretrak.check.v1.GetByRoundServiceIDRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.check.v1.GetByRoundServiceIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.check.v1.GetByRoundServiceIDRequest} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRoundId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.check.v1.GetByRoundServiceIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.check.v1.GetByRoundServiceIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getRoundId(); - if (f !== 0) { - writer.writeUint64(2, f); - } - }; - -/** - * optional scoretrak.proto.v1.UUID service_id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.getServiceId = - function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); - }; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.check.v1.GetByRoundServiceIDRequest} returns this - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.setServiceId = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.check.v1.GetByRoundServiceIDRequest} returns this - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.clearServiceId = - function () { - return this.setServiceId(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.hasServiceId = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional uint64 round_id = 2; - * @return {number} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.getRoundId = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); - }; - -/** - * @param {number} value - * @return {!proto.scoretrak.check.v1.GetByRoundServiceIDRequest} returns this - */ -proto.scoretrak.check.v1.GetByRoundServiceIDRequest.prototype.setRoundId = - 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.scoretrak.check.v1.GetByRoundServiceIDResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.check.v1.GetByRoundServiceIDResponse.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.scoretrak.check.v1.GetByRoundServiceIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.check.v1.GetByRoundServiceIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - check: - (f = msg.getCheck()) && - proto.scoretrak.check.v1.Check.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.scoretrak.check.v1.GetByRoundServiceIDResponse} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.check.v1.GetByRoundServiceIDResponse(); - return proto.scoretrak.check.v1.GetByRoundServiceIDResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.check.v1.GetByRoundServiceIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.check.v1.GetByRoundServiceIDResponse} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.check.v1.Check(); - reader.readMessage( - value, - proto.scoretrak.check.v1.Check.deserializeBinaryFromReader - ); - msg.setCheck(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.check.v1.GetByRoundServiceIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.check.v1.GetByRoundServiceIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getCheck(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.check.v1.Check.serializeBinaryToWriter - ); - } - }; - -/** - * optional Check check = 1; - * @return {?proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.prototype.getCheck = - function () { - return /** @type{?proto.scoretrak.check.v1.Check} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.check.v1.Check, 1) - ); - }; - -/** - * @param {?proto.scoretrak.check.v1.Check|undefined} value - * @return {!proto.scoretrak.check.v1.GetByRoundServiceIDResponse} returns this - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.prototype.setCheck = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.check.v1.GetByRoundServiceIDResponse} returns this - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.prototype.clearCheck = - function () { - return this.setCheck(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.check.v1.GetByRoundServiceIDResponse.prototype.hasCheck = - 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.scoretrak.check.v1.GetAllByServiceIDRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.check.v1.GetAllByServiceIDRequest.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.scoretrak.check.v1.GetAllByServiceIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.check.v1.GetAllByServiceIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceId: - (f = msg.getServiceId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.check.v1.GetAllByServiceIDRequest} - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.check.v1.GetAllByServiceIDRequest(); - return proto.scoretrak.check.v1.GetAllByServiceIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.check.v1.GetAllByServiceIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.check.v1.GetAllByServiceIDRequest} - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.check.v1.GetAllByServiceIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.check.v1.GetAllByServiceIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID service_id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.prototype.getServiceId = - function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); - }; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.check.v1.GetAllByServiceIDRequest} returns this - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.prototype.setServiceId = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.check.v1.GetAllByServiceIDRequest} returns this - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.prototype.clearServiceId = - function () { - return this.setServiceId(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.check.v1.GetAllByServiceIDRequest.prototype.hasServiceId = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.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.scoretrak.check.v1.GetAllByServiceIDResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.check.v1.GetAllByServiceIDResponse.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.scoretrak.check.v1.GetAllByServiceIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.check.v1.GetAllByServiceIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - checksList: jspb.Message.toObjectList( - msg.getChecksList(), - proto.scoretrak.check.v1.Check.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.scoretrak.check.v1.GetAllByServiceIDResponse} - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.check.v1.GetAllByServiceIDResponse(); - return proto.scoretrak.check.v1.GetAllByServiceIDResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.check.v1.GetAllByServiceIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.check.v1.GetAllByServiceIDResponse} - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.check.v1.Check(); - reader.readMessage( - value, - proto.scoretrak.check.v1.Check.deserializeBinaryFromReader - ); - msg.addChecks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.check.v1.GetAllByServiceIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.check.v1.GetAllByServiceIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getChecksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.check.v1.Check.serializeBinaryToWriter - ); - } - }; - -/** - * repeated Check checks = 1; - * @return {!Array} - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.prototype.getChecksList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.check.v1.Check, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.check.v1.GetAllByServiceIDResponse} returns this - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.prototype.setChecksList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.check.v1.Check=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.prototype.addChecks = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.check.v1.Check, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.check.v1.GetAllByServiceIDResponse} returns this - */ -proto.scoretrak.check.v1.GetAllByServiceIDResponse.prototype.clearChecksList = - function () { - return this.setChecksList([]); - }; - -goog.object.extend(exports, proto.scoretrak.check.v1); diff --git a/src/lib/scoretrakapis/scoretrak/competition/v1/CompetitionServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/competition/v1/CompetitionServiceClientPb.ts deleted file mode 100644 index c82c463..0000000 --- a/src/lib/scoretrakapis/scoretrak/competition/v1/CompetitionServiceClientPb.ts +++ /dev/null @@ -1,304 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.competition.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_competition_v1_competition_pb from "../../../scoretrak/competition/v1/competition_pb"; - -export class CompetitionServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorLoadCompetition = new grpcWeb.MethodDescriptor( - "/scoretrak.competition.v1.CompetitionService/LoadCompetition", - grpcWeb.MethodType.UNARY, - scoretrak_competition_v1_competition_pb.LoadCompetitionRequest, - scoretrak_competition_v1_competition_pb.LoadCompetitionResponse, - ( - request: scoretrak_competition_v1_competition_pb.LoadCompetitionRequest - ) => { - return request.serializeBinary(); - }, - scoretrak_competition_v1_competition_pb.LoadCompetitionResponse.deserializeBinary - ); - - loadCompetition( - request: scoretrak_competition_v1_competition_pb.LoadCompetitionRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - loadCompetition( - request: scoretrak_competition_v1_competition_pb.LoadCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.LoadCompetitionResponse - ) => void - ): grpcWeb.ClientReadableStream; - - loadCompetition( - request: scoretrak_competition_v1_competition_pb.LoadCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.LoadCompetitionResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/LoadCompetition", - request, - metadata || {}, - this.methodDescriptorLoadCompetition, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/LoadCompetition", - request, - metadata || {}, - this.methodDescriptorLoadCompetition - ); - } - - methodDescriptorFetchCoreCompetition = new grpcWeb.MethodDescriptor( - "/scoretrak.competition.v1.CompetitionService/FetchCoreCompetition", - grpcWeb.MethodType.UNARY, - scoretrak_competition_v1_competition_pb.FetchCoreCompetitionRequest, - scoretrak_competition_v1_competition_pb.FetchCoreCompetitionResponse, - ( - request: scoretrak_competition_v1_competition_pb.FetchCoreCompetitionRequest - ) => { - return request.serializeBinary(); - }, - scoretrak_competition_v1_competition_pb.FetchCoreCompetitionResponse.deserializeBinary - ); - - fetchCoreCompetition( - request: scoretrak_competition_v1_competition_pb.FetchCoreCompetitionRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - fetchCoreCompetition( - request: scoretrak_competition_v1_competition_pb.FetchCoreCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.FetchCoreCompetitionResponse - ) => void - ): grpcWeb.ClientReadableStream; - - fetchCoreCompetition( - request: scoretrak_competition_v1_competition_pb.FetchCoreCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.FetchCoreCompetitionResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/FetchCoreCompetition", - request, - metadata || {}, - this.methodDescriptorFetchCoreCompetition, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/FetchCoreCompetition", - request, - metadata || {}, - this.methodDescriptorFetchCoreCompetition - ); - } - - methodDescriptorFetchEntireCompetition = new grpcWeb.MethodDescriptor( - "/scoretrak.competition.v1.CompetitionService/FetchEntireCompetition", - grpcWeb.MethodType.UNARY, - scoretrak_competition_v1_competition_pb.FetchEntireCompetitionRequest, - scoretrak_competition_v1_competition_pb.FetchEntireCompetitionResponse, - ( - request: scoretrak_competition_v1_competition_pb.FetchEntireCompetitionRequest - ) => { - return request.serializeBinary(); - }, - scoretrak_competition_v1_competition_pb.FetchEntireCompetitionResponse.deserializeBinary - ); - - fetchEntireCompetition( - request: scoretrak_competition_v1_competition_pb.FetchEntireCompetitionRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - fetchEntireCompetition( - request: scoretrak_competition_v1_competition_pb.FetchEntireCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.FetchEntireCompetitionResponse - ) => void - ): grpcWeb.ClientReadableStream; - - fetchEntireCompetition( - request: scoretrak_competition_v1_competition_pb.FetchEntireCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.FetchEntireCompetitionResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/FetchEntireCompetition", - request, - metadata || {}, - this.methodDescriptorFetchEntireCompetition, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/FetchEntireCompetition", - request, - metadata || {}, - this.methodDescriptorFetchEntireCompetition - ); - } - - methodDescriptorResetScores = new grpcWeb.MethodDescriptor( - "/scoretrak.competition.v1.CompetitionService/ResetScores", - grpcWeb.MethodType.UNARY, - scoretrak_competition_v1_competition_pb.ResetScoresRequest, - scoretrak_competition_v1_competition_pb.ResetScoresResponse, - (request: scoretrak_competition_v1_competition_pb.ResetScoresRequest) => { - return request.serializeBinary(); - }, - scoretrak_competition_v1_competition_pb.ResetScoresResponse.deserializeBinary - ); - - resetScores( - request: scoretrak_competition_v1_competition_pb.ResetScoresRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - resetScores( - request: scoretrak_competition_v1_competition_pb.ResetScoresRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.ResetScoresResponse - ) => void - ): grpcWeb.ClientReadableStream; - - resetScores( - request: scoretrak_competition_v1_competition_pb.ResetScoresRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.ResetScoresResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/ResetScores", - request, - metadata || {}, - this.methodDescriptorResetScores, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/ResetScores", - request, - metadata || {}, - this.methodDescriptorResetScores - ); - } - - methodDescriptorDeleteCompetition = new grpcWeb.MethodDescriptor( - "/scoretrak.competition.v1.CompetitionService/DeleteCompetition", - grpcWeb.MethodType.UNARY, - scoretrak_competition_v1_competition_pb.DeleteCompetitionRequest, - scoretrak_competition_v1_competition_pb.DeleteCompetitionResponse, - ( - request: scoretrak_competition_v1_competition_pb.DeleteCompetitionRequest - ) => { - return request.serializeBinary(); - }, - scoretrak_competition_v1_competition_pb.DeleteCompetitionResponse.deserializeBinary - ); - - deleteCompetition( - request: scoretrak_competition_v1_competition_pb.DeleteCompetitionRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - deleteCompetition( - request: scoretrak_competition_v1_competition_pb.DeleteCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.DeleteCompetitionResponse - ) => void - ): grpcWeb.ClientReadableStream; - - deleteCompetition( - request: scoretrak_competition_v1_competition_pb.DeleteCompetitionRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_competition_v1_competition_pb.DeleteCompetitionResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/DeleteCompetition", - request, - metadata || {}, - this.methodDescriptorDeleteCompetition, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.competition.v1.CompetitionService/DeleteCompetition", - request, - metadata || {}, - this.methodDescriptorDeleteCompetition - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.d.ts b/src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.d.ts deleted file mode 100644 index f8efc49..0000000 --- a/src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.d.ts +++ /dev/null @@ -1,387 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as scoretrak_config_v1_config_pb from "../../../scoretrak/config/v1/config_pb"; -import * as scoretrak_report_v1_report_pb from "../../../scoretrak/report/v1/report_pb"; -import * as scoretrak_host_group_v1_host_group_pb from "../../../scoretrak/host_group/v1/host_group_pb"; -import * as scoretrak_host_v1_host_pb from "../../../scoretrak/host/v1/host_pb"; -import * as scoretrak_team_v1_team_pb from "../../../scoretrak/team/v1/team_pb"; -import * as scoretrak_service_v1_service_pb from "../../../scoretrak/service/v1/service_pb"; -import * as scoretrak_service_group_v1_service_group_pb from "../../../scoretrak/service_group/v1/service_group_pb"; -import * as scoretrak_round_v1_round_pb from "../../../scoretrak/round/v1/round_pb"; -import * as scoretrak_property_v1_property_pb from "../../../scoretrak/property/v1/property_pb"; -import * as scoretrak_check_v1_check_pb from "../../../scoretrak/check/v1/check_pb"; -import * as scoretrak_user_v1_user_pb from "../../../scoretrak/user/v1/user_pb"; -import * as scoretrak_policy_v1_policy_pb from "../../../scoretrak/policy/v1/policy_pb"; - -export class Competition extends jspb.Message { - getDynamicConfig(): scoretrak_config_v1_config_pb.DynamicConfig | undefined; - setDynamicConfig( - value?: scoretrak_config_v1_config_pb.DynamicConfig - ): Competition; - hasDynamicConfig(): boolean; - clearDynamicConfig(): Competition; - - getReport(): scoretrak_report_v1_report_pb.Report | undefined; - setReport(value?: scoretrak_report_v1_report_pb.Report): Competition; - hasReport(): boolean; - clearReport(): Competition; - - getHostGroupsList(): Array; - setHostGroupsList( - value: Array - ): Competition; - clearHostGroupsList(): Competition; - addHostGroups( - value?: scoretrak_host_group_v1_host_group_pb.HostGroup, - index?: number - ): scoretrak_host_group_v1_host_group_pb.HostGroup; - - getHostsList(): Array; - setHostsList(value: Array): Competition; - clearHostsList(): Competition; - addHosts( - value?: scoretrak_host_v1_host_pb.Host, - index?: number - ): scoretrak_host_v1_host_pb.Host; - - getTeamsList(): Array; - setTeamsList(value: Array): Competition; - clearTeamsList(): Competition; - addTeams( - value?: scoretrak_team_v1_team_pb.Team, - index?: number - ): scoretrak_team_v1_team_pb.Team; - - getServicesList(): Array; - setServicesList( - value: Array - ): Competition; - clearServicesList(): Competition; - addServices( - value?: scoretrak_service_v1_service_pb.Service, - index?: number - ): scoretrak_service_v1_service_pb.Service; - - getServiceGroupsList(): Array; - setServiceGroupsList( - value: Array - ): Competition; - clearServiceGroupsList(): Competition; - addServiceGroups( - value?: scoretrak_service_group_v1_service_group_pb.ServiceGroup, - index?: number - ): scoretrak_service_group_v1_service_group_pb.ServiceGroup; - - getRoundsList(): Array; - setRoundsList(value: Array): Competition; - clearRoundsList(): Competition; - addRounds( - value?: scoretrak_round_v1_round_pb.Round, - index?: number - ): scoretrak_round_v1_round_pb.Round; - - getPropertiesList(): Array; - setPropertiesList( - value: Array - ): Competition; - clearPropertiesList(): Competition; - addProperties( - value?: scoretrak_property_v1_property_pb.Property, - index?: number - ): scoretrak_property_v1_property_pb.Property; - - getChecksList(): Array; - setChecksList(value: Array): Competition; - clearChecksList(): Competition; - addChecks( - value?: scoretrak_check_v1_check_pb.Check, - index?: number - ): scoretrak_check_v1_check_pb.Check; - - getUsersList(): Array; - setUsersList(value: Array): Competition; - clearUsersList(): Competition; - addUsers( - value?: scoretrak_user_v1_user_pb.User, - index?: number - ): scoretrak_user_v1_user_pb.User; - - getPolicy(): scoretrak_policy_v1_policy_pb.Policy | undefined; - setPolicy(value?: scoretrak_policy_v1_policy_pb.Policy): Competition; - hasPolicy(): boolean; - clearPolicy(): Competition; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Competition.AsObject; - static toObject( - includeInstance: boolean, - msg: Competition - ): Competition.AsObject; - static serializeBinaryToWriter( - message: Competition, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Competition; - static deserializeBinaryFromReader( - message: Competition, - reader: jspb.BinaryReader - ): Competition; -} - -export namespace Competition { - export type AsObject = { - dynamicConfig?: scoretrak_config_v1_config_pb.DynamicConfig.AsObject; - report?: scoretrak_report_v1_report_pb.Report.AsObject; - hostGroupsList: Array; - hostsList: Array; - teamsList: Array; - servicesList: Array; - serviceGroupsList: Array; - roundsList: Array; - propertiesList: Array; - checksList: Array; - usersList: Array; - policy?: scoretrak_policy_v1_policy_pb.Policy.AsObject; - }; -} - -export class LoadCompetitionRequest extends jspb.Message { - getCompetition(): Competition | undefined; - setCompetition(value?: Competition): LoadCompetitionRequest; - hasCompetition(): boolean; - clearCompetition(): LoadCompetitionRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoadCompetitionRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: LoadCompetitionRequest - ): LoadCompetitionRequest.AsObject; - static serializeBinaryToWriter( - message: LoadCompetitionRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): LoadCompetitionRequest; - static deserializeBinaryFromReader( - message: LoadCompetitionRequest, - reader: jspb.BinaryReader - ): LoadCompetitionRequest; -} - -export namespace LoadCompetitionRequest { - export type AsObject = { - competition?: Competition.AsObject; - }; -} - -export class LoadCompetitionResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): LoadCompetitionResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: LoadCompetitionResponse - ): LoadCompetitionResponse.AsObject; - static serializeBinaryToWriter( - message: LoadCompetitionResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): LoadCompetitionResponse; - static deserializeBinaryFromReader( - message: LoadCompetitionResponse, - reader: jspb.BinaryReader - ): LoadCompetitionResponse; -} - -export namespace LoadCompetitionResponse { - export type AsObject = {}; -} - -export class FetchCoreCompetitionRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FetchCoreCompetitionRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: FetchCoreCompetitionRequest - ): FetchCoreCompetitionRequest.AsObject; - static serializeBinaryToWriter( - message: FetchCoreCompetitionRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): FetchCoreCompetitionRequest; - static deserializeBinaryFromReader( - message: FetchCoreCompetitionRequest, - reader: jspb.BinaryReader - ): FetchCoreCompetitionRequest; -} - -export namespace FetchCoreCompetitionRequest { - export type AsObject = {}; -} - -export class FetchCoreCompetitionResponse extends jspb.Message { - getCompetition(): Competition | undefined; - setCompetition(value?: Competition): FetchCoreCompetitionResponse; - hasCompetition(): boolean; - clearCompetition(): FetchCoreCompetitionResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FetchCoreCompetitionResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: FetchCoreCompetitionResponse - ): FetchCoreCompetitionResponse.AsObject; - static serializeBinaryToWriter( - message: FetchCoreCompetitionResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): FetchCoreCompetitionResponse; - static deserializeBinaryFromReader( - message: FetchCoreCompetitionResponse, - reader: jspb.BinaryReader - ): FetchCoreCompetitionResponse; -} - -export namespace FetchCoreCompetitionResponse { - export type AsObject = { - competition?: Competition.AsObject; - }; -} - -export class FetchEntireCompetitionRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FetchEntireCompetitionRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: FetchEntireCompetitionRequest - ): FetchEntireCompetitionRequest.AsObject; - static serializeBinaryToWriter( - message: FetchEntireCompetitionRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): FetchEntireCompetitionRequest; - static deserializeBinaryFromReader( - message: FetchEntireCompetitionRequest, - reader: jspb.BinaryReader - ): FetchEntireCompetitionRequest; -} - -export namespace FetchEntireCompetitionRequest { - export type AsObject = {}; -} - -export class FetchEntireCompetitionResponse extends jspb.Message { - getCompetition(): Competition | undefined; - setCompetition(value?: Competition): FetchEntireCompetitionResponse; - hasCompetition(): boolean; - clearCompetition(): FetchEntireCompetitionResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FetchEntireCompetitionResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: FetchEntireCompetitionResponse - ): FetchEntireCompetitionResponse.AsObject; - static serializeBinaryToWriter( - message: FetchEntireCompetitionResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): FetchEntireCompetitionResponse; - static deserializeBinaryFromReader( - message: FetchEntireCompetitionResponse, - reader: jspb.BinaryReader - ): FetchEntireCompetitionResponse; -} - -export namespace FetchEntireCompetitionResponse { - export type AsObject = { - competition?: Competition.AsObject; - }; -} - -export class ResetScoresRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetScoresRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: ResetScoresRequest - ): ResetScoresRequest.AsObject; - static serializeBinaryToWriter( - message: ResetScoresRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): ResetScoresRequest; - static deserializeBinaryFromReader( - message: ResetScoresRequest, - reader: jspb.BinaryReader - ): ResetScoresRequest; -} - -export namespace ResetScoresRequest { - export type AsObject = {}; -} - -export class ResetScoresResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ResetScoresResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: ResetScoresResponse - ): ResetScoresResponse.AsObject; - static serializeBinaryToWriter( - message: ResetScoresResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): ResetScoresResponse; - static deserializeBinaryFromReader( - message: ResetScoresResponse, - reader: jspb.BinaryReader - ): ResetScoresResponse; -} - -export namespace ResetScoresResponse { - export type AsObject = {}; -} - -export class DeleteCompetitionRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteCompetitionRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteCompetitionRequest - ): DeleteCompetitionRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteCompetitionRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteCompetitionRequest; - static deserializeBinaryFromReader( - message: DeleteCompetitionRequest, - reader: jspb.BinaryReader - ): DeleteCompetitionRequest; -} - -export namespace DeleteCompetitionRequest { - export type AsObject = {}; -} - -export class DeleteCompetitionResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteCompetitionResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteCompetitionResponse - ): DeleteCompetitionResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteCompetitionResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteCompetitionResponse; - static deserializeBinaryFromReader( - message: DeleteCompetitionResponse, - reader: jspb.BinaryReader - ): DeleteCompetitionResponse; -} - -export namespace DeleteCompetitionResponse { - export type AsObject = {}; -} diff --git a/src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.js b/src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.js deleted file mode 100644 index e21effb..0000000 --- a/src/lib/scoretrakapis/scoretrak/competition/v1/competition_pb.js +++ /dev/null @@ -1,2615 +0,0 @@ -// source: scoretrak/competition/v1/competition.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 scoretrak_config_v1_config_pb = require("../../../scoretrak/config/v1/config_pb.js"); -goog.object.extend(proto, scoretrak_config_v1_config_pb); -var scoretrak_report_v1_report_pb = require("../../../scoretrak/report/v1/report_pb.js"); -goog.object.extend(proto, scoretrak_report_v1_report_pb); -var scoretrak_host_group_v1_host_group_pb = require("../../../scoretrak/host_group/v1/host_group_pb.js"); -goog.object.extend(proto, scoretrak_host_group_v1_host_group_pb); -var scoretrak_host_v1_host_pb = require("../../../scoretrak/host/v1/host_pb.js"); -goog.object.extend(proto, scoretrak_host_v1_host_pb); -var scoretrak_team_v1_team_pb = require("../../../scoretrak/team/v1/team_pb.js"); -goog.object.extend(proto, scoretrak_team_v1_team_pb); -var scoretrak_service_v1_service_pb = require("../../../scoretrak/service/v1/service_pb.js"); -goog.object.extend(proto, scoretrak_service_v1_service_pb); -var scoretrak_service_group_v1_service_group_pb = require("../../../scoretrak/service_group/v1/service_group_pb.js"); -goog.object.extend(proto, scoretrak_service_group_v1_service_group_pb); -var scoretrak_round_v1_round_pb = require("../../../scoretrak/round/v1/round_pb.js"); -goog.object.extend(proto, scoretrak_round_v1_round_pb); -var scoretrak_property_v1_property_pb = require("../../../scoretrak/property/v1/property_pb.js"); -goog.object.extend(proto, scoretrak_property_v1_property_pb); -var scoretrak_check_v1_check_pb = require("../../../scoretrak/check/v1/check_pb.js"); -goog.object.extend(proto, scoretrak_check_v1_check_pb); -var scoretrak_user_v1_user_pb = require("../../../scoretrak/user/v1/user_pb.js"); -goog.object.extend(proto, scoretrak_user_v1_user_pb); -var scoretrak_policy_v1_policy_pb = require("../../../scoretrak/policy/v1/policy_pb.js"); -goog.object.extend(proto, scoretrak_policy_v1_policy_pb); -goog.exportSymbol("proto.scoretrak.competition.v1.Competition", null, global); -goog.exportSymbol( - "proto.scoretrak.competition.v1.DeleteCompetitionRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.DeleteCompetitionResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.FetchCoreCompetitionRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.FetchCoreCompetitionResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.FetchEntireCompetitionRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.FetchEntireCompetitionResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.LoadCompetitionRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.LoadCompetitionResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.ResetScoresRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.competition.v1.ResetScoresResponse", - 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.scoretrak.competition.v1.Competition = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.competition.v1.Competition.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.competition.v1.Competition, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.Competition.displayName = - "proto.scoretrak.competition.v1.Competition"; -} -/** - * 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.scoretrak.competition.v1.LoadCompetitionRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.LoadCompetitionRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.LoadCompetitionRequest.displayName = - "proto.scoretrak.competition.v1.LoadCompetitionRequest"; -} -/** - * 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.scoretrak.competition.v1.LoadCompetitionResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.LoadCompetitionResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.LoadCompetitionResponse.displayName = - "proto.scoretrak.competition.v1.LoadCompetitionResponse"; -} -/** - * 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.scoretrak.competition.v1.FetchCoreCompetitionRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.FetchCoreCompetitionRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.displayName = - "proto.scoretrak.competition.v1.FetchCoreCompetitionRequest"; -} -/** - * 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.scoretrak.competition.v1.FetchCoreCompetitionResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.FetchCoreCompetitionResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.displayName = - "proto.scoretrak.competition.v1.FetchCoreCompetitionResponse"; -} -/** - * 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.scoretrak.competition.v1.FetchEntireCompetitionRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.FetchEntireCompetitionRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.displayName = - "proto.scoretrak.competition.v1.FetchEntireCompetitionRequest"; -} -/** - * 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.scoretrak.competition.v1.FetchEntireCompetitionResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.FetchEntireCompetitionResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.displayName = - "proto.scoretrak.competition.v1.FetchEntireCompetitionResponse"; -} -/** - * 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.scoretrak.competition.v1.ResetScoresRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.competition.v1.ResetScoresRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.ResetScoresRequest.displayName = - "proto.scoretrak.competition.v1.ResetScoresRequest"; -} -/** - * 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.scoretrak.competition.v1.ResetScoresResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.competition.v1.ResetScoresResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.ResetScoresResponse.displayName = - "proto.scoretrak.competition.v1.ResetScoresResponse"; -} -/** - * 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.scoretrak.competition.v1.DeleteCompetitionRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.DeleteCompetitionRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.DeleteCompetitionRequest.displayName = - "proto.scoretrak.competition.v1.DeleteCompetitionRequest"; -} -/** - * 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.scoretrak.competition.v1.DeleteCompetitionResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.competition.v1.DeleteCompetitionResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.competition.v1.DeleteCompetitionResponse.displayName = - "proto.scoretrak.competition.v1.DeleteCompetitionResponse"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.competition.v1.Competition.repeatedFields_ = [ - 3, 4, 5, 6, 7, 8, 9, 10, 11, -]; - -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.scoretrak.competition.v1.Competition.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.competition.v1.Competition.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.scoretrak.competition.v1.Competition} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.Competition.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - dynamicConfig: - (f = msg.getDynamicConfig()) && - scoretrak_config_v1_config_pb.DynamicConfig.toObject( - includeInstance, - f - ), - report: - (f = msg.getReport()) && - scoretrak_report_v1_report_pb.Report.toObject(includeInstance, f), - hostGroupsList: jspb.Message.toObjectList( - msg.getHostGroupsList(), - scoretrak_host_group_v1_host_group_pb.HostGroup.toObject, - includeInstance - ), - hostsList: jspb.Message.toObjectList( - msg.getHostsList(), - scoretrak_host_v1_host_pb.Host.toObject, - includeInstance - ), - teamsList: jspb.Message.toObjectList( - msg.getTeamsList(), - scoretrak_team_v1_team_pb.Team.toObject, - includeInstance - ), - servicesList: jspb.Message.toObjectList( - msg.getServicesList(), - scoretrak_service_v1_service_pb.Service.toObject, - includeInstance - ), - serviceGroupsList: jspb.Message.toObjectList( - msg.getServiceGroupsList(), - scoretrak_service_group_v1_service_group_pb.ServiceGroup.toObject, - includeInstance - ), - roundsList: jspb.Message.toObjectList( - msg.getRoundsList(), - scoretrak_round_v1_round_pb.Round.toObject, - includeInstance - ), - propertiesList: jspb.Message.toObjectList( - msg.getPropertiesList(), - scoretrak_property_v1_property_pb.Property.toObject, - includeInstance - ), - checksList: jspb.Message.toObjectList( - msg.getChecksList(), - scoretrak_check_v1_check_pb.Check.toObject, - includeInstance - ), - usersList: jspb.Message.toObjectList( - msg.getUsersList(), - scoretrak_user_v1_user_pb.User.toObject, - includeInstance - ), - policy: - (f = msg.getPolicy()) && - scoretrak_policy_v1_policy_pb.Policy.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.scoretrak.competition.v1.Competition} - */ -proto.scoretrak.competition.v1.Competition.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.Competition(); - return proto.scoretrak.competition.v1.Competition.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.Competition} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.Competition} - */ -proto.scoretrak.competition.v1.Competition.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_config_v1_config_pb.DynamicConfig(); - reader.readMessage( - value, - scoretrak_config_v1_config_pb.DynamicConfig - .deserializeBinaryFromReader - ); - msg.setDynamicConfig(value); - break; - case 2: - var value = new scoretrak_report_v1_report_pb.Report(); - reader.readMessage( - value, - scoretrak_report_v1_report_pb.Report.deserializeBinaryFromReader - ); - msg.setReport(value); - break; - case 3: - var value = new scoretrak_host_group_v1_host_group_pb.HostGroup(); - reader.readMessage( - value, - scoretrak_host_group_v1_host_group_pb.HostGroup - .deserializeBinaryFromReader - ); - msg.addHostGroups(value); - break; - case 4: - var value = new scoretrak_host_v1_host_pb.Host(); - reader.readMessage( - value, - scoretrak_host_v1_host_pb.Host.deserializeBinaryFromReader - ); - msg.addHosts(value); - break; - case 5: - var value = new scoretrak_team_v1_team_pb.Team(); - reader.readMessage( - value, - scoretrak_team_v1_team_pb.Team.deserializeBinaryFromReader - ); - msg.addTeams(value); - break; - case 6: - var value = new scoretrak_service_v1_service_pb.Service(); - reader.readMessage( - value, - scoretrak_service_v1_service_pb.Service.deserializeBinaryFromReader - ); - msg.addServices(value); - break; - case 7: - var value = - new scoretrak_service_group_v1_service_group_pb.ServiceGroup(); - reader.readMessage( - value, - scoretrak_service_group_v1_service_group_pb.ServiceGroup - .deserializeBinaryFromReader - ); - msg.addServiceGroups(value); - break; - case 8: - var value = new scoretrak_round_v1_round_pb.Round(); - reader.readMessage( - value, - scoretrak_round_v1_round_pb.Round.deserializeBinaryFromReader - ); - msg.addRounds(value); - break; - case 9: - var value = new scoretrak_property_v1_property_pb.Property(); - reader.readMessage( - value, - scoretrak_property_v1_property_pb.Property - .deserializeBinaryFromReader - ); - msg.addProperties(value); - break; - case 10: - var value = new scoretrak_check_v1_check_pb.Check(); - reader.readMessage( - value, - scoretrak_check_v1_check_pb.Check.deserializeBinaryFromReader - ); - msg.addChecks(value); - break; - case 11: - var value = new scoretrak_user_v1_user_pb.User(); - reader.readMessage( - value, - scoretrak_user_v1_user_pb.User.deserializeBinaryFromReader - ); - msg.addUsers(value); - break; - case 12: - var value = new scoretrak_policy_v1_policy_pb.Policy(); - reader.readMessage( - value, - scoretrak_policy_v1_policy_pb.Policy.deserializeBinaryFromReader - ); - msg.setPolicy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.Competition.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.Competition} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.Competition.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getDynamicConfig(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_config_v1_config_pb.DynamicConfig.serializeBinaryToWriter - ); - } - f = message.getReport(); - if (f != null) { - writer.writeMessage( - 2, - f, - scoretrak_report_v1_report_pb.Report.serializeBinaryToWriter - ); - } - f = message.getHostGroupsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - scoretrak_host_group_v1_host_group_pb.HostGroup.serializeBinaryToWriter - ); - } - f = message.getHostsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - scoretrak_host_v1_host_pb.Host.serializeBinaryToWriter - ); - } - f = message.getTeamsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - scoretrak_team_v1_team_pb.Team.serializeBinaryToWriter - ); - } - f = message.getServicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - scoretrak_service_v1_service_pb.Service.serializeBinaryToWriter - ); - } - f = message.getServiceGroupsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - scoretrak_service_group_v1_service_group_pb.ServiceGroup - .serializeBinaryToWriter - ); - } - f = message.getRoundsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - scoretrak_round_v1_round_pb.Round.serializeBinaryToWriter - ); - } - f = message.getPropertiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - scoretrak_property_v1_property_pb.Property.serializeBinaryToWriter - ); - } - f = message.getChecksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 10, - f, - scoretrak_check_v1_check_pb.Check.serializeBinaryToWriter - ); - } - f = message.getUsersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 11, - f, - scoretrak_user_v1_user_pb.User.serializeBinaryToWriter - ); - } - f = message.getPolicy(); - if (f != null) { - writer.writeMessage( - 12, - f, - scoretrak_policy_v1_policy_pb.Policy.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.config.v1.DynamicConfig dynamic_config = 1; - * @return {?proto.scoretrak.config.v1.DynamicConfig} - */ -proto.scoretrak.competition.v1.Competition.prototype.getDynamicConfig = - function () { - return /** @type{?proto.scoretrak.config.v1.DynamicConfig} */ ( - jspb.Message.getWrapperField( - this, - scoretrak_config_v1_config_pb.DynamicConfig, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.config.v1.DynamicConfig|undefined} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setDynamicConfig = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearDynamicConfig = - function () { - return this.setDynamicConfig(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.competition.v1.Competition.prototype.hasDynamicConfig = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional scoretrak.report.v1.Report report = 2; - * @return {?proto.scoretrak.report.v1.Report} - */ -proto.scoretrak.competition.v1.Competition.prototype.getReport = function () { - return /** @type{?proto.scoretrak.report.v1.Report} */ ( - jspb.Message.getWrapperField(this, scoretrak_report_v1_report_pb.Report, 2) - ); -}; - -/** - * @param {?proto.scoretrak.report.v1.Report|undefined} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setReport = function ( - value -) { - return jspb.Message.setWrapperField(this, 2, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearReport = function () { - return this.setReport(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.competition.v1.Competition.prototype.hasReport = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * repeated scoretrak.host_group.v1.HostGroup host_groups = 3; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getHostGroupsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_host_group_v1_host_group_pb.HostGroup, - 3 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setHostGroupsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); - }; - -/** - * @param {!proto.scoretrak.host_group.v1.HostGroup=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.host_group.v1.HostGroup} - */ -proto.scoretrak.competition.v1.Competition.prototype.addHostGroups = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 3, - opt_value, - proto.scoretrak.host_group.v1.HostGroup, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearHostGroupsList = - function () { - return this.setHostGroupsList([]); - }; - -/** - * repeated scoretrak.host.v1.Host hosts = 4; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getHostsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_host_v1_host_pb.Host, - 4 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setHostsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - -/** - * @param {!proto.scoretrak.host.v1.Host=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.competition.v1.Competition.prototype.addHosts = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 4, - opt_value, - proto.scoretrak.host.v1.Host, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearHostsList = - function () { - return this.setHostsList([]); - }; - -/** - * repeated scoretrak.team.v1.Team teams = 5; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getTeamsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_team_v1_team_pb.Team, - 5 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setTeamsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - -/** - * @param {!proto.scoretrak.team.v1.Team=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.team.v1.Team} - */ -proto.scoretrak.competition.v1.Competition.prototype.addTeams = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 5, - opt_value, - proto.scoretrak.team.v1.Team, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearTeamsList = - function () { - return this.setTeamsList([]); - }; - -/** - * repeated scoretrak.service.v1.Service services = 6; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getServicesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_service_v1_service_pb.Service, - 6 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setServicesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); - }; - -/** - * @param {!proto.scoretrak.service.v1.Service=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.competition.v1.Competition.prototype.addServices = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 6, - opt_value, - proto.scoretrak.service.v1.Service, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearServicesList = - function () { - return this.setServicesList([]); - }; - -/** - * repeated scoretrak.service_group.v1.ServiceGroup service_groups = 7; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getServiceGroupsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_service_group_v1_service_group_pb.ServiceGroup, - 7 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setServiceGroupsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); - }; - -/** - * @param {!proto.scoretrak.service_group.v1.ServiceGroup=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} - */ -proto.scoretrak.competition.v1.Competition.prototype.addServiceGroups = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 7, - opt_value, - proto.scoretrak.service_group.v1.ServiceGroup, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearServiceGroupsList = - function () { - return this.setServiceGroupsList([]); - }; - -/** - * repeated scoretrak.round.v1.Round rounds = 8; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getRoundsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_round_v1_round_pb.Round, - 8 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setRoundsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - -/** - * @param {!proto.scoretrak.round.v1.Round=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.round.v1.Round} - */ -proto.scoretrak.competition.v1.Competition.prototype.addRounds = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 8, - opt_value, - proto.scoretrak.round.v1.Round, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearRoundsList = - function () { - return this.setRoundsList([]); - }; - -/** - * repeated scoretrak.property.v1.Property properties = 9; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getPropertiesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_property_v1_property_pb.Property, - 9 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setPropertiesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); - }; - -/** - * @param {!proto.scoretrak.property.v1.Property=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.competition.v1.Competition.prototype.addProperties = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 9, - opt_value, - proto.scoretrak.property.v1.Property, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearPropertiesList = - function () { - return this.setPropertiesList([]); - }; - -/** - * repeated scoretrak.check.v1.Check checks = 10; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getChecksList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_check_v1_check_pb.Check, - 10 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setChecksList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 10, value); -}; - -/** - * @param {!proto.scoretrak.check.v1.Check=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.competition.v1.Competition.prototype.addChecks = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 10, - opt_value, - proto.scoretrak.check.v1.Check, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearChecksList = - function () { - return this.setChecksList([]); - }; - -/** - * repeated scoretrak.user.v1.User users = 11; - * @return {!Array} - */ -proto.scoretrak.competition.v1.Competition.prototype.getUsersList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_user_v1_user_pb.User, - 11 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setUsersList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 11, value); -}; - -/** - * @param {!proto.scoretrak.user.v1.User=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.user.v1.User} - */ -proto.scoretrak.competition.v1.Competition.prototype.addUsers = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 11, - opt_value, - proto.scoretrak.user.v1.User, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearUsersList = - function () { - return this.setUsersList([]); - }; - -/** - * optional scoretrak.policy.v1.Policy policy = 12; - * @return {?proto.scoretrak.policy.v1.Policy} - */ -proto.scoretrak.competition.v1.Competition.prototype.getPolicy = function () { - return /** @type{?proto.scoretrak.policy.v1.Policy} */ ( - jspb.Message.getWrapperField(this, scoretrak_policy_v1_policy_pb.Policy, 12) - ); -}; - -/** - * @param {?proto.scoretrak.policy.v1.Policy|undefined} value - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.setPolicy = function ( - value -) { - return jspb.Message.setWrapperField(this, 12, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.competition.v1.Competition} returns this - */ -proto.scoretrak.competition.v1.Competition.prototype.clearPolicy = function () { - return this.setPolicy(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.competition.v1.Competition.prototype.hasPolicy = function () { - return jspb.Message.getField(this, 12) != 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.scoretrak.competition.v1.LoadCompetitionRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.LoadCompetitionRequest.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.scoretrak.competition.v1.LoadCompetitionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.LoadCompetitionRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - competition: - (f = msg.getCompetition()) && - proto.scoretrak.competition.v1.Competition.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.scoretrak.competition.v1.LoadCompetitionRequest} - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.LoadCompetitionRequest(); - return proto.scoretrak.competition.v1.LoadCompetitionRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.LoadCompetitionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.LoadCompetitionRequest} - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.competition.v1.Competition(); - reader.readMessage( - value, - proto.scoretrak.competition.v1.Competition - .deserializeBinaryFromReader - ); - msg.setCompetition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.LoadCompetitionRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.LoadCompetitionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getCompetition(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.competition.v1.Competition.serializeBinaryToWriter - ); - } - }; - -/** - * optional Competition competition = 1; - * @return {?proto.scoretrak.competition.v1.Competition} - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.prototype.getCompetition = - function () { - return /** @type{?proto.scoretrak.competition.v1.Competition} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.competition.v1.Competition, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.competition.v1.Competition|undefined} value - * @return {!proto.scoretrak.competition.v1.LoadCompetitionRequest} returns this - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.prototype.setCompetition = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.competition.v1.LoadCompetitionRequest} returns this - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.prototype.clearCompetition = - function () { - return this.setCompetition(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.competition.v1.LoadCompetitionRequest.prototype.hasCompetition = - 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.scoretrak.competition.v1.LoadCompetitionResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.LoadCompetitionResponse.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.scoretrak.competition.v1.LoadCompetitionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.LoadCompetitionResponse.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.scoretrak.competition.v1.LoadCompetitionResponse} - */ -proto.scoretrak.competition.v1.LoadCompetitionResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.LoadCompetitionResponse(); - return proto.scoretrak.competition.v1.LoadCompetitionResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.LoadCompetitionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.LoadCompetitionResponse} - */ -proto.scoretrak.competition.v1.LoadCompetitionResponse.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.scoretrak.competition.v1.LoadCompetitionResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.LoadCompetitionResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.LoadCompetitionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.LoadCompetitionResponse.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.scoretrak.competition.v1.FetchCoreCompetitionRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.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.scoretrak.competition.v1.FetchCoreCompetitionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.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.scoretrak.competition.v1.FetchCoreCompetitionRequest} - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.FetchCoreCompetitionRequest(); - return proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.FetchCoreCompetitionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.FetchCoreCompetitionRequest} - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.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.scoretrak.competition.v1.FetchCoreCompetitionRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.FetchCoreCompetitionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionRequest.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.scoretrak.competition.v1.FetchCoreCompetitionResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.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.scoretrak.competition.v1.FetchCoreCompetitionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - competition: - (f = msg.getCompetition()) && - proto.scoretrak.competition.v1.Competition.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.scoretrak.competition.v1.FetchCoreCompetitionResponse} - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.FetchCoreCompetitionResponse(); - return proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.FetchCoreCompetitionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.FetchCoreCompetitionResponse} - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.competition.v1.Competition(); - reader.readMessage( - value, - proto.scoretrak.competition.v1.Competition - .deserializeBinaryFromReader - ); - msg.setCompetition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.FetchCoreCompetitionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getCompetition(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.competition.v1.Competition.serializeBinaryToWriter - ); - } - }; - -/** - * optional Competition competition = 1; - * @return {?proto.scoretrak.competition.v1.Competition} - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.prototype.getCompetition = - function () { - return /** @type{?proto.scoretrak.competition.v1.Competition} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.competition.v1.Competition, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.competition.v1.Competition|undefined} value - * @return {!proto.scoretrak.competition.v1.FetchCoreCompetitionResponse} returns this - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.prototype.setCompetition = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.competition.v1.FetchCoreCompetitionResponse} returns this - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.prototype.clearCompetition = - function () { - return this.setCompetition(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.competition.v1.FetchCoreCompetitionResponse.prototype.hasCompetition = - 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.scoretrak.competition.v1.FetchEntireCompetitionRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.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.scoretrak.competition.v1.FetchEntireCompetitionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.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.scoretrak.competition.v1.FetchEntireCompetitionRequest} - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.scoretrak.competition.v1.FetchEntireCompetitionRequest(); - return proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.FetchEntireCompetitionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.FetchEntireCompetitionRequest} - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.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.scoretrak.competition.v1.FetchEntireCompetitionRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.FetchEntireCompetitionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionRequest.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.scoretrak.competition.v1.FetchEntireCompetitionResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.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.scoretrak.competition.v1.FetchEntireCompetitionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - competition: - (f = msg.getCompetition()) && - proto.scoretrak.competition.v1.Competition.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.scoretrak.competition.v1.FetchEntireCompetitionResponse} - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.scoretrak.competition.v1.FetchEntireCompetitionResponse(); - return proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.FetchEntireCompetitionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.FetchEntireCompetitionResponse} - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.competition.v1.Competition(); - reader.readMessage( - value, - proto.scoretrak.competition.v1.Competition - .deserializeBinaryFromReader - ); - msg.setCompetition(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.FetchEntireCompetitionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getCompetition(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.competition.v1.Competition.serializeBinaryToWriter - ); - } - }; - -/** - * optional Competition competition = 1; - * @return {?proto.scoretrak.competition.v1.Competition} - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.prototype.getCompetition = - function () { - return /** @type{?proto.scoretrak.competition.v1.Competition} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.competition.v1.Competition, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.competition.v1.Competition|undefined} value - * @return {!proto.scoretrak.competition.v1.FetchEntireCompetitionResponse} returns this - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.prototype.setCompetition = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.competition.v1.FetchEntireCompetitionResponse} returns this - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.prototype.clearCompetition = - function () { - return this.setCompetition(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.competition.v1.FetchEntireCompetitionResponse.prototype.hasCompetition = - 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.scoretrak.competition.v1.ResetScoresRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.ResetScoresRequest.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.scoretrak.competition.v1.ResetScoresRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.ResetScoresRequest.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.scoretrak.competition.v1.ResetScoresRequest} - */ -proto.scoretrak.competition.v1.ResetScoresRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.ResetScoresRequest(); - return proto.scoretrak.competition.v1.ResetScoresRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.ResetScoresRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.ResetScoresRequest} - */ -proto.scoretrak.competition.v1.ResetScoresRequest.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.scoretrak.competition.v1.ResetScoresRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.ResetScoresRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.ResetScoresRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.ResetScoresRequest.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.scoretrak.competition.v1.ResetScoresResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.ResetScoresResponse.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.scoretrak.competition.v1.ResetScoresResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.ResetScoresResponse.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.scoretrak.competition.v1.ResetScoresResponse} - */ -proto.scoretrak.competition.v1.ResetScoresResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.ResetScoresResponse(); - return proto.scoretrak.competition.v1.ResetScoresResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.ResetScoresResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.ResetScoresResponse} - */ -proto.scoretrak.competition.v1.ResetScoresResponse.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.scoretrak.competition.v1.ResetScoresResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.ResetScoresResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.ResetScoresResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.ResetScoresResponse.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.scoretrak.competition.v1.DeleteCompetitionRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.DeleteCompetitionRequest.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.scoretrak.competition.v1.DeleteCompetitionRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.DeleteCompetitionRequest.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.scoretrak.competition.v1.DeleteCompetitionRequest} - */ -proto.scoretrak.competition.v1.DeleteCompetitionRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.DeleteCompetitionRequest(); - return proto.scoretrak.competition.v1.DeleteCompetitionRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.DeleteCompetitionRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.DeleteCompetitionRequest} - */ -proto.scoretrak.competition.v1.DeleteCompetitionRequest.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.scoretrak.competition.v1.DeleteCompetitionRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.DeleteCompetitionRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.DeleteCompetitionRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.DeleteCompetitionRequest.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.scoretrak.competition.v1.DeleteCompetitionResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.competition.v1.DeleteCompetitionResponse.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.scoretrak.competition.v1.DeleteCompetitionResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.competition.v1.DeleteCompetitionResponse.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.scoretrak.competition.v1.DeleteCompetitionResponse} - */ -proto.scoretrak.competition.v1.DeleteCompetitionResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.competition.v1.DeleteCompetitionResponse(); - return proto.scoretrak.competition.v1.DeleteCompetitionResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.competition.v1.DeleteCompetitionResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.competition.v1.DeleteCompetitionResponse} - */ -proto.scoretrak.competition.v1.DeleteCompetitionResponse.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.scoretrak.competition.v1.DeleteCompetitionResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.competition.v1.DeleteCompetitionResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.competition.v1.DeleteCompetitionResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.competition.v1.DeleteCompetitionResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - }; - -goog.object.extend(exports, proto.scoretrak.competition.v1); diff --git a/src/lib/scoretrakapis/scoretrak/config/v1/ConfigServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/config/v1/ConfigServiceClientPb.ts deleted file mode 100644 index 88f8157..0000000 --- a/src/lib/scoretrakapis/scoretrak/config/v1/ConfigServiceClientPb.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.config.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_config_v1_config_pb from "../../../scoretrak/config/v1/config_pb"; - -export class DynamicConfigServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGet = new grpcWeb.MethodDescriptor( - "/scoretrak.config.v1.DynamicConfigService/Get", - grpcWeb.MethodType.UNARY, - scoretrak_config_v1_config_pb.GetRequest, - scoretrak_config_v1_config_pb.GetResponse, - (request: scoretrak_config_v1_config_pb.GetRequest) => { - return request.serializeBinary(); - }, - scoretrak_config_v1_config_pb.GetResponse.deserializeBinary - ); - - get( - request: scoretrak_config_v1_config_pb.GetRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - get( - request: scoretrak_config_v1_config_pb.GetRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_config_v1_config_pb.GetResponse - ) => void - ): grpcWeb.ClientReadableStream; - - get( - request: scoretrak_config_v1_config_pb.GetRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_config_v1_config_pb.GetResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.config.v1.DynamicConfigService/Get", - request, - metadata || {}, - this.methodDescriptorGet, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.config.v1.DynamicConfigService/Get", - request, - metadata || {}, - this.methodDescriptorGet - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.config.v1.DynamicConfigService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_config_v1_config_pb.UpdateRequest, - scoretrak_config_v1_config_pb.UpdateResponse, - (request: scoretrak_config_v1_config_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_config_v1_config_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_config_v1_config_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_config_v1_config_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_config_v1_config_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_config_v1_config_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_config_v1_config_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.config.v1.DynamicConfigService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.config.v1.DynamicConfigService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } -} - -export class StaticConfigServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGet = new grpcWeb.MethodDescriptor( - "/scoretrak.config.v1.StaticConfigService/Get", - grpcWeb.MethodType.UNARY, - scoretrak_config_v1_config_pb.GetStaticConfigRequest, - scoretrak_config_v1_config_pb.GetStaticConfigResponse, - (request: scoretrak_config_v1_config_pb.GetStaticConfigRequest) => { - return request.serializeBinary(); - }, - scoretrak_config_v1_config_pb.GetStaticConfigResponse.deserializeBinary - ); - - get( - request: scoretrak_config_v1_config_pb.GetStaticConfigRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - get( - request: scoretrak_config_v1_config_pb.GetStaticConfigRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_config_v1_config_pb.GetStaticConfigResponse - ) => void - ): grpcWeb.ClientReadableStream; - - get( - request: scoretrak_config_v1_config_pb.GetStaticConfigRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_config_v1_config_pb.GetStaticConfigResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.config.v1.StaticConfigService/Get", - request, - metadata || {}, - this.methodDescriptorGet, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.config.v1.StaticConfigService/Get", - request, - metadata || {}, - this.methodDescriptorGet - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/config/v1/config_pb.d.ts b/src/lib/scoretrakapis/scoretrak/config/v1/config_pb.d.ts deleted file mode 100644 index c8ddf58..0000000 --- a/src/lib/scoretrakapis/scoretrak/config/v1/config_pb.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; - -export class DynamicConfig extends jspb.Message { - getRoundDuration(): number; - setRoundDuration(value: number): DynamicConfig; - - getEnabled(): google_protobuf_wrappers_pb.BoolValue | undefined; - setEnabled(value?: google_protobuf_wrappers_pb.BoolValue): DynamicConfig; - hasEnabled(): boolean; - clearEnabled(): DynamicConfig; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DynamicConfig.AsObject; - static toObject( - includeInstance: boolean, - msg: DynamicConfig - ): DynamicConfig.AsObject; - static serializeBinaryToWriter( - message: DynamicConfig, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DynamicConfig; - static deserializeBinaryFromReader( - message: DynamicConfig, - reader: jspb.BinaryReader - ): DynamicConfig; -} - -export namespace DynamicConfig { - export type AsObject = { - roundDuration: number; - enabled?: google_protobuf_wrappers_pb.BoolValue.AsObject; - }; -} - -export class GetRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetRequest - ): GetRequest.AsObject; - static serializeBinaryToWriter( - message: GetRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetRequest; - static deserializeBinaryFromReader( - message: GetRequest, - reader: jspb.BinaryReader - ): GetRequest; -} - -export namespace GetRequest { - export type AsObject = {}; -} - -export class GetResponse extends jspb.Message { - getDynamicConfig(): DynamicConfig | undefined; - setDynamicConfig(value?: DynamicConfig): GetResponse; - hasDynamicConfig(): boolean; - clearDynamicConfig(): GetResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetResponse - ): GetResponse.AsObject; - static serializeBinaryToWriter( - message: GetResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetResponse; - static deserializeBinaryFromReader( - message: GetResponse, - reader: jspb.BinaryReader - ): GetResponse; -} - -export namespace GetResponse { - export type AsObject = { - dynamicConfig?: DynamicConfig.AsObject; - }; -} - -export class UpdateRequest extends jspb.Message { - getDynamicConfig(): DynamicConfig | undefined; - setDynamicConfig(value?: DynamicConfig): UpdateRequest; - hasDynamicConfig(): boolean; - clearDynamicConfig(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - dynamicConfig?: DynamicConfig.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} - -export class GetStaticConfigRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetStaticConfigRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetStaticConfigRequest - ): GetStaticConfigRequest.AsObject; - static serializeBinaryToWriter( - message: GetStaticConfigRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetStaticConfigRequest; - static deserializeBinaryFromReader( - message: GetStaticConfigRequest, - reader: jspb.BinaryReader - ): GetStaticConfigRequest; -} - -export namespace GetStaticConfigRequest { - export type AsObject = {}; -} - -export class GetStaticConfigResponse extends jspb.Message { - getStaticConfig(): string; - setStaticConfig(value: string): GetStaticConfigResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetStaticConfigResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetStaticConfigResponse - ): GetStaticConfigResponse.AsObject; - static serializeBinaryToWriter( - message: GetStaticConfigResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetStaticConfigResponse; - static deserializeBinaryFromReader( - message: GetStaticConfigResponse, - reader: jspb.BinaryReader - ): GetStaticConfigResponse; -} - -export namespace GetStaticConfigResponse { - export type AsObject = { - staticConfig: string; - }; -} diff --git a/src/lib/scoretrakapis/scoretrak/config/v1/config_pb.js b/src/lib/scoretrakapis/scoretrak/config/v1/config_pb.js deleted file mode 100644 index ba8ecdf..0000000 --- a/src/lib/scoretrakapis/scoretrak/config/v1/config_pb.js +++ /dev/null @@ -1,1210 +0,0 @@ -// source: scoretrak/config/v1/config.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -goog.exportSymbol("proto.scoretrak.config.v1.DynamicConfig", null, global); -goog.exportSymbol("proto.scoretrak.config.v1.GetRequest", null, global); -goog.exportSymbol("proto.scoretrak.config.v1.GetResponse", null, global); -goog.exportSymbol( - "proto.scoretrak.config.v1.GetStaticConfigRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.config.v1.GetStaticConfigResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.config.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.config.v1.UpdateResponse", 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.scoretrak.config.v1.DynamicConfig = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.config.v1.DynamicConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.config.v1.DynamicConfig.displayName = - "proto.scoretrak.config.v1.DynamicConfig"; -} -/** - * 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.scoretrak.config.v1.GetRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.config.v1.GetRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.config.v1.GetRequest.displayName = - "proto.scoretrak.config.v1.GetRequest"; -} -/** - * 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.scoretrak.config.v1.GetResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.config.v1.GetResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.config.v1.GetResponse.displayName = - "proto.scoretrak.config.v1.GetResponse"; -} -/** - * 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.scoretrak.config.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.config.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.config.v1.UpdateRequest.displayName = - "proto.scoretrak.config.v1.UpdateRequest"; -} -/** - * 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.scoretrak.config.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.config.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.config.v1.UpdateResponse.displayName = - "proto.scoretrak.config.v1.UpdateResponse"; -} -/** - * 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.scoretrak.config.v1.GetStaticConfigRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.config.v1.GetStaticConfigRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.config.v1.GetStaticConfigRequest.displayName = - "proto.scoretrak.config.v1.GetStaticConfigRequest"; -} -/** - * 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.scoretrak.config.v1.GetStaticConfigResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.config.v1.GetStaticConfigResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.config.v1.GetStaticConfigResponse.displayName = - "proto.scoretrak.config.v1.GetStaticConfigResponse"; -} - -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.scoretrak.config.v1.DynamicConfig.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.config.v1.DynamicConfig.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.scoretrak.config.v1.DynamicConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.config.v1.DynamicConfig.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - roundDuration: jspb.Message.getFieldWithDefault(msg, 2, 0), - enabled: - (f = msg.getEnabled()) && - google_protobuf_wrappers_pb.BoolValue.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.scoretrak.config.v1.DynamicConfig} - */ -proto.scoretrak.config.v1.DynamicConfig.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.config.v1.DynamicConfig(); - return proto.scoretrak.config.v1.DynamicConfig.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.config.v1.DynamicConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.config.v1.DynamicConfig} - */ -proto.scoretrak.config.v1.DynamicConfig.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRoundDuration(value); - break; - case 3: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setEnabled(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.config.v1.DynamicConfig.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.config.v1.DynamicConfig.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.config.v1.DynamicConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.config.v1.DynamicConfig.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getRoundDuration(); - if (f !== 0) { - writer.writeUint64(2, f); - } - f = message.getEnabled(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } -}; - -/** - * optional uint64 round_duration = 2; - * @return {number} - */ -proto.scoretrak.config.v1.DynamicConfig.prototype.getRoundDuration = - function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); - }; - -/** - * @param {number} value - * @return {!proto.scoretrak.config.v1.DynamicConfig} returns this - */ -proto.scoretrak.config.v1.DynamicConfig.prototype.setRoundDuration = function ( - value -) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - -/** - * optional google.protobuf.BoolValue enabled = 3; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.config.v1.DynamicConfig.prototype.getEnabled = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 3) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.config.v1.DynamicConfig} returns this - */ -proto.scoretrak.config.v1.DynamicConfig.prototype.setEnabled = function ( - value -) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.config.v1.DynamicConfig} returns this - */ -proto.scoretrak.config.v1.DynamicConfig.prototype.clearEnabled = function () { - return this.setEnabled(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.config.v1.DynamicConfig.prototype.hasEnabled = 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.scoretrak.config.v1.GetRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.config.v1.GetRequest.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.scoretrak.config.v1.GetRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.config.v1.GetRequest.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.scoretrak.config.v1.GetRequest} - */ -proto.scoretrak.config.v1.GetRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.config.v1.GetRequest(); - return proto.scoretrak.config.v1.GetRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.config.v1.GetRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.config.v1.GetRequest} - */ -proto.scoretrak.config.v1.GetRequest.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.scoretrak.config.v1.GetRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.config.v1.GetRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.config.v1.GetRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.config.v1.GetRequest.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.scoretrak.config.v1.GetResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.config.v1.GetResponse.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.scoretrak.config.v1.GetResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.config.v1.GetResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - dynamicConfig: - (f = msg.getDynamicConfig()) && - proto.scoretrak.config.v1.DynamicConfig.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.scoretrak.config.v1.GetResponse} - */ -proto.scoretrak.config.v1.GetResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.config.v1.GetResponse(); - return proto.scoretrak.config.v1.GetResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.config.v1.GetResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.config.v1.GetResponse} - */ -proto.scoretrak.config.v1.GetResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.config.v1.DynamicConfig(); - reader.readMessage( - value, - proto.scoretrak.config.v1.DynamicConfig.deserializeBinaryFromReader - ); - msg.setDynamicConfig(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.config.v1.GetResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.config.v1.GetResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.config.v1.GetResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.config.v1.GetResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getDynamicConfig(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.config.v1.DynamicConfig.serializeBinaryToWriter - ); - } -}; - -/** - * optional DynamicConfig dynamic_config = 1; - * @return {?proto.scoretrak.config.v1.DynamicConfig} - */ -proto.scoretrak.config.v1.GetResponse.prototype.getDynamicConfig = function () { - return /** @type{?proto.scoretrak.config.v1.DynamicConfig} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.config.v1.DynamicConfig, - 1 - ) - ); -}; - -/** - * @param {?proto.scoretrak.config.v1.DynamicConfig|undefined} value - * @return {!proto.scoretrak.config.v1.GetResponse} returns this - */ -proto.scoretrak.config.v1.GetResponse.prototype.setDynamicConfig = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.config.v1.GetResponse} returns this - */ -proto.scoretrak.config.v1.GetResponse.prototype.clearDynamicConfig = - function () { - return this.setDynamicConfig(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.config.v1.GetResponse.prototype.hasDynamicConfig = 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.scoretrak.config.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.config.v1.UpdateRequest.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.scoretrak.config.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.config.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - dynamicConfig: - (f = msg.getDynamicConfig()) && - proto.scoretrak.config.v1.DynamicConfig.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.scoretrak.config.v1.UpdateRequest} - */ -proto.scoretrak.config.v1.UpdateRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.config.v1.UpdateRequest(); - return proto.scoretrak.config.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.config.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.config.v1.UpdateRequest} - */ -proto.scoretrak.config.v1.UpdateRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.config.v1.DynamicConfig(); - reader.readMessage( - value, - proto.scoretrak.config.v1.DynamicConfig.deserializeBinaryFromReader - ); - msg.setDynamicConfig(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.config.v1.UpdateRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.config.v1.UpdateRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.config.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.config.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getDynamicConfig(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.config.v1.DynamicConfig.serializeBinaryToWriter - ); - } -}; - -/** - * optional DynamicConfig dynamic_config = 1; - * @return {?proto.scoretrak.config.v1.DynamicConfig} - */ -proto.scoretrak.config.v1.UpdateRequest.prototype.getDynamicConfig = - function () { - return /** @type{?proto.scoretrak.config.v1.DynamicConfig} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.config.v1.DynamicConfig, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.config.v1.DynamicConfig|undefined} value - * @return {!proto.scoretrak.config.v1.UpdateRequest} returns this - */ -proto.scoretrak.config.v1.UpdateRequest.prototype.setDynamicConfig = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.config.v1.UpdateRequest} returns this - */ -proto.scoretrak.config.v1.UpdateRequest.prototype.clearDynamicConfig = - function () { - return this.setDynamicConfig(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.config.v1.UpdateRequest.prototype.hasDynamicConfig = - 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.scoretrak.config.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.config.v1.UpdateResponse.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.scoretrak.config.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.config.v1.UpdateResponse.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.scoretrak.config.v1.UpdateResponse} - */ -proto.scoretrak.config.v1.UpdateResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.config.v1.UpdateResponse(); - return proto.scoretrak.config.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.config.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.config.v1.UpdateResponse} - */ -proto.scoretrak.config.v1.UpdateResponse.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.scoretrak.config.v1.UpdateResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.config.v1.UpdateResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.config.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.config.v1.UpdateResponse.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.scoretrak.config.v1.GetStaticConfigRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.config.v1.GetStaticConfigRequest.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.scoretrak.config.v1.GetStaticConfigRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.config.v1.GetStaticConfigRequest.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.scoretrak.config.v1.GetStaticConfigRequest} - */ -proto.scoretrak.config.v1.GetStaticConfigRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.config.v1.GetStaticConfigRequest(); - return proto.scoretrak.config.v1.GetStaticConfigRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.config.v1.GetStaticConfigRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.config.v1.GetStaticConfigRequest} - */ -proto.scoretrak.config.v1.GetStaticConfigRequest.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.scoretrak.config.v1.GetStaticConfigRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.config.v1.GetStaticConfigRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.config.v1.GetStaticConfigRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.config.v1.GetStaticConfigRequest.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.scoretrak.config.v1.GetStaticConfigResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.config.v1.GetStaticConfigResponse.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.scoretrak.config.v1.GetStaticConfigResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.config.v1.GetStaticConfigResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - staticConfig: 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.scoretrak.config.v1.GetStaticConfigResponse} - */ -proto.scoretrak.config.v1.GetStaticConfigResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.config.v1.GetStaticConfigResponse(); - return proto.scoretrak.config.v1.GetStaticConfigResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.config.v1.GetStaticConfigResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.config.v1.GetStaticConfigResponse} - */ -proto.scoretrak.config.v1.GetStaticConfigResponse.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.setStaticConfig(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.config.v1.GetStaticConfigResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.config.v1.GetStaticConfigResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.config.v1.GetStaticConfigResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.config.v1.GetStaticConfigResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getStaticConfig(); - if (f.length > 0) { - writer.writeString(1, f); - } - }; - -/** - * optional string static_config = 1; - * @return {string} - */ -proto.scoretrak.config.v1.GetStaticConfigResponse.prototype.getStaticConfig = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.scoretrak.config.v1.GetStaticConfigResponse} returns this - */ -proto.scoretrak.config.v1.GetStaticConfigResponse.prototype.setStaticConfig = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -goog.object.extend(exports, proto.scoretrak.config.v1); diff --git a/src/lib/scoretrakapis/scoretrak/host/v1/HostServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/host/v1/HostServiceClientPb.ts deleted file mode 100644 index 804f4aa..0000000 --- a/src/lib/scoretrakapis/scoretrak/host/v1/HostServiceClientPb.ts +++ /dev/null @@ -1,286 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.host.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_host_v1_host_pb from "../../../scoretrak/host/v1/host_pb"; - -export class HostServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.host.v1.HostService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_host_v1_host_pb.GetAllRequest, - scoretrak_host_v1_host_pb.GetAllResponse, - (request: scoretrak_host_v1_host_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_v1_host_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_host_v1_host_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_host_v1_host_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_host_v1_host_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host.v1.HostService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host.v1.HostService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorGetByID = new grpcWeb.MethodDescriptor( - "/scoretrak.host.v1.HostService/GetByID", - grpcWeb.MethodType.UNARY, - scoretrak_host_v1_host_pb.GetByIDRequest, - scoretrak_host_v1_host_pb.GetByIDResponse, - (request: scoretrak_host_v1_host_pb.GetByIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_v1_host_pb.GetByIDResponse.deserializeBinary - ); - - getByID( - request: scoretrak_host_v1_host_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByID( - request: scoretrak_host_v1_host_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.GetByIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByID( - request: scoretrak_host_v1_host_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.GetByIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host.v1.HostService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host.v1.HostService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID - ); - } - - methodDescriptorDelete = new grpcWeb.MethodDescriptor( - "/scoretrak.host.v1.HostService/Delete", - grpcWeb.MethodType.UNARY, - scoretrak_host_v1_host_pb.DeleteRequest, - scoretrak_host_v1_host_pb.DeleteResponse, - (request: scoretrak_host_v1_host_pb.DeleteRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_v1_host_pb.DeleteResponse.deserializeBinary - ); - - delete( - request: scoretrak_host_v1_host_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - delete( - request: scoretrak_host_v1_host_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.DeleteResponse - ) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: scoretrak_host_v1_host_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.DeleteResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host.v1.HostService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host.v1.HostService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete - ); - } - - methodDescriptorStore = new grpcWeb.MethodDescriptor( - "/scoretrak.host.v1.HostService/Store", - grpcWeb.MethodType.UNARY, - scoretrak_host_v1_host_pb.StoreRequest, - scoretrak_host_v1_host_pb.StoreResponse, - (request: scoretrak_host_v1_host_pb.StoreRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_v1_host_pb.StoreResponse.deserializeBinary - ); - - store( - request: scoretrak_host_v1_host_pb.StoreRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - store( - request: scoretrak_host_v1_host_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.StoreResponse - ) => void - ): grpcWeb.ClientReadableStream; - - store( - request: scoretrak_host_v1_host_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.StoreResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host.v1.HostService/Store", - request, - metadata || {}, - this.methodDescriptorStore, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host.v1.HostService/Store", - request, - metadata || {}, - this.methodDescriptorStore - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.host.v1.HostService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_host_v1_host_pb.UpdateRequest, - scoretrak_host_v1_host_pb.UpdateResponse, - (request: scoretrak_host_v1_host_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_v1_host_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_host_v1_host_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_host_v1_host_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_host_v1_host_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_v1_host_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host.v1.HostService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host.v1.HostService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/host/v1/host_pb.d.ts b/src/lib/scoretrakapis/scoretrak/host/v1/host_pb.d.ts deleted file mode 100644 index 9146ff9..0000000 --- a/src/lib/scoretrakapis/scoretrak/host/v1/host_pb.d.ts +++ /dev/null @@ -1,352 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; -import * as scoretrak_service_v1_service_pb from "../../../scoretrak/service/v1/service_pb"; - -export class Host extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): Host; - hasId(): boolean; - clearId(): Host; - - getAddress(): string; - setAddress(value: string): Host; - - getHostGroupId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setHostGroupId(value?: scoretrak_proto_v1_uuid_pb.UUID): Host; - hasHostGroupId(): boolean; - clearHostGroupId(): Host; - - getTeamId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setTeamId(value?: scoretrak_proto_v1_uuid_pb.UUID): Host; - hasTeamId(): boolean; - clearTeamId(): Host; - - getPause(): google_protobuf_wrappers_pb.BoolValue | undefined; - setPause(value?: google_protobuf_wrappers_pb.BoolValue): Host; - hasPause(): boolean; - clearPause(): Host; - - getHide(): google_protobuf_wrappers_pb.BoolValue | undefined; - setHide(value?: google_protobuf_wrappers_pb.BoolValue): Host; - hasHide(): boolean; - clearHide(): Host; - - getEditHost(): google_protobuf_wrappers_pb.BoolValue | undefined; - setEditHost(value?: google_protobuf_wrappers_pb.BoolValue): Host; - hasEditHost(): boolean; - clearEditHost(): Host; - - getServicesList(): Array; - setServicesList(value: Array): Host; - clearServicesList(): Host; - addServices( - value?: scoretrak_service_v1_service_pb.Service, - index?: number - ): scoretrak_service_v1_service_pb.Service; - - getAddressListRange(): google_protobuf_wrappers_pb.StringValue | undefined; - setAddressListRange(value?: google_protobuf_wrappers_pb.StringValue): Host; - hasAddressListRange(): boolean; - clearAddressListRange(): Host; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Host.AsObject; - static toObject(includeInstance: boolean, msg: Host): Host.AsObject; - static serializeBinaryToWriter( - message: Host, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Host; - static deserializeBinaryFromReader( - message: Host, - reader: jspb.BinaryReader - ): Host; -} - -export namespace Host { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - address: string; - hostGroupId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - teamId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - pause?: google_protobuf_wrappers_pb.BoolValue.AsObject; - hide?: google_protobuf_wrappers_pb.BoolValue.AsObject; - editHost?: google_protobuf_wrappers_pb.BoolValue.AsObject; - servicesList: Array; - addressListRange?: google_protobuf_wrappers_pb.StringValue.AsObject; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getHostsList(): Array; - setHostsList(value: Array): GetAllResponse; - clearHostsList(): GetAllResponse; - addHosts(value?: Host, index?: number): Host; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - hostsList: Array; - }; -} - -export class GetByIDRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): GetByIDRequest; - hasId(): boolean; - clearId(): GetByIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDRequest - ): GetByIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDRequest; - static deserializeBinaryFromReader( - message: GetByIDRequest, - reader: jspb.BinaryReader - ): GetByIDRequest; -} - -export namespace GetByIDRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetByIDResponse extends jspb.Message { - getHost(): Host | undefined; - setHost(value?: Host): GetByIDResponse; - hasHost(): boolean; - clearHost(): GetByIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDResponse - ): GetByIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDResponse; - static deserializeBinaryFromReader( - message: GetByIDResponse, - reader: jspb.BinaryReader - ): GetByIDResponse; -} - -export namespace GetByIDResponse { - export type AsObject = { - host?: Host.AsObject; - }; -} - -export class DeleteRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): DeleteRequest; - hasId(): boolean; - clearId(): DeleteRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteRequest - ): DeleteRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteRequest; - static deserializeBinaryFromReader( - message: DeleteRequest, - reader: jspb.BinaryReader - ): DeleteRequest; -} - -export namespace DeleteRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class DeleteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteResponse - ): DeleteResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteResponse; - static deserializeBinaryFromReader( - message: DeleteResponse, - reader: jspb.BinaryReader - ): DeleteResponse; -} - -export namespace DeleteResponse { - export type AsObject = {}; -} - -export class StoreRequest extends jspb.Message { - getHostsList(): Array; - setHostsList(value: Array): StoreRequest; - clearHostsList(): StoreRequest; - addHosts(value?: Host, index?: number): Host; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreRequest - ): StoreRequest.AsObject; - static serializeBinaryToWriter( - message: StoreRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreRequest; - static deserializeBinaryFromReader( - message: StoreRequest, - reader: jspb.BinaryReader - ): StoreRequest; -} - -export namespace StoreRequest { - export type AsObject = { - hostsList: Array; - }; -} - -export class StoreResponse extends jspb.Message { - getIdsList(): Array; - setIdsList(value: Array): StoreResponse; - clearIdsList(): StoreResponse; - addIds( - value?: scoretrak_proto_v1_uuid_pb.UUID, - index?: number - ): scoretrak_proto_v1_uuid_pb.UUID; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreResponse - ): StoreResponse.AsObject; - static serializeBinaryToWriter( - message: StoreResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreResponse; - static deserializeBinaryFromReader( - message: StoreResponse, - reader: jspb.BinaryReader - ): StoreResponse; -} - -export namespace StoreResponse { - export type AsObject = { - idsList: Array; - }; -} - -export class UpdateRequest extends jspb.Message { - getHost(): Host | undefined; - setHost(value?: Host): UpdateRequest; - hasHost(): boolean; - clearHost(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - host?: Host.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} diff --git a/src/lib/scoretrakapis/scoretrak/host/v1/host_pb.js b/src/lib/scoretrakapis/scoretrak/host/v1/host_pb.js deleted file mode 100644 index 76a8a2b..0000000 --- a/src/lib/scoretrakapis/scoretrak/host/v1/host_pb.js +++ /dev/null @@ -1,2420 +0,0 @@ -// source: scoretrak/host/v1/host.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -var scoretrak_service_v1_service_pb = require("../../../scoretrak/service/v1/service_pb.js"); -goog.object.extend(proto, scoretrak_service_v1_service_pb); -goog.exportSymbol("proto.scoretrak.host.v1.DeleteRequest", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.DeleteResponse", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.GetAllRequest", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.GetAllResponse", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.GetByIDRequest", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.GetByIDResponse", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.Host", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.StoreRequest", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.StoreResponse", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.host.v1.UpdateResponse", 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.scoretrak.host.v1.Host = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.host.v1.Host.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.host.v1.Host, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.Host.displayName = "proto.scoretrak.host.v1.Host"; -} -/** - * 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.scoretrak.host.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.GetAllRequest.displayName = - "proto.scoretrak.host.v1.GetAllRequest"; -} -/** - * 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.scoretrak.host.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.host.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.host.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.GetAllResponse.displayName = - "proto.scoretrak.host.v1.GetAllResponse"; -} -/** - * 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.scoretrak.host.v1.GetByIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host.v1.GetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.GetByIDRequest.displayName = - "proto.scoretrak.host.v1.GetByIDRequest"; -} -/** - * 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.scoretrak.host.v1.GetByIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host.v1.GetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.GetByIDResponse.displayName = - "proto.scoretrak.host.v1.GetByIDResponse"; -} -/** - * 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.scoretrak.host.v1.DeleteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host.v1.DeleteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.DeleteRequest.displayName = - "proto.scoretrak.host.v1.DeleteRequest"; -} -/** - * 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.scoretrak.host.v1.DeleteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host.v1.DeleteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.DeleteResponse.displayName = - "proto.scoretrak.host.v1.DeleteResponse"; -} -/** - * 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.scoretrak.host.v1.StoreRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.host.v1.StoreRequest.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.host.v1.StoreRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.StoreRequest.displayName = - "proto.scoretrak.host.v1.StoreRequest"; -} -/** - * 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.scoretrak.host.v1.StoreResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.host.v1.StoreResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.host.v1.StoreResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.StoreResponse.displayName = - "proto.scoretrak.host.v1.StoreResponse"; -} -/** - * 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.scoretrak.host.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.UpdateRequest.displayName = - "proto.scoretrak.host.v1.UpdateRequest"; -} -/** - * 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.scoretrak.host.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host.v1.UpdateResponse.displayName = - "proto.scoretrak.host.v1.UpdateResponse"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.host.v1.Host.repeatedFields_ = [8]; - -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.scoretrak.host.v1.Host.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.Host.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.scoretrak.host.v1.Host} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.Host.toObject = function (includeInstance, msg) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - address: jspb.Message.getFieldWithDefault(msg, 2, ""), - hostGroupId: - (f = msg.getHostGroupId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - teamId: - (f = msg.getTeamId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - pause: - (f = msg.getPause()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - hide: - (f = msg.getHide()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - editHost: - (f = msg.getEditHost()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - servicesList: jspb.Message.toObjectList( - msg.getServicesList(), - scoretrak_service_v1_service_pb.Service.toObject, - includeInstance - ), - addressListRange: - (f = msg.getAddressListRange()) && - google_protobuf_wrappers_pb.StringValue.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.scoretrak.host.v1.Host} - */ -proto.scoretrak.host.v1.Host.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.Host(); - return proto.scoretrak.host.v1.Host.deserializeBinaryFromReader(msg, reader); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.Host} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.host.v1.Host.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 3: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setHostGroupId(value); - break; - case 4: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setTeamId(value); - break; - case 5: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setPause(value); - break; - case 6: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setHide(value); - break; - case 7: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setEditHost(value); - break; - case 8: - var value = new scoretrak_service_v1_service_pb.Service(); - reader.readMessage( - value, - scoretrak_service_v1_service_pb.Service.deserializeBinaryFromReader - ); - msg.addServices(value); - break; - case 9: - var value = new google_protobuf_wrappers_pb.StringValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader - ); - msg.setAddressListRange(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.Host.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.Host.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.Host} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.Host.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getAddress(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getHostGroupId(); - if (f != null) { - writer.writeMessage( - 3, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getTeamId(); - if (f != null) { - writer.writeMessage( - 4, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getPause(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getHide(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getEditHost(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getServicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - scoretrak_service_v1_service_pb.Service.serializeBinaryToWriter - ); - } - f = message.getAddressListRange(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host.v1.Host.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.Host.prototype.hasId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string address = 2; - * @return {string} - */ -proto.scoretrak.host.v1.Host.prototype.getAddress = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setAddress = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional scoretrak.proto.v1.UUID host_group_id = 3; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host.v1.Host.prototype.getHostGroupId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 3) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setHostGroupId = function (value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearHostGroupId = function () { - return this.setHostGroupId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.Host.prototype.hasHostGroupId = function () { - return jspb.Message.getField(this, 3) != null; -}; - -/** - * optional scoretrak.proto.v1.UUID team_id = 4; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host.v1.Host.prototype.getTeamId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 4) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setTeamId = function (value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearTeamId = function () { - return this.setTeamId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.Host.prototype.hasTeamId = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * optional google.protobuf.BoolValue pause = 5; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.host.v1.Host.prototype.getPause = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 5) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setPause = function (value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearPause = function () { - return this.setPause(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.Host.prototype.hasPause = function () { - return jspb.Message.getField(this, 5) != null; -}; - -/** - * optional google.protobuf.BoolValue hide = 6; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.host.v1.Host.prototype.getHide = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 6) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setHide = function (value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearHide = function () { - return this.setHide(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.Host.prototype.hasHide = function () { - return jspb.Message.getField(this, 6) != null; -}; - -/** - * optional google.protobuf.BoolValue edit_host = 7; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.host.v1.Host.prototype.getEditHost = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 7) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setEditHost = function (value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearEditHost = function () { - return this.setEditHost(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.Host.prototype.hasEditHost = function () { - return jspb.Message.getField(this, 7) != null; -}; - -/** - * repeated scoretrak.service.v1.Service services = 8; - * @return {!Array} - */ -proto.scoretrak.host.v1.Host.prototype.getServicesList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_service_v1_service_pb.Service, - 8 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setServicesList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - -/** - * @param {!proto.scoretrak.service.v1.Service=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.host.v1.Host.prototype.addServices = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 8, - opt_value, - proto.scoretrak.service.v1.Service, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearServicesList = function () { - return this.setServicesList([]); -}; - -/** - * optional google.protobuf.StringValue address_list_range = 9; - * @return {?proto.google.protobuf.StringValue} - */ -proto.scoretrak.host.v1.Host.prototype.getAddressListRange = function () { - return /** @type{?proto.google.protobuf.StringValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.StringValue, - 9 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.StringValue|undefined} value - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.setAddressListRange = function (value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.Host} returns this - */ -proto.scoretrak.host.v1.Host.prototype.clearAddressListRange = function () { - return this.setAddressListRange(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.Host.prototype.hasAddressListRange = 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.scoretrak.host.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.GetAllRequest.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.scoretrak.host.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.GetAllRequest.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.scoretrak.host.v1.GetAllRequest} - */ -proto.scoretrak.host.v1.GetAllRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.GetAllRequest(); - return proto.scoretrak.host.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.GetAllRequest} - */ -proto.scoretrak.host.v1.GetAllRequest.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.scoretrak.host.v1.GetAllRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.GetAllRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.GetAllRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.host.v1.GetAllResponse.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.scoretrak.host.v1.GetAllResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.GetAllResponse.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.scoretrak.host.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - hostsList: jspb.Message.toObjectList( - msg.getHostsList(), - proto.scoretrak.host.v1.Host.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.scoretrak.host.v1.GetAllResponse} - */ -proto.scoretrak.host.v1.GetAllResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.GetAllResponse(); - return proto.scoretrak.host.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.GetAllResponse} - */ -proto.scoretrak.host.v1.GetAllResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host.v1.Host(); - reader.readMessage( - value, - proto.scoretrak.host.v1.Host.deserializeBinaryFromReader - ); - msg.addHosts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.GetAllResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.GetAllResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.GetAllResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getHostsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.host.v1.Host.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Host hosts = 1; - * @return {!Array} - */ -proto.scoretrak.host.v1.GetAllResponse.prototype.getHostsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.scoretrak.host.v1.Host, 1) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.host.v1.GetAllResponse} returns this - */ -proto.scoretrak.host.v1.GetAllResponse.prototype.setHostsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.host.v1.Host=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.host.v1.GetAllResponse.prototype.addHosts = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.host.v1.Host, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.host.v1.GetAllResponse} returns this - */ -proto.scoretrak.host.v1.GetAllResponse.prototype.clearHostsList = function () { - return this.setHostsList([]); -}; - -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.scoretrak.host.v1.GetByIDRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.GetByIDRequest.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.scoretrak.host.v1.GetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.GetByIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.host.v1.GetByIDRequest} - */ -proto.scoretrak.host.v1.GetByIDRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.GetByIDRequest(); - return proto.scoretrak.host.v1.GetByIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.GetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.GetByIDRequest} - */ -proto.scoretrak.host.v1.GetByIDRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.GetByIDRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.GetByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.GetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.GetByIDRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host.v1.GetByIDRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host.v1.GetByIDRequest} returns this - */ -proto.scoretrak.host.v1.GetByIDRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.GetByIDRequest} returns this - */ -proto.scoretrak.host.v1.GetByIDRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.GetByIDRequest.prototype.hasId = 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.scoretrak.host.v1.GetByIDResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.GetByIDResponse.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.scoretrak.host.v1.GetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.GetByIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - host: - (f = msg.getHost()) && - proto.scoretrak.host.v1.Host.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.scoretrak.host.v1.GetByIDResponse} - */ -proto.scoretrak.host.v1.GetByIDResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.GetByIDResponse(); - return proto.scoretrak.host.v1.GetByIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.GetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.GetByIDResponse} - */ -proto.scoretrak.host.v1.GetByIDResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host.v1.Host(); - reader.readMessage( - value, - proto.scoretrak.host.v1.Host.deserializeBinaryFromReader - ); - msg.setHost(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.GetByIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.GetByIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.GetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.GetByIDResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getHost(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.host.v1.Host.serializeBinaryToWriter - ); - } -}; - -/** - * optional Host host = 1; - * @return {?proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.host.v1.GetByIDResponse.prototype.getHost = function () { - return /** @type{?proto.scoretrak.host.v1.Host} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.host.v1.Host, 1) - ); -}; - -/** - * @param {?proto.scoretrak.host.v1.Host|undefined} value - * @return {!proto.scoretrak.host.v1.GetByIDResponse} returns this - */ -proto.scoretrak.host.v1.GetByIDResponse.prototype.setHost = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.GetByIDResponse} returns this - */ -proto.scoretrak.host.v1.GetByIDResponse.prototype.clearHost = function () { - return this.setHost(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.GetByIDResponse.prototype.hasHost = 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.scoretrak.host.v1.DeleteRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.DeleteRequest.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.scoretrak.host.v1.DeleteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.DeleteRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.host.v1.DeleteRequest} - */ -proto.scoretrak.host.v1.DeleteRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.DeleteRequest(); - return proto.scoretrak.host.v1.DeleteRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.DeleteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.DeleteRequest} - */ -proto.scoretrak.host.v1.DeleteRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.DeleteRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.DeleteRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.DeleteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.DeleteRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host.v1.DeleteRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host.v1.DeleteRequest} returns this - */ -proto.scoretrak.host.v1.DeleteRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.DeleteRequest} returns this - */ -proto.scoretrak.host.v1.DeleteRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.DeleteRequest.prototype.hasId = 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.scoretrak.host.v1.DeleteResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.DeleteResponse.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.scoretrak.host.v1.DeleteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.DeleteResponse.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.scoretrak.host.v1.DeleteResponse} - */ -proto.scoretrak.host.v1.DeleteResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.DeleteResponse(); - return proto.scoretrak.host.v1.DeleteResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.DeleteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.DeleteResponse} - */ -proto.scoretrak.host.v1.DeleteResponse.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.scoretrak.host.v1.DeleteResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.DeleteResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.DeleteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.DeleteResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.host.v1.StoreRequest.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.scoretrak.host.v1.StoreRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.StoreRequest.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.scoretrak.host.v1.StoreRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.StoreRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - hostsList: jspb.Message.toObjectList( - msg.getHostsList(), - proto.scoretrak.host.v1.Host.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.scoretrak.host.v1.StoreRequest} - */ -proto.scoretrak.host.v1.StoreRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.StoreRequest(); - return proto.scoretrak.host.v1.StoreRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.StoreRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.StoreRequest} - */ -proto.scoretrak.host.v1.StoreRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host.v1.Host(); - reader.readMessage( - value, - proto.scoretrak.host.v1.Host.deserializeBinaryFromReader - ); - msg.addHosts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.StoreRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.StoreRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.StoreRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.StoreRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getHostsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.host.v1.Host.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Host hosts = 1; - * @return {!Array} - */ -proto.scoretrak.host.v1.StoreRequest.prototype.getHostsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.scoretrak.host.v1.Host, 1) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.host.v1.StoreRequest} returns this - */ -proto.scoretrak.host.v1.StoreRequest.prototype.setHostsList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.host.v1.Host=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.host.v1.StoreRequest.prototype.addHosts = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.host.v1.Host, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.host.v1.StoreRequest} returns this - */ -proto.scoretrak.host.v1.StoreRequest.prototype.clearHostsList = function () { - return this.setHostsList([]); -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.host.v1.StoreResponse.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.scoretrak.host.v1.StoreResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.StoreResponse.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.scoretrak.host.v1.StoreResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.StoreResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - idsList: jspb.Message.toObjectList( - msg.getIdsList(), - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.host.v1.StoreResponse} - */ -proto.scoretrak.host.v1.StoreResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.StoreResponse(); - return proto.scoretrak.host.v1.StoreResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.StoreResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.StoreResponse} - */ -proto.scoretrak.host.v1.StoreResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.StoreResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.StoreResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.StoreResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.StoreResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * repeated scoretrak.proto.v1.UUID ids = 1; - * @return {!Array} - */ -proto.scoretrak.host.v1.StoreResponse.prototype.getIdsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_proto_v1_uuid_pb.UUID, - 1 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.host.v1.StoreResponse} returns this - */ -proto.scoretrak.host.v1.StoreResponse.prototype.setIdsList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.proto.v1.UUID=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host.v1.StoreResponse.prototype.addIds = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.proto.v1.UUID, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.host.v1.StoreResponse} returns this - */ -proto.scoretrak.host.v1.StoreResponse.prototype.clearIdsList = function () { - return this.setIdsList([]); -}; - -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.scoretrak.host.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.UpdateRequest.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.scoretrak.host.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - host: - (f = msg.getHost()) && - proto.scoretrak.host.v1.Host.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.scoretrak.host.v1.UpdateRequest} - */ -proto.scoretrak.host.v1.UpdateRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.UpdateRequest(); - return proto.scoretrak.host.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.UpdateRequest} - */ -proto.scoretrak.host.v1.UpdateRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host.v1.Host(); - reader.readMessage( - value, - proto.scoretrak.host.v1.Host.deserializeBinaryFromReader - ); - msg.setHost(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host.v1.UpdateRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.UpdateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getHost(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.host.v1.Host.serializeBinaryToWriter - ); - } -}; - -/** - * optional Host host = 1; - * @return {?proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.host.v1.UpdateRequest.prototype.getHost = function () { - return /** @type{?proto.scoretrak.host.v1.Host} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.host.v1.Host, 1) - ); -}; - -/** - * @param {?proto.scoretrak.host.v1.Host|undefined} value - * @return {!proto.scoretrak.host.v1.UpdateRequest} returns this - */ -proto.scoretrak.host.v1.UpdateRequest.prototype.setHost = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host.v1.UpdateRequest} returns this - */ -proto.scoretrak.host.v1.UpdateRequest.prototype.clearHost = function () { - return this.setHost(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host.v1.UpdateRequest.prototype.hasHost = 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.scoretrak.host.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host.v1.UpdateResponse.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.scoretrak.host.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host.v1.UpdateResponse.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.scoretrak.host.v1.UpdateResponse} - */ -proto.scoretrak.host.v1.UpdateResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host.v1.UpdateResponse(); - return proto.scoretrak.host.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host.v1.UpdateResponse} - */ -proto.scoretrak.host.v1.UpdateResponse.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.scoretrak.host.v1.UpdateResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host.v1.UpdateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host.v1.UpdateResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -goog.object.extend(exports, proto.scoretrak.host.v1); diff --git a/src/lib/scoretrakapis/scoretrak/host_group/v1/Host_groupServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/host_group/v1/Host_groupServiceClientPb.ts deleted file mode 100644 index 2029fbd..0000000 --- a/src/lib/scoretrakapis/scoretrak/host_group/v1/Host_groupServiceClientPb.ts +++ /dev/null @@ -1,286 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.host_group.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_host_group_v1_host_group_pb from "../../../scoretrak/host_group/v1/host_group_pb"; - -export class HostGroupServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.host_group.v1.HostGroupService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_host_group_v1_host_group_pb.GetAllRequest, - scoretrak_host_group_v1_host_group_pb.GetAllResponse, - (request: scoretrak_host_group_v1_host_group_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_group_v1_host_group_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_host_group_v1_host_group_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_host_group_v1_host_group_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_host_group_v1_host_group_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorGetByID = new grpcWeb.MethodDescriptor( - "/scoretrak.host_group.v1.HostGroupService/GetByID", - grpcWeb.MethodType.UNARY, - scoretrak_host_group_v1_host_group_pb.GetByIDRequest, - scoretrak_host_group_v1_host_group_pb.GetByIDResponse, - (request: scoretrak_host_group_v1_host_group_pb.GetByIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_group_v1_host_group_pb.GetByIDResponse.deserializeBinary - ); - - getByID( - request: scoretrak_host_group_v1_host_group_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByID( - request: scoretrak_host_group_v1_host_group_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.GetByIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByID( - request: scoretrak_host_group_v1_host_group_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.GetByIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID - ); - } - - methodDescriptorDelete = new grpcWeb.MethodDescriptor( - "/scoretrak.host_group.v1.HostGroupService/Delete", - grpcWeb.MethodType.UNARY, - scoretrak_host_group_v1_host_group_pb.DeleteRequest, - scoretrak_host_group_v1_host_group_pb.DeleteResponse, - (request: scoretrak_host_group_v1_host_group_pb.DeleteRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_group_v1_host_group_pb.DeleteResponse.deserializeBinary - ); - - delete( - request: scoretrak_host_group_v1_host_group_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - delete( - request: scoretrak_host_group_v1_host_group_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.DeleteResponse - ) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: scoretrak_host_group_v1_host_group_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.DeleteResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete - ); - } - - methodDescriptorStore = new grpcWeb.MethodDescriptor( - "/scoretrak.host_group.v1.HostGroupService/Store", - grpcWeb.MethodType.UNARY, - scoretrak_host_group_v1_host_group_pb.StoreRequest, - scoretrak_host_group_v1_host_group_pb.StoreResponse, - (request: scoretrak_host_group_v1_host_group_pb.StoreRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_group_v1_host_group_pb.StoreResponse.deserializeBinary - ); - - store( - request: scoretrak_host_group_v1_host_group_pb.StoreRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - store( - request: scoretrak_host_group_v1_host_group_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.StoreResponse - ) => void - ): grpcWeb.ClientReadableStream; - - store( - request: scoretrak_host_group_v1_host_group_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.StoreResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/Store", - request, - metadata || {}, - this.methodDescriptorStore, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/Store", - request, - metadata || {}, - this.methodDescriptorStore - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.host_group.v1.HostGroupService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_host_group_v1_host_group_pb.UpdateRequest, - scoretrak_host_group_v1_host_group_pb.UpdateResponse, - (request: scoretrak_host_group_v1_host_group_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_host_group_v1_host_group_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_host_group_v1_host_group_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_host_group_v1_host_group_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_host_group_v1_host_group_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_host_group_v1_host_group_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.host_group.v1.HostGroupService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.d.ts b/src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.d.ts deleted file mode 100644 index a3ee438..0000000 --- a/src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.d.ts +++ /dev/null @@ -1,325 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; -import * as scoretrak_host_v1_host_pb from "../../../scoretrak/host/v1/host_pb"; - -export class HostGroup extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): HostGroup; - hasId(): boolean; - clearId(): HostGroup; - - getName(): string; - setName(value: string): HostGroup; - - getHide(): google_protobuf_wrappers_pb.BoolValue | undefined; - setHide(value?: google_protobuf_wrappers_pb.BoolValue): HostGroup; - hasHide(): boolean; - clearHide(): HostGroup; - - getPause(): google_protobuf_wrappers_pb.BoolValue | undefined; - setPause(value?: google_protobuf_wrappers_pb.BoolValue): HostGroup; - hasPause(): boolean; - clearPause(): HostGroup; - - getHosts(): scoretrak_host_v1_host_pb.Host | undefined; - setHosts(value?: scoretrak_host_v1_host_pb.Host): HostGroup; - hasHosts(): boolean; - clearHosts(): HostGroup; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): HostGroup.AsObject; - static toObject(includeInstance: boolean, msg: HostGroup): HostGroup.AsObject; - static serializeBinaryToWriter( - message: HostGroup, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): HostGroup; - static deserializeBinaryFromReader( - message: HostGroup, - reader: jspb.BinaryReader - ): HostGroup; -} - -export namespace HostGroup { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - name: string; - hide?: google_protobuf_wrappers_pb.BoolValue.AsObject; - pause?: google_protobuf_wrappers_pb.BoolValue.AsObject; - hosts?: scoretrak_host_v1_host_pb.Host.AsObject; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getHostGroupsList(): Array; - setHostGroupsList(value: Array): GetAllResponse; - clearHostGroupsList(): GetAllResponse; - addHostGroups(value?: HostGroup, index?: number): HostGroup; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - hostGroupsList: Array; - }; -} - -export class GetByIDRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): GetByIDRequest; - hasId(): boolean; - clearId(): GetByIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDRequest - ): GetByIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDRequest; - static deserializeBinaryFromReader( - message: GetByIDRequest, - reader: jspb.BinaryReader - ): GetByIDRequest; -} - -export namespace GetByIDRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetByIDResponse extends jspb.Message { - getHostGroup(): HostGroup | undefined; - setHostGroup(value?: HostGroup): GetByIDResponse; - hasHostGroup(): boolean; - clearHostGroup(): GetByIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDResponse - ): GetByIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDResponse; - static deserializeBinaryFromReader( - message: GetByIDResponse, - reader: jspb.BinaryReader - ): GetByIDResponse; -} - -export namespace GetByIDResponse { - export type AsObject = { - hostGroup?: HostGroup.AsObject; - }; -} - -export class DeleteRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): DeleteRequest; - hasId(): boolean; - clearId(): DeleteRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteRequest - ): DeleteRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteRequest; - static deserializeBinaryFromReader( - message: DeleteRequest, - reader: jspb.BinaryReader - ): DeleteRequest; -} - -export namespace DeleteRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class DeleteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteResponse - ): DeleteResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteResponse; - static deserializeBinaryFromReader( - message: DeleteResponse, - reader: jspb.BinaryReader - ): DeleteResponse; -} - -export namespace DeleteResponse { - export type AsObject = {}; -} - -export class StoreRequest extends jspb.Message { - getHostGroupsList(): Array; - setHostGroupsList(value: Array): StoreRequest; - clearHostGroupsList(): StoreRequest; - addHostGroups(value?: HostGroup, index?: number): HostGroup; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreRequest - ): StoreRequest.AsObject; - static serializeBinaryToWriter( - message: StoreRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreRequest; - static deserializeBinaryFromReader( - message: StoreRequest, - reader: jspb.BinaryReader - ): StoreRequest; -} - -export namespace StoreRequest { - export type AsObject = { - hostGroupsList: Array; - }; -} - -export class StoreResponse extends jspb.Message { - getIdsList(): Array; - setIdsList(value: Array): StoreResponse; - clearIdsList(): StoreResponse; - addIds( - value?: scoretrak_proto_v1_uuid_pb.UUID, - index?: number - ): scoretrak_proto_v1_uuid_pb.UUID; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreResponse - ): StoreResponse.AsObject; - static serializeBinaryToWriter( - message: StoreResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreResponse; - static deserializeBinaryFromReader( - message: StoreResponse, - reader: jspb.BinaryReader - ): StoreResponse; -} - -export namespace StoreResponse { - export type AsObject = { - idsList: Array; - }; -} - -export class UpdateRequest extends jspb.Message { - getHostGroup(): HostGroup | undefined; - setHostGroup(value?: HostGroup): UpdateRequest; - hasHostGroup(): boolean; - clearHostGroup(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - hostGroup?: HostGroup.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} diff --git a/src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.js b/src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.js deleted file mode 100644 index d53176b..0000000 --- a/src/lib/scoretrakapis/scoretrak/host_group/v1/host_group_pb.js +++ /dev/null @@ -1,2250 +0,0 @@ -// source: scoretrak/host_group/v1/host_group.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -var scoretrak_host_v1_host_pb = require("../../../scoretrak/host/v1/host_pb.js"); -goog.object.extend(proto, scoretrak_host_v1_host_pb); -goog.exportSymbol("proto.scoretrak.host_group.v1.DeleteRequest", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.DeleteResponse", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.GetAllRequest", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.GetAllResponse", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.GetByIDRequest", null, global); -goog.exportSymbol( - "proto.scoretrak.host_group.v1.GetByIDResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.host_group.v1.HostGroup", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.StoreRequest", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.StoreResponse", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.host_group.v1.UpdateResponse", 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.scoretrak.host_group.v1.HostGroup = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.HostGroup, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.HostGroup.displayName = - "proto.scoretrak.host_group.v1.HostGroup"; -} -/** - * 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.scoretrak.host_group.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.GetAllRequest.displayName = - "proto.scoretrak.host_group.v1.GetAllRequest"; -} -/** - * 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.scoretrak.host_group.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.host_group.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.host_group.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.GetAllResponse.displayName = - "proto.scoretrak.host_group.v1.GetAllResponse"; -} -/** - * 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.scoretrak.host_group.v1.GetByIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.GetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.GetByIDRequest.displayName = - "proto.scoretrak.host_group.v1.GetByIDRequest"; -} -/** - * 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.scoretrak.host_group.v1.GetByIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.GetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.GetByIDResponse.displayName = - "proto.scoretrak.host_group.v1.GetByIDResponse"; -} -/** - * 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.scoretrak.host_group.v1.DeleteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.DeleteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.DeleteRequest.displayName = - "proto.scoretrak.host_group.v1.DeleteRequest"; -} -/** - * 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.scoretrak.host_group.v1.DeleteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.DeleteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.DeleteResponse.displayName = - "proto.scoretrak.host_group.v1.DeleteResponse"; -} -/** - * 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.scoretrak.host_group.v1.StoreRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.host_group.v1.StoreRequest.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.host_group.v1.StoreRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.StoreRequest.displayName = - "proto.scoretrak.host_group.v1.StoreRequest"; -} -/** - * 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.scoretrak.host_group.v1.StoreResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.host_group.v1.StoreResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.host_group.v1.StoreResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.StoreResponse.displayName = - "proto.scoretrak.host_group.v1.StoreResponse"; -} -/** - * 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.scoretrak.host_group.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.UpdateRequest.displayName = - "proto.scoretrak.host_group.v1.UpdateRequest"; -} -/** - * 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.scoretrak.host_group.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.host_group.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.host_group.v1.UpdateResponse.displayName = - "proto.scoretrak.host_group.v1.UpdateResponse"; -} - -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.scoretrak.host_group.v1.HostGroup.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.HostGroup.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.scoretrak.host_group.v1.HostGroup} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.HostGroup.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - hide: - (f = msg.getHide()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - pause: - (f = msg.getPause()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - hosts: - (f = msg.getHosts()) && - scoretrak_host_v1_host_pb.Host.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.scoretrak.host_group.v1.HostGroup} - */ -proto.scoretrak.host_group.v1.HostGroup.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.HostGroup(); - return proto.scoretrak.host_group.v1.HostGroup.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.HostGroup} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.HostGroup} - */ -proto.scoretrak.host_group.v1.HostGroup.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setHide(value); - break; - case 4: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setPause(value); - break; - case 5: - var value = new scoretrak_host_v1_host_pb.Host(); - reader.readMessage( - value, - scoretrak_host_v1_host_pb.Host.deserializeBinaryFromReader - ); - msg.setHosts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.HostGroup.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.HostGroup} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.HostGroup.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getHide(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getPause(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getHosts(); - if (f != null) { - writer.writeMessage( - 5, - f, - scoretrak_host_v1_host_pb.Host.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.hasId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string name = 2; - * @return {string} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional google.protobuf.BoolValue hide = 3; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.getHide = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 3) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.setHide = function (value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.clearHide = function () { - return this.setHide(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.hasHide = function () { - return jspb.Message.getField(this, 3) != null; -}; - -/** - * optional google.protobuf.BoolValue pause = 4; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.getPause = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 4) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.setPause = function (value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.clearPause = function () { - return this.setPause(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.hasPause = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * optional scoretrak.host.v1.Host hosts = 5; - * @return {?proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.getHosts = function () { - return /** @type{?proto.scoretrak.host.v1.Host} */ ( - jspb.Message.getWrapperField(this, scoretrak_host_v1_host_pb.Host, 5) - ); -}; - -/** - * @param {?proto.scoretrak.host.v1.Host|undefined} value - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.setHosts = function (value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.HostGroup} returns this - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.clearHosts = function () { - return this.setHosts(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.HostGroup.prototype.hasHosts = 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.scoretrak.host_group.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.GetAllRequest.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.scoretrak.host_group.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.GetAllRequest.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.scoretrak.host_group.v1.GetAllRequest} - */ -proto.scoretrak.host_group.v1.GetAllRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.GetAllRequest(); - return proto.scoretrak.host_group.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.GetAllRequest} - */ -proto.scoretrak.host_group.v1.GetAllRequest.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.scoretrak.host_group.v1.GetAllRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.GetAllRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.GetAllRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.host_group.v1.GetAllResponse.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.scoretrak.host_group.v1.GetAllResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.GetAllResponse.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.scoretrak.host_group.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - hostGroupsList: jspb.Message.toObjectList( - msg.getHostGroupsList(), - proto.scoretrak.host_group.v1.HostGroup.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.scoretrak.host_group.v1.GetAllResponse} - */ -proto.scoretrak.host_group.v1.GetAllResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.GetAllResponse(); - return proto.scoretrak.host_group.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.GetAllResponse} - */ -proto.scoretrak.host_group.v1.GetAllResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host_group.v1.HostGroup(); - reader.readMessage( - value, - proto.scoretrak.host_group.v1.HostGroup.deserializeBinaryFromReader - ); - msg.addHostGroups(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.GetAllResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.GetAllResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.GetAllResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getHostGroupsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.host_group.v1.HostGroup.serializeBinaryToWriter - ); - } - }; - -/** - * repeated HostGroup host_groups = 1; - * @return {!Array} - */ -proto.scoretrak.host_group.v1.GetAllResponse.prototype.getHostGroupsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.host_group.v1.HostGroup, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.host_group.v1.GetAllResponse} returns this - */ -proto.scoretrak.host_group.v1.GetAllResponse.prototype.setHostGroupsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.host_group.v1.HostGroup=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.host_group.v1.HostGroup} - */ -proto.scoretrak.host_group.v1.GetAllResponse.prototype.addHostGroups = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.host_group.v1.HostGroup, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.host_group.v1.GetAllResponse} returns this - */ -proto.scoretrak.host_group.v1.GetAllResponse.prototype.clearHostGroupsList = - function () { - return this.setHostGroupsList([]); - }; - -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.scoretrak.host_group.v1.GetByIDRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.GetByIDRequest.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.scoretrak.host_group.v1.GetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.GetByIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.host_group.v1.GetByIDRequest} - */ -proto.scoretrak.host_group.v1.GetByIDRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.GetByIDRequest(); - return proto.scoretrak.host_group.v1.GetByIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.GetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.GetByIDRequest} - */ -proto.scoretrak.host_group.v1.GetByIDRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.GetByIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.GetByIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.GetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.GetByIDRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host_group.v1.GetByIDRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host_group.v1.GetByIDRequest} returns this - */ -proto.scoretrak.host_group.v1.GetByIDRequest.prototype.setId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.GetByIDRequest} returns this - */ -proto.scoretrak.host_group.v1.GetByIDRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.GetByIDRequest.prototype.hasId = 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.scoretrak.host_group.v1.GetByIDResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.GetByIDResponse.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.scoretrak.host_group.v1.GetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.GetByIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - hostGroup: - (f = msg.getHostGroup()) && - proto.scoretrak.host_group.v1.HostGroup.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.scoretrak.host_group.v1.GetByIDResponse} - */ -proto.scoretrak.host_group.v1.GetByIDResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.GetByIDResponse(); - return proto.scoretrak.host_group.v1.GetByIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.GetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.GetByIDResponse} - */ -proto.scoretrak.host_group.v1.GetByIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host_group.v1.HostGroup(); - reader.readMessage( - value, - proto.scoretrak.host_group.v1.HostGroup.deserializeBinaryFromReader - ); - msg.setHostGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.GetByIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.GetByIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.GetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.GetByIDResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getHostGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.host_group.v1.HostGroup.serializeBinaryToWriter - ); - } - }; - -/** - * optional HostGroup host_group = 1; - * @return {?proto.scoretrak.host_group.v1.HostGroup} - */ -proto.scoretrak.host_group.v1.GetByIDResponse.prototype.getHostGroup = - function () { - return /** @type{?proto.scoretrak.host_group.v1.HostGroup} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.host_group.v1.HostGroup, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.host_group.v1.HostGroup|undefined} value - * @return {!proto.scoretrak.host_group.v1.GetByIDResponse} returns this - */ -proto.scoretrak.host_group.v1.GetByIDResponse.prototype.setHostGroup = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.GetByIDResponse} returns this - */ -proto.scoretrak.host_group.v1.GetByIDResponse.prototype.clearHostGroup = - function () { - return this.setHostGroup(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.GetByIDResponse.prototype.hasHostGroup = - 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.scoretrak.host_group.v1.DeleteRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.DeleteRequest.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.scoretrak.host_group.v1.DeleteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.DeleteRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.host_group.v1.DeleteRequest} - */ -proto.scoretrak.host_group.v1.DeleteRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.DeleteRequest(); - return proto.scoretrak.host_group.v1.DeleteRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.DeleteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.DeleteRequest} - */ -proto.scoretrak.host_group.v1.DeleteRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.DeleteRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.DeleteRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.DeleteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.DeleteRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host_group.v1.DeleteRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.host_group.v1.DeleteRequest} returns this - */ -proto.scoretrak.host_group.v1.DeleteRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.DeleteRequest} returns this - */ -proto.scoretrak.host_group.v1.DeleteRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.DeleteRequest.prototype.hasId = 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.scoretrak.host_group.v1.DeleteResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.DeleteResponse.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.scoretrak.host_group.v1.DeleteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.DeleteResponse.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.scoretrak.host_group.v1.DeleteResponse} - */ -proto.scoretrak.host_group.v1.DeleteResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.DeleteResponse(); - return proto.scoretrak.host_group.v1.DeleteResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.DeleteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.DeleteResponse} - */ -proto.scoretrak.host_group.v1.DeleteResponse.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.scoretrak.host_group.v1.DeleteResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.DeleteResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.DeleteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.DeleteResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.host_group.v1.StoreRequest.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.scoretrak.host_group.v1.StoreRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.StoreRequest.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.scoretrak.host_group.v1.StoreRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.StoreRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - hostGroupsList: jspb.Message.toObjectList( - msg.getHostGroupsList(), - proto.scoretrak.host_group.v1.HostGroup.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.scoretrak.host_group.v1.StoreRequest} - */ -proto.scoretrak.host_group.v1.StoreRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.StoreRequest(); - return proto.scoretrak.host_group.v1.StoreRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.StoreRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.StoreRequest} - */ -proto.scoretrak.host_group.v1.StoreRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host_group.v1.HostGroup(); - reader.readMessage( - value, - proto.scoretrak.host_group.v1.HostGroup.deserializeBinaryFromReader - ); - msg.addHostGroups(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.StoreRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.StoreRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.StoreRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.StoreRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getHostGroupsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.host_group.v1.HostGroup.serializeBinaryToWriter - ); - } -}; - -/** - * repeated HostGroup host_groups = 1; - * @return {!Array} - */ -proto.scoretrak.host_group.v1.StoreRequest.prototype.getHostGroupsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.host_group.v1.HostGroup, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.host_group.v1.StoreRequest} returns this - */ -proto.scoretrak.host_group.v1.StoreRequest.prototype.setHostGroupsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.host_group.v1.HostGroup=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.host_group.v1.HostGroup} - */ -proto.scoretrak.host_group.v1.StoreRequest.prototype.addHostGroups = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.host_group.v1.HostGroup, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.host_group.v1.StoreRequest} returns this - */ -proto.scoretrak.host_group.v1.StoreRequest.prototype.clearHostGroupsList = - function () { - return this.setHostGroupsList([]); - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.host_group.v1.StoreResponse.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.scoretrak.host_group.v1.StoreResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.StoreResponse.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.scoretrak.host_group.v1.StoreResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.StoreResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - idsList: jspb.Message.toObjectList( - msg.getIdsList(), - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.host_group.v1.StoreResponse} - */ -proto.scoretrak.host_group.v1.StoreResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.StoreResponse(); - return proto.scoretrak.host_group.v1.StoreResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.StoreResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.StoreResponse} - */ -proto.scoretrak.host_group.v1.StoreResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.StoreResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.StoreResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.StoreResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.StoreResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * repeated scoretrak.proto.v1.UUID ids = 1; - * @return {!Array} - */ -proto.scoretrak.host_group.v1.StoreResponse.prototype.getIdsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_proto_v1_uuid_pb.UUID, - 1 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.host_group.v1.StoreResponse} returns this - */ -proto.scoretrak.host_group.v1.StoreResponse.prototype.setIdsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.proto.v1.UUID=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.host_group.v1.StoreResponse.prototype.addIds = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.proto.v1.UUID, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.host_group.v1.StoreResponse} returns this - */ -proto.scoretrak.host_group.v1.StoreResponse.prototype.clearIdsList = - function () { - return this.setIdsList([]); - }; - -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.scoretrak.host_group.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.UpdateRequest.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.scoretrak.host_group.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - hostGroup: - (f = msg.getHostGroup()) && - proto.scoretrak.host_group.v1.HostGroup.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.scoretrak.host_group.v1.UpdateRequest} - */ -proto.scoretrak.host_group.v1.UpdateRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.UpdateRequest(); - return proto.scoretrak.host_group.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.UpdateRequest} - */ -proto.scoretrak.host_group.v1.UpdateRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.host_group.v1.HostGroup(); - reader.readMessage( - value, - proto.scoretrak.host_group.v1.HostGroup.deserializeBinaryFromReader - ); - msg.setHostGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.host_group.v1.UpdateRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.UpdateRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getHostGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.host_group.v1.HostGroup.serializeBinaryToWriter - ); - } -}; - -/** - * optional HostGroup host_group = 1; - * @return {?proto.scoretrak.host_group.v1.HostGroup} - */ -proto.scoretrak.host_group.v1.UpdateRequest.prototype.getHostGroup = - function () { - return /** @type{?proto.scoretrak.host_group.v1.HostGroup} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.host_group.v1.HostGroup, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.host_group.v1.HostGroup|undefined} value - * @return {!proto.scoretrak.host_group.v1.UpdateRequest} returns this - */ -proto.scoretrak.host_group.v1.UpdateRequest.prototype.setHostGroup = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.host_group.v1.UpdateRequest} returns this - */ -proto.scoretrak.host_group.v1.UpdateRequest.prototype.clearHostGroup = - function () { - return this.setHostGroup(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.host_group.v1.UpdateRequest.prototype.hasHostGroup = - 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.scoretrak.host_group.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.host_group.v1.UpdateResponse.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.scoretrak.host_group.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.host_group.v1.UpdateResponse.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.scoretrak.host_group.v1.UpdateResponse} - */ -proto.scoretrak.host_group.v1.UpdateResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.host_group.v1.UpdateResponse(); - return proto.scoretrak.host_group.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.host_group.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.host_group.v1.UpdateResponse} - */ -proto.scoretrak.host_group.v1.UpdateResponse.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.scoretrak.host_group.v1.UpdateResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.host_group.v1.UpdateResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.host_group.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.host_group.v1.UpdateResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - }; - -goog.object.extend(exports, proto.scoretrak.host_group.v1); diff --git a/src/lib/scoretrakapis/scoretrak/policy/v1/PolicyServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/policy/v1/PolicyServiceClientPb.ts deleted file mode 100644 index 0a7484a..0000000 --- a/src/lib/scoretrakapis/scoretrak/policy/v1/PolicyServiceClientPb.ts +++ /dev/null @@ -1,109 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.policy.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_policy_v1_policy_pb from "../../../scoretrak/policy/v1/policy_pb"; - -export class PolicyServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGet = new grpcWeb.MethodDescriptor( - "/scoretrak.policy.v1.PolicyService/Get", - grpcWeb.MethodType.SERVER_STREAMING, - scoretrak_policy_v1_policy_pb.GetRequest, - scoretrak_policy_v1_policy_pb.GetResponse, - (request: scoretrak_policy_v1_policy_pb.GetRequest) => { - return request.serializeBinary(); - }, - scoretrak_policy_v1_policy_pb.GetResponse.deserializeBinary - ); - - get( - request: scoretrak_policy_v1_policy_pb.GetRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream { - return this.client_.serverStreaming( - this.hostname_ + "/scoretrak.policy.v1.PolicyService/Get", - request, - metadata || {}, - this.methodDescriptorGet - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.policy.v1.PolicyService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_policy_v1_policy_pb.UpdateRequest, - scoretrak_policy_v1_policy_pb.UpdateResponse, - (request: scoretrak_policy_v1_policy_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_policy_v1_policy_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_policy_v1_policy_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_policy_v1_policy_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_policy_v1_policy_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_policy_v1_policy_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_policy_v1_policy_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.policy.v1.PolicyService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.policy.v1.PolicyService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.d.ts b/src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.d.ts deleted file mode 100644 index 4c3c03a..0000000 --- a/src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.d.ts +++ /dev/null @@ -1,167 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; - -export class Policy extends jspb.Message { - getAllowUnauthenticatedUsers(): - | google_protobuf_wrappers_pb.BoolValue - | undefined; - setAllowUnauthenticatedUsers( - value?: google_protobuf_wrappers_pb.BoolValue - ): Policy; - hasAllowUnauthenticatedUsers(): boolean; - clearAllowUnauthenticatedUsers(): Policy; - - getAllowChangingUsernamesAndPasswords(): - | google_protobuf_wrappers_pb.BoolValue - | undefined; - setAllowChangingUsernamesAndPasswords( - value?: google_protobuf_wrappers_pb.BoolValue - ): Policy; - hasAllowChangingUsernamesAndPasswords(): boolean; - clearAllowChangingUsernamesAndPasswords(): Policy; - - getShowPoints(): google_protobuf_wrappers_pb.BoolValue | undefined; - setShowPoints(value?: google_protobuf_wrappers_pb.BoolValue): Policy; - hasShowPoints(): boolean; - clearShowPoints(): Policy; - - getShowAddresses(): google_protobuf_wrappers_pb.BoolValue | undefined; - setShowAddresses(value?: google_protobuf_wrappers_pb.BoolValue): Policy; - hasShowAddresses(): boolean; - clearShowAddresses(): Policy; - - getAllowRedTeamLaunchingServiceTestsManually(): - | google_protobuf_wrappers_pb.BoolValue - | undefined; - setAllowRedTeamLaunchingServiceTestsManually( - value?: google_protobuf_wrappers_pb.BoolValue - ): Policy; - hasAllowRedTeamLaunchingServiceTestsManually(): boolean; - clearAllowRedTeamLaunchingServiceTestsManually(): Policy; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Policy.AsObject; - static toObject(includeInstance: boolean, msg: Policy): Policy.AsObject; - static serializeBinaryToWriter( - message: Policy, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Policy; - static deserializeBinaryFromReader( - message: Policy, - reader: jspb.BinaryReader - ): Policy; -} - -export namespace Policy { - export type AsObject = { - allowUnauthenticatedUsers?: google_protobuf_wrappers_pb.BoolValue.AsObject; - allowChangingUsernamesAndPasswords?: google_protobuf_wrappers_pb.BoolValue.AsObject; - showPoints?: google_protobuf_wrappers_pb.BoolValue.AsObject; - showAddresses?: google_protobuf_wrappers_pb.BoolValue.AsObject; - allowRedTeamLaunchingServiceTestsManually?: google_protobuf_wrappers_pb.BoolValue.AsObject; - }; -} - -export class GetRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetRequest - ): GetRequest.AsObject; - static serializeBinaryToWriter( - message: GetRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetRequest; - static deserializeBinaryFromReader( - message: GetRequest, - reader: jspb.BinaryReader - ): GetRequest; -} - -export namespace GetRequest { - export type AsObject = {}; -} - -export class GetResponse extends jspb.Message { - getPolicy(): Policy | undefined; - setPolicy(value?: Policy): GetResponse; - hasPolicy(): boolean; - clearPolicy(): GetResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetResponse - ): GetResponse.AsObject; - static serializeBinaryToWriter( - message: GetResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetResponse; - static deserializeBinaryFromReader( - message: GetResponse, - reader: jspb.BinaryReader - ): GetResponse; -} - -export namespace GetResponse { - export type AsObject = { - policy?: Policy.AsObject; - }; -} - -export class UpdateRequest extends jspb.Message { - getPolicy(): Policy | undefined; - setPolicy(value?: Policy): UpdateRequest; - hasPolicy(): boolean; - clearPolicy(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - policy?: Policy.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} diff --git a/src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.js b/src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.js deleted file mode 100644 index 549d753..0000000 --- a/src/lib/scoretrakapis/scoretrak/policy/v1/policy_pb.js +++ /dev/null @@ -1,1088 +0,0 @@ -// source: scoretrak/policy/v1/policy.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -goog.exportSymbol("proto.scoretrak.policy.v1.GetRequest", null, global); -goog.exportSymbol("proto.scoretrak.policy.v1.GetResponse", null, global); -goog.exportSymbol("proto.scoretrak.policy.v1.Policy", null, global); -goog.exportSymbol("proto.scoretrak.policy.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.policy.v1.UpdateResponse", 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.scoretrak.policy.v1.Policy = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.policy.v1.Policy, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.policy.v1.Policy.displayName = - "proto.scoretrak.policy.v1.Policy"; -} -/** - * 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.scoretrak.policy.v1.GetRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.policy.v1.GetRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.policy.v1.GetRequest.displayName = - "proto.scoretrak.policy.v1.GetRequest"; -} -/** - * 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.scoretrak.policy.v1.GetResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.policy.v1.GetResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.policy.v1.GetResponse.displayName = - "proto.scoretrak.policy.v1.GetResponse"; -} -/** - * 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.scoretrak.policy.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.policy.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.policy.v1.UpdateRequest.displayName = - "proto.scoretrak.policy.v1.UpdateRequest"; -} -/** - * 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.scoretrak.policy.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.policy.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.policy.v1.UpdateResponse.displayName = - "proto.scoretrak.policy.v1.UpdateResponse"; -} - -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.scoretrak.policy.v1.Policy.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.policy.v1.Policy.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.scoretrak.policy.v1.Policy} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.policy.v1.Policy.toObject = function (includeInstance, msg) { - var f, - obj = { - allowUnauthenticatedUsers: - (f = msg.getAllowUnauthenticatedUsers()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - allowChangingUsernamesAndPasswords: - (f = msg.getAllowChangingUsernamesAndPasswords()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - showPoints: - (f = msg.getShowPoints()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - showAddresses: - (f = msg.getShowAddresses()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - allowRedTeamLaunchingServiceTestsManually: - (f = msg.getAllowRedTeamLaunchingServiceTestsManually()) && - google_protobuf_wrappers_pb.BoolValue.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.scoretrak.policy.v1.Policy} - */ -proto.scoretrak.policy.v1.Policy.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.policy.v1.Policy(); - return proto.scoretrak.policy.v1.Policy.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.policy.v1.Policy} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.policy.v1.Policy} - */ -proto.scoretrak.policy.v1.Policy.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setAllowUnauthenticatedUsers(value); - break; - case 2: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setAllowChangingUsernamesAndPasswords(value); - break; - case 3: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setShowPoints(value); - break; - case 4: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setShowAddresses(value); - break; - case 5: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setAllowRedTeamLaunchingServiceTestsManually(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.policy.v1.Policy.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.policy.v1.Policy.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.policy.v1.Policy} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.policy.v1.Policy.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getAllowUnauthenticatedUsers(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getAllowChangingUsernamesAndPasswords(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getShowPoints(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getShowAddresses(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getAllowRedTeamLaunchingServiceTestsManually(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } -}; - -/** - * optional google.protobuf.BoolValue allow_unauthenticated_users = 1; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.policy.v1.Policy.prototype.getAllowUnauthenticatedUsers = - function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.BoolValue, - 1 - ) - ); - }; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.setAllowUnauthenticatedUsers = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.clearAllowUnauthenticatedUsers = - function () { - return this.setAllowUnauthenticatedUsers(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.policy.v1.Policy.prototype.hasAllowUnauthenticatedUsers = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional google.protobuf.BoolValue allow_changing_usernames_and_passwords = 2; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.policy.v1.Policy.prototype.getAllowChangingUsernamesAndPasswords = - function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.BoolValue, - 2 - ) - ); - }; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.setAllowChangingUsernamesAndPasswords = - function (value) { - return jspb.Message.setWrapperField(this, 2, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.clearAllowChangingUsernamesAndPasswords = - function () { - return this.setAllowChangingUsernamesAndPasswords(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.policy.v1.Policy.prototype.hasAllowChangingUsernamesAndPasswords = - function () { - return jspb.Message.getField(this, 2) != null; - }; - -/** - * optional google.protobuf.BoolValue show_points = 3; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.policy.v1.Policy.prototype.getShowPoints = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 3) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.setShowPoints = function (value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.clearShowPoints = function () { - return this.setShowPoints(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.policy.v1.Policy.prototype.hasShowPoints = function () { - return jspb.Message.getField(this, 3) != null; -}; - -/** - * optional google.protobuf.BoolValue show_addresses = 4; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.policy.v1.Policy.prototype.getShowAddresses = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 4) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.setShowAddresses = function (value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.clearShowAddresses = function () { - return this.setShowAddresses(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.policy.v1.Policy.prototype.hasShowAddresses = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * optional google.protobuf.BoolValue allow_red_team_launching_service_tests_manually = 5; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.policy.v1.Policy.prototype.getAllowRedTeamLaunchingServiceTestsManually = - function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.BoolValue, - 5 - ) - ); - }; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.setAllowRedTeamLaunchingServiceTestsManually = - function (value) { - return jspb.Message.setWrapperField(this, 5, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.policy.v1.Policy} returns this - */ -proto.scoretrak.policy.v1.Policy.prototype.clearAllowRedTeamLaunchingServiceTestsManually = - function () { - return this.setAllowRedTeamLaunchingServiceTestsManually(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.policy.v1.Policy.prototype.hasAllowRedTeamLaunchingServiceTestsManually = - 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.scoretrak.policy.v1.GetRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.policy.v1.GetRequest.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.scoretrak.policy.v1.GetRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.policy.v1.GetRequest.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.scoretrak.policy.v1.GetRequest} - */ -proto.scoretrak.policy.v1.GetRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.policy.v1.GetRequest(); - return proto.scoretrak.policy.v1.GetRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.policy.v1.GetRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.policy.v1.GetRequest} - */ -proto.scoretrak.policy.v1.GetRequest.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.scoretrak.policy.v1.GetRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.policy.v1.GetRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.policy.v1.GetRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.policy.v1.GetRequest.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.scoretrak.policy.v1.GetResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.policy.v1.GetResponse.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.scoretrak.policy.v1.GetResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.policy.v1.GetResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - policy: - (f = msg.getPolicy()) && - proto.scoretrak.policy.v1.Policy.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.scoretrak.policy.v1.GetResponse} - */ -proto.scoretrak.policy.v1.GetResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.policy.v1.GetResponse(); - return proto.scoretrak.policy.v1.GetResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.policy.v1.GetResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.policy.v1.GetResponse} - */ -proto.scoretrak.policy.v1.GetResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.policy.v1.Policy(); - reader.readMessage( - value, - proto.scoretrak.policy.v1.Policy.deserializeBinaryFromReader - ); - msg.setPolicy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.policy.v1.GetResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.policy.v1.GetResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.policy.v1.GetResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.policy.v1.GetResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getPolicy(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.policy.v1.Policy.serializeBinaryToWriter - ); - } -}; - -/** - * optional Policy policy = 1; - * @return {?proto.scoretrak.policy.v1.Policy} - */ -proto.scoretrak.policy.v1.GetResponse.prototype.getPolicy = function () { - return /** @type{?proto.scoretrak.policy.v1.Policy} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.policy.v1.Policy, 1) - ); -}; - -/** - * @param {?proto.scoretrak.policy.v1.Policy|undefined} value - * @return {!proto.scoretrak.policy.v1.GetResponse} returns this - */ -proto.scoretrak.policy.v1.GetResponse.prototype.setPolicy = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.policy.v1.GetResponse} returns this - */ -proto.scoretrak.policy.v1.GetResponse.prototype.clearPolicy = function () { - return this.setPolicy(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.policy.v1.GetResponse.prototype.hasPolicy = 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.scoretrak.policy.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.policy.v1.UpdateRequest.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.scoretrak.policy.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.policy.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - policy: - (f = msg.getPolicy()) && - proto.scoretrak.policy.v1.Policy.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.scoretrak.policy.v1.UpdateRequest} - */ -proto.scoretrak.policy.v1.UpdateRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.policy.v1.UpdateRequest(); - return proto.scoretrak.policy.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.policy.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.policy.v1.UpdateRequest} - */ -proto.scoretrak.policy.v1.UpdateRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.policy.v1.Policy(); - reader.readMessage( - value, - proto.scoretrak.policy.v1.Policy.deserializeBinaryFromReader - ); - msg.setPolicy(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.policy.v1.UpdateRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.policy.v1.UpdateRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.policy.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.policy.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getPolicy(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.policy.v1.Policy.serializeBinaryToWriter - ); - } -}; - -/** - * optional Policy policy = 1; - * @return {?proto.scoretrak.policy.v1.Policy} - */ -proto.scoretrak.policy.v1.UpdateRequest.prototype.getPolicy = function () { - return /** @type{?proto.scoretrak.policy.v1.Policy} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.policy.v1.Policy, 1) - ); -}; - -/** - * @param {?proto.scoretrak.policy.v1.Policy|undefined} value - * @return {!proto.scoretrak.policy.v1.UpdateRequest} returns this - */ -proto.scoretrak.policy.v1.UpdateRequest.prototype.setPolicy = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.policy.v1.UpdateRequest} returns this - */ -proto.scoretrak.policy.v1.UpdateRequest.prototype.clearPolicy = function () { - return this.setPolicy(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.policy.v1.UpdateRequest.prototype.hasPolicy = 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.scoretrak.policy.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.policy.v1.UpdateResponse.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.scoretrak.policy.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.policy.v1.UpdateResponse.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.scoretrak.policy.v1.UpdateResponse} - */ -proto.scoretrak.policy.v1.UpdateResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.policy.v1.UpdateResponse(); - return proto.scoretrak.policy.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.policy.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.policy.v1.UpdateResponse} - */ -proto.scoretrak.policy.v1.UpdateResponse.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.scoretrak.policy.v1.UpdateResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.policy.v1.UpdateResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.policy.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.policy.v1.UpdateResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -goog.object.extend(exports, proto.scoretrak.policy.v1); diff --git a/src/lib/scoretrakapis/scoretrak/property/v1/PropertyServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/property/v1/PropertyServiceClientPb.ts deleted file mode 100644 index 3fc290a..0000000 --- a/src/lib/scoretrakapis/scoretrak/property/v1/PropertyServiceClientPb.ts +++ /dev/null @@ -1,340 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.property.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_property_v1_property_pb from "../../../scoretrak/property/v1/property_pb"; - -export class PropertyServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.property.v1.PropertyService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_property_v1_property_pb.GetAllRequest, - scoretrak_property_v1_property_pb.GetAllResponse, - (request: scoretrak_property_v1_property_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_property_v1_property_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_property_v1_property_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_property_v1_property_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_property_v1_property_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorDelete = new grpcWeb.MethodDescriptor( - "/scoretrak.property.v1.PropertyService/Delete", - grpcWeb.MethodType.UNARY, - scoretrak_property_v1_property_pb.DeleteRequest, - scoretrak_property_v1_property_pb.DeleteResponse, - (request: scoretrak_property_v1_property_pb.DeleteRequest) => { - return request.serializeBinary(); - }, - scoretrak_property_v1_property_pb.DeleteResponse.deserializeBinary - ); - - delete( - request: scoretrak_property_v1_property_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - delete( - request: scoretrak_property_v1_property_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.DeleteResponse - ) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: scoretrak_property_v1_property_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.DeleteResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete - ); - } - - methodDescriptorStore = new grpcWeb.MethodDescriptor( - "/scoretrak.property.v1.PropertyService/Store", - grpcWeb.MethodType.UNARY, - scoretrak_property_v1_property_pb.StoreRequest, - scoretrak_property_v1_property_pb.StoreResponse, - (request: scoretrak_property_v1_property_pb.StoreRequest) => { - return request.serializeBinary(); - }, - scoretrak_property_v1_property_pb.StoreResponse.deserializeBinary - ); - - store( - request: scoretrak_property_v1_property_pb.StoreRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - store( - request: scoretrak_property_v1_property_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.StoreResponse - ) => void - ): grpcWeb.ClientReadableStream; - - store( - request: scoretrak_property_v1_property_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.StoreResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/Store", - request, - metadata || {}, - this.methodDescriptorStore, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/Store", - request, - metadata || {}, - this.methodDescriptorStore - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.property.v1.PropertyService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_property_v1_property_pb.UpdateRequest, - scoretrak_property_v1_property_pb.UpdateResponse, - (request: scoretrak_property_v1_property_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_property_v1_property_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_property_v1_property_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_property_v1_property_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_property_v1_property_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.property.v1.PropertyService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } - - methodDescriptorGetByServiceIDKey = new grpcWeb.MethodDescriptor( - "/scoretrak.property.v1.PropertyService/GetByServiceIDKey", - grpcWeb.MethodType.UNARY, - scoretrak_property_v1_property_pb.GetByServiceIDKeyRequest, - scoretrak_property_v1_property_pb.GetByServiceIDKeyResponse, - (request: scoretrak_property_v1_property_pb.GetByServiceIDKeyRequest) => { - return request.serializeBinary(); - }, - scoretrak_property_v1_property_pb.GetByServiceIDKeyResponse.deserializeBinary - ); - - getByServiceIDKey( - request: scoretrak_property_v1_property_pb.GetByServiceIDKeyRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByServiceIDKey( - request: scoretrak_property_v1_property_pb.GetByServiceIDKeyRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.GetByServiceIDKeyResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByServiceIDKey( - request: scoretrak_property_v1_property_pb.GetByServiceIDKeyRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.GetByServiceIDKeyResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.property.v1.PropertyService/GetByServiceIDKey", - request, - metadata || {}, - this.methodDescriptorGetByServiceIDKey, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.property.v1.PropertyService/GetByServiceIDKey", - request, - metadata || {}, - this.methodDescriptorGetByServiceIDKey - ); - } - - methodDescriptorGetAllByServiceID = new grpcWeb.MethodDescriptor( - "/scoretrak.property.v1.PropertyService/GetAllByServiceID", - grpcWeb.MethodType.UNARY, - scoretrak_property_v1_property_pb.GetAllByServiceIDRequest, - scoretrak_property_v1_property_pb.GetAllByServiceIDResponse, - (request: scoretrak_property_v1_property_pb.GetAllByServiceIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_property_v1_property_pb.GetAllByServiceIDResponse.deserializeBinary - ); - - getAllByServiceID( - request: scoretrak_property_v1_property_pb.GetAllByServiceIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAllByServiceID( - request: scoretrak_property_v1_property_pb.GetAllByServiceIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.GetAllByServiceIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAllByServiceID( - request: scoretrak_property_v1_property_pb.GetAllByServiceIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_property_v1_property_pb.GetAllByServiceIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.property.v1.PropertyService/GetAllByServiceID", - request, - metadata || {}, - this.methodDescriptorGetAllByServiceID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.property.v1.PropertyService/GetAllByServiceID", - request, - metadata || {}, - this.methodDescriptorGetAllByServiceID - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/property/v1/property_pb.d.ts b/src/lib/scoretrakapis/scoretrak/property/v1/property_pb.d.ts deleted file mode 100644 index b2f9091..0000000 --- a/src/lib/scoretrakapis/scoretrak/property/v1/property_pb.d.ts +++ /dev/null @@ -1,383 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; - -export class Property extends jspb.Message { - getServiceId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceId(value?: scoretrak_proto_v1_uuid_pb.UUID): Property; - hasServiceId(): boolean; - clearServiceId(): Property; - - getKey(): string; - setKey(value: string): Property; - - getValue(): google_protobuf_wrappers_pb.StringValue | undefined; - setValue(value?: google_protobuf_wrappers_pb.StringValue): Property; - hasValue(): boolean; - clearValue(): Property; - - getStatus(): Status; - setStatus(value: Status): Property; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Property.AsObject; - static toObject(includeInstance: boolean, msg: Property): Property.AsObject; - static serializeBinaryToWriter( - message: Property, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Property; - static deserializeBinaryFromReader( - message: Property, - reader: jspb.BinaryReader - ): Property; -} - -export namespace Property { - export type AsObject = { - serviceId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - key: string; - value?: google_protobuf_wrappers_pb.StringValue.AsObject; - status: Status; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getPropertiesList(): Array; - setPropertiesList(value: Array): GetAllResponse; - clearPropertiesList(): GetAllResponse; - addProperties(value?: Property, index?: number): Property; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - propertiesList: Array; - }; -} - -export class GetByServiceIDKeyRequest extends jspb.Message { - getServiceId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceId( - value?: scoretrak_proto_v1_uuid_pb.UUID - ): GetByServiceIDKeyRequest; - hasServiceId(): boolean; - clearServiceId(): GetByServiceIDKeyRequest; - - getKey(): string; - setKey(value: string): GetByServiceIDKeyRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByServiceIDKeyRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByServiceIDKeyRequest - ): GetByServiceIDKeyRequest.AsObject; - static serializeBinaryToWriter( - message: GetByServiceIDKeyRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByServiceIDKeyRequest; - static deserializeBinaryFromReader( - message: GetByServiceIDKeyRequest, - reader: jspb.BinaryReader - ): GetByServiceIDKeyRequest; -} - -export namespace GetByServiceIDKeyRequest { - export type AsObject = { - serviceId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - key: string; - }; -} - -export class GetByServiceIDKeyResponse extends jspb.Message { - getProperty(): Property | undefined; - setProperty(value?: Property): GetByServiceIDKeyResponse; - hasProperty(): boolean; - clearProperty(): GetByServiceIDKeyResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByServiceIDKeyResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByServiceIDKeyResponse - ): GetByServiceIDKeyResponse.AsObject; - static serializeBinaryToWriter( - message: GetByServiceIDKeyResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByServiceIDKeyResponse; - static deserializeBinaryFromReader( - message: GetByServiceIDKeyResponse, - reader: jspb.BinaryReader - ): GetByServiceIDKeyResponse; -} - -export namespace GetByServiceIDKeyResponse { - export type AsObject = { - property?: Property.AsObject; - }; -} - -export class GetAllByServiceIDRequest extends jspb.Message { - getServiceId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceId( - value?: scoretrak_proto_v1_uuid_pb.UUID - ): GetAllByServiceIDRequest; - hasServiceId(): boolean; - clearServiceId(): GetAllByServiceIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllByServiceIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllByServiceIDRequest - ): GetAllByServiceIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllByServiceIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllByServiceIDRequest; - static deserializeBinaryFromReader( - message: GetAllByServiceIDRequest, - reader: jspb.BinaryReader - ): GetAllByServiceIDRequest; -} - -export namespace GetAllByServiceIDRequest { - export type AsObject = { - serviceId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetAllByServiceIDResponse extends jspb.Message { - getPropertiesList(): Array; - setPropertiesList(value: Array): GetAllByServiceIDResponse; - clearPropertiesList(): GetAllByServiceIDResponse; - addProperties(value?: Property, index?: number): Property; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllByServiceIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllByServiceIDResponse - ): GetAllByServiceIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllByServiceIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllByServiceIDResponse; - static deserializeBinaryFromReader( - message: GetAllByServiceIDResponse, - reader: jspb.BinaryReader - ): GetAllByServiceIDResponse; -} - -export namespace GetAllByServiceIDResponse { - export type AsObject = { - propertiesList: Array; - }; -} - -export class DeleteRequest extends jspb.Message { - getServiceId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceId(value?: scoretrak_proto_v1_uuid_pb.UUID): DeleteRequest; - hasServiceId(): boolean; - clearServiceId(): DeleteRequest; - - getKey(): string; - setKey(value: string): DeleteRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteRequest - ): DeleteRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteRequest; - static deserializeBinaryFromReader( - message: DeleteRequest, - reader: jspb.BinaryReader - ): DeleteRequest; -} - -export namespace DeleteRequest { - export type AsObject = { - serviceId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - key: string; - }; -} - -export class DeleteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteResponse - ): DeleteResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteResponse; - static deserializeBinaryFromReader( - message: DeleteResponse, - reader: jspb.BinaryReader - ): DeleteResponse; -} - -export namespace DeleteResponse { - export type AsObject = {}; -} - -export class StoreRequest extends jspb.Message { - getPropertiesList(): Array; - setPropertiesList(value: Array): StoreRequest; - clearPropertiesList(): StoreRequest; - addProperties(value?: Property, index?: number): Property; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreRequest - ): StoreRequest.AsObject; - static serializeBinaryToWriter( - message: StoreRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreRequest; - static deserializeBinaryFromReader( - message: StoreRequest, - reader: jspb.BinaryReader - ): StoreRequest; -} - -export namespace StoreRequest { - export type AsObject = { - propertiesList: Array; - }; -} - -export class StoreResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreResponse - ): StoreResponse.AsObject; - static serializeBinaryToWriter( - message: StoreResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreResponse; - static deserializeBinaryFromReader( - message: StoreResponse, - reader: jspb.BinaryReader - ): StoreResponse; -} - -export namespace StoreResponse { - export type AsObject = {}; -} - -export class UpdateRequest extends jspb.Message { - getProperty(): Property | undefined; - setProperty(value?: Property): UpdateRequest; - hasProperty(): boolean; - clearProperty(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - property?: Property.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} - -export enum Status { - STATUS_UNSPECIFIED = 0, - STATUS_VIEW = 1, - STATUS_EDIT = 2, - STATUS_HIDE = 3, -} diff --git a/src/lib/scoretrakapis/scoretrak/property/v1/property_pb.js b/src/lib/scoretrakapis/scoretrak/property/v1/property_pb.js deleted file mode 100644 index b9058f3..0000000 --- a/src/lib/scoretrakapis/scoretrak/property/v1/property_pb.js +++ /dev/null @@ -1,2571 +0,0 @@ -// source: scoretrak/property/v1/property.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -goog.exportSymbol("proto.scoretrak.property.v1.DeleteRequest", null, global); -goog.exportSymbol("proto.scoretrak.property.v1.DeleteResponse", null, global); -goog.exportSymbol( - "proto.scoretrak.property.v1.GetAllByServiceIDRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.property.v1.GetAllByServiceIDResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.property.v1.GetAllRequest", null, global); -goog.exportSymbol("proto.scoretrak.property.v1.GetAllResponse", null, global); -goog.exportSymbol( - "proto.scoretrak.property.v1.GetByServiceIDKeyRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.property.v1.GetByServiceIDKeyResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.property.v1.Property", null, global); -goog.exportSymbol("proto.scoretrak.property.v1.Status", null, global); -goog.exportSymbol("proto.scoretrak.property.v1.StoreRequest", null, global); -goog.exportSymbol("proto.scoretrak.property.v1.StoreResponse", null, global); -goog.exportSymbol("proto.scoretrak.property.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.property.v1.UpdateResponse", 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.scoretrak.property.v1.Property = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.property.v1.Property, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.Property.displayName = - "proto.scoretrak.property.v1.Property"; -} -/** - * 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.scoretrak.property.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.property.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.GetAllRequest.displayName = - "proto.scoretrak.property.v1.GetAllRequest"; -} -/** - * 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.scoretrak.property.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.property.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.property.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.GetAllResponse.displayName = - "proto.scoretrak.property.v1.GetAllResponse"; -} -/** - * 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.scoretrak.property.v1.GetByServiceIDKeyRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.property.v1.GetByServiceIDKeyRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.GetByServiceIDKeyRequest.displayName = - "proto.scoretrak.property.v1.GetByServiceIDKeyRequest"; -} -/** - * 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.scoretrak.property.v1.GetByServiceIDKeyResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.property.v1.GetByServiceIDKeyResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.GetByServiceIDKeyResponse.displayName = - "proto.scoretrak.property.v1.GetByServiceIDKeyResponse"; -} -/** - * 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.scoretrak.property.v1.GetAllByServiceIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.property.v1.GetAllByServiceIDRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.GetAllByServiceIDRequest.displayName = - "proto.scoretrak.property.v1.GetAllByServiceIDRequest"; -} -/** - * 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.scoretrak.property.v1.GetAllByServiceIDResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.property.v1.GetAllByServiceIDResponse.repeatedFields_, - null - ); -}; -goog.inherits( - proto.scoretrak.property.v1.GetAllByServiceIDResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.GetAllByServiceIDResponse.displayName = - "proto.scoretrak.property.v1.GetAllByServiceIDResponse"; -} -/** - * 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.scoretrak.property.v1.DeleteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.property.v1.DeleteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.DeleteRequest.displayName = - "proto.scoretrak.property.v1.DeleteRequest"; -} -/** - * 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.scoretrak.property.v1.DeleteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.property.v1.DeleteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.DeleteResponse.displayName = - "proto.scoretrak.property.v1.DeleteResponse"; -} -/** - * 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.scoretrak.property.v1.StoreRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.property.v1.StoreRequest.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.property.v1.StoreRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.StoreRequest.displayName = - "proto.scoretrak.property.v1.StoreRequest"; -} -/** - * 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.scoretrak.property.v1.StoreResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.property.v1.StoreResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.StoreResponse.displayName = - "proto.scoretrak.property.v1.StoreResponse"; -} -/** - * 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.scoretrak.property.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.property.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.UpdateRequest.displayName = - "proto.scoretrak.property.v1.UpdateRequest"; -} -/** - * 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.scoretrak.property.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.property.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.property.v1.UpdateResponse.displayName = - "proto.scoretrak.property.v1.UpdateResponse"; -} - -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.scoretrak.property.v1.Property.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.Property.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.scoretrak.property.v1.Property} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.Property.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceId: - (f = msg.getServiceId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - key: jspb.Message.getFieldWithDefault(msg, 2, ""), - value: - (f = msg.getValue()) && - google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), - status: 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.scoretrak.property.v1.Property} - */ -proto.scoretrak.property.v1.Property.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.Property(); - return proto.scoretrak.property.v1.Property.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.Property} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.property.v1.Property.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 3: - var value = new google_protobuf_wrappers_pb.StringValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader - ); - msg.setValue(value); - break; - case 4: - var value = /** @type {!proto.scoretrak.property.v1.Status} */ ( - reader.readEnum() - ); - msg.setStatus(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.Property.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.Property.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.Property} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.Property.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getServiceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getValue(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f !== 0.0) { - writer.writeEnum(4, f); - } -}; - -/** - * optional scoretrak.proto.v1.UUID service_id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.property.v1.Property.prototype.getServiceId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.property.v1.Property} returns this - */ -proto.scoretrak.property.v1.Property.prototype.setServiceId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.property.v1.Property} returns this - */ -proto.scoretrak.property.v1.Property.prototype.clearServiceId = function () { - return this.setServiceId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.property.v1.Property.prototype.hasServiceId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string key = 2; - * @return {string} - */ -proto.scoretrak.property.v1.Property.prototype.getKey = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.property.v1.Property} returns this - */ -proto.scoretrak.property.v1.Property.prototype.setKey = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional google.protobuf.StringValue value = 3; - * @return {?proto.google.protobuf.StringValue} - */ -proto.scoretrak.property.v1.Property.prototype.getValue = function () { - return /** @type{?proto.google.protobuf.StringValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.StringValue, - 3 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.StringValue|undefined} value - * @return {!proto.scoretrak.property.v1.Property} returns this - */ -proto.scoretrak.property.v1.Property.prototype.setValue = function (value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.property.v1.Property} returns this - */ -proto.scoretrak.property.v1.Property.prototype.clearValue = function () { - return this.setValue(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.property.v1.Property.prototype.hasValue = function () { - return jspb.Message.getField(this, 3) != null; -}; - -/** - * optional Status status = 4; - * @return {!proto.scoretrak.property.v1.Status} - */ -proto.scoretrak.property.v1.Property.prototype.getStatus = function () { - return /** @type {!proto.scoretrak.property.v1.Status} */ ( - jspb.Message.getFieldWithDefault(this, 4, 0) - ); -}; - -/** - * @param {!proto.scoretrak.property.v1.Status} value - * @return {!proto.scoretrak.property.v1.Property} returns this - */ -proto.scoretrak.property.v1.Property.prototype.setStatus = function (value) { - return jspb.Message.setProto3EnumField(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.scoretrak.property.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.GetAllRequest.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.scoretrak.property.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.GetAllRequest.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.scoretrak.property.v1.GetAllRequest} - */ -proto.scoretrak.property.v1.GetAllRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.GetAllRequest(); - return proto.scoretrak.property.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.GetAllRequest} - */ -proto.scoretrak.property.v1.GetAllRequest.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.scoretrak.property.v1.GetAllRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.GetAllRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.GetAllRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.property.v1.GetAllResponse.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.scoretrak.property.v1.GetAllResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.GetAllResponse.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.scoretrak.property.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - propertiesList: jspb.Message.toObjectList( - msg.getPropertiesList(), - proto.scoretrak.property.v1.Property.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.scoretrak.property.v1.GetAllResponse} - */ -proto.scoretrak.property.v1.GetAllResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.GetAllResponse(); - return proto.scoretrak.property.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.GetAllResponse} - */ -proto.scoretrak.property.v1.GetAllResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.property.v1.Property(); - reader.readMessage( - value, - proto.scoretrak.property.v1.Property.deserializeBinaryFromReader - ); - msg.addProperties(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.GetAllResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.GetAllResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.GetAllResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getPropertiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.property.v1.Property.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Property properties = 1; - * @return {!Array} - */ -proto.scoretrak.property.v1.GetAllResponse.prototype.getPropertiesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.property.v1.Property, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.property.v1.GetAllResponse} returns this - */ -proto.scoretrak.property.v1.GetAllResponse.prototype.setPropertiesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.property.v1.Property=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.property.v1.GetAllResponse.prototype.addProperties = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.property.v1.Property, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.property.v1.GetAllResponse} returns this - */ -proto.scoretrak.property.v1.GetAllResponse.prototype.clearPropertiesList = - function () { - return this.setPropertiesList([]); - }; - -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.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.property.v1.GetByServiceIDKeyRequest.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.scoretrak.property.v1.GetByServiceIDKeyRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.GetByServiceIDKeyRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceId: - (f = msg.getServiceId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - key: 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.scoretrak.property.v1.GetByServiceIDKeyRequest} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.GetByServiceIDKeyRequest(); - return proto.scoretrak.property.v1.GetByServiceIDKeyRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.GetByServiceIDKeyRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.GetByServiceIDKeyRequest} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.GetByServiceIDKeyRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.GetByServiceIDKeyRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString(2, f); - } - }; - -/** - * optional scoretrak.proto.v1.UUID service_id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.getServiceId = - function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); - }; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.property.v1.GetByServiceIDKeyRequest} returns this - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.setServiceId = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.property.v1.GetByServiceIDKeyRequest} returns this - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.clearServiceId = - function () { - return this.setServiceId(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.hasServiceId = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional string key = 2; - * @return {string} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.getKey = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.scoretrak.property.v1.GetByServiceIDKeyRequest} returns this - */ -proto.scoretrak.property.v1.GetByServiceIDKeyRequest.prototype.setKey = - 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.scoretrak.property.v1.GetByServiceIDKeyResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.property.v1.GetByServiceIDKeyResponse.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.scoretrak.property.v1.GetByServiceIDKeyResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.GetByServiceIDKeyResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - property: - (f = msg.getProperty()) && - proto.scoretrak.property.v1.Property.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.scoretrak.property.v1.GetByServiceIDKeyResponse} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.GetByServiceIDKeyResponse(); - return proto.scoretrak.property.v1.GetByServiceIDKeyResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.GetByServiceIDKeyResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.GetByServiceIDKeyResponse} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.property.v1.Property(); - reader.readMessage( - value, - proto.scoretrak.property.v1.Property.deserializeBinaryFromReader - ); - msg.setProperty(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.GetByServiceIDKeyResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.GetByServiceIDKeyResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getProperty(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.property.v1.Property.serializeBinaryToWriter - ); - } - }; - -/** - * optional Property property = 1; - * @return {?proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.prototype.getProperty = - function () { - return /** @type{?proto.scoretrak.property.v1.Property} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.property.v1.Property, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.property.v1.Property|undefined} value - * @return {!proto.scoretrak.property.v1.GetByServiceIDKeyResponse} returns this - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.prototype.setProperty = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.property.v1.GetByServiceIDKeyResponse} returns this - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.prototype.clearProperty = - function () { - return this.setProperty(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.property.v1.GetByServiceIDKeyResponse.prototype.hasProperty = - 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.scoretrak.property.v1.GetAllByServiceIDRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.property.v1.GetAllByServiceIDRequest.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.scoretrak.property.v1.GetAllByServiceIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.GetAllByServiceIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceId: - (f = msg.getServiceId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.property.v1.GetAllByServiceIDRequest} - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.GetAllByServiceIDRequest(); - return proto.scoretrak.property.v1.GetAllByServiceIDRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.GetAllByServiceIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.GetAllByServiceIDRequest} - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.GetAllByServiceIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.GetAllByServiceIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID service_id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.prototype.getServiceId = - function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); - }; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.property.v1.GetAllByServiceIDRequest} returns this - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.prototype.setServiceId = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.property.v1.GetAllByServiceIDRequest} returns this - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.prototype.clearServiceId = - function () { - return this.setServiceId(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.property.v1.GetAllByServiceIDRequest.prototype.hasServiceId = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.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.scoretrak.property.v1.GetAllByServiceIDResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.property.v1.GetAllByServiceIDResponse.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.scoretrak.property.v1.GetAllByServiceIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.GetAllByServiceIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - propertiesList: jspb.Message.toObjectList( - msg.getPropertiesList(), - proto.scoretrak.property.v1.Property.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.scoretrak.property.v1.GetAllByServiceIDResponse} - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.GetAllByServiceIDResponse(); - return proto.scoretrak.property.v1.GetAllByServiceIDResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.GetAllByServiceIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.GetAllByServiceIDResponse} - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.property.v1.Property(); - reader.readMessage( - value, - proto.scoretrak.property.v1.Property.deserializeBinaryFromReader - ); - msg.addProperties(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.GetAllByServiceIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.GetAllByServiceIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getPropertiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.property.v1.Property.serializeBinaryToWriter - ); - } - }; - -/** - * repeated Property properties = 1; - * @return {!Array} - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.prototype.getPropertiesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.property.v1.Property, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.property.v1.GetAllByServiceIDResponse} returns this - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.prototype.setPropertiesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.property.v1.Property=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.prototype.addProperties = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.property.v1.Property, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.property.v1.GetAllByServiceIDResponse} returns this - */ -proto.scoretrak.property.v1.GetAllByServiceIDResponse.prototype.clearPropertiesList = - function () { - return this.setPropertiesList([]); - }; - -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.scoretrak.property.v1.DeleteRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.DeleteRequest.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.scoretrak.property.v1.DeleteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.DeleteRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceId: - (f = msg.getServiceId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - key: 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.scoretrak.property.v1.DeleteRequest} - */ -proto.scoretrak.property.v1.DeleteRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.DeleteRequest(); - return proto.scoretrak.property.v1.DeleteRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.DeleteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.DeleteRequest} - */ -proto.scoretrak.property.v1.DeleteRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.DeleteRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.DeleteRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.DeleteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.DeleteRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getServiceId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString(2, f); - } -}; - -/** - * optional scoretrak.proto.v1.UUID service_id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.property.v1.DeleteRequest.prototype.getServiceId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.property.v1.DeleteRequest} returns this - */ -proto.scoretrak.property.v1.DeleteRequest.prototype.setServiceId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.property.v1.DeleteRequest} returns this - */ -proto.scoretrak.property.v1.DeleteRequest.prototype.clearServiceId = - function () { - return this.setServiceId(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.property.v1.DeleteRequest.prototype.hasServiceId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string key = 2; - * @return {string} - */ -proto.scoretrak.property.v1.DeleteRequest.prototype.getKey = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.property.v1.DeleteRequest} returns this - */ -proto.scoretrak.property.v1.DeleteRequest.prototype.setKey = 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.scoretrak.property.v1.DeleteResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.DeleteResponse.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.scoretrak.property.v1.DeleteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.DeleteResponse.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.scoretrak.property.v1.DeleteResponse} - */ -proto.scoretrak.property.v1.DeleteResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.DeleteResponse(); - return proto.scoretrak.property.v1.DeleteResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.DeleteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.DeleteResponse} - */ -proto.scoretrak.property.v1.DeleteResponse.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.scoretrak.property.v1.DeleteResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.DeleteResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.DeleteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.DeleteResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.property.v1.StoreRequest.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.scoretrak.property.v1.StoreRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.StoreRequest.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.scoretrak.property.v1.StoreRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.StoreRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - propertiesList: jspb.Message.toObjectList( - msg.getPropertiesList(), - proto.scoretrak.property.v1.Property.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.scoretrak.property.v1.StoreRequest} - */ -proto.scoretrak.property.v1.StoreRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.StoreRequest(); - return proto.scoretrak.property.v1.StoreRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.StoreRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.StoreRequest} - */ -proto.scoretrak.property.v1.StoreRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.property.v1.Property(); - reader.readMessage( - value, - proto.scoretrak.property.v1.Property.deserializeBinaryFromReader - ); - msg.addProperties(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.StoreRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.StoreRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.StoreRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.StoreRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getPropertiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.property.v1.Property.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Property properties = 1; - * @return {!Array} - */ -proto.scoretrak.property.v1.StoreRequest.prototype.getPropertiesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.property.v1.Property, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.property.v1.StoreRequest} returns this - */ -proto.scoretrak.property.v1.StoreRequest.prototype.setPropertiesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.property.v1.Property=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.property.v1.StoreRequest.prototype.addProperties = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.property.v1.Property, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.property.v1.StoreRequest} returns this - */ -proto.scoretrak.property.v1.StoreRequest.prototype.clearPropertiesList = - function () { - return this.setPropertiesList([]); - }; - -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.scoretrak.property.v1.StoreResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.StoreResponse.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.scoretrak.property.v1.StoreResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.StoreResponse.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.scoretrak.property.v1.StoreResponse} - */ -proto.scoretrak.property.v1.StoreResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.StoreResponse(); - return proto.scoretrak.property.v1.StoreResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.StoreResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.StoreResponse} - */ -proto.scoretrak.property.v1.StoreResponse.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.scoretrak.property.v1.StoreResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.StoreResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.StoreResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.StoreResponse.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.scoretrak.property.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.UpdateRequest.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.scoretrak.property.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - property: - (f = msg.getProperty()) && - proto.scoretrak.property.v1.Property.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.scoretrak.property.v1.UpdateRequest} - */ -proto.scoretrak.property.v1.UpdateRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.UpdateRequest(); - return proto.scoretrak.property.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.UpdateRequest} - */ -proto.scoretrak.property.v1.UpdateRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.property.v1.Property(); - reader.readMessage( - value, - proto.scoretrak.property.v1.Property.deserializeBinaryFromReader - ); - msg.setProperty(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.property.v1.UpdateRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.UpdateRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getProperty(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.property.v1.Property.serializeBinaryToWriter - ); - } -}; - -/** - * optional Property property = 1; - * @return {?proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.property.v1.UpdateRequest.prototype.getProperty = function () { - return /** @type{?proto.scoretrak.property.v1.Property} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.property.v1.Property, 1) - ); -}; - -/** - * @param {?proto.scoretrak.property.v1.Property|undefined} value - * @return {!proto.scoretrak.property.v1.UpdateRequest} returns this - */ -proto.scoretrak.property.v1.UpdateRequest.prototype.setProperty = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.property.v1.UpdateRequest} returns this - */ -proto.scoretrak.property.v1.UpdateRequest.prototype.clearProperty = - function () { - return this.setProperty(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.property.v1.UpdateRequest.prototype.hasProperty = 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.scoretrak.property.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.property.v1.UpdateResponse.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.scoretrak.property.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.property.v1.UpdateResponse.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.scoretrak.property.v1.UpdateResponse} - */ -proto.scoretrak.property.v1.UpdateResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.property.v1.UpdateResponse(); - return proto.scoretrak.property.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.property.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.property.v1.UpdateResponse} - */ -proto.scoretrak.property.v1.UpdateResponse.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.scoretrak.property.v1.UpdateResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.property.v1.UpdateResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.property.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.property.v1.UpdateResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * @enum {number} - */ -proto.scoretrak.property.v1.Status = { - STATUS_UNSPECIFIED: 0, - STATUS_VIEW: 1, - STATUS_EDIT: 2, - STATUS_HIDE: 3, -}; - -goog.object.extend(exports, proto.scoretrak.property.v1); diff --git a/src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.d.ts b/src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.d.ts deleted file mode 100644 index 9bce88f..0000000 --- a/src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import * as jspb from "google-protobuf"; - -export class UUID extends jspb.Message { - getValue(): string; - setValue(value: string): UUID; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UUID.AsObject; - static toObject(includeInstance: boolean, msg: UUID): UUID.AsObject; - static serializeBinaryToWriter( - message: UUID, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UUID; - static deserializeBinaryFromReader( - message: UUID, - reader: jspb.BinaryReader - ): UUID; -} - -export namespace UUID { - export type AsObject = { - value: string; - }; -} diff --git a/src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.js b/src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.js deleted file mode 100644 index c40ae67..0000000 --- a/src/lib/scoretrakapis/scoretrak/proto/v1/uuid_pb.js +++ /dev/null @@ -1,180 +0,0 @@ -// source: scoretrak/proto/v1/uuid.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.scoretrak.proto.v1.UUID", 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.scoretrak.proto.v1.UUID = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.proto.v1.UUID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.proto.v1.UUID.displayName = "proto.scoretrak.proto.v1.UUID"; -} - -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.scoretrak.proto.v1.UUID.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.proto.v1.UUID.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.scoretrak.proto.v1.UUID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.proto.v1.UUID.toObject = function (includeInstance, msg) { - var f, - obj = { - value: 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.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.proto.v1.UUID.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.proto.v1.UUID(); - return proto.scoretrak.proto.v1.UUID.deserializeBinaryFromReader(msg, reader); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.proto.v1.UUID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.proto.v1.UUID.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.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.proto.v1.UUID.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.proto.v1.UUID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.proto.v1.UUID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.proto.v1.UUID.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getValue(); - if (f.length > 0) { - writer.writeString(1, f); - } -}; - -/** - * optional string value = 1; - * @return {string} - */ -proto.scoretrak.proto.v1.UUID.prototype.getValue = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.proto.v1.UUID} returns this - */ -proto.scoretrak.proto.v1.UUID.prototype.setValue = function (value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - -goog.object.extend(exports, proto.scoretrak.proto.v1); diff --git a/src/lib/scoretrakapis/scoretrak/report/v1/ReportServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/report/v1/ReportServiceClientPb.ts deleted file mode 100644 index bec9f0f..0000000 --- a/src/lib/scoretrakapis/scoretrak/report/v1/ReportServiceClientPb.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.report.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_report_v1_report_pb from "../../../scoretrak/report/v1/report_pb"; - -export class ReportServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGet = new grpcWeb.MethodDescriptor( - "/scoretrak.report.v1.ReportService/Get", - grpcWeb.MethodType.SERVER_STREAMING, - scoretrak_report_v1_report_pb.GetRequest, - scoretrak_report_v1_report_pb.GetResponse, - (request: scoretrak_report_v1_report_pb.GetRequest) => { - return request.serializeBinary(); - }, - scoretrak_report_v1_report_pb.GetResponse.deserializeBinary - ); - - get( - request: scoretrak_report_v1_report_pb.GetRequest, - metadata?: grpcWeb.Metadata - ): grpcWeb.ClientReadableStream { - return this.client_.serverStreaming( - this.hostname_ + "/scoretrak.report.v1.ReportService/Get", - request, - metadata || {}, - this.methodDescriptorGet - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/report/v1/report_pb.d.ts b/src/lib/scoretrakapis/scoretrak/report/v1/report_pb.d.ts deleted file mode 100644 index 9a5d8ce..0000000 --- a/src/lib/scoretrakapis/scoretrak/report/v1/report_pb.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; - -export class Report extends jspb.Message { - getCache(): string; - setCache(value: string): Report; - - getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Report; - hasUpdatedAt(): boolean; - clearUpdatedAt(): Report; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Report.AsObject; - static toObject(includeInstance: boolean, msg: Report): Report.AsObject; - static serializeBinaryToWriter( - message: Report, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Report; - static deserializeBinaryFromReader( - message: Report, - reader: jspb.BinaryReader - ): Report; -} - -export namespace Report { - export type AsObject = { - cache: string; - updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject; - }; -} - -export class GetRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetRequest - ): GetRequest.AsObject; - static serializeBinaryToWriter( - message: GetRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetRequest; - static deserializeBinaryFromReader( - message: GetRequest, - reader: jspb.BinaryReader - ): GetRequest; -} - -export namespace GetRequest { - export type AsObject = {}; -} - -export class GetResponse extends jspb.Message { - getReport(): Report | undefined; - setReport(value?: Report): GetResponse; - hasReport(): boolean; - clearReport(): GetResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetResponse - ): GetResponse.AsObject; - static serializeBinaryToWriter( - message: GetResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetResponse; - static deserializeBinaryFromReader( - message: GetResponse, - reader: jspb.BinaryReader - ): GetResponse; -} - -export namespace GetResponse { - export type AsObject = { - report?: Report.AsObject; - }; -} diff --git a/src/lib/scoretrakapis/scoretrak/report/v1/report_pb.js b/src/lib/scoretrakapis/scoretrak/report/v1/report_pb.js deleted file mode 100644 index cb4e365..0000000 --- a/src/lib/scoretrakapis/scoretrak/report/v1/report_pb.js +++ /dev/null @@ -1,559 +0,0 @@ -// source: scoretrak/report/v1/report.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 google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js"); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol("proto.scoretrak.report.v1.GetRequest", null, global); -goog.exportSymbol("proto.scoretrak.report.v1.GetResponse", null, global); -goog.exportSymbol("proto.scoretrak.report.v1.Report", 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.scoretrak.report.v1.Report = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.report.v1.Report, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.report.v1.Report.displayName = - "proto.scoretrak.report.v1.Report"; -} -/** - * 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.scoretrak.report.v1.GetRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.report.v1.GetRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.report.v1.GetRequest.displayName = - "proto.scoretrak.report.v1.GetRequest"; -} -/** - * 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.scoretrak.report.v1.GetResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.report.v1.GetResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.report.v1.GetResponse.displayName = - "proto.scoretrak.report.v1.GetResponse"; -} - -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.scoretrak.report.v1.Report.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.report.v1.Report.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.scoretrak.report.v1.Report} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.report.v1.Report.toObject = function (includeInstance, msg) { - var f, - obj = { - cache: jspb.Message.getFieldWithDefault(msg, 2, ""), - updatedAt: - (f = msg.getUpdatedAt()) && - 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.scoretrak.report.v1.Report} - */ -proto.scoretrak.report.v1.Report.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.report.v1.Report(); - return proto.scoretrak.report.v1.Report.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.report.v1.Report} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.report.v1.Report} - */ -proto.scoretrak.report.v1.Report.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCache(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp(); - reader.readMessage( - value, - google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader - ); - msg.setUpdatedAt(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.report.v1.Report.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.report.v1.Report.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.report.v1.Report} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.report.v1.Report.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getCache(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getUpdatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - -/** - * optional string cache = 2; - * @return {string} - */ -proto.scoretrak.report.v1.Report.prototype.getCache = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.report.v1.Report} returns this - */ -proto.scoretrak.report.v1.Report.prototype.setCache = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional google.protobuf.Timestamp updated_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.scoretrak.report.v1.Report.prototype.getUpdatedAt = 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.scoretrak.report.v1.Report} returns this - */ -proto.scoretrak.report.v1.Report.prototype.setUpdatedAt = function (value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.report.v1.Report} returns this - */ -proto.scoretrak.report.v1.Report.prototype.clearUpdatedAt = function () { - return this.setUpdatedAt(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.report.v1.Report.prototype.hasUpdatedAt = 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.scoretrak.report.v1.GetRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.report.v1.GetRequest.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.scoretrak.report.v1.GetRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.report.v1.GetRequest.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.scoretrak.report.v1.GetRequest} - */ -proto.scoretrak.report.v1.GetRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.report.v1.GetRequest(); - return proto.scoretrak.report.v1.GetRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.report.v1.GetRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.report.v1.GetRequest} - */ -proto.scoretrak.report.v1.GetRequest.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.scoretrak.report.v1.GetRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.report.v1.GetRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.report.v1.GetRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.report.v1.GetRequest.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.scoretrak.report.v1.GetResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.report.v1.GetResponse.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.scoretrak.report.v1.GetResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.report.v1.GetResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - report: - (f = msg.getReport()) && - proto.scoretrak.report.v1.Report.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.scoretrak.report.v1.GetResponse} - */ -proto.scoretrak.report.v1.GetResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.report.v1.GetResponse(); - return proto.scoretrak.report.v1.GetResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.report.v1.GetResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.report.v1.GetResponse} - */ -proto.scoretrak.report.v1.GetResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.report.v1.Report(); - reader.readMessage( - value, - proto.scoretrak.report.v1.Report.deserializeBinaryFromReader - ); - msg.setReport(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.report.v1.GetResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.report.v1.GetResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.report.v1.GetResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.report.v1.GetResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getReport(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.report.v1.Report.serializeBinaryToWriter - ); - } -}; - -/** - * optional Report report = 1; - * @return {?proto.scoretrak.report.v1.Report} - */ -proto.scoretrak.report.v1.GetResponse.prototype.getReport = function () { - return /** @type{?proto.scoretrak.report.v1.Report} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.report.v1.Report, 1) - ); -}; - -/** - * @param {?proto.scoretrak.report.v1.Report|undefined} value - * @return {!proto.scoretrak.report.v1.GetResponse} returns this - */ -proto.scoretrak.report.v1.GetResponse.prototype.setReport = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.report.v1.GetResponse} returns this - */ -proto.scoretrak.report.v1.GetResponse.prototype.clearReport = function () { - return this.setReport(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.report.v1.GetResponse.prototype.hasReport = function () { - return jspb.Message.getField(this, 1) != null; -}; - -goog.object.extend(exports, proto.scoretrak.report.v1); diff --git a/src/lib/scoretrakapis/scoretrak/round/v1/RoundServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/round/v1/RoundServiceClientPb.ts deleted file mode 100644 index e8f6fc7..0000000 --- a/src/lib/scoretrakapis/scoretrak/round/v1/RoundServiceClientPb.ts +++ /dev/null @@ -1,238 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.round.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_round_v1_round_pb from "../../../scoretrak/round/v1/round_pb"; - -export class RoundServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetLastNonElapsingRound = new grpcWeb.MethodDescriptor( - "/scoretrak.round.v1.RoundService/GetLastNonElapsingRound", - grpcWeb.MethodType.UNARY, - scoretrak_round_v1_round_pb.GetLastNonElapsingRoundRequest, - scoretrak_round_v1_round_pb.GetLastNonElapsingRoundResponse, - (request: scoretrak_round_v1_round_pb.GetLastNonElapsingRoundRequest) => { - return request.serializeBinary(); - }, - scoretrak_round_v1_round_pb.GetLastNonElapsingRoundResponse.deserializeBinary - ); - - getLastNonElapsingRound( - request: scoretrak_round_v1_round_pb.GetLastNonElapsingRoundRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getLastNonElapsingRound( - request: scoretrak_round_v1_round_pb.GetLastNonElapsingRoundRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetLastNonElapsingRoundResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getLastNonElapsingRound( - request: scoretrak_round_v1_round_pb.GetLastNonElapsingRoundRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetLastNonElapsingRoundResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.round.v1.RoundService/GetLastNonElapsingRound", - request, - metadata || {}, - this.methodDescriptorGetLastNonElapsingRound, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.round.v1.RoundService/GetLastNonElapsingRound", - request, - metadata || {}, - this.methodDescriptorGetLastNonElapsingRound - ); - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.round.v1.RoundService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_round_v1_round_pb.GetAllRequest, - scoretrak_round_v1_round_pb.GetAllResponse, - (request: scoretrak_round_v1_round_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_round_v1_round_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_round_v1_round_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_round_v1_round_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_round_v1_round_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.round.v1.RoundService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.round.v1.RoundService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorGetByID = new grpcWeb.MethodDescriptor( - "/scoretrak.round.v1.RoundService/GetByID", - grpcWeb.MethodType.UNARY, - scoretrak_round_v1_round_pb.GetByIDRequest, - scoretrak_round_v1_round_pb.GetByIDResponse, - (request: scoretrak_round_v1_round_pb.GetByIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_round_v1_round_pb.GetByIDResponse.deserializeBinary - ); - - getByID( - request: scoretrak_round_v1_round_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByID( - request: scoretrak_round_v1_round_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetByIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByID( - request: scoretrak_round_v1_round_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetByIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.round.v1.RoundService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.round.v1.RoundService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID - ); - } - - methodDescriptorGetLastRound = new grpcWeb.MethodDescriptor( - "/scoretrak.round.v1.RoundService/GetLastRound", - grpcWeb.MethodType.UNARY, - scoretrak_round_v1_round_pb.GetLastRoundRequest, - scoretrak_round_v1_round_pb.GetLastRoundResponse, - (request: scoretrak_round_v1_round_pb.GetLastRoundRequest) => { - return request.serializeBinary(); - }, - scoretrak_round_v1_round_pb.GetLastRoundResponse.deserializeBinary - ); - - getLastRound( - request: scoretrak_round_v1_round_pb.GetLastRoundRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getLastRound( - request: scoretrak_round_v1_round_pb.GetLastRoundRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetLastRoundResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getLastRound( - request: scoretrak_round_v1_round_pb.GetLastRoundRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_round_v1_round_pb.GetLastRoundResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.round.v1.RoundService/GetLastRound", - request, - metadata || {}, - this.methodDescriptorGetLastRound, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.round.v1.RoundService/GetLastRound", - request, - metadata || {}, - this.methodDescriptorGetLastRound - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/round/v1/round_pb.d.ts b/src/lib/scoretrakapis/scoretrak/round/v1/round_pb.d.ts deleted file mode 100644 index 5ecefff..0000000 --- a/src/lib/scoretrakapis/scoretrak/round/v1/round_pb.d.ts +++ /dev/null @@ -1,266 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; -import * as scoretrak_check_v1_check_pb from "../../../scoretrak/check/v1/check_pb"; - -export class Round extends jspb.Message { - getId(): number; - setId(value: number): Round; - - getStart(): google_protobuf_timestamp_pb.Timestamp | undefined; - setStart(value?: google_protobuf_timestamp_pb.Timestamp): Round; - hasStart(): boolean; - clearStart(): Round; - - getNote(): string; - setNote(value: string): Round; - - getErr(): string; - setErr(value: string): Round; - - getFinish(): google_protobuf_timestamp_pb.Timestamp | undefined; - setFinish(value?: google_protobuf_timestamp_pb.Timestamp): Round; - hasFinish(): boolean; - clearFinish(): Round; - - getChecksList(): Array; - setChecksList(value: Array): Round; - clearChecksList(): Round; - addChecks( - value?: scoretrak_check_v1_check_pb.Check, - index?: number - ): scoretrak_check_v1_check_pb.Check; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Round.AsObject; - static toObject(includeInstance: boolean, msg: Round): Round.AsObject; - static serializeBinaryToWriter( - message: Round, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Round; - static deserializeBinaryFromReader( - message: Round, - reader: jspb.BinaryReader - ): Round; -} - -export namespace Round { - export type AsObject = { - id: number; - start?: google_protobuf_timestamp_pb.Timestamp.AsObject; - note: string; - err: string; - finish?: google_protobuf_timestamp_pb.Timestamp.AsObject; - checksList: Array; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getRoundsList(): Array; - setRoundsList(value: Array): GetAllResponse; - clearRoundsList(): GetAllResponse; - addRounds(value?: Round, index?: number): Round; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - roundsList: Array; - }; -} - -export class GetByIDRequest extends jspb.Message { - getId(): number; - setId(value: number): GetByIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDRequest - ): GetByIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDRequest; - static deserializeBinaryFromReader( - message: GetByIDRequest, - reader: jspb.BinaryReader - ): GetByIDRequest; -} - -export namespace GetByIDRequest { - export type AsObject = { - id: number; - }; -} - -export class GetByIDResponse extends jspb.Message { - getRound(): Round | undefined; - setRound(value?: Round): GetByIDResponse; - hasRound(): boolean; - clearRound(): GetByIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDResponse - ): GetByIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDResponse; - static deserializeBinaryFromReader( - message: GetByIDResponse, - reader: jspb.BinaryReader - ): GetByIDResponse; -} - -export namespace GetByIDResponse { - export type AsObject = { - round?: Round.AsObject; - }; -} - -export class GetLastRoundRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLastRoundRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetLastRoundRequest - ): GetLastRoundRequest.AsObject; - static serializeBinaryToWriter( - message: GetLastRoundRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetLastRoundRequest; - static deserializeBinaryFromReader( - message: GetLastRoundRequest, - reader: jspb.BinaryReader - ): GetLastRoundRequest; -} - -export namespace GetLastRoundRequest { - export type AsObject = {}; -} - -export class GetLastRoundResponse extends jspb.Message { - getRound(): Round | undefined; - setRound(value?: Round): GetLastRoundResponse; - hasRound(): boolean; - clearRound(): GetLastRoundResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLastRoundResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetLastRoundResponse - ): GetLastRoundResponse.AsObject; - static serializeBinaryToWriter( - message: GetLastRoundResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetLastRoundResponse; - static deserializeBinaryFromReader( - message: GetLastRoundResponse, - reader: jspb.BinaryReader - ): GetLastRoundResponse; -} - -export namespace GetLastRoundResponse { - export type AsObject = { - round?: Round.AsObject; - }; -} - -export class GetLastNonElapsingRoundRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLastNonElapsingRoundRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetLastNonElapsingRoundRequest - ): GetLastNonElapsingRoundRequest.AsObject; - static serializeBinaryToWriter( - message: GetLastNonElapsingRoundRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetLastNonElapsingRoundRequest; - static deserializeBinaryFromReader( - message: GetLastNonElapsingRoundRequest, - reader: jspb.BinaryReader - ): GetLastNonElapsingRoundRequest; -} - -export namespace GetLastNonElapsingRoundRequest { - export type AsObject = {}; -} - -export class GetLastNonElapsingRoundResponse extends jspb.Message { - getRound(): Round | undefined; - setRound(value?: Round): GetLastNonElapsingRoundResponse; - hasRound(): boolean; - clearRound(): GetLastNonElapsingRoundResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLastNonElapsingRoundResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetLastNonElapsingRoundResponse - ): GetLastNonElapsingRoundResponse.AsObject; - static serializeBinaryToWriter( - message: GetLastNonElapsingRoundResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetLastNonElapsingRoundResponse; - static deserializeBinaryFromReader( - message: GetLastNonElapsingRoundResponse, - reader: jspb.BinaryReader - ): GetLastNonElapsingRoundResponse; -} - -export namespace GetLastNonElapsingRoundResponse { - export type AsObject = { - round?: Round.AsObject; - }; -} diff --git a/src/lib/scoretrakapis/scoretrak/round/v1/round_pb.js b/src/lib/scoretrakapis/scoretrak/round/v1/round_pb.js deleted file mode 100644 index f105a43..0000000 --- a/src/lib/scoretrakapis/scoretrak/round/v1/round_pb.js +++ /dev/null @@ -1,1796 +0,0 @@ -// source: scoretrak/round/v1/round.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 google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js"); -goog.object.extend(proto, google_protobuf_timestamp_pb); -var scoretrak_check_v1_check_pb = require("../../../scoretrak/check/v1/check_pb.js"); -goog.object.extend(proto, scoretrak_check_v1_check_pb); -goog.exportSymbol("proto.scoretrak.round.v1.GetAllRequest", null, global); -goog.exportSymbol("proto.scoretrak.round.v1.GetAllResponse", null, global); -goog.exportSymbol("proto.scoretrak.round.v1.GetByIDRequest", null, global); -goog.exportSymbol("proto.scoretrak.round.v1.GetByIDResponse", null, global); -goog.exportSymbol( - "proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.round.v1.GetLastRoundRequest", null, global); -goog.exportSymbol( - "proto.scoretrak.round.v1.GetLastRoundResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.round.v1.Round", 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.scoretrak.round.v1.Round = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.round.v1.Round.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.round.v1.Round, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.Round.displayName = "proto.scoretrak.round.v1.Round"; -} -/** - * 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.scoretrak.round.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.round.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetAllRequest.displayName = - "proto.scoretrak.round.v1.GetAllRequest"; -} -/** - * 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.scoretrak.round.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.round.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.round.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetAllResponse.displayName = - "proto.scoretrak.round.v1.GetAllResponse"; -} -/** - * 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.scoretrak.round.v1.GetByIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.round.v1.GetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetByIDRequest.displayName = - "proto.scoretrak.round.v1.GetByIDRequest"; -} -/** - * 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.scoretrak.round.v1.GetByIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.round.v1.GetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetByIDResponse.displayName = - "proto.scoretrak.round.v1.GetByIDResponse"; -} -/** - * 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.scoretrak.round.v1.GetLastRoundRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.round.v1.GetLastRoundRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetLastRoundRequest.displayName = - "proto.scoretrak.round.v1.GetLastRoundRequest"; -} -/** - * 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.scoretrak.round.v1.GetLastRoundResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.round.v1.GetLastRoundResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetLastRoundResponse.displayName = - "proto.scoretrak.round.v1.GetLastRoundResponse"; -} -/** - * 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.scoretrak.round.v1.GetLastNonElapsingRoundRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.displayName = - "proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest"; -} -/** - * 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.scoretrak.round.v1.GetLastNonElapsingRoundResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.displayName = - "proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.round.v1.Round.repeatedFields_ = [6]; - -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.scoretrak.round.v1.Round.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.round.v1.Round.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.scoretrak.round.v1.Round} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.Round.toObject = function (includeInstance, msg) { - var f, - obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - start: - (f = msg.getStart()) && - google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - note: jspb.Message.getFieldWithDefault(msg, 3, ""), - err: jspb.Message.getFieldWithDefault(msg, 4, ""), - finish: - (f = msg.getFinish()) && - google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - checksList: jspb.Message.toObjectList( - msg.getChecksList(), - scoretrak_check_v1_check_pb.Check.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.scoretrak.round.v1.Round} - */ -proto.scoretrak.round.v1.Round.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.Round(); - return proto.scoretrak.round.v1.Round.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.Round} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.Round} - */ -proto.scoretrak.round.v1.Round.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 = new google_protobuf_timestamp_pb.Timestamp(); - reader.readMessage( - value, - google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader - ); - msg.setStart(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNote(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setErr(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp(); - reader.readMessage( - value, - google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader - ); - msg.setFinish(value); - break; - case 6: - var value = new scoretrak_check_v1_check_pb.Check(); - reader.readMessage( - value, - scoretrak_check_v1_check_pb.Check.deserializeBinaryFromReader - ); - msg.addChecks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.round.v1.Round.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.Round.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.Round} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.Round.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64(1, f); - } - f = message.getStart(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getNote(); - if (f.length > 0) { - writer.writeString(3, f); - } - f = message.getErr(); - if (f.length > 0) { - writer.writeString(4, f); - } - f = message.getFinish(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getChecksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - scoretrak_check_v1_check_pb.Check.serializeBinaryToWriter - ); - } -}; - -/** - * optional uint64 id = 1; - * @return {number} - */ -proto.scoretrak.round.v1.Round.prototype.getId = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - -/** - * @param {number} value - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.setId = function (value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - -/** - * optional google.protobuf.Timestamp start = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.scoretrak.round.v1.Round.prototype.getStart = 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.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.setStart = function (value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.clearStart = function () { - return this.setStart(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.round.v1.Round.prototype.hasStart = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * optional string note = 3; - * @return {string} - */ -proto.scoretrak.round.v1.Round.prototype.getNote = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.setNote = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional string err = 4; - * @return {string} - */ -proto.scoretrak.round.v1.Round.prototype.getErr = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.setErr = function (value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - -/** - * optional google.protobuf.Timestamp finish = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.scoretrak.round.v1.Round.prototype.getFinish = function () { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_timestamp_pb.Timestamp, - 5 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.setFinish = function (value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.clearFinish = function () { - return this.setFinish(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.round.v1.Round.prototype.hasFinish = function () { - return jspb.Message.getField(this, 5) != null; -}; - -/** - * repeated scoretrak.check.v1.Check checks = 6; - * @return {!Array} - */ -proto.scoretrak.round.v1.Round.prototype.getChecksList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_check_v1_check_pb.Check, - 6 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.setChecksList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - -/** - * @param {!proto.scoretrak.check.v1.Check=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.round.v1.Round.prototype.addChecks = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 6, - opt_value, - proto.scoretrak.check.v1.Check, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.round.v1.Round} returns this - */ -proto.scoretrak.round.v1.Round.prototype.clearChecksList = function () { - return this.setChecksList([]); -}; - -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.scoretrak.round.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.round.v1.GetAllRequest.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.scoretrak.round.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetAllRequest.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.scoretrak.round.v1.GetAllRequest} - */ -proto.scoretrak.round.v1.GetAllRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetAllRequest(); - return proto.scoretrak.round.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetAllRequest} - */ -proto.scoretrak.round.v1.GetAllRequest.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.scoretrak.round.v1.GetAllRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetAllRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetAllRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.round.v1.GetAllResponse.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.scoretrak.round.v1.GetAllResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.round.v1.GetAllResponse.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.scoretrak.round.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - roundsList: jspb.Message.toObjectList( - msg.getRoundsList(), - proto.scoretrak.round.v1.Round.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.scoretrak.round.v1.GetAllResponse} - */ -proto.scoretrak.round.v1.GetAllResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetAllResponse(); - return proto.scoretrak.round.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetAllResponse} - */ -proto.scoretrak.round.v1.GetAllResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.round.v1.Round(); - reader.readMessage( - value, - proto.scoretrak.round.v1.Round.deserializeBinaryFromReader - ); - msg.addRounds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.round.v1.GetAllResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetAllResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetAllResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getRoundsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.round.v1.Round.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Round rounds = 1; - * @return {!Array} - */ -proto.scoretrak.round.v1.GetAllResponse.prototype.getRoundsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.round.v1.Round, - 1 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.round.v1.GetAllResponse} returns this - */ -proto.scoretrak.round.v1.GetAllResponse.prototype.setRoundsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.round.v1.Round=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.round.v1.Round} - */ -proto.scoretrak.round.v1.GetAllResponse.prototype.addRounds = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.round.v1.Round, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.round.v1.GetAllResponse} returns this - */ -proto.scoretrak.round.v1.GetAllResponse.prototype.clearRoundsList = - function () { - return this.setRoundsList([]); - }; - -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.scoretrak.round.v1.GetByIDRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.round.v1.GetByIDRequest.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.scoretrak.round.v1.GetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetByIDRequest.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.scoretrak.round.v1.GetByIDRequest} - */ -proto.scoretrak.round.v1.GetByIDRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetByIDRequest(); - return proto.scoretrak.round.v1.GetByIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetByIDRequest} - */ -proto.scoretrak.round.v1.GetByIDRequest.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.scoretrak.round.v1.GetByIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetByIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetByIDRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64(1, f); - } -}; - -/** - * optional uint64 id = 1; - * @return {number} - */ -proto.scoretrak.round.v1.GetByIDRequest.prototype.getId = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - -/** - * @param {number} value - * @return {!proto.scoretrak.round.v1.GetByIDRequest} returns this - */ -proto.scoretrak.round.v1.GetByIDRequest.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.scoretrak.round.v1.GetByIDResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.round.v1.GetByIDResponse.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.scoretrak.round.v1.GetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetByIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - round: - (f = msg.getRound()) && - proto.scoretrak.round.v1.Round.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.scoretrak.round.v1.GetByIDResponse} - */ -proto.scoretrak.round.v1.GetByIDResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetByIDResponse(); - return proto.scoretrak.round.v1.GetByIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetByIDResponse} - */ -proto.scoretrak.round.v1.GetByIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.round.v1.Round(); - reader.readMessage( - value, - proto.scoretrak.round.v1.Round.deserializeBinaryFromReader - ); - msg.setRound(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.round.v1.GetByIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetByIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetByIDResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getRound(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.round.v1.Round.serializeBinaryToWriter - ); - } -}; - -/** - * optional Round round = 1; - * @return {?proto.scoretrak.round.v1.Round} - */ -proto.scoretrak.round.v1.GetByIDResponse.prototype.getRound = function () { - return /** @type{?proto.scoretrak.round.v1.Round} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.round.v1.Round, 1) - ); -}; - -/** - * @param {?proto.scoretrak.round.v1.Round|undefined} value - * @return {!proto.scoretrak.round.v1.GetByIDResponse} returns this - */ -proto.scoretrak.round.v1.GetByIDResponse.prototype.setRound = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.round.v1.GetByIDResponse} returns this - */ -proto.scoretrak.round.v1.GetByIDResponse.prototype.clearRound = function () { - return this.setRound(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.round.v1.GetByIDResponse.prototype.hasRound = 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.scoretrak.round.v1.GetLastRoundRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.round.v1.GetLastRoundRequest.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.scoretrak.round.v1.GetLastRoundRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetLastRoundRequest.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.scoretrak.round.v1.GetLastRoundRequest} - */ -proto.scoretrak.round.v1.GetLastRoundRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetLastRoundRequest(); - return proto.scoretrak.round.v1.GetLastRoundRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetLastRoundRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetLastRoundRequest} - */ -proto.scoretrak.round.v1.GetLastRoundRequest.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.scoretrak.round.v1.GetLastRoundRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetLastRoundRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetLastRoundRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetLastRoundRequest.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.scoretrak.round.v1.GetLastRoundResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.round.v1.GetLastRoundResponse.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.scoretrak.round.v1.GetLastRoundResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetLastRoundResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - round: - (f = msg.getRound()) && - proto.scoretrak.round.v1.Round.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.scoretrak.round.v1.GetLastRoundResponse} - */ -proto.scoretrak.round.v1.GetLastRoundResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetLastRoundResponse(); - return proto.scoretrak.round.v1.GetLastRoundResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetLastRoundResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetLastRoundResponse} - */ -proto.scoretrak.round.v1.GetLastRoundResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.round.v1.Round(); - reader.readMessage( - value, - proto.scoretrak.round.v1.Round.deserializeBinaryFromReader - ); - msg.setRound(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.round.v1.GetLastRoundResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetLastRoundResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetLastRoundResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetLastRoundResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getRound(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.round.v1.Round.serializeBinaryToWriter - ); - } - }; - -/** - * optional Round round = 1; - * @return {?proto.scoretrak.round.v1.Round} - */ -proto.scoretrak.round.v1.GetLastRoundResponse.prototype.getRound = function () { - return /** @type{?proto.scoretrak.round.v1.Round} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.round.v1.Round, 1) - ); -}; - -/** - * @param {?proto.scoretrak.round.v1.Round|undefined} value - * @return {!proto.scoretrak.round.v1.GetLastRoundResponse} returns this - */ -proto.scoretrak.round.v1.GetLastRoundResponse.prototype.setRound = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.round.v1.GetLastRoundResponse} returns this - */ -proto.scoretrak.round.v1.GetLastRoundResponse.prototype.clearRound = - function () { - return this.setRound(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.round.v1.GetLastRoundResponse.prototype.hasRound = 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.scoretrak.round.v1.GetLastNonElapsingRoundRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.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.scoretrak.round.v1.GetLastNonElapsingRoundRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.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.scoretrak.round.v1.GetLastNonElapsingRoundRequest} - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest(); - return proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest} - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.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.scoretrak.round.v1.GetLastNonElapsingRoundRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundRequest.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.scoretrak.round.v1.GetLastNonElapsingRoundResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.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.scoretrak.round.v1.GetLastNonElapsingRoundResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - round: - (f = msg.getRound()) && - proto.scoretrak.round.v1.Round.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.scoretrak.round.v1.GetLastNonElapsingRoundResponse} - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse(); - return proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse} - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.round.v1.Round(); - reader.readMessage( - value, - proto.scoretrak.round.v1.Round.deserializeBinaryFromReader - ); - msg.setRound(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getRound(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.round.v1.Round.serializeBinaryToWriter - ); - } - }; - -/** - * optional Round round = 1; - * @return {?proto.scoretrak.round.v1.Round} - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.prototype.getRound = - function () { - return /** @type{?proto.scoretrak.round.v1.Round} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.round.v1.Round, 1) - ); - }; - -/** - * @param {?proto.scoretrak.round.v1.Round|undefined} value - * @return {!proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse} returns this - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.prototype.setRound = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse} returns this - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.prototype.clearRound = - function () { - return this.setRound(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.round.v1.GetLastNonElapsingRoundResponse.prototype.hasRound = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -goog.object.extend(exports, proto.scoretrak.round.v1); diff --git a/src/lib/scoretrakapis/scoretrak/service/v1/ServiceServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/service/v1/ServiceServiceClientPb.ts deleted file mode 100644 index 3a5f306..0000000 --- a/src/lib/scoretrakapis/scoretrak/service/v1/ServiceServiceClientPb.ts +++ /dev/null @@ -1,336 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.service.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_service_v1_service_pb from "../../../scoretrak/service/v1/service_pb"; - -export class ServiceServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.service.v1.ServiceService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_service_v1_service_pb.GetAllRequest, - scoretrak_service_v1_service_pb.GetAllResponse, - (request: scoretrak_service_v1_service_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_v1_service_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_service_v1_service_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_service_v1_service_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_service_v1_service_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorGetByID = new grpcWeb.MethodDescriptor( - "/scoretrak.service.v1.ServiceService/GetByID", - grpcWeb.MethodType.UNARY, - scoretrak_service_v1_service_pb.GetByIDRequest, - scoretrak_service_v1_service_pb.GetByIDResponse, - (request: scoretrak_service_v1_service_pb.GetByIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_v1_service_pb.GetByIDResponse.deserializeBinary - ); - - getByID( - request: scoretrak_service_v1_service_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByID( - request: scoretrak_service_v1_service_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.GetByIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByID( - request: scoretrak_service_v1_service_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.GetByIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID - ); - } - - methodDescriptorDelete = new grpcWeb.MethodDescriptor( - "/scoretrak.service.v1.ServiceService/Delete", - grpcWeb.MethodType.UNARY, - scoretrak_service_v1_service_pb.DeleteRequest, - scoretrak_service_v1_service_pb.DeleteResponse, - (request: scoretrak_service_v1_service_pb.DeleteRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_v1_service_pb.DeleteResponse.deserializeBinary - ); - - delete( - request: scoretrak_service_v1_service_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - delete( - request: scoretrak_service_v1_service_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.DeleteResponse - ) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: scoretrak_service_v1_service_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.DeleteResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete - ); - } - - methodDescriptorStore = new grpcWeb.MethodDescriptor( - "/scoretrak.service.v1.ServiceService/Store", - grpcWeb.MethodType.UNARY, - scoretrak_service_v1_service_pb.StoreRequest, - scoretrak_service_v1_service_pb.StoreResponse, - (request: scoretrak_service_v1_service_pb.StoreRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_v1_service_pb.StoreResponse.deserializeBinary - ); - - store( - request: scoretrak_service_v1_service_pb.StoreRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - store( - request: scoretrak_service_v1_service_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.StoreResponse - ) => void - ): grpcWeb.ClientReadableStream; - - store( - request: scoretrak_service_v1_service_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.StoreResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/Store", - request, - metadata || {}, - this.methodDescriptorStore, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/Store", - request, - metadata || {}, - this.methodDescriptorStore - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.service.v1.ServiceService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_service_v1_service_pb.UpdateRequest, - scoretrak_service_v1_service_pb.UpdateResponse, - (request: scoretrak_service_v1_service_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_v1_service_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_service_v1_service_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_service_v1_service_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_service_v1_service_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } - - methodDescriptorTestService = new grpcWeb.MethodDescriptor( - "/scoretrak.service.v1.ServiceService/TestService", - grpcWeb.MethodType.UNARY, - scoretrak_service_v1_service_pb.TestServiceRequest, - scoretrak_service_v1_service_pb.TestServiceResponse, - (request: scoretrak_service_v1_service_pb.TestServiceRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_v1_service_pb.TestServiceResponse.deserializeBinary - ); - - testService( - request: scoretrak_service_v1_service_pb.TestServiceRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - testService( - request: scoretrak_service_v1_service_pb.TestServiceRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.TestServiceResponse - ) => void - ): grpcWeb.ClientReadableStream; - - testService( - request: scoretrak_service_v1_service_pb.TestServiceRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_v1_service_pb.TestServiceResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/TestService", - request, - metadata || {}, - this.methodDescriptorTestService, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service.v1.ServiceService/TestService", - request, - metadata || {}, - this.methodDescriptorTestService - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/service/v1/service_pb.d.ts b/src/lib/scoretrakapis/scoretrak/service/v1/service_pb.d.ts deleted file mode 100644 index 2936e4b..0000000 --- a/src/lib/scoretrakapis/scoretrak/service/v1/service_pb.d.ts +++ /dev/null @@ -1,436 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; -import * as scoretrak_property_v1_property_pb from "../../../scoretrak/property/v1/property_pb"; -import * as scoretrak_check_v1_check_pb from "../../../scoretrak/check/v1/check_pb"; - -export class Service extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): Service; - hasId(): boolean; - clearId(): Service; - - getName(): string; - setName(value: string): Service; - - getDisplayName(): string; - setDisplayName(value: string): Service; - - getWeight(): google_protobuf_wrappers_pb.UInt64Value | undefined; - setWeight(value?: google_protobuf_wrappers_pb.UInt64Value): Service; - hasWeight(): boolean; - clearWeight(): Service; - - getPointsBoost(): google_protobuf_wrappers_pb.UInt64Value | undefined; - setPointsBoost(value?: google_protobuf_wrappers_pb.UInt64Value): Service; - hasPointsBoost(): boolean; - clearPointsBoost(): Service; - - getRoundUnits(): number; - setRoundUnits(value: number): Service; - - getRoundDelay(): google_protobuf_wrappers_pb.UInt64Value | undefined; - setRoundDelay(value?: google_protobuf_wrappers_pb.UInt64Value): Service; - hasRoundDelay(): boolean; - clearRoundDelay(): Service; - - getServiceGroupId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setServiceGroupId(value?: scoretrak_proto_v1_uuid_pb.UUID): Service; - hasServiceGroupId(): boolean; - clearServiceGroupId(): Service; - - getHostId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setHostId(value?: scoretrak_proto_v1_uuid_pb.UUID): Service; - hasHostId(): boolean; - clearHostId(): Service; - - getHide(): google_protobuf_wrappers_pb.BoolValue | undefined; - setHide(value?: google_protobuf_wrappers_pb.BoolValue): Service; - hasHide(): boolean; - clearHide(): Service; - - getPause(): google_protobuf_wrappers_pb.BoolValue | undefined; - setPause(value?: google_protobuf_wrappers_pb.BoolValue): Service; - hasPause(): boolean; - clearPause(): Service; - - getPropertiesList(): Array; - setPropertiesList( - value: Array - ): Service; - clearPropertiesList(): Service; - addProperties( - value?: scoretrak_property_v1_property_pb.Property, - index?: number - ): scoretrak_property_v1_property_pb.Property; - - getChecksList(): Array; - setChecksList(value: Array): Service; - clearChecksList(): Service; - addChecks( - value?: scoretrak_check_v1_check_pb.Check, - index?: number - ): scoretrak_check_v1_check_pb.Check; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Service.AsObject; - static toObject(includeInstance: boolean, msg: Service): Service.AsObject; - static serializeBinaryToWriter( - message: Service, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Service; - static deserializeBinaryFromReader( - message: Service, - reader: jspb.BinaryReader - ): Service; -} - -export namespace Service { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - name: string; - displayName: string; - weight?: google_protobuf_wrappers_pb.UInt64Value.AsObject; - pointsBoost?: google_protobuf_wrappers_pb.UInt64Value.AsObject; - roundUnits: number; - roundDelay?: google_protobuf_wrappers_pb.UInt64Value.AsObject; - serviceGroupId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - hostId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - hide?: google_protobuf_wrappers_pb.BoolValue.AsObject; - pause?: google_protobuf_wrappers_pb.BoolValue.AsObject; - propertiesList: Array; - checksList: Array; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getServicesList(): Array; - setServicesList(value: Array): GetAllResponse; - clearServicesList(): GetAllResponse; - addServices(value?: Service, index?: number): Service; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - servicesList: Array; - }; -} - -export class GetByIDRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): GetByIDRequest; - hasId(): boolean; - clearId(): GetByIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDRequest - ): GetByIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDRequest; - static deserializeBinaryFromReader( - message: GetByIDRequest, - reader: jspb.BinaryReader - ): GetByIDRequest; -} - -export namespace GetByIDRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetByIDResponse extends jspb.Message { - getService(): Service | undefined; - setService(value?: Service): GetByIDResponse; - hasService(): boolean; - clearService(): GetByIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDResponse - ): GetByIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDResponse; - static deserializeBinaryFromReader( - message: GetByIDResponse, - reader: jspb.BinaryReader - ): GetByIDResponse; -} - -export namespace GetByIDResponse { - export type AsObject = { - service?: Service.AsObject; - }; -} - -export class DeleteRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): DeleteRequest; - hasId(): boolean; - clearId(): DeleteRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteRequest - ): DeleteRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteRequest; - static deserializeBinaryFromReader( - message: DeleteRequest, - reader: jspb.BinaryReader - ): DeleteRequest; -} - -export namespace DeleteRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class DeleteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteResponse - ): DeleteResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteResponse; - static deserializeBinaryFromReader( - message: DeleteResponse, - reader: jspb.BinaryReader - ): DeleteResponse; -} - -export namespace DeleteResponse { - export type AsObject = {}; -} - -export class StoreRequest extends jspb.Message { - getServicesList(): Array; - setServicesList(value: Array): StoreRequest; - clearServicesList(): StoreRequest; - addServices(value?: Service, index?: number): Service; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreRequest - ): StoreRequest.AsObject; - static serializeBinaryToWriter( - message: StoreRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreRequest; - static deserializeBinaryFromReader( - message: StoreRequest, - reader: jspb.BinaryReader - ): StoreRequest; -} - -export namespace StoreRequest { - export type AsObject = { - servicesList: Array; - }; -} - -export class StoreResponse extends jspb.Message { - getIdsList(): Array; - setIdsList(value: Array): StoreResponse; - clearIdsList(): StoreResponse; - addIds( - value?: scoretrak_proto_v1_uuid_pb.UUID, - index?: number - ): scoretrak_proto_v1_uuid_pb.UUID; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreResponse - ): StoreResponse.AsObject; - static serializeBinaryToWriter( - message: StoreResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreResponse; - static deserializeBinaryFromReader( - message: StoreResponse, - reader: jspb.BinaryReader - ): StoreResponse; -} - -export namespace StoreResponse { - export type AsObject = { - idsList: Array; - }; -} - -export class UpdateRequest extends jspb.Message { - getService(): Service | undefined; - setService(value?: Service): UpdateRequest; - hasService(): boolean; - clearService(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - service?: Service.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} - -export class TestServiceRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): TestServiceRequest; - hasId(): boolean; - clearId(): TestServiceRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TestServiceRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: TestServiceRequest - ): TestServiceRequest.AsObject; - static serializeBinaryToWriter( - message: TestServiceRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): TestServiceRequest; - static deserializeBinaryFromReader( - message: TestServiceRequest, - reader: jspb.BinaryReader - ): TestServiceRequest; -} - -export namespace TestServiceRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class TestServiceResponse extends jspb.Message { - getCheck(): scoretrak_check_v1_check_pb.Check | undefined; - setCheck(value?: scoretrak_check_v1_check_pb.Check): TestServiceResponse; - hasCheck(): boolean; - clearCheck(): TestServiceResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): TestServiceResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: TestServiceResponse - ): TestServiceResponse.AsObject; - static serializeBinaryToWriter( - message: TestServiceResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): TestServiceResponse; - static deserializeBinaryFromReader( - message: TestServiceResponse, - reader: jspb.BinaryReader - ): TestServiceResponse; -} - -export namespace TestServiceResponse { - export type AsObject = { - check?: scoretrak_check_v1_check_pb.Check.AsObject; - }; -} diff --git a/src/lib/scoretrakapis/scoretrak/service/v1/service_pb.js b/src/lib/scoretrakapis/scoretrak/service/v1/service_pb.js deleted file mode 100644 index 6d4c26c..0000000 --- a/src/lib/scoretrakapis/scoretrak/service/v1/service_pb.js +++ /dev/null @@ -1,3054 +0,0 @@ -// source: scoretrak/service/v1/service.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -var scoretrak_property_v1_property_pb = require("../../../scoretrak/property/v1/property_pb.js"); -goog.object.extend(proto, scoretrak_property_v1_property_pb); -var scoretrak_check_v1_check_pb = require("../../../scoretrak/check/v1/check_pb.js"); -goog.object.extend(proto, scoretrak_check_v1_check_pb); -goog.exportSymbol("proto.scoretrak.service.v1.DeleteRequest", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.DeleteResponse", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.GetAllRequest", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.GetAllResponse", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.GetByIDRequest", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.GetByIDResponse", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.Service", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.StoreRequest", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.StoreResponse", null, global); -goog.exportSymbol( - "proto.scoretrak.service.v1.TestServiceRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service.v1.TestServiceResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.service.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.service.v1.UpdateResponse", 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.scoretrak.service.v1.Service = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.service.v1.Service.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.service.v1.Service, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.Service.displayName = - "proto.scoretrak.service.v1.Service"; -} -/** - * 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.scoretrak.service.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.GetAllRequest.displayName = - "proto.scoretrak.service.v1.GetAllRequest"; -} -/** - * 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.scoretrak.service.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.service.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.service.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.GetAllResponse.displayName = - "proto.scoretrak.service.v1.GetAllResponse"; -} -/** - * 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.scoretrak.service.v1.GetByIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.GetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.GetByIDRequest.displayName = - "proto.scoretrak.service.v1.GetByIDRequest"; -} -/** - * 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.scoretrak.service.v1.GetByIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.GetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.GetByIDResponse.displayName = - "proto.scoretrak.service.v1.GetByIDResponse"; -} -/** - * 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.scoretrak.service.v1.DeleteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.DeleteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.DeleteRequest.displayName = - "proto.scoretrak.service.v1.DeleteRequest"; -} -/** - * 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.scoretrak.service.v1.DeleteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.DeleteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.DeleteResponse.displayName = - "proto.scoretrak.service.v1.DeleteResponse"; -} -/** - * 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.scoretrak.service.v1.StoreRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.service.v1.StoreRequest.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.service.v1.StoreRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.StoreRequest.displayName = - "proto.scoretrak.service.v1.StoreRequest"; -} -/** - * 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.scoretrak.service.v1.StoreResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.service.v1.StoreResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.service.v1.StoreResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.StoreResponse.displayName = - "proto.scoretrak.service.v1.StoreResponse"; -} -/** - * 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.scoretrak.service.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.UpdateRequest.displayName = - "proto.scoretrak.service.v1.UpdateRequest"; -} -/** - * 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.scoretrak.service.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.UpdateResponse.displayName = - "proto.scoretrak.service.v1.UpdateResponse"; -} -/** - * 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.scoretrak.service.v1.TestServiceRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.TestServiceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.TestServiceRequest.displayName = - "proto.scoretrak.service.v1.TestServiceRequest"; -} -/** - * 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.scoretrak.service.v1.TestServiceResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service.v1.TestServiceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service.v1.TestServiceResponse.displayName = - "proto.scoretrak.service.v1.TestServiceResponse"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.service.v1.Service.repeatedFields_ = [12, 13]; - -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.scoretrak.service.v1.Service.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.Service.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.scoretrak.service.v1.Service} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.Service.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 3, ""), - weight: - (f = msg.getWeight()) && - google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), - pointsBoost: - (f = msg.getPointsBoost()) && - google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), - roundUnits: jspb.Message.getFieldWithDefault(msg, 6, 0), - roundDelay: - (f = msg.getRoundDelay()) && - google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), - serviceGroupId: - (f = msg.getServiceGroupId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - hostId: - (f = msg.getHostId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - hide: - (f = msg.getHide()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - pause: - (f = msg.getPause()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - propertiesList: jspb.Message.toObjectList( - msg.getPropertiesList(), - scoretrak_property_v1_property_pb.Property.toObject, - includeInstance - ), - checksList: jspb.Message.toObjectList( - msg.getChecksList(), - scoretrak_check_v1_check_pb.Check.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.scoretrak.service.v1.Service} - */ -proto.scoretrak.service.v1.Service.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.Service(); - return proto.scoretrak.service.v1.Service.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.Service} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.service.v1.Service.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 4: - var value = new google_protobuf_wrappers_pb.UInt64Value(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader - ); - msg.setWeight(value); - break; - case 5: - var value = new google_protobuf_wrappers_pb.UInt64Value(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader - ); - msg.setPointsBoost(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setRoundUnits(value); - break; - case 7: - var value = new google_protobuf_wrappers_pb.UInt64Value(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader - ); - msg.setRoundDelay(value); - break; - case 8: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setServiceGroupId(value); - break; - case 9: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setHostId(value); - break; - case 10: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setHide(value); - break; - case 11: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setPause(value); - break; - case 12: - var value = new scoretrak_property_v1_property_pb.Property(); - reader.readMessage( - value, - scoretrak_property_v1_property_pb.Property.deserializeBinaryFromReader - ); - msg.addProperties(value); - break; - case 13: - var value = new scoretrak_check_v1_check_pb.Check(); - reader.readMessage( - value, - scoretrak_check_v1_check_pb.Check.deserializeBinaryFromReader - ); - msg.addChecks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.Service.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.Service.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.Service} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.Service.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString(3, f); - } - f = message.getWeight(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter - ); - } - f = message.getPointsBoost(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter - ); - } - f = message.getRoundUnits(); - if (f !== 0) { - writer.writeUint64(6, f); - } - f = message.getRoundDelay(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter - ); - } - f = message.getServiceGroupId(); - if (f != null) { - writer.writeMessage( - 8, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getHostId(); - if (f != null) { - writer.writeMessage( - 9, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getHide(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getPause(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getPropertiesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 12, - f, - scoretrak_property_v1_property_pb.Property.serializeBinaryToWriter - ); - } - f = message.getChecksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 13, - f, - scoretrak_check_v1_check_pb.Check.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service.v1.Service.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string name = 2; - * @return {string} - */ -proto.scoretrak.service.v1.Service.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional string display_name = 3; - * @return {string} - */ -proto.scoretrak.service.v1.Service.prototype.getDisplayName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setDisplayName = function (value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - -/** - * optional google.protobuf.UInt64Value weight = 4; - * @return {?proto.google.protobuf.UInt64Value} - */ -proto.scoretrak.service.v1.Service.prototype.getWeight = function () { - return /** @type{?proto.google.protobuf.UInt64Value} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.UInt64Value, - 4 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.UInt64Value|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setWeight = function (value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearWeight = function () { - return this.setWeight(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasWeight = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * optional google.protobuf.UInt64Value points_boost = 5; - * @return {?proto.google.protobuf.UInt64Value} - */ -proto.scoretrak.service.v1.Service.prototype.getPointsBoost = function () { - return /** @type{?proto.google.protobuf.UInt64Value} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.UInt64Value, - 5 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.UInt64Value|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setPointsBoost = function (value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearPointsBoost = function () { - return this.setPointsBoost(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasPointsBoost = function () { - return jspb.Message.getField(this, 5) != null; -}; - -/** - * optional uint64 round_units = 6; - * @return {number} - */ -proto.scoretrak.service.v1.Service.prototype.getRoundUnits = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - -/** - * @param {number} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setRoundUnits = function (value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - -/** - * optional google.protobuf.UInt64Value round_delay = 7; - * @return {?proto.google.protobuf.UInt64Value} - */ -proto.scoretrak.service.v1.Service.prototype.getRoundDelay = function () { - return /** @type{?proto.google.protobuf.UInt64Value} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.UInt64Value, - 7 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.UInt64Value|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setRoundDelay = function (value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearRoundDelay = function () { - return this.setRoundDelay(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasRoundDelay = function () { - return jspb.Message.getField(this, 7) != null; -}; - -/** - * optional scoretrak.proto.v1.UUID service_group_id = 8; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service.v1.Service.prototype.getServiceGroupId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 8) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setServiceGroupId = function ( - value -) { - return jspb.Message.setWrapperField(this, 8, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearServiceGroupId = function () { - return this.setServiceGroupId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasServiceGroupId = function () { - return jspb.Message.getField(this, 8) != null; -}; - -/** - * optional scoretrak.proto.v1.UUID host_id = 9; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service.v1.Service.prototype.getHostId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 9) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setHostId = function (value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearHostId = function () { - return this.setHostId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasHostId = function () { - return jspb.Message.getField(this, 9) != null; -}; - -/** - * optional google.protobuf.BoolValue hide = 10; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.service.v1.Service.prototype.getHide = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.BoolValue, - 10 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setHide = function (value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearHide = function () { - return this.setHide(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasHide = function () { - return jspb.Message.getField(this, 10) != null; -}; - -/** - * optional google.protobuf.BoolValue pause = 11; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.service.v1.Service.prototype.getPause = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.BoolValue, - 11 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setPause = function (value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearPause = function () { - return this.setPause(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.Service.prototype.hasPause = function () { - return jspb.Message.getField(this, 11) != null; -}; - -/** - * repeated scoretrak.property.v1.Property properties = 12; - * @return {!Array} - */ -proto.scoretrak.service.v1.Service.prototype.getPropertiesList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_property_v1_property_pb.Property, - 12 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setPropertiesList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 12, value); -}; - -/** - * @param {!proto.scoretrak.property.v1.Property=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.property.v1.Property} - */ -proto.scoretrak.service.v1.Service.prototype.addProperties = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 12, - opt_value, - proto.scoretrak.property.v1.Property, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearPropertiesList = function () { - return this.setPropertiesList([]); -}; - -/** - * repeated scoretrak.check.v1.Check checks = 13; - * @return {!Array} - */ -proto.scoretrak.service.v1.Service.prototype.getChecksList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_check_v1_check_pb.Check, - 13 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.setChecksList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 13, value); -}; - -/** - * @param {!proto.scoretrak.check.v1.Check=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.service.v1.Service.prototype.addChecks = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 13, - opt_value, - proto.scoretrak.check.v1.Check, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.service.v1.Service} returns this - */ -proto.scoretrak.service.v1.Service.prototype.clearChecksList = function () { - return this.setChecksList([]); -}; - -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.scoretrak.service.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.GetAllRequest.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.scoretrak.service.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.GetAllRequest.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.scoretrak.service.v1.GetAllRequest} - */ -proto.scoretrak.service.v1.GetAllRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.GetAllRequest(); - return proto.scoretrak.service.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.GetAllRequest} - */ -proto.scoretrak.service.v1.GetAllRequest.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.scoretrak.service.v1.GetAllRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.GetAllRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.GetAllRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.service.v1.GetAllResponse.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.scoretrak.service.v1.GetAllResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.GetAllResponse.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.scoretrak.service.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - servicesList: jspb.Message.toObjectList( - msg.getServicesList(), - proto.scoretrak.service.v1.Service.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.scoretrak.service.v1.GetAllResponse} - */ -proto.scoretrak.service.v1.GetAllResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.GetAllResponse(); - return proto.scoretrak.service.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.GetAllResponse} - */ -proto.scoretrak.service.v1.GetAllResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service.v1.Service(); - reader.readMessage( - value, - proto.scoretrak.service.v1.Service.deserializeBinaryFromReader - ); - msg.addServices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.GetAllResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.GetAllResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.GetAllResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getServicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.service.v1.Service.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Service services = 1; - * @return {!Array} - */ -proto.scoretrak.service.v1.GetAllResponse.prototype.getServicesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.service.v1.Service, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.service.v1.GetAllResponse} returns this - */ -proto.scoretrak.service.v1.GetAllResponse.prototype.setServicesList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.service.v1.Service=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.service.v1.GetAllResponse.prototype.addServices = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.service.v1.Service, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.service.v1.GetAllResponse} returns this - */ -proto.scoretrak.service.v1.GetAllResponse.prototype.clearServicesList = - function () { - return this.setServicesList([]); - }; - -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.scoretrak.service.v1.GetByIDRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.GetByIDRequest.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.scoretrak.service.v1.GetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.GetByIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service.v1.GetByIDRequest} - */ -proto.scoretrak.service.v1.GetByIDRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.GetByIDRequest(); - return proto.scoretrak.service.v1.GetByIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.GetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.GetByIDRequest} - */ -proto.scoretrak.service.v1.GetByIDRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.GetByIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.GetByIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.GetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.GetByIDRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service.v1.GetByIDRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service.v1.GetByIDRequest} returns this - */ -proto.scoretrak.service.v1.GetByIDRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.GetByIDRequest} returns this - */ -proto.scoretrak.service.v1.GetByIDRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.GetByIDRequest.prototype.hasId = 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.scoretrak.service.v1.GetByIDResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.GetByIDResponse.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.scoretrak.service.v1.GetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.GetByIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - service: - (f = msg.getService()) && - proto.scoretrak.service.v1.Service.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.scoretrak.service.v1.GetByIDResponse} - */ -proto.scoretrak.service.v1.GetByIDResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.GetByIDResponse(); - return proto.scoretrak.service.v1.GetByIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.GetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.GetByIDResponse} - */ -proto.scoretrak.service.v1.GetByIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service.v1.Service(); - reader.readMessage( - value, - proto.scoretrak.service.v1.Service.deserializeBinaryFromReader - ); - msg.setService(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.GetByIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.GetByIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.GetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.GetByIDResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getService(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.service.v1.Service.serializeBinaryToWriter - ); - } -}; - -/** - * optional Service service = 1; - * @return {?proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.service.v1.GetByIDResponse.prototype.getService = function () { - return /** @type{?proto.scoretrak.service.v1.Service} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.service.v1.Service, 1) - ); -}; - -/** - * @param {?proto.scoretrak.service.v1.Service|undefined} value - * @return {!proto.scoretrak.service.v1.GetByIDResponse} returns this - */ -proto.scoretrak.service.v1.GetByIDResponse.prototype.setService = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.GetByIDResponse} returns this - */ -proto.scoretrak.service.v1.GetByIDResponse.prototype.clearService = - function () { - return this.setService(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.GetByIDResponse.prototype.hasService = 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.scoretrak.service.v1.DeleteRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.DeleteRequest.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.scoretrak.service.v1.DeleteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.DeleteRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service.v1.DeleteRequest} - */ -proto.scoretrak.service.v1.DeleteRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.DeleteRequest(); - return proto.scoretrak.service.v1.DeleteRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.DeleteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.DeleteRequest} - */ -proto.scoretrak.service.v1.DeleteRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.DeleteRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.DeleteRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.DeleteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.DeleteRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service.v1.DeleteRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service.v1.DeleteRequest} returns this - */ -proto.scoretrak.service.v1.DeleteRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.DeleteRequest} returns this - */ -proto.scoretrak.service.v1.DeleteRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.DeleteRequest.prototype.hasId = 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.scoretrak.service.v1.DeleteResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.DeleteResponse.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.scoretrak.service.v1.DeleteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.DeleteResponse.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.scoretrak.service.v1.DeleteResponse} - */ -proto.scoretrak.service.v1.DeleteResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.DeleteResponse(); - return proto.scoretrak.service.v1.DeleteResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.DeleteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.DeleteResponse} - */ -proto.scoretrak.service.v1.DeleteResponse.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.scoretrak.service.v1.DeleteResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.DeleteResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.DeleteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.DeleteResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.service.v1.StoreRequest.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.scoretrak.service.v1.StoreRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.StoreRequest.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.scoretrak.service.v1.StoreRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.StoreRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - servicesList: jspb.Message.toObjectList( - msg.getServicesList(), - proto.scoretrak.service.v1.Service.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.scoretrak.service.v1.StoreRequest} - */ -proto.scoretrak.service.v1.StoreRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.StoreRequest(); - return proto.scoretrak.service.v1.StoreRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.StoreRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.StoreRequest} - */ -proto.scoretrak.service.v1.StoreRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service.v1.Service(); - reader.readMessage( - value, - proto.scoretrak.service.v1.Service.deserializeBinaryFromReader - ); - msg.addServices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.StoreRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.StoreRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.StoreRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.StoreRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getServicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.service.v1.Service.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Service services = 1; - * @return {!Array} - */ -proto.scoretrak.service.v1.StoreRequest.prototype.getServicesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.service.v1.Service, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.service.v1.StoreRequest} returns this - */ -proto.scoretrak.service.v1.StoreRequest.prototype.setServicesList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.service.v1.Service=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.service.v1.StoreRequest.prototype.addServices = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.service.v1.Service, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.service.v1.StoreRequest} returns this - */ -proto.scoretrak.service.v1.StoreRequest.prototype.clearServicesList = - function () { - return this.setServicesList([]); - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.service.v1.StoreResponse.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.scoretrak.service.v1.StoreResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.StoreResponse.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.scoretrak.service.v1.StoreResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.StoreResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - idsList: jspb.Message.toObjectList( - msg.getIdsList(), - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service.v1.StoreResponse} - */ -proto.scoretrak.service.v1.StoreResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.StoreResponse(); - return proto.scoretrak.service.v1.StoreResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.StoreResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.StoreResponse} - */ -proto.scoretrak.service.v1.StoreResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.StoreResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.StoreResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.StoreResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.StoreResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * repeated scoretrak.proto.v1.UUID ids = 1; - * @return {!Array} - */ -proto.scoretrak.service.v1.StoreResponse.prototype.getIdsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_proto_v1_uuid_pb.UUID, - 1 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.service.v1.StoreResponse} returns this - */ -proto.scoretrak.service.v1.StoreResponse.prototype.setIdsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.proto.v1.UUID=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service.v1.StoreResponse.prototype.addIds = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.proto.v1.UUID, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.service.v1.StoreResponse} returns this - */ -proto.scoretrak.service.v1.StoreResponse.prototype.clearIdsList = function () { - return this.setIdsList([]); -}; - -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.scoretrak.service.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.UpdateRequest.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.scoretrak.service.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - service: - (f = msg.getService()) && - proto.scoretrak.service.v1.Service.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.scoretrak.service.v1.UpdateRequest} - */ -proto.scoretrak.service.v1.UpdateRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.UpdateRequest(); - return proto.scoretrak.service.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.UpdateRequest} - */ -proto.scoretrak.service.v1.UpdateRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service.v1.Service(); - reader.readMessage( - value, - proto.scoretrak.service.v1.Service.deserializeBinaryFromReader - ); - msg.setService(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.UpdateRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.UpdateRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getService(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.service.v1.Service.serializeBinaryToWriter - ); - } -}; - -/** - * optional Service service = 1; - * @return {?proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.service.v1.UpdateRequest.prototype.getService = function () { - return /** @type{?proto.scoretrak.service.v1.Service} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.service.v1.Service, 1) - ); -}; - -/** - * @param {?proto.scoretrak.service.v1.Service|undefined} value - * @return {!proto.scoretrak.service.v1.UpdateRequest} returns this - */ -proto.scoretrak.service.v1.UpdateRequest.prototype.setService = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.UpdateRequest} returns this - */ -proto.scoretrak.service.v1.UpdateRequest.prototype.clearService = function () { - return this.setService(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.UpdateRequest.prototype.hasService = 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.scoretrak.service.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.UpdateResponse.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.scoretrak.service.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.UpdateResponse.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.scoretrak.service.v1.UpdateResponse} - */ -proto.scoretrak.service.v1.UpdateResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.UpdateResponse(); - return proto.scoretrak.service.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.UpdateResponse} - */ -proto.scoretrak.service.v1.UpdateResponse.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.scoretrak.service.v1.UpdateResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.UpdateResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.UpdateResponse.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.scoretrak.service.v1.TestServiceRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.TestServiceRequest.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.scoretrak.service.v1.TestServiceRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.TestServiceRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service.v1.TestServiceRequest} - */ -proto.scoretrak.service.v1.TestServiceRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.TestServiceRequest(); - return proto.scoretrak.service.v1.TestServiceRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.TestServiceRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.TestServiceRequest} - */ -proto.scoretrak.service.v1.TestServiceRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.TestServiceRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.TestServiceRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.TestServiceRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.TestServiceRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service.v1.TestServiceRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service.v1.TestServiceRequest} returns this - */ -proto.scoretrak.service.v1.TestServiceRequest.prototype.setId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.TestServiceRequest} returns this - */ -proto.scoretrak.service.v1.TestServiceRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.TestServiceRequest.prototype.hasId = 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.scoretrak.service.v1.TestServiceResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service.v1.TestServiceResponse.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.scoretrak.service.v1.TestServiceResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service.v1.TestServiceResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - check: - (f = msg.getCheck()) && - scoretrak_check_v1_check_pb.Check.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.scoretrak.service.v1.TestServiceResponse} - */ -proto.scoretrak.service.v1.TestServiceResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service.v1.TestServiceResponse(); - return proto.scoretrak.service.v1.TestServiceResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service.v1.TestServiceResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service.v1.TestServiceResponse} - */ -proto.scoretrak.service.v1.TestServiceResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_check_v1_check_pb.Check(); - reader.readMessage( - value, - scoretrak_check_v1_check_pb.Check.deserializeBinaryFromReader - ); - msg.setCheck(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service.v1.TestServiceResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service.v1.TestServiceResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service.v1.TestServiceResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service.v1.TestServiceResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getCheck(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_check_v1_check_pb.Check.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.check.v1.Check check = 1; - * @return {?proto.scoretrak.check.v1.Check} - */ -proto.scoretrak.service.v1.TestServiceResponse.prototype.getCheck = - function () { - return /** @type{?proto.scoretrak.check.v1.Check} */ ( - jspb.Message.getWrapperField(this, scoretrak_check_v1_check_pb.Check, 1) - ); - }; - -/** - * @param {?proto.scoretrak.check.v1.Check|undefined} value - * @return {!proto.scoretrak.service.v1.TestServiceResponse} returns this - */ -proto.scoretrak.service.v1.TestServiceResponse.prototype.setCheck = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service.v1.TestServiceResponse} returns this - */ -proto.scoretrak.service.v1.TestServiceResponse.prototype.clearCheck = - function () { - return this.setCheck(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service.v1.TestServiceResponse.prototype.hasCheck = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -goog.object.extend(exports, proto.scoretrak.service.v1); diff --git a/src/lib/scoretrakapis/scoretrak/service_group/v1/Service_groupServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/service_group/v1/Service_groupServiceClientPb.ts deleted file mode 100644 index cdb0c75..0000000 --- a/src/lib/scoretrakapis/scoretrak/service_group/v1/Service_groupServiceClientPb.ts +++ /dev/null @@ -1,344 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.service_group.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_service_group_v1_service_group_pb from "../../../scoretrak/service_group/v1/service_group_pb"; - -export class ServiceGroupServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.service_group.v1.ServiceGroupService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_service_group_v1_service_group_pb.GetAllRequest, - scoretrak_service_group_v1_service_group_pb.GetAllResponse, - (request: scoretrak_service_group_v1_service_group_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_group_v1_service_group_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_service_group_v1_service_group_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_service_group_v1_service_group_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_service_group_v1_service_group_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service_group.v1.ServiceGroupService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorGetByID = new grpcWeb.MethodDescriptor( - "/scoretrak.service_group.v1.ServiceGroupService/GetByID", - grpcWeb.MethodType.UNARY, - scoretrak_service_group_v1_service_group_pb.GetByIDRequest, - scoretrak_service_group_v1_service_group_pb.GetByIDResponse, - (request: scoretrak_service_group_v1_service_group_pb.GetByIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_group_v1_service_group_pb.GetByIDResponse.deserializeBinary - ); - - getByID( - request: scoretrak_service_group_v1_service_group_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByID( - request: scoretrak_service_group_v1_service_group_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.GetByIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByID( - request: scoretrak_service_group_v1_service_group_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.GetByIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID - ); - } - - methodDescriptorDelete = new grpcWeb.MethodDescriptor( - "/scoretrak.service_group.v1.ServiceGroupService/Delete", - grpcWeb.MethodType.UNARY, - scoretrak_service_group_v1_service_group_pb.DeleteRequest, - scoretrak_service_group_v1_service_group_pb.DeleteResponse, - (request: scoretrak_service_group_v1_service_group_pb.DeleteRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_group_v1_service_group_pb.DeleteResponse.deserializeBinary - ); - - delete( - request: scoretrak_service_group_v1_service_group_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - delete( - request: scoretrak_service_group_v1_service_group_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.DeleteResponse - ) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: scoretrak_service_group_v1_service_group_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.DeleteResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service_group.v1.ServiceGroupService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete - ); - } - - methodDescriptorStore = new grpcWeb.MethodDescriptor( - "/scoretrak.service_group.v1.ServiceGroupService/Store", - grpcWeb.MethodType.UNARY, - scoretrak_service_group_v1_service_group_pb.StoreRequest, - scoretrak_service_group_v1_service_group_pb.StoreResponse, - (request: scoretrak_service_group_v1_service_group_pb.StoreRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_group_v1_service_group_pb.StoreResponse.deserializeBinary - ); - - store( - request: scoretrak_service_group_v1_service_group_pb.StoreRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - store( - request: scoretrak_service_group_v1_service_group_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.StoreResponse - ) => void - ): grpcWeb.ClientReadableStream; - - store( - request: scoretrak_service_group_v1_service_group_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.StoreResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/Store", - request, - metadata || {}, - this.methodDescriptorStore, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service_group.v1.ServiceGroupService/Store", - request, - metadata || {}, - this.methodDescriptorStore - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.service_group.v1.ServiceGroupService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_service_group_v1_service_group_pb.UpdateRequest, - scoretrak_service_group_v1_service_group_pb.UpdateResponse, - (request: scoretrak_service_group_v1_service_group_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_group_v1_service_group_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_service_group_v1_service_group_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_service_group_v1_service_group_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_service_group_v1_service_group_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.service_group.v1.ServiceGroupService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } - - methodDescriptorRedeploy = new grpcWeb.MethodDescriptor( - "/scoretrak.service_group.v1.ServiceGroupService/Redeploy", - grpcWeb.MethodType.UNARY, - scoretrak_service_group_v1_service_group_pb.RedeployRequest, - scoretrak_service_group_v1_service_group_pb.RedeployResponse, - (request: scoretrak_service_group_v1_service_group_pb.RedeployRequest) => { - return request.serializeBinary(); - }, - scoretrak_service_group_v1_service_group_pb.RedeployResponse.deserializeBinary - ); - - redeploy( - request: scoretrak_service_group_v1_service_group_pb.RedeployRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - redeploy( - request: scoretrak_service_group_v1_service_group_pb.RedeployRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.RedeployResponse - ) => void - ): grpcWeb.ClientReadableStream; - - redeploy( - request: scoretrak_service_group_v1_service_group_pb.RedeployRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_service_group_v1_service_group_pb.RedeployResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/Redeploy", - request, - metadata || {}, - this.methodDescriptorRedeploy, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + - "/scoretrak.service_group.v1.ServiceGroupService/Redeploy", - request, - metadata || {}, - this.methodDescriptorRedeploy - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.d.ts b/src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.d.ts deleted file mode 100644 index 5e8fa97..0000000 --- a/src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.d.ts +++ /dev/null @@ -1,387 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; -import * as scoretrak_service_v1_service_pb from "../../../scoretrak/service/v1/service_pb"; - -export class ServiceGroup extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): ServiceGroup; - hasId(): boolean; - clearId(): ServiceGroup; - - getName(): string; - setName(value: string): ServiceGroup; - - getDisplayName(): string; - setDisplayName(value: string): ServiceGroup; - - getEnabled(): google_protobuf_wrappers_pb.BoolValue | undefined; - setEnabled(value?: google_protobuf_wrappers_pb.BoolValue): ServiceGroup; - hasEnabled(): boolean; - clearEnabled(): ServiceGroup; - - getSkipHelper(): boolean; - setSkipHelper(value: boolean): ServiceGroup; - - getLabel(): string; - setLabel(value: string): ServiceGroup; - - getServicesList(): Array; - setServicesList( - value: Array - ): ServiceGroup; - clearServicesList(): ServiceGroup; - addServices( - value?: scoretrak_service_v1_service_pb.Service, - index?: number - ): scoretrak_service_v1_service_pb.Service; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ServiceGroup.AsObject; - static toObject( - includeInstance: boolean, - msg: ServiceGroup - ): ServiceGroup.AsObject; - static serializeBinaryToWriter( - message: ServiceGroup, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): ServiceGroup; - static deserializeBinaryFromReader( - message: ServiceGroup, - reader: jspb.BinaryReader - ): ServiceGroup; -} - -export namespace ServiceGroup { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - name: string; - displayName: string; - enabled?: google_protobuf_wrappers_pb.BoolValue.AsObject; - skipHelper: boolean; - label: string; - servicesList: Array; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getServiceGroupsList(): Array; - setServiceGroupsList(value: Array): GetAllResponse; - clearServiceGroupsList(): GetAllResponse; - addServiceGroups(value?: ServiceGroup, index?: number): ServiceGroup; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - serviceGroupsList: Array; - }; -} - -export class GetByIDRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): GetByIDRequest; - hasId(): boolean; - clearId(): GetByIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDRequest - ): GetByIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDRequest; - static deserializeBinaryFromReader( - message: GetByIDRequest, - reader: jspb.BinaryReader - ): GetByIDRequest; -} - -export namespace GetByIDRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetByIDResponse extends jspb.Message { - getServiceGroup(): ServiceGroup | undefined; - setServiceGroup(value?: ServiceGroup): GetByIDResponse; - hasServiceGroup(): boolean; - clearServiceGroup(): GetByIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDResponse - ): GetByIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDResponse; - static deserializeBinaryFromReader( - message: GetByIDResponse, - reader: jspb.BinaryReader - ): GetByIDResponse; -} - -export namespace GetByIDResponse { - export type AsObject = { - serviceGroup?: ServiceGroup.AsObject; - }; -} - -export class DeleteRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): DeleteRequest; - hasId(): boolean; - clearId(): DeleteRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteRequest - ): DeleteRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteRequest; - static deserializeBinaryFromReader( - message: DeleteRequest, - reader: jspb.BinaryReader - ): DeleteRequest; -} - -export namespace DeleteRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class DeleteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteResponse - ): DeleteResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteResponse; - static deserializeBinaryFromReader( - message: DeleteResponse, - reader: jspb.BinaryReader - ): DeleteResponse; -} - -export namespace DeleteResponse { - export type AsObject = {}; -} - -export class StoreRequest extends jspb.Message { - getServiceGroup(): ServiceGroup | undefined; - setServiceGroup(value?: ServiceGroup): StoreRequest; - hasServiceGroup(): boolean; - clearServiceGroup(): StoreRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreRequest - ): StoreRequest.AsObject; - static serializeBinaryToWriter( - message: StoreRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreRequest; - static deserializeBinaryFromReader( - message: StoreRequest, - reader: jspb.BinaryReader - ): StoreRequest; -} - -export namespace StoreRequest { - export type AsObject = { - serviceGroup?: ServiceGroup.AsObject; - }; -} - -export class StoreResponse extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): StoreResponse; - hasId(): boolean; - clearId(): StoreResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreResponse - ): StoreResponse.AsObject; - static serializeBinaryToWriter( - message: StoreResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreResponse; - static deserializeBinaryFromReader( - message: StoreResponse, - reader: jspb.BinaryReader - ): StoreResponse; -} - -export namespace StoreResponse { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class UpdateRequest extends jspb.Message { - getServiceGroup(): ServiceGroup | undefined; - setServiceGroup(value?: ServiceGroup): UpdateRequest; - hasServiceGroup(): boolean; - clearServiceGroup(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - serviceGroup?: ServiceGroup.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} - -export class RedeployRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): RedeployRequest; - hasId(): boolean; - clearId(): RedeployRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RedeployRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: RedeployRequest - ): RedeployRequest.AsObject; - static serializeBinaryToWriter( - message: RedeployRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): RedeployRequest; - static deserializeBinaryFromReader( - message: RedeployRequest, - reader: jspb.BinaryReader - ): RedeployRequest; -} - -export namespace RedeployRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class RedeployResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RedeployResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: RedeployResponse - ): RedeployResponse.AsObject; - static serializeBinaryToWriter( - message: RedeployResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): RedeployResponse; - static deserializeBinaryFromReader( - message: RedeployResponse, - reader: jspb.BinaryReader - ): RedeployResponse; -} - -export namespace RedeployResponse { - export type AsObject = {}; -} diff --git a/src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.js b/src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.js deleted file mode 100644 index 792d9e5..0000000 --- a/src/lib/scoretrakapis/scoretrak/service_group/v1/service_group_pb.js +++ /dev/null @@ -1,2639 +0,0 @@ -// source: scoretrak/service_group/v1/service_group.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -var scoretrak_service_v1_service_pb = require("../../../scoretrak/service/v1/service_pb.js"); -goog.object.extend(proto, scoretrak_service_v1_service_pb); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.DeleteRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.DeleteResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.GetAllRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.GetAllResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.GetByIDRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.GetByIDResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.RedeployRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.RedeployResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.ServiceGroup", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.StoreRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.StoreResponse", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.UpdateRequest", - null, - global -); -goog.exportSymbol( - "proto.scoretrak.service_group.v1.UpdateResponse", - 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.scoretrak.service_group.v1.ServiceGroup = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.service_group.v1.ServiceGroup.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.service_group.v1.ServiceGroup, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.ServiceGroup.displayName = - "proto.scoretrak.service_group.v1.ServiceGroup"; -} -/** - * 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.scoretrak.service_group.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.GetAllRequest.displayName = - "proto.scoretrak.service_group.v1.GetAllRequest"; -} -/** - * 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.scoretrak.service_group.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.service_group.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.service_group.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.GetAllResponse.displayName = - "proto.scoretrak.service_group.v1.GetAllResponse"; -} -/** - * 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.scoretrak.service_group.v1.GetByIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.GetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.GetByIDRequest.displayName = - "proto.scoretrak.service_group.v1.GetByIDRequest"; -} -/** - * 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.scoretrak.service_group.v1.GetByIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.GetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.GetByIDResponse.displayName = - "proto.scoretrak.service_group.v1.GetByIDResponse"; -} -/** - * 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.scoretrak.service_group.v1.DeleteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.DeleteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.DeleteRequest.displayName = - "proto.scoretrak.service_group.v1.DeleteRequest"; -} -/** - * 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.scoretrak.service_group.v1.DeleteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.DeleteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.DeleteResponse.displayName = - "proto.scoretrak.service_group.v1.DeleteResponse"; -} -/** - * 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.scoretrak.service_group.v1.StoreRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.StoreRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.StoreRequest.displayName = - "proto.scoretrak.service_group.v1.StoreRequest"; -} -/** - * 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.scoretrak.service_group.v1.StoreResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.StoreResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.StoreResponse.displayName = - "proto.scoretrak.service_group.v1.StoreResponse"; -} -/** - * 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.scoretrak.service_group.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.UpdateRequest.displayName = - "proto.scoretrak.service_group.v1.UpdateRequest"; -} -/** - * 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.scoretrak.service_group.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.UpdateResponse.displayName = - "proto.scoretrak.service_group.v1.UpdateResponse"; -} -/** - * 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.scoretrak.service_group.v1.RedeployRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.RedeployRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.RedeployRequest.displayName = - "proto.scoretrak.service_group.v1.RedeployRequest"; -} -/** - * 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.scoretrak.service_group.v1.RedeployResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.service_group.v1.RedeployResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.service_group.v1.RedeployResponse.displayName = - "proto.scoretrak.service_group.v1.RedeployResponse"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.service_group.v1.ServiceGroup.repeatedFields_ = [7]; - -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.scoretrak.service_group.v1.ServiceGroup.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service_group.v1.ServiceGroup.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.scoretrak.service_group.v1.ServiceGroup} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.ServiceGroup.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - displayName: jspb.Message.getFieldWithDefault(msg, 3, ""), - enabled: - (f = msg.getEnabled()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - skipHelper: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - label: jspb.Message.getFieldWithDefault(msg, 6, ""), - servicesList: jspb.Message.toObjectList( - msg.getServicesList(), - scoretrak_service_v1_service_pb.Service.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.scoretrak.service_group.v1.ServiceGroup} - */ -proto.scoretrak.service_group.v1.ServiceGroup.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.ServiceGroup(); - return proto.scoretrak.service_group.v1.ServiceGroup.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.ServiceGroup} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} - */ -proto.scoretrak.service_group.v1.ServiceGroup.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 4: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setEnabled(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSkipHelper(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setLabel(value); - break; - case 7: - var value = new scoretrak_service_v1_service_pb.Service(); - reader.readMessage( - value, - scoretrak_service_v1_service_pb.Service.deserializeBinaryFromReader - ); - msg.addServices(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.ServiceGroup.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.ServiceGroup} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.ServiceGroup.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString(3, f); - } - f = message.getEnabled(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getSkipHelper(); - if (f) { - writer.writeBool(5, f); - } - f = message.getLabel(); - if (f.length > 0) { - writer.writeString(6, f); - } - f = message.getServicesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - scoretrak_service_v1_service_pb.Service.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.setId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.hasId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string name = 2; - * @return {string} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.setName = function ( - value -) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional string display_name = 3; - * @return {string} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.getDisplayName = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.setDisplayName = - function (value) { - return jspb.Message.setProto3StringField(this, 3, value); - }; - -/** - * optional google.protobuf.BoolValue enabled = 4; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.getEnabled = - function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.BoolValue, - 4 - ) - ); - }; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.setEnabled = function ( - value -) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.clearEnabled = - function () { - return this.setEnabled(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.hasEnabled = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional bool skip_helper = 5; - * @return {boolean} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.getSkipHelper = - function () { - return /** @type {boolean} */ ( - jspb.Message.getBooleanFieldWithDefault(this, 5, false) - ); - }; - -/** - * @param {boolean} value - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.setSkipHelper = - function (value) { - return jspb.Message.setProto3BooleanField(this, 5, value); - }; - -/** - * optional string label = 6; - * @return {string} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.getLabel = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.setLabel = function ( - value -) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - -/** - * repeated scoretrak.service.v1.Service services = 7; - * @return {!Array} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.getServicesList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_service_v1_service_pb.Service, - 7 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.setServicesList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); - }; - -/** - * @param {!proto.scoretrak.service.v1.Service=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.service.v1.Service} - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.addServices = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 7, - opt_value, - proto.scoretrak.service.v1.Service, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} returns this - */ -proto.scoretrak.service_group.v1.ServiceGroup.prototype.clearServicesList = - function () { - return this.setServicesList([]); - }; - -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.scoretrak.service_group.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service_group.v1.GetAllRequest.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.scoretrak.service_group.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.GetAllRequest.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.scoretrak.service_group.v1.GetAllRequest} - */ -proto.scoretrak.service_group.v1.GetAllRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.GetAllRequest(); - return proto.scoretrak.service_group.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.GetAllRequest} - */ -proto.scoretrak.service_group.v1.GetAllRequest.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.scoretrak.service_group.v1.GetAllRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.GetAllRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.GetAllRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.service_group.v1.GetAllResponse.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.scoretrak.service_group.v1.GetAllResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.service_group.v1.GetAllResponse.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.scoretrak.service_group.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceGroupsList: jspb.Message.toObjectList( - msg.getServiceGroupsList(), - proto.scoretrak.service_group.v1.ServiceGroup.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.scoretrak.service_group.v1.GetAllResponse} - */ -proto.scoretrak.service_group.v1.GetAllResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.GetAllResponse(); - return proto.scoretrak.service_group.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.GetAllResponse} - */ -proto.scoretrak.service_group.v1.GetAllResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service_group.v1.ServiceGroup(); - reader.readMessage( - value, - proto.scoretrak.service_group.v1.ServiceGroup - .deserializeBinaryFromReader - ); - msg.addServiceGroups(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.GetAllResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.GetAllResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.GetAllResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceGroupsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.service_group.v1.ServiceGroup.serializeBinaryToWriter - ); - } - }; - -/** - * repeated ServiceGroup service_groups = 1; - * @return {!Array} - */ -proto.scoretrak.service_group.v1.GetAllResponse.prototype.getServiceGroupsList = - function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - proto.scoretrak.service_group.v1.ServiceGroup, - 1 - ) - ); - }; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.service_group.v1.GetAllResponse} returns this - */ -proto.scoretrak.service_group.v1.GetAllResponse.prototype.setServiceGroupsList = - function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); - }; - -/** - * @param {!proto.scoretrak.service_group.v1.ServiceGroup=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.service_group.v1.ServiceGroup} - */ -proto.scoretrak.service_group.v1.GetAllResponse.prototype.addServiceGroups = - function (opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.service_group.v1.ServiceGroup, - opt_index - ); - }; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.service_group.v1.GetAllResponse} returns this - */ -proto.scoretrak.service_group.v1.GetAllResponse.prototype.clearServiceGroupsList = - function () { - return this.setServiceGroupsList([]); - }; - -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.scoretrak.service_group.v1.GetByIDRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.service_group.v1.GetByIDRequest.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.scoretrak.service_group.v1.GetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.GetByIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service_group.v1.GetByIDRequest} - */ -proto.scoretrak.service_group.v1.GetByIDRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.GetByIDRequest(); - return proto.scoretrak.service_group.v1.GetByIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.GetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.GetByIDRequest} - */ -proto.scoretrak.service_group.v1.GetByIDRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.GetByIDRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.GetByIDRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.GetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.GetByIDRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service_group.v1.GetByIDRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service_group.v1.GetByIDRequest} returns this - */ -proto.scoretrak.service_group.v1.GetByIDRequest.prototype.setId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.GetByIDRequest} returns this - */ -proto.scoretrak.service_group.v1.GetByIDRequest.prototype.clearId = - function () { - return this.setId(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.GetByIDRequest.prototype.hasId = 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.scoretrak.service_group.v1.GetByIDResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.service_group.v1.GetByIDResponse.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.scoretrak.service_group.v1.GetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.GetByIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceGroup: - (f = msg.getServiceGroup()) && - proto.scoretrak.service_group.v1.ServiceGroup.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.scoretrak.service_group.v1.GetByIDResponse} - */ -proto.scoretrak.service_group.v1.GetByIDResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.GetByIDResponse(); - return proto.scoretrak.service_group.v1.GetByIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.GetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.GetByIDResponse} - */ -proto.scoretrak.service_group.v1.GetByIDResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service_group.v1.ServiceGroup(); - reader.readMessage( - value, - proto.scoretrak.service_group.v1.ServiceGroup - .deserializeBinaryFromReader - ); - msg.setServiceGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.GetByIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.GetByIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.GetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.GetByIDResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.service_group.v1.ServiceGroup.serializeBinaryToWriter - ); - } - }; - -/** - * optional ServiceGroup service_group = 1; - * @return {?proto.scoretrak.service_group.v1.ServiceGroup} - */ -proto.scoretrak.service_group.v1.GetByIDResponse.prototype.getServiceGroup = - function () { - return /** @type{?proto.scoretrak.service_group.v1.ServiceGroup} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.service_group.v1.ServiceGroup, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.service_group.v1.ServiceGroup|undefined} value - * @return {!proto.scoretrak.service_group.v1.GetByIDResponse} returns this - */ -proto.scoretrak.service_group.v1.GetByIDResponse.prototype.setServiceGroup = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.GetByIDResponse} returns this - */ -proto.scoretrak.service_group.v1.GetByIDResponse.prototype.clearServiceGroup = - function () { - return this.setServiceGroup(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.GetByIDResponse.prototype.hasServiceGroup = - 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.scoretrak.service_group.v1.DeleteRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service_group.v1.DeleteRequest.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.scoretrak.service_group.v1.DeleteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.DeleteRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service_group.v1.DeleteRequest} - */ -proto.scoretrak.service_group.v1.DeleteRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.DeleteRequest(); - return proto.scoretrak.service_group.v1.DeleteRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.DeleteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.DeleteRequest} - */ -proto.scoretrak.service_group.v1.DeleteRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.DeleteRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.DeleteRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.DeleteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.DeleteRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service_group.v1.DeleteRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service_group.v1.DeleteRequest} returns this - */ -proto.scoretrak.service_group.v1.DeleteRequest.prototype.setId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.DeleteRequest} returns this - */ -proto.scoretrak.service_group.v1.DeleteRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.DeleteRequest.prototype.hasId = 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.scoretrak.service_group.v1.DeleteResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.service_group.v1.DeleteResponse.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.scoretrak.service_group.v1.DeleteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.DeleteResponse.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.scoretrak.service_group.v1.DeleteResponse} - */ -proto.scoretrak.service_group.v1.DeleteResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.DeleteResponse(); - return proto.scoretrak.service_group.v1.DeleteResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.DeleteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.DeleteResponse} - */ -proto.scoretrak.service_group.v1.DeleteResponse.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.scoretrak.service_group.v1.DeleteResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.DeleteResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.DeleteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.DeleteResponse.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.scoretrak.service_group.v1.StoreRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service_group.v1.StoreRequest.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.scoretrak.service_group.v1.StoreRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.StoreRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceGroup: - (f = msg.getServiceGroup()) && - proto.scoretrak.service_group.v1.ServiceGroup.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.scoretrak.service_group.v1.StoreRequest} - */ -proto.scoretrak.service_group.v1.StoreRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.StoreRequest(); - return proto.scoretrak.service_group.v1.StoreRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.StoreRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.StoreRequest} - */ -proto.scoretrak.service_group.v1.StoreRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service_group.v1.ServiceGroup(); - reader.readMessage( - value, - proto.scoretrak.service_group.v1.ServiceGroup - .deserializeBinaryFromReader - ); - msg.setServiceGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.StoreRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.StoreRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.StoreRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.StoreRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.service_group.v1.ServiceGroup.serializeBinaryToWriter - ); - } - }; - -/** - * optional ServiceGroup service_group = 1; - * @return {?proto.scoretrak.service_group.v1.ServiceGroup} - */ -proto.scoretrak.service_group.v1.StoreRequest.prototype.getServiceGroup = - function () { - return /** @type{?proto.scoretrak.service_group.v1.ServiceGroup} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.service_group.v1.ServiceGroup, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.service_group.v1.ServiceGroup|undefined} value - * @return {!proto.scoretrak.service_group.v1.StoreRequest} returns this - */ -proto.scoretrak.service_group.v1.StoreRequest.prototype.setServiceGroup = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.StoreRequest} returns this - */ -proto.scoretrak.service_group.v1.StoreRequest.prototype.clearServiceGroup = - function () { - return this.setServiceGroup(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.StoreRequest.prototype.hasServiceGroup = - 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.scoretrak.service_group.v1.StoreResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service_group.v1.StoreResponse.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.scoretrak.service_group.v1.StoreResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.StoreResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service_group.v1.StoreResponse} - */ -proto.scoretrak.service_group.v1.StoreResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.StoreResponse(); - return proto.scoretrak.service_group.v1.StoreResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.StoreResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.StoreResponse} - */ -proto.scoretrak.service_group.v1.StoreResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.StoreResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.StoreResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.StoreResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.StoreResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service_group.v1.StoreResponse.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service_group.v1.StoreResponse} returns this - */ -proto.scoretrak.service_group.v1.StoreResponse.prototype.setId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.StoreResponse} returns this - */ -proto.scoretrak.service_group.v1.StoreResponse.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.StoreResponse.prototype.hasId = 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.scoretrak.service_group.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.service_group.v1.UpdateRequest.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.scoretrak.service_group.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - serviceGroup: - (f = msg.getServiceGroup()) && - proto.scoretrak.service_group.v1.ServiceGroup.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.scoretrak.service_group.v1.UpdateRequest} - */ -proto.scoretrak.service_group.v1.UpdateRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.UpdateRequest(); - return proto.scoretrak.service_group.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.UpdateRequest} - */ -proto.scoretrak.service_group.v1.UpdateRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.service_group.v1.ServiceGroup(); - reader.readMessage( - value, - proto.scoretrak.service_group.v1.ServiceGroup - .deserializeBinaryFromReader - ); - msg.setServiceGroup(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.UpdateRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.UpdateRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.UpdateRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getServiceGroup(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.service_group.v1.ServiceGroup.serializeBinaryToWriter - ); - } - }; - -/** - * optional ServiceGroup service_group = 1; - * @return {?proto.scoretrak.service_group.v1.ServiceGroup} - */ -proto.scoretrak.service_group.v1.UpdateRequest.prototype.getServiceGroup = - function () { - return /** @type{?proto.scoretrak.service_group.v1.ServiceGroup} */ ( - jspb.Message.getWrapperField( - this, - proto.scoretrak.service_group.v1.ServiceGroup, - 1 - ) - ); - }; - -/** - * @param {?proto.scoretrak.service_group.v1.ServiceGroup|undefined} value - * @return {!proto.scoretrak.service_group.v1.UpdateRequest} returns this - */ -proto.scoretrak.service_group.v1.UpdateRequest.prototype.setServiceGroup = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.UpdateRequest} returns this - */ -proto.scoretrak.service_group.v1.UpdateRequest.prototype.clearServiceGroup = - function () { - return this.setServiceGroup(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.UpdateRequest.prototype.hasServiceGroup = - 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.scoretrak.service_group.v1.UpdateResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.service_group.v1.UpdateResponse.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.scoretrak.service_group.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.UpdateResponse.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.scoretrak.service_group.v1.UpdateResponse} - */ -proto.scoretrak.service_group.v1.UpdateResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.UpdateResponse(); - return proto.scoretrak.service_group.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.UpdateResponse} - */ -proto.scoretrak.service_group.v1.UpdateResponse.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.scoretrak.service_group.v1.UpdateResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.UpdateResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.UpdateResponse.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.scoretrak.service_group.v1.RedeployRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.service_group.v1.RedeployRequest.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.scoretrak.service_group.v1.RedeployRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.RedeployRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.service_group.v1.RedeployRequest} - */ -proto.scoretrak.service_group.v1.RedeployRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.RedeployRequest(); - return proto.scoretrak.service_group.v1.RedeployRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.RedeployRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.RedeployRequest} - */ -proto.scoretrak.service_group.v1.RedeployRequest.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.service_group.v1.RedeployRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.RedeployRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.RedeployRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.RedeployRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - }; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.service_group.v1.RedeployRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.service_group.v1.RedeployRequest} returns this - */ -proto.scoretrak.service_group.v1.RedeployRequest.prototype.setId = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.service_group.v1.RedeployRequest} returns this - */ -proto.scoretrak.service_group.v1.RedeployRequest.prototype.clearId = - function () { - return this.setId(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.service_group.v1.RedeployRequest.prototype.hasId = 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.scoretrak.service_group.v1.RedeployResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.scoretrak.service_group.v1.RedeployResponse.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.scoretrak.service_group.v1.RedeployResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.service_group.v1.RedeployResponse.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.scoretrak.service_group.v1.RedeployResponse} - */ -proto.scoretrak.service_group.v1.RedeployResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.service_group.v1.RedeployResponse(); - return proto.scoretrak.service_group.v1.RedeployResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.service_group.v1.RedeployResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.service_group.v1.RedeployResponse} - */ -proto.scoretrak.service_group.v1.RedeployResponse.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.scoretrak.service_group.v1.RedeployResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.service_group.v1.RedeployResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.service_group.v1.RedeployResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.service_group.v1.RedeployResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - }; - -goog.object.extend(exports, proto.scoretrak.service_group.v1); diff --git a/src/lib/scoretrakapis/scoretrak/team/v1/TeamServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/team/v1/TeamServiceClientPb.ts deleted file mode 100644 index 8a3b5ed..0000000 --- a/src/lib/scoretrakapis/scoretrak/team/v1/TeamServiceClientPb.ts +++ /dev/null @@ -1,286 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.team.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_team_v1_team_pb from "../../../scoretrak/team/v1/team_pb"; - -export class TeamServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.team.v1.TeamService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_team_v1_team_pb.GetAllRequest, - scoretrak_team_v1_team_pb.GetAllResponse, - (request: scoretrak_team_v1_team_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_team_v1_team_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_team_v1_team_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_team_v1_team_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_team_v1_team_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorGetByID = new grpcWeb.MethodDescriptor( - "/scoretrak.team.v1.TeamService/GetByID", - grpcWeb.MethodType.UNARY, - scoretrak_team_v1_team_pb.GetByIDRequest, - scoretrak_team_v1_team_pb.GetByIDResponse, - (request: scoretrak_team_v1_team_pb.GetByIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_team_v1_team_pb.GetByIDResponse.deserializeBinary - ); - - getByID( - request: scoretrak_team_v1_team_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByID( - request: scoretrak_team_v1_team_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.GetByIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByID( - request: scoretrak_team_v1_team_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.GetByIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID - ); - } - - methodDescriptorDelete = new grpcWeb.MethodDescriptor( - "/scoretrak.team.v1.TeamService/Delete", - grpcWeb.MethodType.UNARY, - scoretrak_team_v1_team_pb.DeleteRequest, - scoretrak_team_v1_team_pb.DeleteResponse, - (request: scoretrak_team_v1_team_pb.DeleteRequest) => { - return request.serializeBinary(); - }, - scoretrak_team_v1_team_pb.DeleteResponse.deserializeBinary - ); - - delete( - request: scoretrak_team_v1_team_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - delete( - request: scoretrak_team_v1_team_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.DeleteResponse - ) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: scoretrak_team_v1_team_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.DeleteResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete - ); - } - - methodDescriptorStore = new grpcWeb.MethodDescriptor( - "/scoretrak.team.v1.TeamService/Store", - grpcWeb.MethodType.UNARY, - scoretrak_team_v1_team_pb.StoreRequest, - scoretrak_team_v1_team_pb.StoreResponse, - (request: scoretrak_team_v1_team_pb.StoreRequest) => { - return request.serializeBinary(); - }, - scoretrak_team_v1_team_pb.StoreResponse.deserializeBinary - ); - - store( - request: scoretrak_team_v1_team_pb.StoreRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - store( - request: scoretrak_team_v1_team_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.StoreResponse - ) => void - ): grpcWeb.ClientReadableStream; - - store( - request: scoretrak_team_v1_team_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.StoreResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/Store", - request, - metadata || {}, - this.methodDescriptorStore, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/Store", - request, - metadata || {}, - this.methodDescriptorStore - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.team.v1.TeamService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_team_v1_team_pb.UpdateRequest, - scoretrak_team_v1_team_pb.UpdateResponse, - (request: scoretrak_team_v1_team_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_team_v1_team_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_team_v1_team_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_team_v1_team_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_team_v1_team_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_team_v1_team_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.team.v1.TeamService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/team/v1/team_pb.d.ts b/src/lib/scoretrakapis/scoretrak/team/v1/team_pb.d.ts deleted file mode 100644 index 50adaa0..0000000 --- a/src/lib/scoretrakapis/scoretrak/team/v1/team_pb.d.ts +++ /dev/null @@ -1,344 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; -import * as scoretrak_host_v1_host_pb from "../../../scoretrak/host/v1/host_pb"; -import * as scoretrak_user_v1_user_pb from "../../../scoretrak/user/v1/user_pb"; - -export class Team extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): Team; - hasId(): boolean; - clearId(): Team; - - getName(): string; - setName(value: string): Team; - - getHide(): google_protobuf_wrappers_pb.BoolValue | undefined; - setHide(value?: google_protobuf_wrappers_pb.BoolValue): Team; - hasHide(): boolean; - clearHide(): Team; - - getPause(): google_protobuf_wrappers_pb.BoolValue | undefined; - setPause(value?: google_protobuf_wrappers_pb.BoolValue): Team; - hasPause(): boolean; - clearPause(): Team; - - getHostsList(): Array; - setHostsList(value: Array): Team; - clearHostsList(): Team; - addHosts( - value?: scoretrak_host_v1_host_pb.Host, - index?: number - ): scoretrak_host_v1_host_pb.Host; - - getIndex(): google_protobuf_wrappers_pb.UInt64Value | undefined; - setIndex(value?: google_protobuf_wrappers_pb.UInt64Value): Team; - hasIndex(): boolean; - clearIndex(): Team; - - getUsersList(): Array; - setUsersList(value: Array): Team; - clearUsersList(): Team; - addUsers( - value?: scoretrak_user_v1_user_pb.User, - index?: number - ): scoretrak_user_v1_user_pb.User; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Team.AsObject; - static toObject(includeInstance: boolean, msg: Team): Team.AsObject; - static serializeBinaryToWriter( - message: Team, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Team; - static deserializeBinaryFromReader( - message: Team, - reader: jspb.BinaryReader - ): Team; -} - -export namespace Team { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - name: string; - hide?: google_protobuf_wrappers_pb.BoolValue.AsObject; - pause?: google_protobuf_wrappers_pb.BoolValue.AsObject; - hostsList: Array; - index?: google_protobuf_wrappers_pb.UInt64Value.AsObject; - usersList: Array; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getTeamsList(): Array; - setTeamsList(value: Array): GetAllResponse; - clearTeamsList(): GetAllResponse; - addTeams(value?: Team, index?: number): Team; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - teamsList: Array; - }; -} - -export class GetByIDRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): GetByIDRequest; - hasId(): boolean; - clearId(): GetByIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDRequest - ): GetByIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDRequest; - static deserializeBinaryFromReader( - message: GetByIDRequest, - reader: jspb.BinaryReader - ): GetByIDRequest; -} - -export namespace GetByIDRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetByIDResponse extends jspb.Message { - getTeam(): Team | undefined; - setTeam(value?: Team): GetByIDResponse; - hasTeam(): boolean; - clearTeam(): GetByIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDResponse - ): GetByIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDResponse; - static deserializeBinaryFromReader( - message: GetByIDResponse, - reader: jspb.BinaryReader - ): GetByIDResponse; -} - -export namespace GetByIDResponse { - export type AsObject = { - team?: Team.AsObject; - }; -} - -export class DeleteRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): DeleteRequest; - hasId(): boolean; - clearId(): DeleteRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteRequest - ): DeleteRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteRequest; - static deserializeBinaryFromReader( - message: DeleteRequest, - reader: jspb.BinaryReader - ): DeleteRequest; -} - -export namespace DeleteRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class DeleteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteResponse - ): DeleteResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteResponse; - static deserializeBinaryFromReader( - message: DeleteResponse, - reader: jspb.BinaryReader - ): DeleteResponse; -} - -export namespace DeleteResponse { - export type AsObject = {}; -} - -export class StoreRequest extends jspb.Message { - getTeamsList(): Array; - setTeamsList(value: Array): StoreRequest; - clearTeamsList(): StoreRequest; - addTeams(value?: Team, index?: number): Team; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreRequest - ): StoreRequest.AsObject; - static serializeBinaryToWriter( - message: StoreRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreRequest; - static deserializeBinaryFromReader( - message: StoreRequest, - reader: jspb.BinaryReader - ): StoreRequest; -} - -export namespace StoreRequest { - export type AsObject = { - teamsList: Array; - }; -} - -export class StoreResponse extends jspb.Message { - getIdsList(): Array; - setIdsList(value: Array): StoreResponse; - clearIdsList(): StoreResponse; - addIds( - value?: scoretrak_proto_v1_uuid_pb.UUID, - index?: number - ): scoretrak_proto_v1_uuid_pb.UUID; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreResponse - ): StoreResponse.AsObject; - static serializeBinaryToWriter( - message: StoreResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreResponse; - static deserializeBinaryFromReader( - message: StoreResponse, - reader: jspb.BinaryReader - ): StoreResponse; -} - -export namespace StoreResponse { - export type AsObject = { - idsList: Array; - }; -} - -export class UpdateRequest extends jspb.Message { - getTeam(): Team | undefined; - setTeam(value?: Team): UpdateRequest; - hasTeam(): boolean; - clearTeam(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - team?: Team.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} diff --git a/src/lib/scoretrakapis/scoretrak/team/v1/team_pb.js b/src/lib/scoretrakapis/scoretrak/team/v1/team_pb.js deleted file mode 100644 index 66d4ef2..0000000 --- a/src/lib/scoretrakapis/scoretrak/team/v1/team_pb.js +++ /dev/null @@ -1,2332 +0,0 @@ -// source: scoretrak/team/v1/team.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 google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js"); -goog.object.extend(proto, google_protobuf_wrappers_pb); -var scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -var scoretrak_host_v1_host_pb = require("../../../scoretrak/host/v1/host_pb.js"); -goog.object.extend(proto, scoretrak_host_v1_host_pb); -var scoretrak_user_v1_user_pb = require("../../../scoretrak/user/v1/user_pb.js"); -goog.object.extend(proto, scoretrak_user_v1_user_pb); -goog.exportSymbol("proto.scoretrak.team.v1.DeleteRequest", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.DeleteResponse", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.GetAllRequest", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.GetAllResponse", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.GetByIDRequest", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.GetByIDResponse", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.StoreRequest", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.StoreResponse", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.Team", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.team.v1.UpdateResponse", 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.scoretrak.team.v1.Team = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.team.v1.Team.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.team.v1.Team, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.Team.displayName = "proto.scoretrak.team.v1.Team"; -} -/** - * 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.scoretrak.team.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.team.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.GetAllRequest.displayName = - "proto.scoretrak.team.v1.GetAllRequest"; -} -/** - * 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.scoretrak.team.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.team.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.team.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.GetAllResponse.displayName = - "proto.scoretrak.team.v1.GetAllResponse"; -} -/** - * 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.scoretrak.team.v1.GetByIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.team.v1.GetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.GetByIDRequest.displayName = - "proto.scoretrak.team.v1.GetByIDRequest"; -} -/** - * 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.scoretrak.team.v1.GetByIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.team.v1.GetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.GetByIDResponse.displayName = - "proto.scoretrak.team.v1.GetByIDResponse"; -} -/** - * 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.scoretrak.team.v1.DeleteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.team.v1.DeleteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.DeleteRequest.displayName = - "proto.scoretrak.team.v1.DeleteRequest"; -} -/** - * 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.scoretrak.team.v1.DeleteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.team.v1.DeleteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.DeleteResponse.displayName = - "proto.scoretrak.team.v1.DeleteResponse"; -} -/** - * 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.scoretrak.team.v1.StoreRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.team.v1.StoreRequest.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.team.v1.StoreRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.StoreRequest.displayName = - "proto.scoretrak.team.v1.StoreRequest"; -} -/** - * 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.scoretrak.team.v1.StoreResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.team.v1.StoreResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.team.v1.StoreResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.StoreResponse.displayName = - "proto.scoretrak.team.v1.StoreResponse"; -} -/** - * 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.scoretrak.team.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.team.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.UpdateRequest.displayName = - "proto.scoretrak.team.v1.UpdateRequest"; -} -/** - * 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.scoretrak.team.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.team.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.team.v1.UpdateResponse.displayName = - "proto.scoretrak.team.v1.UpdateResponse"; -} - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.team.v1.Team.repeatedFields_ = [5, 7]; - -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.scoretrak.team.v1.Team.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.Team.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.scoretrak.team.v1.Team} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.Team.toObject = function (includeInstance, msg) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - hide: - (f = msg.getHide()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - pause: - (f = msg.getPause()) && - google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), - hostsList: jspb.Message.toObjectList( - msg.getHostsList(), - scoretrak_host_v1_host_pb.Host.toObject, - includeInstance - ), - index: - (f = msg.getIndex()) && - google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), - usersList: jspb.Message.toObjectList( - msg.getUsersList(), - scoretrak_user_v1_user_pb.User.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.scoretrak.team.v1.Team} - */ -proto.scoretrak.team.v1.Team.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.Team(); - return proto.scoretrak.team.v1.Team.deserializeBinaryFromReader(msg, reader); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.Team} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.Team} - */ -proto.scoretrak.team.v1.Team.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setHide(value); - break; - case 4: - var value = new google_protobuf_wrappers_pb.BoolValue(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader - ); - msg.setPause(value); - break; - case 5: - var value = new scoretrak_host_v1_host_pb.Host(); - reader.readMessage( - value, - scoretrak_host_v1_host_pb.Host.deserializeBinaryFromReader - ); - msg.addHosts(value); - break; - case 6: - var value = new google_protobuf_wrappers_pb.UInt64Value(); - reader.readMessage( - value, - google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader - ); - msg.setIndex(value); - break; - case 7: - var value = new scoretrak_user_v1_user_pb.User(); - reader.readMessage( - value, - scoretrak_user_v1_user_pb.User.deserializeBinaryFromReader - ); - msg.addUsers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.Team.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.Team.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.Team} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.Team.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getHide(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getPause(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter - ); - } - f = message.getHostsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - scoretrak_host_v1_host_pb.Host.serializeBinaryToWriter - ); - } - f = message.getIndex(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter - ); - } - f = message.getUsersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - scoretrak_user_v1_user_pb.User.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.team.v1.Team.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.Team.prototype.hasId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string name = 2; - * @return {string} - */ -proto.scoretrak.team.v1.Team.prototype.getName = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.setName = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional google.protobuf.BoolValue hide = 3; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.team.v1.Team.prototype.getHide = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 3) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.setHide = function (value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.clearHide = function () { - return this.setHide(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.Team.prototype.hasHide = function () { - return jspb.Message.getField(this, 3) != null; -}; - -/** - * optional google.protobuf.BoolValue pause = 4; - * @return {?proto.google.protobuf.BoolValue} - */ -proto.scoretrak.team.v1.Team.prototype.getPause = function () { - return /** @type{?proto.google.protobuf.BoolValue} */ ( - jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 4) - ); -}; - -/** - * @param {?proto.google.protobuf.BoolValue|undefined} value - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.setPause = function (value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.clearPause = function () { - return this.setPause(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.Team.prototype.hasPause = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * repeated scoretrak.host.v1.Host hosts = 5; - * @return {!Array} - */ -proto.scoretrak.team.v1.Team.prototype.getHostsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_host_v1_host_pb.Host, - 5 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.setHostsList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - -/** - * @param {!proto.scoretrak.host.v1.Host=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.host.v1.Host} - */ -proto.scoretrak.team.v1.Team.prototype.addHosts = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 5, - opt_value, - proto.scoretrak.host.v1.Host, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.clearHostsList = function () { - return this.setHostsList([]); -}; - -/** - * optional google.protobuf.UInt64Value index = 6; - * @return {?proto.google.protobuf.UInt64Value} - */ -proto.scoretrak.team.v1.Team.prototype.getIndex = function () { - return /** @type{?proto.google.protobuf.UInt64Value} */ ( - jspb.Message.getWrapperField( - this, - google_protobuf_wrappers_pb.UInt64Value, - 6 - ) - ); -}; - -/** - * @param {?proto.google.protobuf.UInt64Value|undefined} value - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.setIndex = function (value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.clearIndex = function () { - return this.setIndex(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.Team.prototype.hasIndex = function () { - return jspb.Message.getField(this, 6) != null; -}; - -/** - * repeated scoretrak.user.v1.User users = 7; - * @return {!Array} - */ -proto.scoretrak.team.v1.Team.prototype.getUsersList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_user_v1_user_pb.User, - 7 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.setUsersList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - -/** - * @param {!proto.scoretrak.user.v1.User=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.user.v1.User} - */ -proto.scoretrak.team.v1.Team.prototype.addUsers = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 7, - opt_value, - proto.scoretrak.user.v1.User, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.team.v1.Team} returns this - */ -proto.scoretrak.team.v1.Team.prototype.clearUsersList = function () { - return this.setUsersList([]); -}; - -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.scoretrak.team.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.GetAllRequest.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.scoretrak.team.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.GetAllRequest.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.scoretrak.team.v1.GetAllRequest} - */ -proto.scoretrak.team.v1.GetAllRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.GetAllRequest(); - return proto.scoretrak.team.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.GetAllRequest} - */ -proto.scoretrak.team.v1.GetAllRequest.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.scoretrak.team.v1.GetAllRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.GetAllRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.GetAllRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.team.v1.GetAllResponse.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.scoretrak.team.v1.GetAllResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.GetAllResponse.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.scoretrak.team.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - teamsList: jspb.Message.toObjectList( - msg.getTeamsList(), - proto.scoretrak.team.v1.Team.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.scoretrak.team.v1.GetAllResponse} - */ -proto.scoretrak.team.v1.GetAllResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.GetAllResponse(); - return proto.scoretrak.team.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.GetAllResponse} - */ -proto.scoretrak.team.v1.GetAllResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.team.v1.Team(); - reader.readMessage( - value, - proto.scoretrak.team.v1.Team.deserializeBinaryFromReader - ); - msg.addTeams(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.GetAllResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.GetAllResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.GetAllResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getTeamsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.team.v1.Team.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Team teams = 1; - * @return {!Array} - */ -proto.scoretrak.team.v1.GetAllResponse.prototype.getTeamsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.scoretrak.team.v1.Team, 1) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.team.v1.GetAllResponse} returns this - */ -proto.scoretrak.team.v1.GetAllResponse.prototype.setTeamsList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.team.v1.Team=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.team.v1.Team} - */ -proto.scoretrak.team.v1.GetAllResponse.prototype.addTeams = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.team.v1.Team, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.team.v1.GetAllResponse} returns this - */ -proto.scoretrak.team.v1.GetAllResponse.prototype.clearTeamsList = function () { - return this.setTeamsList([]); -}; - -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.scoretrak.team.v1.GetByIDRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.GetByIDRequest.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.scoretrak.team.v1.GetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.GetByIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.team.v1.GetByIDRequest} - */ -proto.scoretrak.team.v1.GetByIDRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.GetByIDRequest(); - return proto.scoretrak.team.v1.GetByIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.GetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.GetByIDRequest} - */ -proto.scoretrak.team.v1.GetByIDRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.GetByIDRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.GetByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.GetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.GetByIDRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.team.v1.GetByIDRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.team.v1.GetByIDRequest} returns this - */ -proto.scoretrak.team.v1.GetByIDRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.GetByIDRequest} returns this - */ -proto.scoretrak.team.v1.GetByIDRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.GetByIDRequest.prototype.hasId = 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.scoretrak.team.v1.GetByIDResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.GetByIDResponse.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.scoretrak.team.v1.GetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.GetByIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - team: - (f = msg.getTeam()) && - proto.scoretrak.team.v1.Team.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.scoretrak.team.v1.GetByIDResponse} - */ -proto.scoretrak.team.v1.GetByIDResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.GetByIDResponse(); - return proto.scoretrak.team.v1.GetByIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.GetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.GetByIDResponse} - */ -proto.scoretrak.team.v1.GetByIDResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.team.v1.Team(); - reader.readMessage( - value, - proto.scoretrak.team.v1.Team.deserializeBinaryFromReader - ); - msg.setTeam(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.GetByIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.GetByIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.GetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.GetByIDResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getTeam(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.team.v1.Team.serializeBinaryToWriter - ); - } -}; - -/** - * optional Team team = 1; - * @return {?proto.scoretrak.team.v1.Team} - */ -proto.scoretrak.team.v1.GetByIDResponse.prototype.getTeam = function () { - return /** @type{?proto.scoretrak.team.v1.Team} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.team.v1.Team, 1) - ); -}; - -/** - * @param {?proto.scoretrak.team.v1.Team|undefined} value - * @return {!proto.scoretrak.team.v1.GetByIDResponse} returns this - */ -proto.scoretrak.team.v1.GetByIDResponse.prototype.setTeam = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.GetByIDResponse} returns this - */ -proto.scoretrak.team.v1.GetByIDResponse.prototype.clearTeam = function () { - return this.setTeam(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.GetByIDResponse.prototype.hasTeam = 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.scoretrak.team.v1.DeleteRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.DeleteRequest.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.scoretrak.team.v1.DeleteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.DeleteRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.team.v1.DeleteRequest} - */ -proto.scoretrak.team.v1.DeleteRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.DeleteRequest(); - return proto.scoretrak.team.v1.DeleteRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.DeleteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.DeleteRequest} - */ -proto.scoretrak.team.v1.DeleteRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.DeleteRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.DeleteRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.DeleteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.DeleteRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.team.v1.DeleteRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.team.v1.DeleteRequest} returns this - */ -proto.scoretrak.team.v1.DeleteRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.DeleteRequest} returns this - */ -proto.scoretrak.team.v1.DeleteRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.DeleteRequest.prototype.hasId = 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.scoretrak.team.v1.DeleteResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.DeleteResponse.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.scoretrak.team.v1.DeleteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.DeleteResponse.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.scoretrak.team.v1.DeleteResponse} - */ -proto.scoretrak.team.v1.DeleteResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.DeleteResponse(); - return proto.scoretrak.team.v1.DeleteResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.DeleteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.DeleteResponse} - */ -proto.scoretrak.team.v1.DeleteResponse.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.scoretrak.team.v1.DeleteResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.DeleteResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.DeleteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.DeleteResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.team.v1.StoreRequest.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.scoretrak.team.v1.StoreRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.StoreRequest.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.scoretrak.team.v1.StoreRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.StoreRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - teamsList: jspb.Message.toObjectList( - msg.getTeamsList(), - proto.scoretrak.team.v1.Team.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.scoretrak.team.v1.StoreRequest} - */ -proto.scoretrak.team.v1.StoreRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.StoreRequest(); - return proto.scoretrak.team.v1.StoreRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.StoreRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.StoreRequest} - */ -proto.scoretrak.team.v1.StoreRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.team.v1.Team(); - reader.readMessage( - value, - proto.scoretrak.team.v1.Team.deserializeBinaryFromReader - ); - msg.addTeams(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.StoreRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.StoreRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.StoreRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.StoreRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getTeamsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.team.v1.Team.serializeBinaryToWriter - ); - } -}; - -/** - * repeated Team teams = 1; - * @return {!Array} - */ -proto.scoretrak.team.v1.StoreRequest.prototype.getTeamsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.scoretrak.team.v1.Team, 1) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.team.v1.StoreRequest} returns this - */ -proto.scoretrak.team.v1.StoreRequest.prototype.setTeamsList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.team.v1.Team=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.team.v1.Team} - */ -proto.scoretrak.team.v1.StoreRequest.prototype.addTeams = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.team.v1.Team, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.team.v1.StoreRequest} returns this - */ -proto.scoretrak.team.v1.StoreRequest.prototype.clearTeamsList = function () { - return this.setTeamsList([]); -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.team.v1.StoreResponse.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.scoretrak.team.v1.StoreResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.StoreResponse.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.scoretrak.team.v1.StoreResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.StoreResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - idsList: jspb.Message.toObjectList( - msg.getIdsList(), - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.team.v1.StoreResponse} - */ -proto.scoretrak.team.v1.StoreResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.StoreResponse(); - return proto.scoretrak.team.v1.StoreResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.StoreResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.StoreResponse} - */ -proto.scoretrak.team.v1.StoreResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.StoreResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.StoreResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.StoreResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.StoreResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * repeated scoretrak.proto.v1.UUID ids = 1; - * @return {!Array} - */ -proto.scoretrak.team.v1.StoreResponse.prototype.getIdsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_proto_v1_uuid_pb.UUID, - 1 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.team.v1.StoreResponse} returns this - */ -proto.scoretrak.team.v1.StoreResponse.prototype.setIdsList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.proto.v1.UUID=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.team.v1.StoreResponse.prototype.addIds = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.proto.v1.UUID, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.team.v1.StoreResponse} returns this - */ -proto.scoretrak.team.v1.StoreResponse.prototype.clearIdsList = function () { - return this.setIdsList([]); -}; - -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.scoretrak.team.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.UpdateRequest.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.scoretrak.team.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - team: - (f = msg.getTeam()) && - proto.scoretrak.team.v1.Team.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.scoretrak.team.v1.UpdateRequest} - */ -proto.scoretrak.team.v1.UpdateRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.UpdateRequest(); - return proto.scoretrak.team.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.UpdateRequest} - */ -proto.scoretrak.team.v1.UpdateRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.team.v1.Team(); - reader.readMessage( - value, - proto.scoretrak.team.v1.Team.deserializeBinaryFromReader - ); - msg.setTeam(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.team.v1.UpdateRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.UpdateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getTeam(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.team.v1.Team.serializeBinaryToWriter - ); - } -}; - -/** - * optional Team team = 1; - * @return {?proto.scoretrak.team.v1.Team} - */ -proto.scoretrak.team.v1.UpdateRequest.prototype.getTeam = function () { - return /** @type{?proto.scoretrak.team.v1.Team} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.team.v1.Team, 1) - ); -}; - -/** - * @param {?proto.scoretrak.team.v1.Team|undefined} value - * @return {!proto.scoretrak.team.v1.UpdateRequest} returns this - */ -proto.scoretrak.team.v1.UpdateRequest.prototype.setTeam = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.team.v1.UpdateRequest} returns this - */ -proto.scoretrak.team.v1.UpdateRequest.prototype.clearTeam = function () { - return this.setTeam(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.team.v1.UpdateRequest.prototype.hasTeam = 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.scoretrak.team.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.team.v1.UpdateResponse.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.scoretrak.team.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.team.v1.UpdateResponse.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.scoretrak.team.v1.UpdateResponse} - */ -proto.scoretrak.team.v1.UpdateResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.team.v1.UpdateResponse(); - return proto.scoretrak.team.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.team.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.team.v1.UpdateResponse} - */ -proto.scoretrak.team.v1.UpdateResponse.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.scoretrak.team.v1.UpdateResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.team.v1.UpdateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.team.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.team.v1.UpdateResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -goog.object.extend(exports, proto.scoretrak.team.v1); diff --git a/src/lib/scoretrakapis/scoretrak/user/v1/UserServiceClientPb.ts b/src/lib/scoretrakapis/scoretrak/user/v1/UserServiceClientPb.ts deleted file mode 100644 index 7baf123..0000000 --- a/src/lib/scoretrakapis/scoretrak/user/v1/UserServiceClientPb.ts +++ /dev/null @@ -1,336 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for scoretrak.user.v1 - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - -/* eslint-disable */ -// @ts-nocheck - -import * as grpcWeb from "grpc-web"; - -import * as scoretrak_user_v1_user_pb from "../../../scoretrak/user/v1/user_pb"; - -export class UserServiceClient { - client_: grpcWeb.AbstractClientBase; - hostname_: string; - credentials_: null | { [index: string]: string }; - options_: null | { [index: string]: any }; - - constructor( - hostname: string, - credentials?: null | { [index: string]: string }, - options?: null | { [index: string]: any } - ) { - if (!options) options = {}; - if (!credentials) credentials = {}; - options["format"] = "text"; - - this.client_ = new grpcWeb.GrpcWebClientBase(options); - this.hostname_ = hostname; - this.credentials_ = credentials; - this.options_ = options; - } - - methodDescriptorGetAll = new grpcWeb.MethodDescriptor( - "/scoretrak.user.v1.UserService/GetAll", - grpcWeb.MethodType.UNARY, - scoretrak_user_v1_user_pb.GetAllRequest, - scoretrak_user_v1_user_pb.GetAllResponse, - (request: scoretrak_user_v1_user_pb.GetAllRequest) => { - return request.serializeBinary(); - }, - scoretrak_user_v1_user_pb.GetAllResponse.deserializeBinary - ); - - getAll( - request: scoretrak_user_v1_user_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getAll( - request: scoretrak_user_v1_user_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.GetAllResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getAll( - request: scoretrak_user_v1_user_pb.GetAllRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.GetAllResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.user.v1.UserService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.user.v1.UserService/GetAll", - request, - metadata || {}, - this.methodDescriptorGetAll - ); - } - - methodDescriptorGetByID = new grpcWeb.MethodDescriptor( - "/scoretrak.user.v1.UserService/GetByID", - grpcWeb.MethodType.UNARY, - scoretrak_user_v1_user_pb.GetByIDRequest, - scoretrak_user_v1_user_pb.GetByIDResponse, - (request: scoretrak_user_v1_user_pb.GetByIDRequest) => { - return request.serializeBinary(); - }, - scoretrak_user_v1_user_pb.GetByIDResponse.deserializeBinary - ); - - getByID( - request: scoretrak_user_v1_user_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByID( - request: scoretrak_user_v1_user_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.GetByIDResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByID( - request: scoretrak_user_v1_user_pb.GetByIDRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.GetByIDResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.user.v1.UserService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.user.v1.UserService/GetByID", - request, - metadata || {}, - this.methodDescriptorGetByID - ); - } - - methodDescriptorDelete = new grpcWeb.MethodDescriptor( - "/scoretrak.user.v1.UserService/Delete", - grpcWeb.MethodType.UNARY, - scoretrak_user_v1_user_pb.DeleteRequest, - scoretrak_user_v1_user_pb.DeleteResponse, - (request: scoretrak_user_v1_user_pb.DeleteRequest) => { - return request.serializeBinary(); - }, - scoretrak_user_v1_user_pb.DeleteResponse.deserializeBinary - ); - - delete( - request: scoretrak_user_v1_user_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - delete( - request: scoretrak_user_v1_user_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.DeleteResponse - ) => void - ): grpcWeb.ClientReadableStream; - - delete( - request: scoretrak_user_v1_user_pb.DeleteRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.DeleteResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.user.v1.UserService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.user.v1.UserService/Delete", - request, - metadata || {}, - this.methodDescriptorDelete - ); - } - - methodDescriptorStore = new grpcWeb.MethodDescriptor( - "/scoretrak.user.v1.UserService/Store", - grpcWeb.MethodType.UNARY, - scoretrak_user_v1_user_pb.StoreRequest, - scoretrak_user_v1_user_pb.StoreResponse, - (request: scoretrak_user_v1_user_pb.StoreRequest) => { - return request.serializeBinary(); - }, - scoretrak_user_v1_user_pb.StoreResponse.deserializeBinary - ); - - store( - request: scoretrak_user_v1_user_pb.StoreRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - store( - request: scoretrak_user_v1_user_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.StoreResponse - ) => void - ): grpcWeb.ClientReadableStream; - - store( - request: scoretrak_user_v1_user_pb.StoreRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.StoreResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.user.v1.UserService/Store", - request, - metadata || {}, - this.methodDescriptorStore, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.user.v1.UserService/Store", - request, - metadata || {}, - this.methodDescriptorStore - ); - } - - methodDescriptorUpdate = new grpcWeb.MethodDescriptor( - "/scoretrak.user.v1.UserService/Update", - grpcWeb.MethodType.UNARY, - scoretrak_user_v1_user_pb.UpdateRequest, - scoretrak_user_v1_user_pb.UpdateResponse, - (request: scoretrak_user_v1_user_pb.UpdateRequest) => { - return request.serializeBinary(); - }, - scoretrak_user_v1_user_pb.UpdateResponse.deserializeBinary - ); - - update( - request: scoretrak_user_v1_user_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - update( - request: scoretrak_user_v1_user_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.UpdateResponse - ) => void - ): grpcWeb.ClientReadableStream; - - update( - request: scoretrak_user_v1_user_pb.UpdateRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.UpdateResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.user.v1.UserService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.user.v1.UserService/Update", - request, - metadata || {}, - this.methodDescriptorUpdate - ); - } - - methodDescriptorGetByUsername = new grpcWeb.MethodDescriptor( - "/scoretrak.user.v1.UserService/GetByUsername", - grpcWeb.MethodType.UNARY, - scoretrak_user_v1_user_pb.GetByUsernameRequest, - scoretrak_user_v1_user_pb.GetByUsernameResponse, - (request: scoretrak_user_v1_user_pb.GetByUsernameRequest) => { - return request.serializeBinary(); - }, - scoretrak_user_v1_user_pb.GetByUsernameResponse.deserializeBinary - ); - - getByUsername( - request: scoretrak_user_v1_user_pb.GetByUsernameRequest, - metadata: grpcWeb.Metadata | null - ): Promise; - - getByUsername( - request: scoretrak_user_v1_user_pb.GetByUsernameRequest, - metadata: grpcWeb.Metadata | null, - callback: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.GetByUsernameResponse - ) => void - ): grpcWeb.ClientReadableStream; - - getByUsername( - request: scoretrak_user_v1_user_pb.GetByUsernameRequest, - metadata: grpcWeb.Metadata | null, - callback?: ( - err: grpcWeb.RpcError, - response: scoretrak_user_v1_user_pb.GetByUsernameResponse - ) => void - ) { - if (callback !== undefined) { - return this.client_.rpcCall( - this.hostname_ + "/scoretrak.user.v1.UserService/GetByUsername", - request, - metadata || {}, - this.methodDescriptorGetByUsername, - callback - ); - } - return this.client_.unaryCall( - this.hostname_ + "/scoretrak.user.v1.UserService/GetByUsername", - request, - metadata || {}, - this.methodDescriptorGetByUsername - ); - } -} diff --git a/src/lib/scoretrakapis/scoretrak/user/v1/user_pb.d.ts b/src/lib/scoretrakapis/scoretrak/user/v1/user_pb.d.ts deleted file mode 100644 index 9d2e6ab..0000000 --- a/src/lib/scoretrakapis/scoretrak/user/v1/user_pb.d.ts +++ /dev/null @@ -1,386 +0,0 @@ -import * as jspb from "google-protobuf"; - -import * as scoretrak_proto_v1_uuid_pb from "../../../scoretrak/proto/v1/uuid_pb"; - -export class User extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): User; - hasId(): boolean; - clearId(): User; - - getUsername(): string; - setUsername(value: string): User; - - getTeamId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setTeamId(value?: scoretrak_proto_v1_uuid_pb.UUID): User; - hasTeamId(): boolean; - clearTeamId(): User; - - getPassword(): string; - setPassword(value: string): User; - - getRole(): Role; - setRole(value: Role): User; - - getPasswordHash(): string; - setPasswordHash(value: string): User; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): User.AsObject; - static toObject(includeInstance: boolean, msg: User): User.AsObject; - static serializeBinaryToWriter( - message: User, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): User; - static deserializeBinaryFromReader( - message: User, - reader: jspb.BinaryReader - ): User; -} - -export namespace User { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - username: string; - teamId?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - password: string; - role: Role; - passwordHash: string; - }; -} - -export class GetAllRequest extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllRequest - ): GetAllRequest.AsObject; - static serializeBinaryToWriter( - message: GetAllRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllRequest; - static deserializeBinaryFromReader( - message: GetAllRequest, - reader: jspb.BinaryReader - ): GetAllRequest; -} - -export namespace GetAllRequest { - export type AsObject = {}; -} - -export class GetAllResponse extends jspb.Message { - getUsersList(): Array; - setUsersList(value: Array): GetAllResponse; - clearUsersList(): GetAllResponse; - addUsers(value?: User, index?: number): User; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAllResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetAllResponse - ): GetAllResponse.AsObject; - static serializeBinaryToWriter( - message: GetAllResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetAllResponse; - static deserializeBinaryFromReader( - message: GetAllResponse, - reader: jspb.BinaryReader - ): GetAllResponse; -} - -export namespace GetAllResponse { - export type AsObject = { - usersList: Array; - }; -} - -export class GetByIDRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): GetByIDRequest; - hasId(): boolean; - clearId(): GetByIDRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDRequest - ): GetByIDRequest.AsObject; - static serializeBinaryToWriter( - message: GetByIDRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDRequest; - static deserializeBinaryFromReader( - message: GetByIDRequest, - reader: jspb.BinaryReader - ): GetByIDRequest; -} - -export namespace GetByIDRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class GetByIDResponse extends jspb.Message { - getUser(): User | undefined; - setUser(value?: User): GetByIDResponse; - hasUser(): boolean; - clearUser(): GetByIDResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByIDResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByIDResponse - ): GetByIDResponse.AsObject; - static serializeBinaryToWriter( - message: GetByIDResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByIDResponse; - static deserializeBinaryFromReader( - message: GetByIDResponse, - reader: jspb.BinaryReader - ): GetByIDResponse; -} - -export namespace GetByIDResponse { - export type AsObject = { - user?: User.AsObject; - }; -} - -export class DeleteRequest extends jspb.Message { - getId(): scoretrak_proto_v1_uuid_pb.UUID | undefined; - setId(value?: scoretrak_proto_v1_uuid_pb.UUID): DeleteRequest; - hasId(): boolean; - clearId(): DeleteRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteRequest - ): DeleteRequest.AsObject; - static serializeBinaryToWriter( - message: DeleteRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteRequest; - static deserializeBinaryFromReader( - message: DeleteRequest, - reader: jspb.BinaryReader - ): DeleteRequest; -} - -export namespace DeleteRequest { - export type AsObject = { - id?: scoretrak_proto_v1_uuid_pb.UUID.AsObject; - }; -} - -export class DeleteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: DeleteResponse - ): DeleteResponse.AsObject; - static serializeBinaryToWriter( - message: DeleteResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): DeleteResponse; - static deserializeBinaryFromReader( - message: DeleteResponse, - reader: jspb.BinaryReader - ): DeleteResponse; -} - -export namespace DeleteResponse { - export type AsObject = {}; -} - -export class StoreRequest extends jspb.Message { - getUsersList(): Array; - setUsersList(value: Array): StoreRequest; - clearUsersList(): StoreRequest; - addUsers(value?: User, index?: number): User; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreRequest - ): StoreRequest.AsObject; - static serializeBinaryToWriter( - message: StoreRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreRequest; - static deserializeBinaryFromReader( - message: StoreRequest, - reader: jspb.BinaryReader - ): StoreRequest; -} - -export namespace StoreRequest { - export type AsObject = { - usersList: Array; - }; -} - -export class StoreResponse extends jspb.Message { - getIdsList(): Array; - setIdsList(value: Array): StoreResponse; - clearIdsList(): StoreResponse; - addIds( - value?: scoretrak_proto_v1_uuid_pb.UUID, - index?: number - ): scoretrak_proto_v1_uuid_pb.UUID; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StoreResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: StoreResponse - ): StoreResponse.AsObject; - static serializeBinaryToWriter( - message: StoreResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): StoreResponse; - static deserializeBinaryFromReader( - message: StoreResponse, - reader: jspb.BinaryReader - ): StoreResponse; -} - -export namespace StoreResponse { - export type AsObject = { - idsList: Array; - }; -} - -export class UpdateRequest extends jspb.Message { - getUser(): User | undefined; - setUser(value?: User): UpdateRequest; - hasUser(): boolean; - clearUser(): UpdateRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateRequest - ): UpdateRequest.AsObject; - static serializeBinaryToWriter( - message: UpdateRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateRequest; - static deserializeBinaryFromReader( - message: UpdateRequest, - reader: jspb.BinaryReader - ): UpdateRequest; -} - -export namespace UpdateRequest { - export type AsObject = { - user?: User.AsObject; - }; -} - -export class UpdateResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): UpdateResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: UpdateResponse - ): UpdateResponse.AsObject; - static serializeBinaryToWriter( - message: UpdateResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): UpdateResponse; - static deserializeBinaryFromReader( - message: UpdateResponse, - reader: jspb.BinaryReader - ): UpdateResponse; -} - -export namespace UpdateResponse { - export type AsObject = {}; -} - -export class GetByUsernameRequest extends jspb.Message { - getUsername(): string; - setUsername(value: string): GetByUsernameRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByUsernameRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByUsernameRequest - ): GetByUsernameRequest.AsObject; - static serializeBinaryToWriter( - message: GetByUsernameRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByUsernameRequest; - static deserializeBinaryFromReader( - message: GetByUsernameRequest, - reader: jspb.BinaryReader - ): GetByUsernameRequest; -} - -export namespace GetByUsernameRequest { - export type AsObject = { - username: string; - }; -} - -export class GetByUsernameResponse extends jspb.Message { - getUser(): User | undefined; - setUser(value?: User): GetByUsernameResponse; - hasUser(): boolean; - clearUser(): GetByUsernameResponse; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetByUsernameResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: GetByUsernameResponse - ): GetByUsernameResponse.AsObject; - static serializeBinaryToWriter( - message: GetByUsernameResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): GetByUsernameResponse; - static deserializeBinaryFromReader( - message: GetByUsernameResponse, - reader: jspb.BinaryReader - ): GetByUsernameResponse; -} - -export namespace GetByUsernameResponse { - export type AsObject = { - user?: User.AsObject; - }; -} - -export enum Role { - ROLE_UNSPECIFIED = 0, - ROLE_BLUE = 1, - ROLE_RED = 2, - ROLE_BLACK = 3, -} diff --git a/src/lib/scoretrakapis/scoretrak/user/v1/user_pb.js b/src/lib/scoretrakapis/scoretrak/user/v1/user_pb.js deleted file mode 100644 index e9693fc..0000000 --- a/src/lib/scoretrakapis/scoretrak/user/v1/user_pb.js +++ /dev/null @@ -1,2512 +0,0 @@ -// source: scoretrak/user/v1/user.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 scoretrak_proto_v1_uuid_pb = require("../../../scoretrak/proto/v1/uuid_pb.js"); -goog.object.extend(proto, scoretrak_proto_v1_uuid_pb); -goog.exportSymbol("proto.scoretrak.user.v1.DeleteRequest", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.DeleteResponse", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.GetAllRequest", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.GetAllResponse", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.GetByIDRequest", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.GetByIDResponse", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.GetByUsernameRequest", null, global); -goog.exportSymbol( - "proto.scoretrak.user.v1.GetByUsernameResponse", - null, - global -); -goog.exportSymbol("proto.scoretrak.user.v1.Role", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.StoreRequest", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.StoreResponse", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.UpdateRequest", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.UpdateResponse", null, global); -goog.exportSymbol("proto.scoretrak.user.v1.User", 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.scoretrak.user.v1.User = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.User, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.User.displayName = "proto.scoretrak.user.v1.User"; -} -/** - * 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.scoretrak.user.v1.GetAllRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.GetAllRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.GetAllRequest.displayName = - "proto.scoretrak.user.v1.GetAllRequest"; -} -/** - * 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.scoretrak.user.v1.GetAllResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.user.v1.GetAllResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.user.v1.GetAllResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.GetAllResponse.displayName = - "proto.scoretrak.user.v1.GetAllResponse"; -} -/** - * 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.scoretrak.user.v1.GetByIDRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.GetByIDRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.GetByIDRequest.displayName = - "proto.scoretrak.user.v1.GetByIDRequest"; -} -/** - * 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.scoretrak.user.v1.GetByIDResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.GetByIDResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.GetByIDResponse.displayName = - "proto.scoretrak.user.v1.GetByIDResponse"; -} -/** - * 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.scoretrak.user.v1.DeleteRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.DeleteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.DeleteRequest.displayName = - "proto.scoretrak.user.v1.DeleteRequest"; -} -/** - * 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.scoretrak.user.v1.DeleteResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.DeleteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.DeleteResponse.displayName = - "proto.scoretrak.user.v1.DeleteResponse"; -} -/** - * 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.scoretrak.user.v1.StoreRequest = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.user.v1.StoreRequest.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.user.v1.StoreRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.StoreRequest.displayName = - "proto.scoretrak.user.v1.StoreRequest"; -} -/** - * 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.scoretrak.user.v1.StoreResponse = function (opt_data) { - jspb.Message.initialize( - this, - opt_data, - 0, - -1, - proto.scoretrak.user.v1.StoreResponse.repeatedFields_, - null - ); -}; -goog.inherits(proto.scoretrak.user.v1.StoreResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.StoreResponse.displayName = - "proto.scoretrak.user.v1.StoreResponse"; -} -/** - * 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.scoretrak.user.v1.UpdateRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.UpdateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.UpdateRequest.displayName = - "proto.scoretrak.user.v1.UpdateRequest"; -} -/** - * 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.scoretrak.user.v1.UpdateResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.UpdateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.UpdateResponse.displayName = - "proto.scoretrak.user.v1.UpdateResponse"; -} -/** - * 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.scoretrak.user.v1.GetByUsernameRequest = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.GetByUsernameRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.GetByUsernameRequest.displayName = - "proto.scoretrak.user.v1.GetByUsernameRequest"; -} -/** - * 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.scoretrak.user.v1.GetByUsernameResponse = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.scoretrak.user.v1.GetByUsernameResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.scoretrak.user.v1.GetByUsernameResponse.displayName = - "proto.scoretrak.user.v1.GetByUsernameResponse"; -} - -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.scoretrak.user.v1.User.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.User.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.scoretrak.user.v1.User} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.User.toObject = function (includeInstance, msg) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - username: jspb.Message.getFieldWithDefault(msg, 2, ""), - teamId: - (f = msg.getTeamId()) && - scoretrak_proto_v1_uuid_pb.UUID.toObject(includeInstance, f), - password: jspb.Message.getFieldWithDefault(msg, 5, ""), - role: jspb.Message.getFieldWithDefault(msg, 6, 0), - passwordHash: jspb.Message.getFieldWithDefault(msg, 7, ""), - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; - }; -} - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.scoretrak.user.v1.User} - */ -proto.scoretrak.user.v1.User.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.User(); - return proto.scoretrak.user.v1.User.deserializeBinaryFromReader(msg, reader); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.User} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.User} - */ -proto.scoretrak.user.v1.User.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 4: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setTeamId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 6: - var value = /** @type {!proto.scoretrak.user.v1.Role} */ ( - reader.readEnum() - ); - msg.setRole(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setPasswordHash(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.User.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.User.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.User} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.User.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getTeamId(); - if (f != null) { - writer.writeMessage( - 4, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString(5, f); - } - f = message.getRole(); - if (f !== 0.0) { - writer.writeEnum(6, f); - } - f = message.getPasswordHash(); - if (f.length > 0) { - writer.writeString(7, f); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.user.v1.User.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.user.v1.User.prototype.hasId = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * optional string username = 2; - * @return {string} - */ -proto.scoretrak.user.v1.User.prototype.getUsername = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.setUsername = function (value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - -/** - * optional scoretrak.proto.v1.UUID team_id = 4; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.user.v1.User.prototype.getTeamId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 4) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.setTeamId = function (value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.clearTeamId = function () { - return this.setTeamId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.user.v1.User.prototype.hasTeamId = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * optional string password = 5; - * @return {string} - */ -proto.scoretrak.user.v1.User.prototype.getPassword = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.setPassword = function (value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - -/** - * optional Role role = 6; - * @return {!proto.scoretrak.user.v1.Role} - */ -proto.scoretrak.user.v1.User.prototype.getRole = function () { - return /** @type {!proto.scoretrak.user.v1.Role} */ ( - jspb.Message.getFieldWithDefault(this, 6, 0) - ); -}; - -/** - * @param {!proto.scoretrak.user.v1.Role} value - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.setRole = function (value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - -/** - * optional string password_hash = 7; - * @return {string} - */ -proto.scoretrak.user.v1.User.prototype.getPasswordHash = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - -/** - * @param {string} value - * @return {!proto.scoretrak.user.v1.User} returns this - */ -proto.scoretrak.user.v1.User.prototype.setPasswordHash = function (value) { - return jspb.Message.setProto3StringField(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.scoretrak.user.v1.GetAllRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.GetAllRequest.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.scoretrak.user.v1.GetAllRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.GetAllRequest.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.scoretrak.user.v1.GetAllRequest} - */ -proto.scoretrak.user.v1.GetAllRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.GetAllRequest(); - return proto.scoretrak.user.v1.GetAllRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.GetAllRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.GetAllRequest} - */ -proto.scoretrak.user.v1.GetAllRequest.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.scoretrak.user.v1.GetAllRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.GetAllRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.GetAllRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.GetAllRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.user.v1.GetAllResponse.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.scoretrak.user.v1.GetAllResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.GetAllResponse.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.scoretrak.user.v1.GetAllResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.GetAllResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - usersList: jspb.Message.toObjectList( - msg.getUsersList(), - proto.scoretrak.user.v1.User.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.scoretrak.user.v1.GetAllResponse} - */ -proto.scoretrak.user.v1.GetAllResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.GetAllResponse(); - return proto.scoretrak.user.v1.GetAllResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.GetAllResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.GetAllResponse} - */ -proto.scoretrak.user.v1.GetAllResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.user.v1.User(); - reader.readMessage( - value, - proto.scoretrak.user.v1.User.deserializeBinaryFromReader - ); - msg.addUsers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.GetAllResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.GetAllResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.GetAllResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.GetAllResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getUsersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.user.v1.User.serializeBinaryToWriter - ); - } -}; - -/** - * repeated User users = 1; - * @return {!Array} - */ -proto.scoretrak.user.v1.GetAllResponse.prototype.getUsersList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.scoretrak.user.v1.User, 1) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.user.v1.GetAllResponse} returns this - */ -proto.scoretrak.user.v1.GetAllResponse.prototype.setUsersList = function ( - value -) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.user.v1.User=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.user.v1.User} - */ -proto.scoretrak.user.v1.GetAllResponse.prototype.addUsers = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.user.v1.User, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.user.v1.GetAllResponse} returns this - */ -proto.scoretrak.user.v1.GetAllResponse.prototype.clearUsersList = function () { - return this.setUsersList([]); -}; - -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.scoretrak.user.v1.GetByIDRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.GetByIDRequest.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.scoretrak.user.v1.GetByIDRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.GetByIDRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.user.v1.GetByIDRequest} - */ -proto.scoretrak.user.v1.GetByIDRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.GetByIDRequest(); - return proto.scoretrak.user.v1.GetByIDRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.GetByIDRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.GetByIDRequest} - */ -proto.scoretrak.user.v1.GetByIDRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.GetByIDRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.GetByIDRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.GetByIDRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.GetByIDRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.user.v1.GetByIDRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.user.v1.GetByIDRequest} returns this - */ -proto.scoretrak.user.v1.GetByIDRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.user.v1.GetByIDRequest} returns this - */ -proto.scoretrak.user.v1.GetByIDRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.user.v1.GetByIDRequest.prototype.hasId = 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.scoretrak.user.v1.GetByIDResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.GetByIDResponse.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.scoretrak.user.v1.GetByIDResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.GetByIDResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - user: - (f = msg.getUser()) && - proto.scoretrak.user.v1.User.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.scoretrak.user.v1.GetByIDResponse} - */ -proto.scoretrak.user.v1.GetByIDResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.GetByIDResponse(); - return proto.scoretrak.user.v1.GetByIDResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.GetByIDResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.GetByIDResponse} - */ -proto.scoretrak.user.v1.GetByIDResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.user.v1.User(); - reader.readMessage( - value, - proto.scoretrak.user.v1.User.deserializeBinaryFromReader - ); - msg.setUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.GetByIDResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.GetByIDResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.GetByIDResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.GetByIDResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.user.v1.User.serializeBinaryToWriter - ); - } -}; - -/** - * optional User user = 1; - * @return {?proto.scoretrak.user.v1.User} - */ -proto.scoretrak.user.v1.GetByIDResponse.prototype.getUser = function () { - return /** @type{?proto.scoretrak.user.v1.User} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.user.v1.User, 1) - ); -}; - -/** - * @param {?proto.scoretrak.user.v1.User|undefined} value - * @return {!proto.scoretrak.user.v1.GetByIDResponse} returns this - */ -proto.scoretrak.user.v1.GetByIDResponse.prototype.setUser = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.user.v1.GetByIDResponse} returns this - */ -proto.scoretrak.user.v1.GetByIDResponse.prototype.clearUser = function () { - return this.setUser(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.user.v1.GetByIDResponse.prototype.hasUser = 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.scoretrak.user.v1.DeleteRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.DeleteRequest.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.scoretrak.user.v1.DeleteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.DeleteRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - id: - (f = msg.getId()) && - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.user.v1.DeleteRequest} - */ -proto.scoretrak.user.v1.DeleteRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.DeleteRequest(); - return proto.scoretrak.user.v1.DeleteRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.DeleteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.DeleteRequest} - */ -proto.scoretrak.user.v1.DeleteRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.DeleteRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.DeleteRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.DeleteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.DeleteRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * optional scoretrak.proto.v1.UUID id = 1; - * @return {?proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.user.v1.DeleteRequest.prototype.getId = function () { - return /** @type{?proto.scoretrak.proto.v1.UUID} */ ( - jspb.Message.getWrapperField(this, scoretrak_proto_v1_uuid_pb.UUID, 1) - ); -}; - -/** - * @param {?proto.scoretrak.proto.v1.UUID|undefined} value - * @return {!proto.scoretrak.user.v1.DeleteRequest} returns this - */ -proto.scoretrak.user.v1.DeleteRequest.prototype.setId = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.user.v1.DeleteRequest} returns this - */ -proto.scoretrak.user.v1.DeleteRequest.prototype.clearId = function () { - return this.setId(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.user.v1.DeleteRequest.prototype.hasId = 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.scoretrak.user.v1.DeleteResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.DeleteResponse.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.scoretrak.user.v1.DeleteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.DeleteResponse.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.scoretrak.user.v1.DeleteResponse} - */ -proto.scoretrak.user.v1.DeleteResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.DeleteResponse(); - return proto.scoretrak.user.v1.DeleteResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.DeleteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.DeleteResponse} - */ -proto.scoretrak.user.v1.DeleteResponse.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.scoretrak.user.v1.DeleteResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.DeleteResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.DeleteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.DeleteResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.user.v1.StoreRequest.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.scoretrak.user.v1.StoreRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.StoreRequest.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.scoretrak.user.v1.StoreRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.StoreRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - usersList: jspb.Message.toObjectList( - msg.getUsersList(), - proto.scoretrak.user.v1.User.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.scoretrak.user.v1.StoreRequest} - */ -proto.scoretrak.user.v1.StoreRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.StoreRequest(); - return proto.scoretrak.user.v1.StoreRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.StoreRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.StoreRequest} - */ -proto.scoretrak.user.v1.StoreRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.user.v1.User(); - reader.readMessage( - value, - proto.scoretrak.user.v1.User.deserializeBinaryFromReader - ); - msg.addUsers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.StoreRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.StoreRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.StoreRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.StoreRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getUsersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.scoretrak.user.v1.User.serializeBinaryToWriter - ); - } -}; - -/** - * repeated User users = 1; - * @return {!Array} - */ -proto.scoretrak.user.v1.StoreRequest.prototype.getUsersList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.scoretrak.user.v1.User, 1) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.user.v1.StoreRequest} returns this - */ -proto.scoretrak.user.v1.StoreRequest.prototype.setUsersList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.user.v1.User=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.user.v1.User} - */ -proto.scoretrak.user.v1.StoreRequest.prototype.addUsers = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.user.v1.User, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.user.v1.StoreRequest} returns this - */ -proto.scoretrak.user.v1.StoreRequest.prototype.clearUsersList = function () { - return this.setUsersList([]); -}; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.scoretrak.user.v1.StoreResponse.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.scoretrak.user.v1.StoreResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.StoreResponse.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.scoretrak.user.v1.StoreResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.StoreResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - idsList: jspb.Message.toObjectList( - msg.getIdsList(), - scoretrak_proto_v1_uuid_pb.UUID.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.scoretrak.user.v1.StoreResponse} - */ -proto.scoretrak.user.v1.StoreResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.StoreResponse(); - return proto.scoretrak.user.v1.StoreResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.StoreResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.StoreResponse} - */ -proto.scoretrak.user.v1.StoreResponse.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new scoretrak_proto_v1_uuid_pb.UUID(); - reader.readMessage( - value, - scoretrak_proto_v1_uuid_pb.UUID.deserializeBinaryFromReader - ); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.StoreResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.StoreResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.StoreResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.StoreResponse.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - scoretrak_proto_v1_uuid_pb.UUID.serializeBinaryToWriter - ); - } -}; - -/** - * repeated scoretrak.proto.v1.UUID ids = 1; - * @return {!Array} - */ -proto.scoretrak.user.v1.StoreResponse.prototype.getIdsList = function () { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField( - this, - scoretrak_proto_v1_uuid_pb.UUID, - 1 - ) - ); -}; - -/** - * @param {!Array} value - * @return {!proto.scoretrak.user.v1.StoreResponse} returns this - */ -proto.scoretrak.user.v1.StoreResponse.prototype.setIdsList = function (value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - -/** - * @param {!proto.scoretrak.proto.v1.UUID=} opt_value - * @param {number=} opt_index - * @return {!proto.scoretrak.proto.v1.UUID} - */ -proto.scoretrak.user.v1.StoreResponse.prototype.addIds = function ( - opt_value, - opt_index -) { - return jspb.Message.addToRepeatedWrapperField( - this, - 1, - opt_value, - proto.scoretrak.proto.v1.UUID, - opt_index - ); -}; - -/** - * Clears the list making it empty but non-null. - * @return {!proto.scoretrak.user.v1.StoreResponse} returns this - */ -proto.scoretrak.user.v1.StoreResponse.prototype.clearIdsList = function () { - return this.setIdsList([]); -}; - -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.scoretrak.user.v1.UpdateRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.UpdateRequest.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.scoretrak.user.v1.UpdateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.UpdateRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - user: - (f = msg.getUser()) && - proto.scoretrak.user.v1.User.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.scoretrak.user.v1.UpdateRequest} - */ -proto.scoretrak.user.v1.UpdateRequest.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.UpdateRequest(); - return proto.scoretrak.user.v1.UpdateRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.UpdateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.UpdateRequest} - */ -proto.scoretrak.user.v1.UpdateRequest.deserializeBinaryFromReader = function ( - msg, - reader -) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.user.v1.User(); - reader.readMessage( - value, - proto.scoretrak.user.v1.User.deserializeBinaryFromReader - ); - msg.setUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.UpdateRequest.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.UpdateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.UpdateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.UpdateRequest.serializeBinaryToWriter = function ( - message, - writer -) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.user.v1.User.serializeBinaryToWriter - ); - } -}; - -/** - * optional User user = 1; - * @return {?proto.scoretrak.user.v1.User} - */ -proto.scoretrak.user.v1.UpdateRequest.prototype.getUser = function () { - return /** @type{?proto.scoretrak.user.v1.User} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.user.v1.User, 1) - ); -}; - -/** - * @param {?proto.scoretrak.user.v1.User|undefined} value - * @return {!proto.scoretrak.user.v1.UpdateRequest} returns this - */ -proto.scoretrak.user.v1.UpdateRequest.prototype.setUser = function (value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.user.v1.UpdateRequest} returns this - */ -proto.scoretrak.user.v1.UpdateRequest.prototype.clearUser = function () { - return this.setUser(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.user.v1.UpdateRequest.prototype.hasUser = 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.scoretrak.user.v1.UpdateResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.UpdateResponse.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.scoretrak.user.v1.UpdateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.UpdateResponse.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.scoretrak.user.v1.UpdateResponse} - */ -proto.scoretrak.user.v1.UpdateResponse.deserializeBinary = function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.UpdateResponse(); - return proto.scoretrak.user.v1.UpdateResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.UpdateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.UpdateResponse} - */ -proto.scoretrak.user.v1.UpdateResponse.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.scoretrak.user.v1.UpdateResponse.prototype.serializeBinary = function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.UpdateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.UpdateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.UpdateResponse.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.scoretrak.user.v1.GetByUsernameRequest.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.GetByUsernameRequest.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.scoretrak.user.v1.GetByUsernameRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.GetByUsernameRequest.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - username: 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.scoretrak.user.v1.GetByUsernameRequest} - */ -proto.scoretrak.user.v1.GetByUsernameRequest.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.GetByUsernameRequest(); - return proto.scoretrak.user.v1.GetByUsernameRequest.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.GetByUsernameRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.GetByUsernameRequest} - */ -proto.scoretrak.user.v1.GetByUsernameRequest.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.setUsername(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.GetByUsernameRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.GetByUsernameRequest.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.GetByUsernameRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.GetByUsernameRequest.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getUsername(); - if (f.length > 0) { - writer.writeString(1, f); - } - }; - -/** - * optional string username = 1; - * @return {string} - */ -proto.scoretrak.user.v1.GetByUsernameRequest.prototype.getUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.scoretrak.user.v1.GetByUsernameRequest} returns this - */ -proto.scoretrak.user.v1.GetByUsernameRequest.prototype.setUsername = 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.scoretrak.user.v1.GetByUsernameResponse.prototype.toObject = function ( - opt_includeInstance - ) { - return proto.scoretrak.user.v1.GetByUsernameResponse.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.scoretrak.user.v1.GetByUsernameResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.scoretrak.user.v1.GetByUsernameResponse.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - user: - (f = msg.getUser()) && - proto.scoretrak.user.v1.User.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.scoretrak.user.v1.GetByUsernameResponse} - */ -proto.scoretrak.user.v1.GetByUsernameResponse.deserializeBinary = function ( - bytes -) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.scoretrak.user.v1.GetByUsernameResponse(); - return proto.scoretrak.user.v1.GetByUsernameResponse.deserializeBinaryFromReader( - msg, - reader - ); -}; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.scoretrak.user.v1.GetByUsernameResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.scoretrak.user.v1.GetByUsernameResponse} - */ -proto.scoretrak.user.v1.GetByUsernameResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.scoretrak.user.v1.User(); - reader.readMessage( - value, - proto.scoretrak.user.v1.User.deserializeBinaryFromReader - ); - msg.setUser(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.scoretrak.user.v1.GetByUsernameResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.scoretrak.user.v1.GetByUsernameResponse.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.scoretrak.user.v1.GetByUsernameResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.scoretrak.user.v1.GetByUsernameResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.scoretrak.user.v1.User.serializeBinaryToWriter - ); - } - }; - -/** - * optional User user = 1; - * @return {?proto.scoretrak.user.v1.User} - */ -proto.scoretrak.user.v1.GetByUsernameResponse.prototype.getUser = function () { - return /** @type{?proto.scoretrak.user.v1.User} */ ( - jspb.Message.getWrapperField(this, proto.scoretrak.user.v1.User, 1) - ); -}; - -/** - * @param {?proto.scoretrak.user.v1.User|undefined} value - * @return {!proto.scoretrak.user.v1.GetByUsernameResponse} returns this - */ -proto.scoretrak.user.v1.GetByUsernameResponse.prototype.setUser = function ( - value -) { - return jspb.Message.setWrapperField(this, 1, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.scoretrak.user.v1.GetByUsernameResponse} returns this - */ -proto.scoretrak.user.v1.GetByUsernameResponse.prototype.clearUser = - function () { - return this.setUser(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.scoretrak.user.v1.GetByUsernameResponse.prototype.hasUser = function () { - return jspb.Message.getField(this, 1) != null; -}; - -/** - * @enum {number} - */ -proto.scoretrak.user.v1.Role = { - ROLE_UNSPECIFIED: 0, - ROLE_BLUE: 1, - ROLE_RED: 2, - ROLE_BLACK: 3, -}; - -goog.object.extend(exports, proto.scoretrak.user.v1); diff --git a/src/routes/auth/sign_in.tsx b/src/routes/auth/sign_in.tsx index 10197ec..4b82869 100644 --- a/src/routes/auth/sign_in.tsx +++ b/src/routes/auth/sign_in.tsx @@ -1,7 +1,7 @@ import { useForm } from "react-hook-form"; import { useState } from "react"; import { useNavigate } from "react-router-dom"; -import { LoginRequest } from "../../lib/scoretrakapis/scoretrak/auth/v1/auth_pb"; +import { LoginRequest } from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/auth/v1/auth_pb"; import { gRPCClients } from "../../grpc/gRPCClients"; import { token } from "../../grpc/token/token"; import { Severity } from "../../types/types"; @@ -65,7 +65,7 @@ export default function Sign_in() { const loginRequest = new LoginRequest(); loginRequest.setUsername(data.username); loginRequest.setPassword(data.password); - gRPCClients.authClient.login(loginRequest, {}).then( + gRPCClients.auth.v1.authServicePromiseClient.login(loginRequest, {}).then( (r) => { token.saveToken(r.getAccessToken()); navigate("/"); diff --git a/src/routes/logs.tsx b/src/routes/logs.tsx index d6ab56a..4a87b60 100644 --- a/src/routes/logs.tsx +++ b/src/routes/logs.tsx @@ -1,7 +1,7 @@ import { GetAllRequest, Round, -} from "../lib/scoretrakapis/scoretrak/round/v1/round_pb"; +} from "@buf/grpc_web_scoretrak_scoretrakapis/scoretrak/round/v1/round_pb"; import { useSnackbar } from "notistack"; import MaterialTable, { Column } from "@material-table/core"; import { useEffect, useState } from "react"; @@ -55,7 +55,7 @@ export default function Logs() { }); function reloadSetter() { - gRPCClients.roundClient.getAll(new GetAllRequest(), {}).then( + gRPCClients.round.v1.roundServicePromiseClient.getAll(new GetAllRequest(), {}).then( (roundsResponse) => { setState((prevState) => { return { @@ -77,7 +77,7 @@ export default function Logs() { } useEffect(() => { reloadSetter(); - }, []); + }, []); // eslint-disable-line react-hooks/exhaustive-deps return ( <> diff --git a/src/routes/settings/index.tsx b/src/routes/settings/index.tsx index 629ad5a..bf9ccd7 100644 --- a/src/routes/settings/index.tsx +++ b/src/routes/settings/index.tsx @@ -80,7 +80,6 @@ export default function Settings() { variant="scrollable" scrollButtons="auto" aria-label="scrollable auto tabs example" - centered >