Files
npm-viz-sdk/viz-motd_pb.ts
2025-03-17 13:03:44 +00:00

624 lines
21 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file viz-motd.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.Motd
*/
export class Motd extends Message<Motd> {
/**
* @generated from field: string MotdID = 1;
*/
MotdID = "";
/**
* @generated from field: string StartDate = 2;
*/
StartDate = "";
/**
* @generated from field: string EndDate = 3;
*/
EndDate = "";
/**
* @generated from field: repeated vizapi.MotdMessage Message = 4;
*/
Message: MotdMessage[] = [];
constructor(data?: PartialMessage<Motd>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.Motd";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "MotdID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "StartDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "EndDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Message", kind: "message", T: MotdMessage, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Motd {
return new Motd().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Motd {
return new Motd().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Motd {
return new Motd().fromJsonString(jsonString, options);
}
static equals(a: Motd | PlainMessage<Motd> | undefined, b: Motd | PlainMessage<Motd> | undefined): boolean {
return proto3.util.equals(Motd, a, b);
}
}
/**
* @generated from message vizapi.MotdMessage
*/
export class MotdMessage extends Message<MotdMessage> {
/**
* ISO 639-1 code message language
*
* @generated from field: string Lang = 1;
*/
Lang = "";
/**
* The message content
*
* @generated from field: string Message = 2;
*/
Message = "";
constructor(data?: PartialMessage<MotdMessage>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.MotdMessage";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Lang", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MotdMessage {
return new MotdMessage().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MotdMessage {
return new MotdMessage().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MotdMessage {
return new MotdMessage().fromJsonString(jsonString, options);
}
static equals(a: MotdMessage | PlainMessage<MotdMessage> | undefined, b: MotdMessage | PlainMessage<MotdMessage> | undefined): boolean {
return proto3.util.equals(MotdMessage, a, b);
}
}
/**
* @generated from message vizapi.MotdMessageRes
*/
export class MotdMessageRes extends Message<MotdMessageRes> {
/**
* Language used for the message
*
* @generated from field: string Lang = 1;
*/
Lang = "";
/**
* The message content
*
* @generated from field: string Message = 2;
*/
Message = "";
constructor(data?: PartialMessage<MotdMessageRes>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.MotdMessageRes";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Lang", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MotdMessageRes {
return new MotdMessageRes().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MotdMessageRes {
return new MotdMessageRes().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MotdMessageRes {
return new MotdMessageRes().fromJsonString(jsonString, options);
}
static equals(a: MotdMessageRes | PlainMessage<MotdMessageRes> | undefined, b: MotdMessageRes | PlainMessage<MotdMessageRes> | undefined): boolean {
return proto3.util.equals(MotdMessageRes, a, b);
}
}
/**
* Message request with the content and the dates
*
* @generated from message vizapi.CreateMotdRequest
*/
export class CreateMotdRequest extends Message<CreateMotdRequest> {
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string StartDate = 1;
*/
StartDate = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string EndDate = 2;
*/
EndDate = "";
/**
* @generated from field: repeated vizapi.MotdMessage Message = 3;
*/
Message: MotdMessage[] = [];
constructor(data?: PartialMessage<CreateMotdRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CreateMotdRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "StartDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "EndDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Message", kind: "message", T: MotdMessage, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMotdRequest {
return new CreateMotdRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMotdRequest {
return new CreateMotdRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMotdRequest {
return new CreateMotdRequest().fromJsonString(jsonString, options);
}
static equals(a: CreateMotdRequest | PlainMessage<CreateMotdRequest> | undefined, b: CreateMotdRequest | PlainMessage<CreateMotdRequest> | undefined): boolean {
return proto3.util.equals(CreateMotdRequest, a, b);
}
}
/**
* Message result with ID, content and dates
*
* @generated from message vizapi.CreateMotdResult
*/
export class CreateMotdResult extends Message<CreateMotdResult> {
/**
* @generated from field: string ID = 1;
*/
ID = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string StartDate = 2;
*/
StartDate = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string EndDate = 3;
*/
EndDate = "";
/**
* @generated from field: repeated vizapi.MotdMessageRes Message = 4;
*/
Message: MotdMessageRes[] = [];
constructor(data?: PartialMessage<CreateMotdResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.CreateMotdResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "StartDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "EndDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Message", kind: "message", T: MotdMessageRes, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMotdResult {
return new CreateMotdResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMotdResult {
return new CreateMotdResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMotdResult {
return new CreateMotdResult().fromJsonString(jsonString, options);
}
static equals(a: CreateMotdResult | PlainMessage<CreateMotdResult> | undefined, b: CreateMotdResult | PlainMessage<CreateMotdResult> | undefined): boolean {
return proto3.util.equals(CreateMotdResult, a, b);
}
}
/**
* Update an existing Message Of The Day using its key
*
* @generated from message vizapi.UpdateMotdRequest
*/
export class UpdateMotdRequest extends Message<UpdateMotdRequest> {
/**
* @generated from field: string ID = 1;
*/
ID = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string StartDate = 2;
*/
StartDate = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string EndDate = 3;
*/
EndDate = "";
/**
* @generated from field: repeated vizapi.MotdMessage Message = 4;
*/
Message: MotdMessage[] = [];
constructor(data?: PartialMessage<UpdateMotdRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.UpdateMotdRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "StartDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "EndDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Message", kind: "message", T: MotdMessage, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMotdRequest {
return new UpdateMotdRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMotdRequest {
return new UpdateMotdRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMotdRequest {
return new UpdateMotdRequest().fromJsonString(jsonString, options);
}
static equals(a: UpdateMotdRequest | PlainMessage<UpdateMotdRequest> | undefined, b: UpdateMotdRequest | PlainMessage<UpdateMotdRequest> | undefined): boolean {
return proto3.util.equals(UpdateMotdRequest, a, b);
}
}
/**
* @generated from message vizapi.UpdateMotdResult
*/
export class UpdateMotdResult extends Message<UpdateMotdResult> {
/**
* @generated from field: string ID = 1;
*/
ID = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string StartDate = 2;
*/
StartDate = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string EndDate = 3;
*/
EndDate = "";
/**
* @generated from field: repeated vizapi.MotdMessage Message = 4;
*/
Message: MotdMessage[] = [];
constructor(data?: PartialMessage<UpdateMotdResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.UpdateMotdResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "StartDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "EndDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Message", kind: "message", T: MotdMessage, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMotdResult {
return new UpdateMotdResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMotdResult {
return new UpdateMotdResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMotdResult {
return new UpdateMotdResult().fromJsonString(jsonString, options);
}
static equals(a: UpdateMotdResult | PlainMessage<UpdateMotdResult> | undefined, b: UpdateMotdResult | PlainMessage<UpdateMotdResult> | undefined): boolean {
return proto3.util.equals(UpdateMotdResult, a, b);
}
}
/**
* @generated from message vizapi.GetMotdRequest
*/
export class GetMotdRequest extends Message<GetMotdRequest> {
constructor(data?: PartialMessage<GetMotdRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetMotdRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMotdRequest {
return new GetMotdRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMotdRequest {
return new GetMotdRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMotdRequest {
return new GetMotdRequest().fromJsonString(jsonString, options);
}
static equals(a: GetMotdRequest | PlainMessage<GetMotdRequest> | undefined, b: GetMotdRequest | PlainMessage<GetMotdRequest> | undefined): boolean {
return proto3.util.equals(GetMotdRequest, a, b);
}
}
/**
* Return the current Message Of The Day
*
* @generated from message vizapi.GetMotdResult
*/
export class GetMotdResult extends Message<GetMotdResult> {
/**
* @generated from field: string ID = 1;
*/
ID = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string StartDate = 2;
*/
StartDate = "";
/**
* UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])
*
* @generated from field: string EndDate = 3;
*/
EndDate = "";
/**
* @generated from field: repeated vizapi.MotdMessageRes Message = 4;
*/
Message: MotdMessageRes[] = [];
constructor(data?: PartialMessage<GetMotdResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetMotdResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "StartDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "EndDate", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Message", kind: "message", T: MotdMessageRes, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMotdResult {
return new GetMotdResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMotdResult {
return new GetMotdResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMotdResult {
return new GetMotdResult().fromJsonString(jsonString, options);
}
static equals(a: GetMotdResult | PlainMessage<GetMotdResult> | undefined, b: GetMotdResult | PlainMessage<GetMotdResult> | undefined): boolean {
return proto3.util.equals(GetMotdResult, a, b);
}
}
/**
* @generated from message vizapi.DeleteMotdRequest
*/
export class DeleteMotdRequest extends Message<DeleteMotdRequest> {
/**
* @generated from field: string ID = 1;
*/
ID = "";
constructor(data?: PartialMessage<DeleteMotdRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteMotdRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMotdRequest {
return new DeleteMotdRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMotdRequest {
return new DeleteMotdRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMotdRequest {
return new DeleteMotdRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteMotdRequest | PlainMessage<DeleteMotdRequest> | undefined, b: DeleteMotdRequest | PlainMessage<DeleteMotdRequest> | undefined): boolean {
return proto3.util.equals(DeleteMotdRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteMotdResult
*/
export class DeleteMotdResult extends Message<DeleteMotdResult> {
constructor(data?: PartialMessage<DeleteMotdResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteMotdResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMotdResult {
return new DeleteMotdResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMotdResult {
return new DeleteMotdResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMotdResult {
return new DeleteMotdResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteMotdResult | PlainMessage<DeleteMotdResult> | undefined, b: DeleteMotdResult | PlainMessage<DeleteMotdResult> | undefined): boolean {
return proto3.util.equals(DeleteMotdResult, a, b);
}
}
/**
* @generated from message vizapi.ListMotdsRequest
*/
export class ListMotdsRequest extends Message<ListMotdsRequest> {
constructor(data?: PartialMessage<ListMotdsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListMotdsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListMotdsRequest {
return new ListMotdsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListMotdsRequest {
return new ListMotdsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListMotdsRequest {
return new ListMotdsRequest().fromJsonString(jsonString, options);
}
static equals(a: ListMotdsRequest | PlainMessage<ListMotdsRequest> | undefined, b: ListMotdsRequest | PlainMessage<ListMotdsRequest> | undefined): boolean {
return proto3.util.equals(ListMotdsRequest, a, b);
}
}
/**
* List of all existing messages of the day
*
* @generated from message vizapi.ListMotdsResult
*/
export class ListMotdsResult extends Message<ListMotdsResult> {
/**
* @generated from field: repeated vizapi.GetMotdResult Motds = 1;
*/
Motds: GetMotdResult[] = [];
constructor(data?: PartialMessage<ListMotdsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListMotdsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Motds", kind: "message", T: GetMotdResult, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListMotdsResult {
return new ListMotdsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListMotdsResult {
return new ListMotdsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListMotdsResult {
return new ListMotdsResult().fromJsonString(jsonString, options);
}
static equals(a: ListMotdsResult | PlainMessage<ListMotdsResult> | undefined, b: ListMotdsResult | PlainMessage<ListMotdsResult> | undefined): boolean {
return proto3.util.equals(ListMotdsResult, a, b);
}
}