// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name // @generated from protobuf file "viz-project-settings.proto" (package "vizapi", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import { WireType } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { GetOrganisationSettingResult } from "./viz-organisation-settings"; import { RequestProjectHeader } from "./core/shared"; /** * @generated from protobuf message vizapi.ProjectSetting */ export interface ProjectSetting { /** * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; /** * @generated from protobuf field: string Key = 2 */ Key: string; /** * @generated from protobuf field: string Value = 3 */ Value: string; } /** * Key, Value pair to store * * @generated from protobuf message vizapi.PutProjectSettingRequest */ export interface PutProjectSettingRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: string Key = 2 */ Key: string; /** * @generated from protobuf field: string Value = 3 */ Value: string; } /** * Key, Value pair response * * @generated from protobuf message vizapi.PutProjectSettingResult */ export interface PutProjectSettingResult { /** * @generated from protobuf field: string Key = 1 */ Key: string; /** * @generated from protobuf field: string Value = 2 */ Value: string; } /** * Key of the project's setting to get * * @generated from protobuf message vizapi.GetProjectSettingRequest */ export interface GetProjectSettingRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: string Key = 2 */ Key: string; } /** * Key, Value pair response * * @generated from protobuf message vizapi.GetProjectSettingResult */ export interface GetProjectSettingResult { /** * @generated from protobuf field: string Key = 1 */ Key: string; /** * @generated from protobuf field: string Value = 2 */ Value: string; } /** * Key of the project's setting to delete * * @generated from protobuf message vizapi.DeleteProjectSettingRequest */ export interface DeleteProjectSettingRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: string Key = 2 */ Key: string; } /** * @generated from protobuf message vizapi.DeleteProjectSettingResult */ export interface DeleteProjectSettingResult { } /** * @generated from protobuf message vizapi.ListProjectSettingsRequest */ export interface ListProjectSettingsRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; } /** * List of the project's settings * * @generated from protobuf message vizapi.ListProjectSettingsResult */ export interface ListProjectSettingsResult { /** * @generated from protobuf field: repeated vizapi.GetProjectSettingResult ProjectSettings = 1 */ ProjectSettings: GetProjectSettingResult[]; } /** * @generated from protobuf message vizapi.ListProjectOrganisationSettingsRequest */ export interface ListProjectOrganisationSettingsRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; } /** * List of the project's settings * * @generated from protobuf message vizapi.ListProjectOrganisationSettingsResult */ export interface ListProjectOrganisationSettingsResult { /** * @generated from protobuf field: repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1 */ OrganisationSettings: GetOrganisationSettingResult[]; } /** * @generated from protobuf message vizapi.DeleteSettingsForProjectRequest */ export interface DeleteSettingsForProjectRequest { /** * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; } /** * @generated from protobuf message vizapi.DeleteSettingsForProjectResult */ export interface DeleteSettingsForProjectResult { } // @generated message type with reflection information, may provide speed optimized methods class ProjectSetting$Type extends MessageType { constructor() { super("vizapi.ProjectSetting", [ { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): ProjectSetting { const message = globalThis.Object.create((this.messagePrototype!)); message.ProjectID = ""; message.Key = ""; message.Value = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectSetting): ProjectSetting { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ProjectID */ 1: message.ProjectID = reader.string(); break; case /* string Key */ 2: message.Key = reader.string(); break; case /* string Value */ 3: message.Value = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: ProjectSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ProjectID = 1; */ if (message.ProjectID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); /* string Key = 2; */ if (message.Key !== "") writer.tag(2, WireType.LengthDelimited).string(message.Key); /* string Value = 3; */ if (message.Value !== "") writer.tag(3, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.ProjectSetting */ export const ProjectSetting = new ProjectSetting$Type(); // @generated message type with reflection information, may provide speed optimized methods class PutProjectSettingRequest$Type extends MessageType { constructor() { super("vizapi.PutProjectSettingRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair to store", required: ["Key", "Value", "Header"] } } }); } create(value?: PartialMessage): PutProjectSettingRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.Key = ""; message.Value = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PutProjectSettingRequest): PutProjectSettingRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* string Key */ 2: message.Key = reader.string(); break; case /* string Value */ 3: message.Value = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: PutProjectSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string Key = 2; */ if (message.Key !== "") writer.tag(2, WireType.LengthDelimited).string(message.Key); /* string Value = 3; */ if (message.Value !== "") writer.tag(3, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.PutProjectSettingRequest */ export const PutProjectSettingRequest = new PutProjectSettingRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class PutProjectSettingResult$Type extends MessageType { constructor() { super("vizapi.PutProjectSettingResult", [ { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } }); } create(value?: PartialMessage): PutProjectSettingResult { const message = globalThis.Object.create((this.messagePrototype!)); message.Key = ""; message.Value = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PutProjectSettingResult): PutProjectSettingResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string Key */ 1: message.Key = reader.string(); break; case /* string Value */ 2: message.Value = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: PutProjectSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); /* string Value = 2; */ if (message.Value !== "") writer.tag(2, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.PutProjectSettingResult */ export const PutProjectSettingResult = new PutProjectSettingResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetProjectSettingRequest$Type extends MessageType { constructor() { super("vizapi.GetProjectSettingRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the project's setting to get", required: ["Header", "Key"] } } }); } create(value?: PartialMessage): GetProjectSettingRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.Key = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectSettingRequest): GetProjectSettingRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* string Key */ 2: message.Key = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: GetProjectSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string Key = 2; */ if (message.Key !== "") writer.tag(2, WireType.LengthDelimited).string(message.Key); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.GetProjectSettingRequest */ export const GetProjectSettingRequest = new GetProjectSettingRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetProjectSettingResult$Type extends MessageType { constructor() { super("vizapi.GetProjectSettingResult", [ { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } }); } create(value?: PartialMessage): GetProjectSettingResult { const message = globalThis.Object.create((this.messagePrototype!)); message.Key = ""; message.Value = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectSettingResult): GetProjectSettingResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string Key */ 1: message.Key = reader.string(); break; case /* string Value */ 2: message.Value = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: GetProjectSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string Key = 1; */ if (message.Key !== "") writer.tag(1, WireType.LengthDelimited).string(message.Key); /* string Value = 2; */ if (message.Value !== "") writer.tag(2, WireType.LengthDelimited).string(message.Value); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.GetProjectSettingResult */ export const GetProjectSettingResult = new GetProjectSettingResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteProjectSettingRequest$Type extends MessageType { constructor() { super("vizapi.DeleteProjectSettingRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the project's setting to delete", required: ["Header", "Key"] } } }); } create(value?: PartialMessage): DeleteProjectSettingRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.Key = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectSettingRequest): DeleteProjectSettingRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* string Key */ 2: message.Key = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: DeleteProjectSettingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string Key = 2; */ if (message.Key !== "") writer.tag(2, WireType.LengthDelimited).string(message.Key); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.DeleteProjectSettingRequest */ export const DeleteProjectSettingRequest = new DeleteProjectSettingRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteProjectSettingResult$Type extends MessageType { constructor() { super("vizapi.DeleteProjectSettingResult", []); } create(value?: PartialMessage): DeleteProjectSettingResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteProjectSettingResult): DeleteProjectSettingResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: DeleteProjectSettingResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.DeleteProjectSettingResult */ export const DeleteProjectSettingResult = new DeleteProjectSettingResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListProjectSettingsRequest$Type extends MessageType { constructor() { super("vizapi.ListProjectSettingsRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project's settings to list", required: ["Header"] } } }); } create(value?: PartialMessage): ListProjectSettingsRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectSettingsRequest): ListProjectSettingsRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: ListProjectSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.ListProjectSettingsRequest */ export const ListProjectSettingsRequest = new ListProjectSettingsRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListProjectSettingsResult$Type extends MessageType { constructor() { super("vizapi.ListProjectSettingsResult", [ { no: 1, name: "ProjectSettings", kind: "message", localName: "ProjectSettings", jsonName: "ProjectSettings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetProjectSettingResult } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of the project's settings" } } }); } create(value?: PartialMessage): ListProjectSettingsResult { const message = globalThis.Object.create((this.messagePrototype!)); message.ProjectSettings = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectSettingsResult): ListProjectSettingsResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated vizapi.GetProjectSettingResult ProjectSettings */ 1: message.ProjectSettings.push(GetProjectSettingResult.internalBinaryRead(reader, reader.uint32(), options)); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: ListProjectSettingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated vizapi.GetProjectSettingResult ProjectSettings = 1; */ for (let i = 0; i < message.ProjectSettings.length; i++) GetProjectSettingResult.internalBinaryWrite(message.ProjectSettings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.ListProjectSettingsResult */ export const ListProjectSettingsResult = new ListProjectSettingsResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListProjectOrganisationSettingsRequest$Type extends MessageType { constructor() { super("vizapi.ListProjectOrganisationSettingsRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project's organisation public settings to list", required: ["Header"] } } }); } create(value?: PartialMessage): ListProjectOrganisationSettingsRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectOrganisationSettingsRequest): ListProjectOrganisationSettingsRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: ListProjectOrganisationSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.ListProjectOrganisationSettingsRequest */ export const ListProjectOrganisationSettingsRequest = new ListProjectOrganisationSettingsRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class ListProjectOrganisationSettingsResult$Type extends MessageType { constructor() { super("vizapi.ListProjectOrganisationSettingsResult", [ { no: 1, name: "OrganisationSettings", kind: "message", localName: "OrganisationSettings", jsonName: "OrganisationSettings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetOrganisationSettingResult } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of the project's organisation public settings" } } }); } create(value?: PartialMessage): ListProjectOrganisationSettingsResult { const message = globalThis.Object.create((this.messagePrototype!)); message.OrganisationSettings = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListProjectOrganisationSettingsResult): ListProjectOrganisationSettingsResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated vizapi.GetOrganisationSettingResult OrganisationSettings */ 1: message.OrganisationSettings.push(GetOrganisationSettingResult.internalBinaryRead(reader, reader.uint32(), options)); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: ListProjectOrganisationSettingsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated vizapi.GetOrganisationSettingResult OrganisationSettings = 1; */ for (let i = 0; i < message.OrganisationSettings.length; i++) GetOrganisationSettingResult.internalBinaryWrite(message.OrganisationSettings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.ListProjectOrganisationSettingsResult */ export const ListProjectOrganisationSettingsResult = new ListProjectOrganisationSettingsResult$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteSettingsForProjectRequest$Type extends MessageType { constructor() { super("vizapi.DeleteSettingsForProjectRequest", [ { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project to delete settings from", required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteSettingsForProjectRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.ProjectID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSettingsForProjectRequest): DeleteSettingsForProjectRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ProjectID */ 1: message.ProjectID = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: DeleteSettingsForProjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ProjectID = 1; */ if (message.ProjectID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.DeleteSettingsForProjectRequest */ export const DeleteSettingsForProjectRequest = new DeleteSettingsForProjectRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteSettingsForProjectResult$Type extends MessageType { constructor() { super("vizapi.DeleteSettingsForProjectResult", []); } create(value?: PartialMessage): DeleteSettingsForProjectResult { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSettingsForProjectResult): DeleteSettingsForProjectResult { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: DeleteSettingsForProjectResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message vizapi.DeleteSettingsForProjectResult */ export const DeleteSettingsForProjectResult = new DeleteSettingsForProjectResult$Type(); /** * @generated ServiceType for protobuf service vizapi.ProjectSettingsService */ export const ProjectSettingsService = new ServiceType("vizapi.ProjectSettingsService", [ { name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Settings"], summary: "Get a project setting", description: "Use to get a project setting with his key" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetProjectSettingRequest, O: GetProjectSettingResult }, { name: "Put", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Settings"], summary: "Update or create a project setting", description: "Use to create or update project's settings" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: PutProjectSettingRequest, O: PutProjectSettingResult }, { name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Settings"], summary: "Delete a project setting", description: "Use to delete a project setting with his key" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteProjectSettingRequest, O: DeleteProjectSettingResult }, { name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Settings"], summary: "List a project's settings.", description: "Use to list a project's settings" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectSettingsRequest, O: ListProjectSettingsResult }, { name: "ListOrganisationSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Settings"], summary: "List a project's organisation settings.", description: "Use to list a project's organisation public settings" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ListProjectOrganisationSettingsRequest, O: ListProjectOrganisationSettingsResult }, { name: "DeleteSettingsForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Project Settings"], summary: "Delete all project settings", description: "Delete all settings for a project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Settings", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: DeleteSettingsForProjectRequest, O: DeleteSettingsForProjectResult } ], { "api.k8sService": "settings-server" });