You've already forked npm-viz-sdk
374 lines
13 KiB
TypeScript
374 lines
13 KiB
TypeScript
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
// @generated from file viz-user-settings.proto (package vizapi, syntax proto3)
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
|
|
/**
|
|
* @generated from message vizapi.UserSetting
|
|
*/
|
|
export class UserSetting extends Message<UserSetting> {
|
|
/**
|
|
* @generated from field: string UserID = 1;
|
|
*/
|
|
UserID = "";
|
|
|
|
/**
|
|
* @generated from field: string Key = 2;
|
|
*/
|
|
Key = "";
|
|
|
|
/**
|
|
* @generated from field: string Value = 3;
|
|
*/
|
|
Value = "";
|
|
|
|
constructor(data?: PartialMessage<UserSetting>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.UserSetting";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "UserID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 2, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 3, name: "Value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserSetting {
|
|
return new UserSetting().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserSetting {
|
|
return new UserSetting().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserSetting {
|
|
return new UserSetting().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: UserSetting | PlainMessage<UserSetting> | undefined, b: UserSetting | PlainMessage<UserSetting> | undefined): boolean {
|
|
return proto3.util.equals(UserSetting, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Key, Value pair to store
|
|
*
|
|
* @generated from message vizapi.PutUserSettingRequest
|
|
*/
|
|
export class PutUserSettingRequest extends Message<PutUserSettingRequest> {
|
|
/**
|
|
* Key: each key must be unique
|
|
*
|
|
* @generated from field: string Key = 1;
|
|
*/
|
|
Key = "";
|
|
|
|
/**
|
|
* @generated from field: string Value = 2;
|
|
*/
|
|
Value = "";
|
|
|
|
constructor(data?: PartialMessage<PutUserSettingRequest>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.PutUserSettingRequest";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 2, name: "Value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PutUserSettingRequest {
|
|
return new PutUserSettingRequest().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PutUserSettingRequest {
|
|
return new PutUserSettingRequest().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PutUserSettingRequest {
|
|
return new PutUserSettingRequest().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PutUserSettingRequest | PlainMessage<PutUserSettingRequest> | undefined, b: PutUserSettingRequest | PlainMessage<PutUserSettingRequest> | undefined): boolean {
|
|
return proto3.util.equals(PutUserSettingRequest, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Key, Value pair response
|
|
*
|
|
* @generated from message vizapi.PutUserSettingResult
|
|
*/
|
|
export class PutUserSettingResult extends Message<PutUserSettingResult> {
|
|
/**
|
|
* @generated from field: string Key = 1;
|
|
*/
|
|
Key = "";
|
|
|
|
/**
|
|
* @generated from field: string Value = 2;
|
|
*/
|
|
Value = "";
|
|
|
|
constructor(data?: PartialMessage<PutUserSettingResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.PutUserSettingResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 2, name: "Value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PutUserSettingResult {
|
|
return new PutUserSettingResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PutUserSettingResult {
|
|
return new PutUserSettingResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PutUserSettingResult {
|
|
return new PutUserSettingResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: PutUserSettingResult | PlainMessage<PutUserSettingResult> | undefined, b: PutUserSettingResult | PlainMessage<PutUserSettingResult> | undefined): boolean {
|
|
return proto3.util.equals(PutUserSettingResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Key of the user's setting to get
|
|
*
|
|
* @generated from message vizapi.GetUserSettingRequest
|
|
*/
|
|
export class GetUserSettingRequest extends Message<GetUserSettingRequest> {
|
|
/**
|
|
* @generated from field: string Key = 2;
|
|
*/
|
|
Key = "";
|
|
|
|
constructor(data?: PartialMessage<GetUserSettingRequest>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.GetUserSettingRequest";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 2, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingRequest {
|
|
return new GetUserSettingRequest().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingRequest {
|
|
return new GetUserSettingRequest().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingRequest {
|
|
return new GetUserSettingRequest().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined, b: GetUserSettingRequest | PlainMessage<GetUserSettingRequest> | undefined): boolean {
|
|
return proto3.util.equals(GetUserSettingRequest, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Key, Value pair response
|
|
*
|
|
* @generated from message vizapi.GetUserSettingResult
|
|
*/
|
|
export class GetUserSettingResult extends Message<GetUserSettingResult> {
|
|
/**
|
|
* @generated from field: string Key = 1;
|
|
*/
|
|
Key = "";
|
|
|
|
/**
|
|
* @generated from field: string Value = 2;
|
|
*/
|
|
Value = "";
|
|
|
|
constructor(data?: PartialMessage<GetUserSettingResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.GetUserSettingResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
{ no: 2, name: "Value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserSettingResult {
|
|
return new GetUserSettingResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserSettingResult {
|
|
return new GetUserSettingResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserSettingResult {
|
|
return new GetUserSettingResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: GetUserSettingResult | PlainMessage<GetUserSettingResult> | undefined, b: GetUserSettingResult | PlainMessage<GetUserSettingResult> | undefined): boolean {
|
|
return proto3.util.equals(GetUserSettingResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Key of the user's setting to delete
|
|
*
|
|
* @generated from message vizapi.DeleteUserSettingRequest
|
|
*/
|
|
export class DeleteUserSettingRequest extends Message<DeleteUserSettingRequest> {
|
|
/**
|
|
* @generated from field: string Key = 2;
|
|
*/
|
|
Key = "";
|
|
|
|
constructor(data?: PartialMessage<DeleteUserSettingRequest>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.DeleteUserSettingRequest";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 2, name: "Key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserSettingRequest {
|
|
return new DeleteUserSettingRequest().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserSettingRequest {
|
|
return new DeleteUserSettingRequest().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserSettingRequest {
|
|
return new DeleteUserSettingRequest().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: DeleteUserSettingRequest | PlainMessage<DeleteUserSettingRequest> | undefined, b: DeleteUserSettingRequest | PlainMessage<DeleteUserSettingRequest> | undefined): boolean {
|
|
return proto3.util.equals(DeleteUserSettingRequest, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message vizapi.DeleteUserSettingResult
|
|
*/
|
|
export class DeleteUserSettingResult extends Message<DeleteUserSettingResult> {
|
|
constructor(data?: PartialMessage<DeleteUserSettingResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.DeleteUserSettingResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserSettingResult {
|
|
return new DeleteUserSettingResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserSettingResult {
|
|
return new DeleteUserSettingResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserSettingResult {
|
|
return new DeleteUserSettingResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: DeleteUserSettingResult | PlainMessage<DeleteUserSettingResult> | undefined, b: DeleteUserSettingResult | PlainMessage<DeleteUserSettingResult> | undefined): boolean {
|
|
return proto3.util.equals(DeleteUserSettingResult, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @generated from message vizapi.ListUserSettingsRequest
|
|
*/
|
|
export class ListUserSettingsRequest extends Message<ListUserSettingsRequest> {
|
|
constructor(data?: PartialMessage<ListUserSettingsRequest>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.ListUserSettingsRequest";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserSettingsRequest {
|
|
return new ListUserSettingsRequest().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserSettingsRequest {
|
|
return new ListUserSettingsRequest().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserSettingsRequest {
|
|
return new ListUserSettingsRequest().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: ListUserSettingsRequest | PlainMessage<ListUserSettingsRequest> | undefined, b: ListUserSettingsRequest | PlainMessage<ListUserSettingsRequest> | undefined): boolean {
|
|
return proto3.util.equals(ListUserSettingsRequest, a, b);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* List of the user's settings
|
|
*
|
|
* @generated from message vizapi.ListUserSettingsResult
|
|
*/
|
|
export class ListUserSettingsResult extends Message<ListUserSettingsResult> {
|
|
/**
|
|
* @generated from field: repeated vizapi.GetUserSettingResult UserSettings = 1;
|
|
*/
|
|
UserSettings: GetUserSettingResult[] = [];
|
|
|
|
constructor(data?: PartialMessage<ListUserSettingsResult>) {
|
|
super();
|
|
proto3.util.initPartial(data, this);
|
|
}
|
|
|
|
static readonly runtime: typeof proto3 = proto3;
|
|
static readonly typeName = "vizapi.ListUserSettingsResult";
|
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
{ no: 1, name: "UserSettings", kind: "message", T: GetUserSettingResult, repeated: true },
|
|
]);
|
|
|
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserSettingsResult {
|
|
return new ListUserSettingsResult().fromBinary(bytes, options);
|
|
}
|
|
|
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserSettingsResult {
|
|
return new ListUserSettingsResult().fromJson(jsonValue, options);
|
|
}
|
|
|
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserSettingsResult {
|
|
return new ListUserSettingsResult().fromJsonString(jsonString, options);
|
|
}
|
|
|
|
static equals(a: ListUserSettingsResult | PlainMessage<ListUserSettingsResult> | undefined, b: ListUserSettingsResult | PlainMessage<ListUserSettingsResult> | undefined): boolean {
|
|
return proto3.util.equals(ListUserSettingsResult, a, b);
|
|
}
|
|
}
|
|
|