| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file svc/localhost/v1/service.proto (package svc.localhost.v1, syntax proto3) |
| 3 | /* eslint-disable */ |
| 4 | // @ts-nocheck |
| 5 | |
| 6 | import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; |
| 7 | import { Message, proto3 } from "@bufbuild/protobuf"; |
| 8 | import { Version } from "../../../types/v1/version_pb"; |
| 9 | import { ResMeta } from "../../../types/v1/meta_pb"; |
| 10 | import { User } from "../../../types/v1/user_pb"; |
| 11 | import { Organization } from "../../../types/v1/organization_pb"; |
| 12 | import { LocalhostConfig } from "../../../types/v1/localhost_config_pb"; |
| 13 | |
| 14 | /** |
| 15 | * @generated from message svc.localhost.v1.PingRequest |
| 16 | */ |
| 17 | export class PingRequest extends Message<PingRequest> { |
| 18 | constructor(data?: PartialMessage<PingRequest>) { |
| 19 | super(); |
| 20 | proto3.util.initPartial(data, this); |
| 21 | } |
| 22 | |
| 23 | static readonly runtime: typeof proto3 = proto3; |
| 24 | static readonly typeName = "svc.localhost.v1.PingRequest"; |
| 25 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 26 | ]); |
| 27 | |
| 28 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PingRequest { |
| 29 | return new PingRequest().fromBinary(bytes, options); |
| 30 | } |
| 31 | |
| 32 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PingRequest { |
| 33 | return new PingRequest().fromJson(jsonValue, options); |
| 34 | } |
| 35 | |
| 36 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PingRequest { |
| 37 | return new PingRequest().fromJsonString(jsonString, options); |
| 38 | } |
| 39 | |
| 40 | static equals(a: PingRequest | PlainMessage<PingRequest> | undefined, b: PingRequest | PlainMessage<PingRequest> | undefined): boolean { |
| 41 | return proto3.util.equals(PingRequest, a, b); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * @generated from message svc.localhost.v1.PingResponse |
| 47 | */ |
| 48 | export class PingResponse extends Message<PingResponse> { |
| 49 | /** |
| 50 | * @generated from field: types.v1.Version client_version = 1; |
| 51 | */ |
| 52 | clientVersion?: Version; |
| 53 | |
| 54 | /** |
| 55 | * @generated from field: string architecture = 2; |
| 56 | */ |
| 57 | architecture = ""; |
| 58 | |
| 59 | /** |
| 60 | * @generated from field: string operating_system = 3; |
| 61 | */ |
| 62 | operatingSystem = ""; |
| 63 | |
| 64 | /** |
| 65 | * logged_in_user is set if the CLI is logged in. |
| 66 | * if the CLI is alive but not logged in, this field |
| 67 | * is null |
| 68 | * |
| 69 | * @generated from field: svc.localhost.v1.PingResponse.UserDetails logged_in_user = 4; |
| 70 | */ |
| 71 | loggedInUser?: PingResponse_UserDetails; |
| 72 | |
| 73 | /** |
| 74 | * @generated from field: types.v1.ResMeta meta = 1000; |
| 75 | */ |
| 76 | meta?: ResMeta; |
| 77 | |
| 78 | constructor(data?: PartialMessage<PingResponse>) { |
| 79 | super(); |
| 80 | proto3.util.initPartial(data, this); |
| 81 | } |
| 82 | |
| 83 | static readonly runtime: typeof proto3 = proto3; |
| 84 | static readonly typeName = "svc.localhost.v1.PingResponse"; |
| 85 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 86 | { no: 1, name: "client_version", kind: "message", T: Version }, |
| 87 | { no: 2, name: "architecture", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 88 | { no: 3, name: "operating_system", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 89 | { no: 4, name: "logged_in_user", kind: "message", T: PingResponse_UserDetails }, |
| 90 | { no: 1000, name: "meta", kind: "message", T: ResMeta }, |
| 91 | ]); |
| 92 | |
| 93 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PingResponse { |
| 94 | return new PingResponse().fromBinary(bytes, options); |
| 95 | } |
| 96 | |
| 97 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PingResponse { |
| 98 | return new PingResponse().fromJson(jsonValue, options); |
| 99 | } |
| 100 | |
| 101 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PingResponse { |
| 102 | return new PingResponse().fromJsonString(jsonString, options); |
| 103 | } |
| 104 | |
| 105 | static equals(a: PingResponse | PlainMessage<PingResponse> | undefined, b: PingResponse | PlainMessage<PingResponse> | undefined): boolean { |
| 106 | return proto3.util.equals(PingResponse, a, b); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * @generated from message svc.localhost.v1.PingResponse.UserDetails |
| 112 | */ |
| 113 | export class PingResponse_UserDetails extends Message<PingResponse_UserDetails> { |
| 114 | /** |
| 115 | * @generated from field: types.v1.User user = 1; |
| 116 | */ |
| 117 | user?: User; |
| 118 | |
| 119 | /** |
| 120 | * @generated from field: types.v1.Organization current_organization = 2; |
| 121 | */ |
| 122 | currentOrganization?: Organization; |
| 123 | |
| 124 | /** |
| 125 | * @generated from field: types.v1.Organization default_organization = 3; |
| 126 | */ |
| 127 | defaultOrganization?: Organization; |
| 128 | |
| 129 | constructor(data?: PartialMessage<PingResponse_UserDetails>) { |
| 130 | super(); |
| 131 | proto3.util.initPartial(data, this); |
| 132 | } |
| 133 | |
| 134 | static readonly runtime: typeof proto3 = proto3; |
| 135 | static readonly typeName = "svc.localhost.v1.PingResponse.UserDetails"; |
| 136 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 137 | { no: 1, name: "user", kind: "message", T: User }, |
| 138 | { no: 2, name: "current_organization", kind: "message", T: Organization }, |
| 139 | { no: 3, name: "default_organization", kind: "message", T: Organization }, |
| 140 | ]); |
| 141 | |
| 142 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PingResponse_UserDetails { |
| 143 | return new PingResponse_UserDetails().fromBinary(bytes, options); |
| 144 | } |
| 145 | |
| 146 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PingResponse_UserDetails { |
| 147 | return new PingResponse_UserDetails().fromJson(jsonValue, options); |
| 148 | } |
| 149 | |
| 150 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PingResponse_UserDetails { |
| 151 | return new PingResponse_UserDetails().fromJsonString(jsonString, options); |
| 152 | } |
| 153 | |
| 154 | static equals(a: PingResponse_UserDetails | PlainMessage<PingResponse_UserDetails> | undefined, b: PingResponse_UserDetails | PlainMessage<PingResponse_UserDetails> | undefined): boolean { |
| 155 | return proto3.util.equals(PingResponse_UserDetails, a, b); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * @generated from message svc.localhost.v1.DoLoginRequest |
| 161 | */ |
| 162 | export class DoLoginRequest extends Message<DoLoginRequest> { |
| 163 | /** |
| 164 | * @generated from field: string returnToURL = 1; |
| 165 | */ |
| 166 | returnToURL = ""; |
| 167 | |
| 168 | constructor(data?: PartialMessage<DoLoginRequest>) { |
| 169 | super(); |
| 170 | proto3.util.initPartial(data, this); |
| 171 | } |
| 172 | |
| 173 | static readonly runtime: typeof proto3 = proto3; |
| 174 | static readonly typeName = "svc.localhost.v1.DoLoginRequest"; |
| 175 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 176 | { no: 1, name: "returnToURL", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 177 | ]); |
| 178 | |
| 179 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoLoginRequest { |
| 180 | return new DoLoginRequest().fromBinary(bytes, options); |
| 181 | } |
| 182 | |
| 183 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoLoginRequest { |
| 184 | return new DoLoginRequest().fromJson(jsonValue, options); |
| 185 | } |
| 186 | |
| 187 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoLoginRequest { |
| 188 | return new DoLoginRequest().fromJsonString(jsonString, options); |
| 189 | } |
| 190 | |
| 191 | static equals(a: DoLoginRequest | PlainMessage<DoLoginRequest> | undefined, b: DoLoginRequest | PlainMessage<DoLoginRequest> | undefined): boolean { |
| 192 | return proto3.util.equals(DoLoginRequest, a, b); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * @generated from message svc.localhost.v1.DoLoginResponse |
| 198 | */ |
| 199 | export class DoLoginResponse extends Message<DoLoginResponse> { |
| 200 | constructor(data?: PartialMessage<DoLoginResponse>) { |
| 201 | super(); |
| 202 | proto3.util.initPartial(data, this); |
| 203 | } |
| 204 | |
| 205 | static readonly runtime: typeof proto3 = proto3; |
| 206 | static readonly typeName = "svc.localhost.v1.DoLoginResponse"; |
| 207 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 208 | ]); |
| 209 | |
| 210 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoLoginResponse { |
| 211 | return new DoLoginResponse().fromBinary(bytes, options); |
| 212 | } |
| 213 | |
| 214 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoLoginResponse { |
| 215 | return new DoLoginResponse().fromJson(jsonValue, options); |
| 216 | } |
| 217 | |
| 218 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoLoginResponse { |
| 219 | return new DoLoginResponse().fromJsonString(jsonString, options); |
| 220 | } |
| 221 | |
| 222 | static equals(a: DoLoginResponse | PlainMessage<DoLoginResponse> | undefined, b: DoLoginResponse | PlainMessage<DoLoginResponse> | undefined): boolean { |
| 223 | return proto3.util.equals(DoLoginResponse, a, b); |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | /** |
| 228 | * @generated from message svc.localhost.v1.DoLogoutRequest |
| 229 | */ |
| 230 | export class DoLogoutRequest extends Message<DoLogoutRequest> { |
| 231 | /** |
| 232 | * @generated from field: string returnToURL = 1; |
| 233 | */ |
| 234 | returnToURL = ""; |
| 235 | |
| 236 | constructor(data?: PartialMessage<DoLogoutRequest>) { |
| 237 | super(); |
| 238 | proto3.util.initPartial(data, this); |
| 239 | } |
| 240 | |
| 241 | static readonly runtime: typeof proto3 = proto3; |
| 242 | static readonly typeName = "svc.localhost.v1.DoLogoutRequest"; |
| 243 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 244 | { no: 1, name: "returnToURL", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 245 | ]); |
| 246 | |
| 247 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoLogoutRequest { |
| 248 | return new DoLogoutRequest().fromBinary(bytes, options); |
| 249 | } |
| 250 | |
| 251 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoLogoutRequest { |
| 252 | return new DoLogoutRequest().fromJson(jsonValue, options); |
| 253 | } |
| 254 | |
| 255 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoLogoutRequest { |
| 256 | return new DoLogoutRequest().fromJsonString(jsonString, options); |
| 257 | } |
| 258 | |
| 259 | static equals(a: DoLogoutRequest | PlainMessage<DoLogoutRequest> | undefined, b: DoLogoutRequest | PlainMessage<DoLogoutRequest> | undefined): boolean { |
| 260 | return proto3.util.equals(DoLogoutRequest, a, b); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * @generated from message svc.localhost.v1.DoLogoutResponse |
| 266 | */ |
| 267 | export class DoLogoutResponse extends Message<DoLogoutResponse> { |
| 268 | constructor(data?: PartialMessage<DoLogoutResponse>) { |
| 269 | super(); |
| 270 | proto3.util.initPartial(data, this); |
| 271 | } |
| 272 | |
| 273 | static readonly runtime: typeof proto3 = proto3; |
| 274 | static readonly typeName = "svc.localhost.v1.DoLogoutResponse"; |
| 275 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 276 | ]); |
| 277 | |
| 278 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoLogoutResponse { |
| 279 | return new DoLogoutResponse().fromBinary(bytes, options); |
| 280 | } |
| 281 | |
| 282 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoLogoutResponse { |
| 283 | return new DoLogoutResponse().fromJson(jsonValue, options); |
| 284 | } |
| 285 | |
| 286 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoLogoutResponse { |
| 287 | return new DoLogoutResponse().fromJsonString(jsonString, options); |
| 288 | } |
| 289 | |
| 290 | static equals(a: DoLogoutResponse | PlainMessage<DoLogoutResponse> | undefined, b: DoLogoutResponse | PlainMessage<DoLogoutResponse> | undefined): boolean { |
| 291 | return proto3.util.equals(DoLogoutResponse, a, b); |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * @generated from message svc.localhost.v1.DoUpdateRequest |
| 297 | */ |
| 298 | export class DoUpdateRequest extends Message<DoUpdateRequest> { |
| 299 | constructor(data?: PartialMessage<DoUpdateRequest>) { |
| 300 | super(); |
| 301 | proto3.util.initPartial(data, this); |
| 302 | } |
| 303 | |
| 304 | static readonly runtime: typeof proto3 = proto3; |
| 305 | static readonly typeName = "svc.localhost.v1.DoUpdateRequest"; |
| 306 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 307 | ]); |
| 308 | |
| 309 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoUpdateRequest { |
| 310 | return new DoUpdateRequest().fromBinary(bytes, options); |
| 311 | } |
| 312 | |
| 313 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoUpdateRequest { |
| 314 | return new DoUpdateRequest().fromJson(jsonValue, options); |
| 315 | } |
| 316 | |
| 317 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoUpdateRequest { |
| 318 | return new DoUpdateRequest().fromJsonString(jsonString, options); |
| 319 | } |
| 320 | |
| 321 | static equals(a: DoUpdateRequest | PlainMessage<DoUpdateRequest> | undefined, b: DoUpdateRequest | PlainMessage<DoUpdateRequest> | undefined): boolean { |
| 322 | return proto3.util.equals(DoUpdateRequest, a, b); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | /** |
| 327 | * @generated from message svc.localhost.v1.DoUpdateResponse |
| 328 | */ |
| 329 | export class DoUpdateResponse extends Message<DoUpdateResponse> { |
| 330 | constructor(data?: PartialMessage<DoUpdateResponse>) { |
| 331 | super(); |
| 332 | proto3.util.initPartial(data, this); |
| 333 | } |
| 334 | |
| 335 | static readonly runtime: typeof proto3 = proto3; |
| 336 | static readonly typeName = "svc.localhost.v1.DoUpdateResponse"; |
| 337 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 338 | ]); |
| 339 | |
| 340 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoUpdateResponse { |
| 341 | return new DoUpdateResponse().fromBinary(bytes, options); |
| 342 | } |
| 343 | |
| 344 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoUpdateResponse { |
| 345 | return new DoUpdateResponse().fromJson(jsonValue, options); |
| 346 | } |
| 347 | |
| 348 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoUpdateResponse { |
| 349 | return new DoUpdateResponse().fromJsonString(jsonString, options); |
| 350 | } |
| 351 | |
| 352 | static equals(a: DoUpdateResponse | PlainMessage<DoUpdateResponse> | undefined, b: DoUpdateResponse | PlainMessage<DoUpdateResponse> | undefined): boolean { |
| 353 | return proto3.util.equals(DoUpdateResponse, a, b); |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * @generated from message svc.localhost.v1.DoRestartRequest |
| 359 | */ |
| 360 | export class DoRestartRequest extends Message<DoRestartRequest> { |
| 361 | constructor(data?: PartialMessage<DoRestartRequest>) { |
| 362 | super(); |
| 363 | proto3.util.initPartial(data, this); |
| 364 | } |
| 365 | |
| 366 | static readonly runtime: typeof proto3 = proto3; |
| 367 | static readonly typeName = "svc.localhost.v1.DoRestartRequest"; |
| 368 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 369 | ]); |
| 370 | |
| 371 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoRestartRequest { |
| 372 | return new DoRestartRequest().fromBinary(bytes, options); |
| 373 | } |
| 374 | |
| 375 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoRestartRequest { |
| 376 | return new DoRestartRequest().fromJson(jsonValue, options); |
| 377 | } |
| 378 | |
| 379 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoRestartRequest { |
| 380 | return new DoRestartRequest().fromJsonString(jsonString, options); |
| 381 | } |
| 382 | |
| 383 | static equals(a: DoRestartRequest | PlainMessage<DoRestartRequest> | undefined, b: DoRestartRequest | PlainMessage<DoRestartRequest> | undefined): boolean { |
| 384 | return proto3.util.equals(DoRestartRequest, a, b); |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | /** |
| 389 | * @generated from message svc.localhost.v1.DoRestartResponse |
| 390 | */ |
| 391 | export class DoRestartResponse extends Message<DoRestartResponse> { |
| 392 | constructor(data?: PartialMessage<DoRestartResponse>) { |
| 393 | super(); |
| 394 | proto3.util.initPartial(data, this); |
| 395 | } |
| 396 | |
| 397 | static readonly runtime: typeof proto3 = proto3; |
| 398 | static readonly typeName = "svc.localhost.v1.DoRestartResponse"; |
| 399 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 400 | ]); |
| 401 | |
| 402 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoRestartResponse { |
| 403 | return new DoRestartResponse().fromBinary(bytes, options); |
| 404 | } |
| 405 | |
| 406 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoRestartResponse { |
| 407 | return new DoRestartResponse().fromJson(jsonValue, options); |
| 408 | } |
| 409 | |
| 410 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoRestartResponse { |
| 411 | return new DoRestartResponse().fromJsonString(jsonString, options); |
| 412 | } |
| 413 | |
| 414 | static equals(a: DoRestartResponse | PlainMessage<DoRestartResponse> | undefined, b: DoRestartResponse | PlainMessage<DoRestartResponse> | undefined): boolean { |
| 415 | return proto3.util.equals(DoRestartResponse, a, b); |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | /** |
| 420 | * @generated from message svc.localhost.v1.GetConfigRequest |
| 421 | */ |
| 422 | export class GetConfigRequest extends Message<GetConfigRequest> { |
| 423 | constructor(data?: PartialMessage<GetConfigRequest>) { |
| 424 | super(); |
| 425 | proto3.util.initPartial(data, this); |
| 426 | } |
| 427 | |
| 428 | static readonly runtime: typeof proto3 = proto3; |
| 429 | static readonly typeName = "svc.localhost.v1.GetConfigRequest"; |
| 430 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 431 | ]); |
| 432 | |
| 433 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConfigRequest { |
| 434 | return new GetConfigRequest().fromBinary(bytes, options); |
| 435 | } |
| 436 | |
| 437 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConfigRequest { |
| 438 | return new GetConfigRequest().fromJson(jsonValue, options); |
| 439 | } |
| 440 | |
| 441 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConfigRequest { |
| 442 | return new GetConfigRequest().fromJsonString(jsonString, options); |
| 443 | } |
| 444 | |
| 445 | static equals(a: GetConfigRequest | PlainMessage<GetConfigRequest> | undefined, b: GetConfigRequest | PlainMessage<GetConfigRequest> | undefined): boolean { |
| 446 | return proto3.util.equals(GetConfigRequest, a, b); |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * @generated from message svc.localhost.v1.GetConfigResponse |
| 452 | */ |
| 453 | export class GetConfigResponse extends Message<GetConfigResponse> { |
| 454 | /** |
| 455 | * @generated from field: types.v1.LocalhostConfig config = 1; |
| 456 | */ |
| 457 | config?: LocalhostConfig; |
| 458 | |
| 459 | constructor(data?: PartialMessage<GetConfigResponse>) { |
| 460 | super(); |
| 461 | proto3.util.initPartial(data, this); |
| 462 | } |
| 463 | |
| 464 | static readonly runtime: typeof proto3 = proto3; |
| 465 | static readonly typeName = "svc.localhost.v1.GetConfigResponse"; |
| 466 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 467 | { no: 1, name: "config", kind: "message", T: LocalhostConfig }, |
| 468 | ]); |
| 469 | |
| 470 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConfigResponse { |
| 471 | return new GetConfigResponse().fromBinary(bytes, options); |
| 472 | } |
| 473 | |
| 474 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConfigResponse { |
| 475 | return new GetConfigResponse().fromJson(jsonValue, options); |
| 476 | } |
| 477 | |
| 478 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConfigResponse { |
| 479 | return new GetConfigResponse().fromJsonString(jsonString, options); |
| 480 | } |
| 481 | |
| 482 | static equals(a: GetConfigResponse | PlainMessage<GetConfigResponse> | undefined, b: GetConfigResponse | PlainMessage<GetConfigResponse> | undefined): boolean { |
| 483 | return proto3.util.equals(GetConfigResponse, a, b); |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | /** |
| 488 | * @generated from message svc.localhost.v1.SetConfigRequest |
| 489 | */ |
| 490 | export class SetConfigRequest extends Message<SetConfigRequest> { |
| 491 | /** |
| 492 | * @generated from field: types.v1.LocalhostConfig config = 1; |
| 493 | */ |
| 494 | config?: LocalhostConfig; |
| 495 | |
| 496 | constructor(data?: PartialMessage<SetConfigRequest>) { |
| 497 | super(); |
| 498 | proto3.util.initPartial(data, this); |
| 499 | } |
| 500 | |
| 501 | static readonly runtime: typeof proto3 = proto3; |
| 502 | static readonly typeName = "svc.localhost.v1.SetConfigRequest"; |
| 503 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 504 | { no: 1, name: "config", kind: "message", T: LocalhostConfig }, |
| 505 | ]); |
| 506 | |
| 507 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetConfigRequest { |
| 508 | return new SetConfigRequest().fromBinary(bytes, options); |
| 509 | } |
| 510 | |
| 511 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetConfigRequest { |
| 512 | return new SetConfigRequest().fromJson(jsonValue, options); |
| 513 | } |
| 514 | |
| 515 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetConfigRequest { |
| 516 | return new SetConfigRequest().fromJsonString(jsonString, options); |
| 517 | } |
| 518 | |
| 519 | static equals(a: SetConfigRequest | PlainMessage<SetConfigRequest> | undefined, b: SetConfigRequest | PlainMessage<SetConfigRequest> | undefined): boolean { |
| 520 | return proto3.util.equals(SetConfigRequest, a, b); |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | /** |
| 525 | * @generated from message svc.localhost.v1.SetConfigResponse |
| 526 | */ |
| 527 | export class SetConfigResponse extends Message<SetConfigResponse> { |
| 528 | constructor(data?: PartialMessage<SetConfigResponse>) { |
| 529 | super(); |
| 530 | proto3.util.initPartial(data, this); |
| 531 | } |
| 532 | |
| 533 | static readonly runtime: typeof proto3 = proto3; |
| 534 | static readonly typeName = "svc.localhost.v1.SetConfigResponse"; |
| 535 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 536 | ]); |
| 537 | |
| 538 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetConfigResponse { |
| 539 | return new SetConfigResponse().fromBinary(bytes, options); |
| 540 | } |
| 541 | |
| 542 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetConfigResponse { |
| 543 | return new SetConfigResponse().fromJson(jsonValue, options); |
| 544 | } |
| 545 | |
| 546 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetConfigResponse { |
| 547 | return new SetConfigResponse().fromJsonString(jsonString, options); |
| 548 | } |
| 549 | |
| 550 | static equals(a: SetConfigResponse | PlainMessage<SetConfigResponse> | undefined, b: SetConfigResponse | PlainMessage<SetConfigResponse> | undefined): boolean { |
| 551 | return proto3.util.equals(SetConfigResponse, a, b); |
| 552 | } |
| 553 | } |
| 554 |