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

774 lines
28 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file viz-translations.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";
import { RequestProjectHeader } from "./core/shared_pb.js";
/**
* @generated from message vizapi.Label
*/
export class Label extends Message<Label> {
/**
* ID of the label (unique, ProjectID + Context + Label)
*
* @generated from field: string ID = 1;
*/
ID = "";
/**
* ID of the project
*
* @generated from field: string ProjectID = 2;
*/
ProjectID = "";
/**
* Context of the label (ex: "Order", "Product", "Customer", "User", "...")
*
* @generated from field: string Context = 3;
*/
Context = "";
/**
* Label (ex: "Status", "Color", "Size")
*
* @generated from field: string Label = 4;
*/
Label = "";
constructor(data?: PartialMessage<Label>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.Label";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Context", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Label {
return new Label().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Label {
return new Label().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Label {
return new Label().fromJsonString(jsonString, options);
}
static equals(a: Label | PlainMessage<Label> | undefined, b: Label | PlainMessage<Label> | undefined): boolean {
return proto3.util.equals(Label, a, b);
}
}
/**
* @generated from message vizapi.LanguageCode
*/
export class LanguageCode extends Message<LanguageCode> {
/**
* ISO 639-1 code
*
* @generated from field: string Code = 1;
*/
Code = "";
constructor(data?: PartialMessage<LanguageCode>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.LanguageCode";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LanguageCode {
return new LanguageCode().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LanguageCode {
return new LanguageCode().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LanguageCode {
return new LanguageCode().fromJsonString(jsonString, options);
}
static equals(a: LanguageCode | PlainMessage<LanguageCode> | undefined, b: LanguageCode | PlainMessage<LanguageCode> | undefined): boolean {
return proto3.util.equals(LanguageCode, a, b);
}
}
/**
* @generated from message vizapi.Translation
*/
export class Translation extends Message<Translation> {
/**
* ID of the label (unique, ProjectID + Context + Label)
*
* @generated from field: string LabelID = 1;
*/
LabelID = "";
/**
* ICU - ISO 639-1 code
*
* @generated from field: string LanguageCode = 2;
*/
LanguageCode = "";
/**
* Translation of the label in the given language code
*
* @generated from field: string Translation = 3;
*/
Translation = "";
constructor(data?: PartialMessage<Translation>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.Translation";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "LabelID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "LanguageCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Translation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Translation {
return new Translation().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Translation {
return new Translation().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Translation {
return new Translation().fromJsonString(jsonString, options);
}
static equals(a: Translation | PlainMessage<Translation> | undefined, b: Translation | PlainMessage<Translation> | undefined): boolean {
return proto3.util.equals(Translation, a, b);
}
}
/**
* @generated from message vizapi.GetTranslationsRequest
*/
export class GetTranslationsRequest extends Message<GetTranslationsRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* @generated from field: string Context = 2;
*/
Context = "";
/**
* @generated from field: string Label = 3;
*/
Label = "";
constructor(data?: PartialMessage<GetTranslationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetTranslationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "Context", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTranslationsRequest {
return new GetTranslationsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTranslationsRequest {
return new GetTranslationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTranslationsRequest {
return new GetTranslationsRequest().fromJsonString(jsonString, options);
}
static equals(a: GetTranslationsRequest | PlainMessage<GetTranslationsRequest> | undefined, b: GetTranslationsRequest | PlainMessage<GetTranslationsRequest> | undefined): boolean {
return proto3.util.equals(GetTranslationsRequest, a, b);
}
}
/**
* @generated from message vizapi.GetTranslationsResult
*/
export class GetTranslationsResult extends Message<GetTranslationsResult> {
/**
* @generated from field: repeated vizapi.Translation Translations = 1;
*/
Translations: Translation[] = [];
constructor(data?: PartialMessage<GetTranslationsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetTranslationsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Translations", kind: "message", T: Translation, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTranslationsResult {
return new GetTranslationsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTranslationsResult {
return new GetTranslationsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTranslationsResult {
return new GetTranslationsResult().fromJsonString(jsonString, options);
}
static equals(a: GetTranslationsResult | PlainMessage<GetTranslationsResult> | undefined, b: GetTranslationsResult | PlainMessage<GetTranslationsResult> | undefined): boolean {
return proto3.util.equals(GetTranslationsResult, a, b);
}
}
/**
* Message used to Put a translation for a label in the PutTranslationsRequest
*
* @generated from message vizapi.PutTranslationMessage
*/
export class PutTranslationMessage extends Message<PutTranslationMessage> {
/**
* @generated from field: string LanguageCode = 1;
*/
LanguageCode = "";
/**
* @generated from field: string Translation = 2;
*/
Translation = "";
constructor(data?: PartialMessage<PutTranslationMessage>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.PutTranslationMessage";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "LanguageCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Translation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PutTranslationMessage {
return new PutTranslationMessage().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PutTranslationMessage {
return new PutTranslationMessage().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PutTranslationMessage {
return new PutTranslationMessage().fromJsonString(jsonString, options);
}
static equals(a: PutTranslationMessage | PlainMessage<PutTranslationMessage> | undefined, b: PutTranslationMessage | PlainMessage<PutTranslationMessage> | undefined): boolean {
return proto3.util.equals(PutTranslationMessage, a, b);
}
}
/**
* @generated from message vizapi.PutTranslationsRequest
*/
export class PutTranslationsRequest extends Message<PutTranslationsRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* @generated from field: string Context = 2;
*/
Context = "";
/**
* @generated from field: string Label = 3;
*/
Label = "";
/**
* @generated from field: repeated vizapi.PutTranslationMessage Translations = 4;
*/
Translations: PutTranslationMessage[] = [];
constructor(data?: PartialMessage<PutTranslationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.PutTranslationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "Context", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "Translations", kind: "message", T: PutTranslationMessage, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PutTranslationsRequest {
return new PutTranslationsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PutTranslationsRequest {
return new PutTranslationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PutTranslationsRequest {
return new PutTranslationsRequest().fromJsonString(jsonString, options);
}
static equals(a: PutTranslationsRequest | PlainMessage<PutTranslationsRequest> | undefined, b: PutTranslationsRequest | PlainMessage<PutTranslationsRequest> | undefined): boolean {
return proto3.util.equals(PutTranslationsRequest, a, b);
}
}
/**
* @generated from message vizapi.PutTranslationsResult
*/
export class PutTranslationsResult extends Message<PutTranslationsResult> {
/**
* @generated from field: repeated vizapi.Translation Translations = 1;
*/
Translations: Translation[] = [];
constructor(data?: PartialMessage<PutTranslationsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.PutTranslationsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Translations", kind: "message", T: Translation, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PutTranslationsResult {
return new PutTranslationsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PutTranslationsResult {
return new PutTranslationsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PutTranslationsResult {
return new PutTranslationsResult().fromJsonString(jsonString, options);
}
static equals(a: PutTranslationsResult | PlainMessage<PutTranslationsResult> | undefined, b: PutTranslationsResult | PlainMessage<PutTranslationsResult> | undefined): boolean {
return proto3.util.equals(PutTranslationsResult, a, b);
}
}
/**
* @generated from message vizapi.DeleteTranslationsRequest
*/
export class DeleteTranslationsRequest extends Message<DeleteTranslationsRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* @generated from field: string Context = 2;
*/
Context = "";
/**
* @generated from field: string Label = 3;
*/
Label = "";
constructor(data?: PartialMessage<DeleteTranslationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteTranslationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "Context", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "Label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteTranslationsRequest {
return new DeleteTranslationsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteTranslationsRequest {
return new DeleteTranslationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteTranslationsRequest {
return new DeleteTranslationsRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteTranslationsRequest | PlainMessage<DeleteTranslationsRequest> | undefined, b: DeleteTranslationsRequest | PlainMessage<DeleteTranslationsRequest> | undefined): boolean {
return proto3.util.equals(DeleteTranslationsRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteTranslationsResult
*/
export class DeleteTranslationsResult extends Message<DeleteTranslationsResult> {
constructor(data?: PartialMessage<DeleteTranslationsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteTranslationsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteTranslationsResult {
return new DeleteTranslationsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteTranslationsResult {
return new DeleteTranslationsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteTranslationsResult {
return new DeleteTranslationsResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteTranslationsResult | PlainMessage<DeleteTranslationsResult> | undefined, b: DeleteTranslationsResult | PlainMessage<DeleteTranslationsResult> | undefined): boolean {
return proto3.util.equals(DeleteTranslationsResult, a, b);
}
}
/**
* @generated from message vizapi.ListTranslationsRequest
*/
export class ListTranslationsRequest extends Message<ListTranslationsRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
/**
* @generated from field: string LanguageCode = 2;
*/
LanguageCode = "";
constructor(data?: PartialMessage<ListTranslationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListTranslationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
{ no: 2, name: "LanguageCode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTranslationsRequest {
return new ListTranslationsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTranslationsRequest {
return new ListTranslationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTranslationsRequest {
return new ListTranslationsRequest().fromJsonString(jsonString, options);
}
static equals(a: ListTranslationsRequest | PlainMessage<ListTranslationsRequest> | undefined, b: ListTranslationsRequest | PlainMessage<ListTranslationsRequest> | undefined): boolean {
return proto3.util.equals(ListTranslationsRequest, a, b);
}
}
/**
* Messages for the ListTranslationsResult
*
* @generated from message vizapi.TranslationContextResult
*/
export class TranslationContextResult extends Message<TranslationContextResult> {
/**
* @generated from field: string Name = 1;
*/
Name = "";
/**
* @generated from field: repeated vizapi.TranslationLabelResult Labels = 2;
*/
Labels: TranslationLabelResult[] = [];
constructor(data?: PartialMessage<TranslationContextResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.TranslationContextResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Labels", kind: "message", T: TranslationLabelResult, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranslationContextResult {
return new TranslationContextResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranslationContextResult {
return new TranslationContextResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranslationContextResult {
return new TranslationContextResult().fromJsonString(jsonString, options);
}
static equals(a: TranslationContextResult | PlainMessage<TranslationContextResult> | undefined, b: TranslationContextResult | PlainMessage<TranslationContextResult> | undefined): boolean {
return proto3.util.equals(TranslationContextResult, a, b);
}
}
/**
* @generated from message vizapi.TranslationLabelResult
*/
export class TranslationLabelResult extends Message<TranslationLabelResult> {
/**
* @generated from field: string Name = 1;
*/
Name = "";
/**
* @generated from field: string Translation = 2;
*/
Translation = "";
constructor(data?: PartialMessage<TranslationLabelResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.TranslationLabelResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "Translation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranslationLabelResult {
return new TranslationLabelResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranslationLabelResult {
return new TranslationLabelResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranslationLabelResult {
return new TranslationLabelResult().fromJsonString(jsonString, options);
}
static equals(a: TranslationLabelResult | PlainMessage<TranslationLabelResult> | undefined, b: TranslationLabelResult | PlainMessage<TranslationLabelResult> | undefined): boolean {
return proto3.util.equals(TranslationLabelResult, a, b);
}
}
/**
* @generated from message vizapi.ListTranslationsResult
*/
export class ListTranslationsResult extends Message<ListTranslationsResult> {
/**
* @generated from field: repeated vizapi.TranslationContextResult Contexts = 1;
*/
Contexts: TranslationContextResult[] = [];
constructor(data?: PartialMessage<ListTranslationsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.ListTranslationsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Contexts", kind: "message", T: TranslationContextResult, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTranslationsResult {
return new ListTranslationsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTranslationsResult {
return new ListTranslationsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTranslationsResult {
return new ListTranslationsResult().fromJsonString(jsonString, options);
}
static equals(a: ListTranslationsResult | PlainMessage<ListTranslationsResult> | undefined, b: ListTranslationsResult | PlainMessage<ListTranslationsResult> | undefined): boolean {
return proto3.util.equals(ListTranslationsResult, a, b);
}
}
/**
* @generated from message vizapi.DeleteAllTranslationsRequest
*/
export class DeleteAllTranslationsRequest extends Message<DeleteAllTranslationsRequest> {
/**
* @generated from field: api.RequestProjectHeader Header = 1;
*/
Header?: RequestProjectHeader;
constructor(data?: PartialMessage<DeleteAllTranslationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteAllTranslationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAllTranslationsRequest {
return new DeleteAllTranslationsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAllTranslationsRequest {
return new DeleteAllTranslationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAllTranslationsRequest {
return new DeleteAllTranslationsRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteAllTranslationsRequest | PlainMessage<DeleteAllTranslationsRequest> | undefined, b: DeleteAllTranslationsRequest | PlainMessage<DeleteAllTranslationsRequest> | undefined): boolean {
return proto3.util.equals(DeleteAllTranslationsRequest, a, b);
}
}
/**
* @generated from message vizapi.DeleteAllTranslationsResult
*/
export class DeleteAllTranslationsResult extends Message<DeleteAllTranslationsResult> {
constructor(data?: PartialMessage<DeleteAllTranslationsResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.DeleteAllTranslationsResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAllTranslationsResult {
return new DeleteAllTranslationsResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAllTranslationsResult {
return new DeleteAllTranslationsResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAllTranslationsResult {
return new DeleteAllTranslationsResult().fromJsonString(jsonString, options);
}
static equals(a: DeleteAllTranslationsResult | PlainMessage<DeleteAllTranslationsResult> | undefined, b: DeleteAllTranslationsResult | PlainMessage<DeleteAllTranslationsResult> | undefined): boolean {
return proto3.util.equals(DeleteAllTranslationsResult, a, b);
}
}
/**
* @generated from message vizapi.GetLanguagesRequest
*/
export class GetLanguagesRequest extends Message<GetLanguagesRequest> {
constructor(data?: PartialMessage<GetLanguagesRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetLanguagesRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLanguagesRequest {
return new GetLanguagesRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLanguagesRequest {
return new GetLanguagesRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLanguagesRequest {
return new GetLanguagesRequest().fromJsonString(jsonString, options);
}
static equals(a: GetLanguagesRequest | PlainMessage<GetLanguagesRequest> | undefined, b: GetLanguagesRequest | PlainMessage<GetLanguagesRequest> | undefined): boolean {
return proto3.util.equals(GetLanguagesRequest, a, b);
}
}
/**
* @generated from message vizapi.GetLanguagesResult
*/
export class GetLanguagesResult extends Message<GetLanguagesResult> {
/**
* @generated from field: repeated vizapi.LanguageCode Languages = 1;
*/
Languages: LanguageCode[] = [];
constructor(data?: PartialMessage<GetLanguagesResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "vizapi.GetLanguagesResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Languages", kind: "message", T: LanguageCode, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLanguagesResult {
return new GetLanguagesResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLanguagesResult {
return new GetLanguagesResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLanguagesResult {
return new GetLanguagesResult().fromJsonString(jsonString, options);
}
static equals(a: GetLanguagesResult | PlainMessage<GetLanguagesResult> | undefined, b: GetLanguagesResult | PlainMessage<GetLanguagesResult> | undefined): boolean {
return proto3.util.equals(GetLanguagesResult, a, b);
}
}