diff --git a/api/v1/capsule/change_pb.ts b/api/v1/capsule/change_pb.ts new file mode 100644 index 0000000..0392a37 --- /dev/null +++ b/api/v1/capsule/change_pb.ts @@ -0,0 +1,1328 @@ +// @generated by protoc-gen-es v1.6.0 with parameter "target=ts" +// @generated from file api/v1/capsule/change.proto (package api.v1.capsule, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { CronJob } from "./job_pb.js"; + +/** + * @generated from message api.v1.capsule.Change + */ +export class Change extends Message { + /** + * @generated from oneof api.v1.capsule.Change.field + */ + field: { + /** + * @generated from field: uint32 replicas = 1; + */ + value: number; + case: "replicas"; + } | { + /** + * @generated from field: string build_id = 2; + */ + value: string; + case: "buildId"; + } | { + /** + * @generated from field: api.v1.capsule.Network network = 3; + */ + value: Network; + case: "network"; + } | { + /** + * @generated from field: api.v1.capsule.ContainerSettings container_settings = 4; + */ + value: ContainerSettings; + case: "containerSettings"; + } | { + /** + * @generated from field: bool auto_add_rig_service_accounts = 5; + */ + value: boolean; + case: "autoAddRigServiceAccounts"; + } | { + /** + * @generated from field: api.v1.capsule.Change.ConfigFile set_config_file = 6; + */ + value: Change_ConfigFile; + case: "setConfigFile"; + } | { + /** + * @generated from field: string remove_config_file = 7; + */ + value: string; + case: "removeConfigFile"; + } | { + /** + * @generated from field: api.v1.capsule.HorizontalScale horizontal_scale = 8; + */ + value: HorizontalScale; + case: "horizontalScale"; + } | { + /** + * @generated from field: api.v1.capsule.Change.Rollback rollback = 9; + */ + value: Change_Rollback; + case: "rollback"; + } | { + /** + * @generated from field: api.v1.capsule.Change.CronJobs cron_jobs = 10; + */ + value: Change_CronJobs; + case: "cronJobs"; + } | { + /** + * @generated from field: api.v1.capsule.Change.EnvironmentVariable set_environment_variable = 11; + */ + value: Change_EnvironmentVariable; + case: "setEnvironmentVariable"; + } | { + /** + * @generated from field: string remove_environment_variable = 12; + */ + value: string; + case: "removeEnvironmentVariable"; + } | { + /** + * @generated from field: api.v1.capsule.EnvironmentSource set_environment_source = 13; + */ + value: EnvironmentSource; + case: "setEnvironmentSource"; + } | { + /** + * @generated from field: api.v1.capsule.EnvironmentSource remove_environment_source = 14; + */ + value: EnvironmentSource; + case: "removeEnvironmentSource"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Change"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "replicas", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "field" }, + { no: 2, name: "build_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "field" }, + { no: 3, name: "network", kind: "message", T: Network, oneof: "field" }, + { no: 4, name: "container_settings", kind: "message", T: ContainerSettings, oneof: "field" }, + { no: 5, name: "auto_add_rig_service_accounts", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "field" }, + { no: 6, name: "set_config_file", kind: "message", T: Change_ConfigFile, oneof: "field" }, + { no: 7, name: "remove_config_file", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "field" }, + { no: 8, name: "horizontal_scale", kind: "message", T: HorizontalScale, oneof: "field" }, + { no: 9, name: "rollback", kind: "message", T: Change_Rollback, oneof: "field" }, + { no: 10, name: "cron_jobs", kind: "message", T: Change_CronJobs, oneof: "field" }, + { no: 11, name: "set_environment_variable", kind: "message", T: Change_EnvironmentVariable, oneof: "field" }, + { no: 12, name: "remove_environment_variable", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "field" }, + { no: 13, name: "set_environment_source", kind: "message", T: EnvironmentSource, oneof: "field" }, + { no: 14, name: "remove_environment_source", kind: "message", T: EnvironmentSource, oneof: "field" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Change { + return new Change().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Change { + return new Change().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Change { + return new Change().fromJsonString(jsonString, options); + } + + static equals(a: Change | PlainMessage | undefined, b: Change | PlainMessage | undefined): boolean { + return proto3.util.equals(Change, a, b); + } +} + +/** + * @generated from message api.v1.capsule.Change.ConfigFile + */ +export class Change_ConfigFile extends Message { + /** + * @generated from field: string path = 1; + */ + path = ""; + + /** + * @generated from field: bytes content = 2; + */ + content = new Uint8Array(0); + + /** + * @generated from field: bool is_secret = 3; + */ + isSecret = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Change.ConfigFile"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Change_ConfigFile { + return new Change_ConfigFile().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Change_ConfigFile { + return new Change_ConfigFile().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Change_ConfigFile { + return new Change_ConfigFile().fromJsonString(jsonString, options); + } + + static equals(a: Change_ConfigFile | PlainMessage | undefined, b: Change_ConfigFile | PlainMessage | undefined): boolean { + return proto3.util.equals(Change_ConfigFile, a, b); + } +} + +/** + * @generated from message api.v1.capsule.Change.Rollback + */ +export class Change_Rollback extends Message { + /** + * @generated from field: uint64 rollback_id = 1; + */ + rollbackId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Change.Rollback"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rollback_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Change_Rollback { + return new Change_Rollback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Change_Rollback { + return new Change_Rollback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Change_Rollback { + return new Change_Rollback().fromJsonString(jsonString, options); + } + + static equals(a: Change_Rollback | PlainMessage | undefined, b: Change_Rollback | PlainMessage | undefined): boolean { + return proto3.util.equals(Change_Rollback, a, b); + } +} + +/** + * @generated from message api.v1.capsule.Change.CronJobs + */ +export class Change_CronJobs extends Message { + /** + * @generated from field: repeated api.v1.capsule.CronJob jobs = 1; + */ + jobs: CronJob[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Change.CronJobs"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "jobs", kind: "message", T: CronJob, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Change_CronJobs { + return new Change_CronJobs().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Change_CronJobs { + return new Change_CronJobs().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Change_CronJobs { + return new Change_CronJobs().fromJsonString(jsonString, options); + } + + static equals(a: Change_CronJobs | PlainMessage | undefined, b: Change_CronJobs | PlainMessage | undefined): boolean { + return proto3.util.equals(Change_CronJobs, a, b); + } +} + +/** + * @generated from message api.v1.capsule.Change.EnvironmentVariable + */ +export class Change_EnvironmentVariable extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Change.EnvironmentVariable"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Change_EnvironmentVariable { + return new Change_EnvironmentVariable().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Change_EnvironmentVariable { + return new Change_EnvironmentVariable().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Change_EnvironmentVariable { + return new Change_EnvironmentVariable().fromJsonString(jsonString, options); + } + + static equals(a: Change_EnvironmentVariable | PlainMessage | undefined, b: Change_EnvironmentVariable | PlainMessage | undefined): boolean { + return proto3.util.equals(Change_EnvironmentVariable, a, b); + } +} + +/** + * @generated from message api.v1.capsule.ContainerSettings + */ +export class ContainerSettings extends Message { + /** + * @generated from field: map environment_variables = 1; + */ + environmentVariables: { [key: string]: string } = {}; + + /** + * @generated from field: string command = 2; + */ + command = ""; + + /** + * @generated from field: repeated string args = 3; + */ + args: string[] = []; + + /** + * @generated from field: api.v1.capsule.Resources resources = 4; + */ + resources?: Resources; + + /** + * @generated from field: repeated api.v1.capsule.EnvironmentSource environment_sources = 5; + */ + environmentSources: EnvironmentSource[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.ContainerSettings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "environment_variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 2, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "resources", kind: "message", T: Resources }, + { no: 5, name: "environment_sources", kind: "message", T: EnvironmentSource, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContainerSettings { + return new ContainerSettings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContainerSettings { + return new ContainerSettings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContainerSettings { + return new ContainerSettings().fromJsonString(jsonString, options); + } + + static equals(a: ContainerSettings | PlainMessage | undefined, b: ContainerSettings | PlainMessage | undefined): boolean { + return proto3.util.equals(ContainerSettings, a, b); + } +} + +/** + * @generated from message api.v1.capsule.Resources + */ +export class Resources extends Message { + /** + * @generated from field: api.v1.capsule.ResourceList requests = 1; + */ + requests?: ResourceList; + + /** + * @generated from field: api.v1.capsule.ResourceList limits = 2; + */ + limits?: ResourceList; + + /** + * @generated from field: api.v1.capsule.GpuLimits gpu_limits = 3; + */ + gpuLimits?: GpuLimits; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Resources"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "requests", kind: "message", T: ResourceList }, + { no: 2, name: "limits", kind: "message", T: ResourceList }, + { no: 3, name: "gpu_limits", kind: "message", T: GpuLimits }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Resources { + return new Resources().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Resources { + return new Resources().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Resources { + return new Resources().fromJsonString(jsonString, options); + } + + static equals(a: Resources | PlainMessage | undefined, b: Resources | PlainMessage | undefined): boolean { + return proto3.util.equals(Resources, a, b); + } +} + +/** + * @generated from message api.v1.capsule.ResourceList + */ +export class ResourceList extends Message { + /** + * Unit: milli-CPUs + * + * @generated from field: uint32 cpu_millis = 1; + */ + cpuMillis = 0; + + /** + * Unit: Bytes + * + * @generated from field: uint64 memory_bytes = 2; + */ + memoryBytes = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.ResourceList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cpu_millis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "memory_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResourceList { + return new ResourceList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResourceList { + return new ResourceList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResourceList { + return new ResourceList().fromJsonString(jsonString, options); + } + + static equals(a: ResourceList | PlainMessage | undefined, b: ResourceList | PlainMessage | undefined): boolean { + return proto3.util.equals(ResourceList, a, b); + } +} + +/** + * @generated from message api.v1.capsule.GpuLimits + */ +export class GpuLimits extends Message { + /** + * gpu resource type - fx. nvidia.com/gpu + * + * @generated from field: string type = 1; + */ + type = ""; + + /** + * number of gpus + * + * @generated from field: uint32 count = 2; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.GpuLimits"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GpuLimits { + return new GpuLimits().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GpuLimits { + return new GpuLimits().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GpuLimits { + return new GpuLimits().fromJsonString(jsonString, options); + } + + static equals(a: GpuLimits | PlainMessage | undefined, b: GpuLimits | PlainMessage | undefined): boolean { + return proto3.util.equals(GpuLimits, a, b); + } +} + +/** + * @generated from message api.v1.capsule.EnvironmentSource + */ +export class EnvironmentSource extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: api.v1.capsule.EnvironmentSource.Kind kind = 2; + */ + kind = EnvironmentSource_Kind.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.EnvironmentSource"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "kind", kind: "enum", T: proto3.getEnumType(EnvironmentSource_Kind) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EnvironmentSource { + return new EnvironmentSource().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EnvironmentSource { + return new EnvironmentSource().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EnvironmentSource { + return new EnvironmentSource().fromJsonString(jsonString, options); + } + + static equals(a: EnvironmentSource | PlainMessage | undefined, b: EnvironmentSource | PlainMessage | undefined): boolean { + return proto3.util.equals(EnvironmentSource, a, b); + } +} + +/** + * @generated from enum api.v1.capsule.EnvironmentSource.Kind + */ +export enum EnvironmentSource_Kind { + /** + * @generated from enum value: KIND_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: KIND_CONFIG_MAP = 1; + */ + CONFIG_MAP = 1, + + /** + * @generated from enum value: KIND_SECRET = 2; + */ + SECRET = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(EnvironmentSource_Kind) +proto3.util.setEnumType(EnvironmentSource_Kind, "api.v1.capsule.EnvironmentSource.Kind", [ + { no: 0, name: "KIND_UNSPECIFIED" }, + { no: 1, name: "KIND_CONFIG_MAP" }, + { no: 2, name: "KIND_SECRET" }, +]); + +/** + * @generated from message api.v1.capsule.Network + */ +export class Network extends Message { + /** + * @generated from field: repeated api.v1.capsule.Interface interfaces = 1; + */ + interfaces: Interface[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Network"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interfaces", kind: "message", T: Interface, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Network { + return new Network().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Network { + return new Network().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Network { + return new Network().fromJsonString(jsonString, options); + } + + static equals(a: Network | PlainMessage | undefined, b: Network | PlainMessage | undefined): boolean { + return proto3.util.equals(Network, a, b); + } +} + +/** + * @generated from message api.v1.capsule.Interface + */ +export class Interface extends Message { + /** + * @generated from field: uint32 port = 1; + */ + port = 0; + + /** + * @generated from field: string name = 2; + */ + name = ""; + + /** + * @generated from field: api.v1.capsule.PublicInterface public = 4; + */ + public?: PublicInterface; + + /** + * @generated from field: api.v1.capsule.InterfaceProbe liveness = 7; + */ + liveness?: InterfaceProbe; + + /** + * @generated from field: api.v1.capsule.InterfaceProbe readiness = 8; + */ + readiness?: InterfaceProbe; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.Interface"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "public", kind: "message", T: PublicInterface }, + { no: 7, name: "liveness", kind: "message", T: InterfaceProbe }, + { no: 8, name: "readiness", kind: "message", T: InterfaceProbe }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Interface { + return new Interface().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Interface { + return new Interface().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Interface { + return new Interface().fromJsonString(jsonString, options); + } + + static equals(a: Interface | PlainMessage | undefined, b: Interface | PlainMessage | undefined): boolean { + return proto3.util.equals(Interface, a, b); + } +} + +/** + * @generated from message api.v1.capsule.InterfaceProbe + */ +export class InterfaceProbe extends Message { + /** + * @generated from oneof api.v1.capsule.InterfaceProbe.kind + */ + kind: { + /** + * @generated from field: api.v1.capsule.InterfaceProbe.HTTP http = 1; + */ + value: InterfaceProbe_HTTP; + case: "http"; + } | { + /** + * @generated from field: api.v1.capsule.InterfaceProbe.TCP tcp = 2; + */ + value: InterfaceProbe_TCP; + case: "tcp"; + } | { + /** + * @generated from field: api.v1.capsule.InterfaceProbe.GRPC grpc = 3; + */ + value: InterfaceProbe_GRPC; + case: "grpc"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.InterfaceProbe"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "http", kind: "message", T: InterfaceProbe_HTTP, oneof: "kind" }, + { no: 2, name: "tcp", kind: "message", T: InterfaceProbe_TCP, oneof: "kind" }, + { no: 3, name: "grpc", kind: "message", T: InterfaceProbe_GRPC, oneof: "kind" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe { + return new InterfaceProbe().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe { + return new InterfaceProbe().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe { + return new InterfaceProbe().fromJsonString(jsonString, options); + } + + static equals(a: InterfaceProbe | PlainMessage | undefined, b: InterfaceProbe | PlainMessage | undefined): boolean { + return proto3.util.equals(InterfaceProbe, a, b); + } +} + +/** + * @generated from message api.v1.capsule.InterfaceProbe.HTTP + */ +export class InterfaceProbe_HTTP extends Message { + /** + * @generated from field: string path = 1; + */ + path = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.InterfaceProbe.HTTP"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe_HTTP { + return new InterfaceProbe_HTTP().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe_HTTP { + return new InterfaceProbe_HTTP().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe_HTTP { + return new InterfaceProbe_HTTP().fromJsonString(jsonString, options); + } + + static equals(a: InterfaceProbe_HTTP | PlainMessage | undefined, b: InterfaceProbe_HTTP | PlainMessage | undefined): boolean { + return proto3.util.equals(InterfaceProbe_HTTP, a, b); + } +} + +/** + * @generated from message api.v1.capsule.InterfaceProbe.TCP + */ +export class InterfaceProbe_TCP extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.InterfaceProbe.TCP"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe_TCP { + return new InterfaceProbe_TCP().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe_TCP { + return new InterfaceProbe_TCP().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe_TCP { + return new InterfaceProbe_TCP().fromJsonString(jsonString, options); + } + + static equals(a: InterfaceProbe_TCP | PlainMessage | undefined, b: InterfaceProbe_TCP | PlainMessage | undefined): boolean { + return proto3.util.equals(InterfaceProbe_TCP, a, b); + } +} + +/** + * @generated from message api.v1.capsule.InterfaceProbe.GRPC + */ +export class InterfaceProbe_GRPC extends Message { + /** + * @generated from field: string service = 1; + */ + service = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.InterfaceProbe.GRPC"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe_GRPC { + return new InterfaceProbe_GRPC().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe_GRPC { + return new InterfaceProbe_GRPC().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe_GRPC { + return new InterfaceProbe_GRPC().fromJsonString(jsonString, options); + } + + static equals(a: InterfaceProbe_GRPC | PlainMessage | undefined, b: InterfaceProbe_GRPC | PlainMessage | undefined): boolean { + return proto3.util.equals(InterfaceProbe_GRPC, a, b); + } +} + +/** + * @generated from message api.v1.capsule.PublicInterface + */ +export class PublicInterface extends Message { + /** + * @generated from field: bool enabled = 1; + */ + enabled = false; + + /** + * @generated from field: api.v1.capsule.RoutingMethod method = 2; + */ + method?: RoutingMethod; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.PublicInterface"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "method", kind: "message", T: RoutingMethod }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PublicInterface { + return new PublicInterface().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PublicInterface { + return new PublicInterface().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PublicInterface { + return new PublicInterface().fromJsonString(jsonString, options); + } + + static equals(a: PublicInterface | PlainMessage | undefined, b: PublicInterface | PlainMessage | undefined): boolean { + return proto3.util.equals(PublicInterface, a, b); + } +} + +/** + * @generated from message api.v1.capsule.RoutingMethod + */ +export class RoutingMethod extends Message { + /** + * @generated from oneof api.v1.capsule.RoutingMethod.kind + */ + kind: { + /** + * @generated from field: api.v1.capsule.RoutingMethod.LoadBalancer load_balancer = 1; + */ + value: RoutingMethod_LoadBalancer; + case: "loadBalancer"; + } | { + /** + * @generated from field: api.v1.capsule.RoutingMethod.Ingress ingress = 2; + */ + value: RoutingMethod_Ingress; + case: "ingress"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.RoutingMethod"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "load_balancer", kind: "message", T: RoutingMethod_LoadBalancer, oneof: "kind" }, + { no: 2, name: "ingress", kind: "message", T: RoutingMethod_Ingress, oneof: "kind" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RoutingMethod { + return new RoutingMethod().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RoutingMethod { + return new RoutingMethod().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RoutingMethod { + return new RoutingMethod().fromJsonString(jsonString, options); + } + + static equals(a: RoutingMethod | PlainMessage | undefined, b: RoutingMethod | PlainMessage | undefined): boolean { + return proto3.util.equals(RoutingMethod, a, b); + } +} + +/** + * @generated from message api.v1.capsule.RoutingMethod.LoadBalancer + */ +export class RoutingMethod_LoadBalancer extends Message { + /** + * @generated from field: uint32 port = 1; + */ + port = 0; + + /** + * @generated from field: uint32 node_port = 2; + */ + nodePort = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.RoutingMethod.LoadBalancer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "node_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RoutingMethod_LoadBalancer { + return new RoutingMethod_LoadBalancer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RoutingMethod_LoadBalancer { + return new RoutingMethod_LoadBalancer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RoutingMethod_LoadBalancer { + return new RoutingMethod_LoadBalancer().fromJsonString(jsonString, options); + } + + static equals(a: RoutingMethod_LoadBalancer | PlainMessage | undefined, b: RoutingMethod_LoadBalancer | PlainMessage | undefined): boolean { + return proto3.util.equals(RoutingMethod_LoadBalancer, a, b); + } +} + +/** + * @generated from message api.v1.capsule.RoutingMethod.Ingress + */ +export class RoutingMethod_Ingress extends Message { + /** + * @generated from field: string host = 1; + */ + host = ""; + + /** + * @generated from field: bool tls = 2; + */ + tls = false; + + /** + * @generated from field: repeated string paths = 3; + */ + paths: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.RoutingMethod.Ingress"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tls", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RoutingMethod_Ingress { + return new RoutingMethod_Ingress().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RoutingMethod_Ingress { + return new RoutingMethod_Ingress().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RoutingMethod_Ingress { + return new RoutingMethod_Ingress().fromJsonString(jsonString, options); + } + + static equals(a: RoutingMethod_Ingress | PlainMessage | undefined, b: RoutingMethod_Ingress | PlainMessage | undefined): boolean { + return proto3.util.equals(RoutingMethod_Ingress, a, b); + } +} + +/** + * @generated from message api.v1.capsule.HorizontalScale + */ +export class HorizontalScale extends Message { + /** + * @generated from field: uint32 max_replicas = 1; + */ + maxReplicas = 0; + + /** + * @generated from field: uint32 min_replicas = 2; + */ + minReplicas = 0; + + /** + * @generated from field: api.v1.capsule.CPUTarget cpu_target = 3; + */ + cpuTarget?: CPUTarget; + + /** + * @generated from field: repeated api.v1.capsule.CustomMetric custom_metrics = 4; + */ + customMetrics: CustomMetric[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.HorizontalScale"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max_replicas", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "min_replicas", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "cpu_target", kind: "message", T: CPUTarget }, + { no: 4, name: "custom_metrics", kind: "message", T: CustomMetric, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HorizontalScale { + return new HorizontalScale().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HorizontalScale { + return new HorizontalScale().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HorizontalScale { + return new HorizontalScale().fromJsonString(jsonString, options); + } + + static equals(a: HorizontalScale | PlainMessage | undefined, b: HorizontalScale | PlainMessage | undefined): boolean { + return proto3.util.equals(HorizontalScale, a, b); + } +} + +/** + * @generated from message api.v1.capsule.CPUTarget + */ +export class CPUTarget extends Message { + /** + * @generated from field: uint32 average_utilization_percentage = 1; + */ + averageUtilizationPercentage = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.CPUTarget"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "average_utilization_percentage", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CPUTarget { + return new CPUTarget().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CPUTarget { + return new CPUTarget().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CPUTarget { + return new CPUTarget().fromJsonString(jsonString, options); + } + + static equals(a: CPUTarget | PlainMessage | undefined, b: CPUTarget | PlainMessage | undefined): boolean { + return proto3.util.equals(CPUTarget, a, b); + } +} + +/** + * @generated from message api.v1.capsule.CustomMetric + */ +export class CustomMetric extends Message { + /** + * @generated from oneof api.v1.capsule.CustomMetric.metric + */ + metric: { + /** + * @generated from field: api.v1.capsule.InstanceMetric instance = 1; + */ + value: InstanceMetric; + case: "instance"; + } | { + /** + * @generated from field: api.v1.capsule.ObjectMetric object = 2; + */ + value: ObjectMetric; + case: "object"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.CustomMetric"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "instance", kind: "message", T: InstanceMetric, oneof: "metric" }, + { no: 2, name: "object", kind: "message", T: ObjectMetric, oneof: "metric" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CustomMetric { + return new CustomMetric().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CustomMetric { + return new CustomMetric().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CustomMetric { + return new CustomMetric().fromJsonString(jsonString, options); + } + + static equals(a: CustomMetric | PlainMessage | undefined, b: CustomMetric | PlainMessage | undefined): boolean { + return proto3.util.equals(CustomMetric, a, b); + } +} + +/** + * @generated from message api.v1.capsule.InstanceMetric + */ +export class InstanceMetric extends Message { + /** + * @generated from field: string metric_name = 1; + */ + metricName = ""; + + /** + * @generated from field: map match_labels = 2; + */ + matchLabels: { [key: string]: string } = {}; + + /** + * @generated from field: string average_value = 3; + */ + averageValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.InstanceMetric"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metric_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "match_labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 3, name: "average_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InstanceMetric { + return new InstanceMetric().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InstanceMetric { + return new InstanceMetric().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InstanceMetric { + return new InstanceMetric().fromJsonString(jsonString, options); + } + + static equals(a: InstanceMetric | PlainMessage | undefined, b: InstanceMetric | PlainMessage | undefined): boolean { + return proto3.util.equals(InstanceMetric, a, b); + } +} + +/** + * @generated from message api.v1.capsule.ObjectMetric + */ +export class ObjectMetric extends Message { + /** + * @generated from field: string metric_name = 1; + */ + metricName = ""; + + /** + * @generated from field: map match_labels = 2; + */ + matchLabels: { [key: string]: string } = {}; + + /** + * @generated from field: string average_value = 3; + */ + averageValue = ""; + + /** + * @generated from field: string value = 4; + */ + value = ""; + + /** + * @generated from field: api.v1.capsule.ObjectReference object_reference = 5; + */ + objectReference?: ObjectReference; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.ObjectMetric"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metric_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "match_labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 3, name: "average_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "object_reference", kind: "message", T: ObjectReference }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ObjectMetric { + return new ObjectMetric().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ObjectMetric { + return new ObjectMetric().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ObjectMetric { + return new ObjectMetric().fromJsonString(jsonString, options); + } + + static equals(a: ObjectMetric | PlainMessage | undefined, b: ObjectMetric | PlainMessage | undefined): boolean { + return proto3.util.equals(ObjectMetric, a, b); + } +} + +/** + * @generated from message api.v1.capsule.ObjectReference + */ +export class ObjectReference extends Message { + /** + * @generated from field: string kind = 1; + */ + kind = ""; + + /** + * @generated from field: string name = 2; + */ + name = ""; + + /** + * @generated from field: string api_version = 3; + */ + apiVersion = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.ObjectReference"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "api_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ObjectReference { + return new ObjectReference().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ObjectReference { + return new ObjectReference().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ObjectReference { + return new ObjectReference().fromJsonString(jsonString, options); + } + + static equals(a: ObjectReference | PlainMessage | undefined, b: ObjectReference | PlainMessage | undefined): boolean { + return proto3.util.equals(ObjectReference, a, b); + } +} + diff --git a/api/v1/capsule/rollout_pb.ts b/api/v1/capsule/rollout_pb.ts index 685421c..42c3f06 100644 --- a/api/v1/capsule/rollout_pb.ts +++ b/api/v1/capsule/rollout_pb.ts @@ -7,6 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Status } from "./rollout/status_pb.js"; import { Author } from "../../../model/author_pb.js"; +import { Change, ContainerSettings, HorizontalScale, Network } from "./change_pb.js"; import { CronJob } from "./job_pb.js"; /** @@ -91,161 +92,6 @@ proto3.util.setEnumType(EventType, "api.v1.capsule.EventType", [ { no: 1, name: "EVENT_TYPE_ABORT" }, ]); -/** - * @generated from message api.v1.capsule.Change - */ -export class Change extends Message { - /** - * @generated from oneof api.v1.capsule.Change.field - */ - field: { - /** - * @generated from field: uint32 replicas = 1; - */ - value: number; - case: "replicas"; - } | { - /** - * @generated from field: string build_id = 2; - */ - value: string; - case: "buildId"; - } | { - /** - * @generated from field: api.v1.capsule.Network network = 3; - */ - value: Network; - case: "network"; - } | { - /** - * @generated from field: api.v1.capsule.ContainerSettings container_settings = 4; - */ - value: ContainerSettings; - case: "containerSettings"; - } | { - /** - * @generated from field: bool auto_add_rig_service_accounts = 5; - */ - value: boolean; - case: "autoAddRigServiceAccounts"; - } | { - /** - * @generated from field: api.v1.capsule.Change.ConfigFile set_config_file = 6; - */ - value: Change_ConfigFile; - case: "setConfigFile"; - } | { - /** - * @generated from field: string remove_config_file = 7; - */ - value: string; - case: "removeConfigFile"; - } | { - /** - * @generated from field: api.v1.capsule.HorizontalScale horizontal_scale = 8; - */ - value: HorizontalScale; - case: "horizontalScale"; - } | { - /** - * @generated from field: api.v1.capsule.Rollback rollback = 9; - */ - value: Rollback; - case: "rollback"; - } | { - /** - * @generated from field: api.v1.capsule.CronJobs cron_jobs = 10; - */ - value: CronJobs; - case: "cronJobs"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Change"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "replicas", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "field" }, - { no: 2, name: "build_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "field" }, - { no: 3, name: "network", kind: "message", T: Network, oneof: "field" }, - { no: 4, name: "container_settings", kind: "message", T: ContainerSettings, oneof: "field" }, - { no: 5, name: "auto_add_rig_service_accounts", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "field" }, - { no: 6, name: "set_config_file", kind: "message", T: Change_ConfigFile, oneof: "field" }, - { no: 7, name: "remove_config_file", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "field" }, - { no: 8, name: "horizontal_scale", kind: "message", T: HorizontalScale, oneof: "field" }, - { no: 9, name: "rollback", kind: "message", T: Rollback, oneof: "field" }, - { no: 10, name: "cron_jobs", kind: "message", T: CronJobs, oneof: "field" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Change { - return new Change().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Change { - return new Change().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Change { - return new Change().fromJsonString(jsonString, options); - } - - static equals(a: Change | PlainMessage | undefined, b: Change | PlainMessage | undefined): boolean { - return proto3.util.equals(Change, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Change.ConfigFile - */ -export class Change_ConfigFile extends Message { - /** - * @generated from field: string path = 1; - */ - path = ""; - - /** - * @generated from field: bytes content = 2; - */ - content = new Uint8Array(0); - - /** - * @generated from field: bool is_secret = 3; - */ - isSecret = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Change.ConfigFile"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "content", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Change_ConfigFile { - return new Change_ConfigFile().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Change_ConfigFile { - return new Change_ConfigFile().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Change_ConfigFile { - return new Change_ConfigFile().fromJsonString(jsonString, options); - } - - static equals(a: Change_ConfigFile | PlainMessage | undefined, b: Change_ConfigFile | PlainMessage | undefined): boolean { - return proto3.util.equals(Change_ConfigFile, a, b); - } -} - /** * @generated from message api.v1.capsule.Rollout */ @@ -516,1546 +362,3 @@ export class RolloutStatus extends Message { } } -/** - * @generated from message api.v1.capsule.ContainerSettings - */ -export class ContainerSettings extends Message { - /** - * @generated from field: map environment_variables = 1; - */ - environmentVariables: { [key: string]: string } = {}; - - /** - * @generated from field: string command = 2; - */ - command = ""; - - /** - * @generated from field: repeated string args = 3; - */ - args: string[] = []; - - /** - * @generated from field: api.v1.capsule.Resources resources = 4; - */ - resources?: Resources; - - /** - * @generated from field: repeated api.v1.capsule.EnvironmentSource environment_sources = 5; - */ - environmentSources: EnvironmentSource[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.ContainerSettings"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "environment_variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 2, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "resources", kind: "message", T: Resources }, - { no: 5, name: "environment_sources", kind: "message", T: EnvironmentSource, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContainerSettings { - return new ContainerSettings().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContainerSettings { - return new ContainerSettings().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContainerSettings { - return new ContainerSettings().fromJsonString(jsonString, options); - } - - static equals(a: ContainerSettings | PlainMessage | undefined, b: ContainerSettings | PlainMessage | undefined): boolean { - return proto3.util.equals(ContainerSettings, a, b); - } -} - -/** - * @generated from message api.v1.capsule.EnvironmentSource - */ -export class EnvironmentSource extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: api.v1.capsule.EnvironmentSource.Kind kind = 2; - */ - kind = EnvironmentSource_Kind.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.EnvironmentSource"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "kind", kind: "enum", T: proto3.getEnumType(EnvironmentSource_Kind) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EnvironmentSource { - return new EnvironmentSource().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EnvironmentSource { - return new EnvironmentSource().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EnvironmentSource { - return new EnvironmentSource().fromJsonString(jsonString, options); - } - - static equals(a: EnvironmentSource | PlainMessage | undefined, b: EnvironmentSource | PlainMessage | undefined): boolean { - return proto3.util.equals(EnvironmentSource, a, b); - } -} - -/** - * @generated from enum api.v1.capsule.EnvironmentSource.Kind - */ -export enum EnvironmentSource_Kind { - /** - * @generated from enum value: KIND_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * @generated from enum value: KIND_CONFIG_MAP = 1; - */ - CONFIG_MAP = 1, - - /** - * @generated from enum value: KIND_SECRET = 2; - */ - SECRET = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(EnvironmentSource_Kind) -proto3.util.setEnumType(EnvironmentSource_Kind, "api.v1.capsule.EnvironmentSource.Kind", [ - { no: 0, name: "KIND_UNSPECIFIED" }, - { no: 1, name: "KIND_CONFIG_MAP" }, - { no: 2, name: "KIND_SECRET" }, -]); - -/** - * @generated from message api.v1.capsule.Resources - */ -export class Resources extends Message { - /** - * @generated from field: api.v1.capsule.ResourceList requests = 1; - */ - requests?: ResourceList; - - /** - * @generated from field: api.v1.capsule.ResourceList limits = 2; - */ - limits?: ResourceList; - - /** - * @generated from field: api.v1.capsule.GpuLimits gpu_limits = 3; - */ - gpuLimits?: GpuLimits; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Resources"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "requests", kind: "message", T: ResourceList }, - { no: 2, name: "limits", kind: "message", T: ResourceList }, - { no: 3, name: "gpu_limits", kind: "message", T: GpuLimits }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Resources { - return new Resources().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Resources { - return new Resources().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Resources { - return new Resources().fromJsonString(jsonString, options); - } - - static equals(a: Resources | PlainMessage | undefined, b: Resources | PlainMessage | undefined): boolean { - return proto3.util.equals(Resources, a, b); - } -} - -/** - * @generated from message api.v1.capsule.ResourceList - */ -export class ResourceList extends Message { - /** - * Unit: milli-CPUs - * - * @generated from field: uint32 cpu_millis = 1; - */ - cpuMillis = 0; - - /** - * Unit: Bytes - * - * @generated from field: uint64 memory_bytes = 2; - */ - memoryBytes = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.ResourceList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cpu_millis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "memory_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResourceList { - return new ResourceList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResourceList { - return new ResourceList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResourceList { - return new ResourceList().fromJsonString(jsonString, options); - } - - static equals(a: ResourceList | PlainMessage | undefined, b: ResourceList | PlainMessage | undefined): boolean { - return proto3.util.equals(ResourceList, a, b); - } -} - -/** - * @generated from message api.v1.capsule.GpuLimits - */ -export class GpuLimits extends Message { - /** - * gpu resource type - fx. nvidia.com/gpu - * - * @generated from field: string type = 1; - */ - type = ""; - - /** - * number of gpus - * - * @generated from field: uint32 count = 2; - */ - count = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.GpuLimits"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GpuLimits { - return new GpuLimits().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GpuLimits { - return new GpuLimits().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GpuLimits { - return new GpuLimits().fromJsonString(jsonString, options); - } - - static equals(a: GpuLimits | PlainMessage | undefined, b: GpuLimits | PlainMessage | undefined): boolean { - return proto3.util.equals(GpuLimits, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Network - */ -export class Network extends Message { - /** - * @generated from field: repeated api.v1.capsule.Interface interfaces = 1; - */ - interfaces: Interface[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Network"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "interfaces", kind: "message", T: Interface, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Network { - return new Network().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Network { - return new Network().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Network { - return new Network().fromJsonString(jsonString, options); - } - - static equals(a: Network | PlainMessage | undefined, b: Network | PlainMessage | undefined): boolean { - return proto3.util.equals(Network, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Interface - */ -export class Interface extends Message { - /** - * @generated from field: uint32 port = 1; - */ - port = 0; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: api.v1.capsule.PublicInterface public = 4; - */ - public?: PublicInterface; - - /** - * @generated from field: api.v1.capsule.Logging logging = 5; - */ - logging?: Logging; - - /** - * @generated from field: api.v1.capsule.Authentication authentication = 6; - */ - authentication?: Authentication; - - /** - * @generated from field: api.v1.capsule.InterfaceProbe liveness = 7; - */ - liveness?: InterfaceProbe; - - /** - * @generated from field: api.v1.capsule.InterfaceProbe readiness = 8; - */ - readiness?: InterfaceProbe; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Interface"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "public", kind: "message", T: PublicInterface }, - { no: 5, name: "logging", kind: "message", T: Logging }, - { no: 6, name: "authentication", kind: "message", T: Authentication }, - { no: 7, name: "liveness", kind: "message", T: InterfaceProbe }, - { no: 8, name: "readiness", kind: "message", T: InterfaceProbe }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Interface { - return new Interface().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Interface { - return new Interface().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Interface { - return new Interface().fromJsonString(jsonString, options); - } - - static equals(a: Interface | PlainMessage | undefined, b: Interface | PlainMessage | undefined): boolean { - return proto3.util.equals(Interface, a, b); - } -} - -/** - * @generated from message api.v1.capsule.InterfaceProbe - */ -export class InterfaceProbe extends Message { - /** - * @generated from oneof api.v1.capsule.InterfaceProbe.kind - */ - kind: { - /** - * @generated from field: api.v1.capsule.InterfaceProbe.HTTP http = 1; - */ - value: InterfaceProbe_HTTP; - case: "http"; - } | { - /** - * @generated from field: api.v1.capsule.InterfaceProbe.TCP tcp = 2; - */ - value: InterfaceProbe_TCP; - case: "tcp"; - } | { - /** - * @generated from field: api.v1.capsule.InterfaceProbe.GRPC grpc = 3; - */ - value: InterfaceProbe_GRPC; - case: "grpc"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.InterfaceProbe"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "http", kind: "message", T: InterfaceProbe_HTTP, oneof: "kind" }, - { no: 2, name: "tcp", kind: "message", T: InterfaceProbe_TCP, oneof: "kind" }, - { no: 3, name: "grpc", kind: "message", T: InterfaceProbe_GRPC, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe { - return new InterfaceProbe().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe { - return new InterfaceProbe().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe { - return new InterfaceProbe().fromJsonString(jsonString, options); - } - - static equals(a: InterfaceProbe | PlainMessage | undefined, b: InterfaceProbe | PlainMessage | undefined): boolean { - return proto3.util.equals(InterfaceProbe, a, b); - } -} - -/** - * @generated from message api.v1.capsule.InterfaceProbe.HTTP - */ -export class InterfaceProbe_HTTP extends Message { - /** - * @generated from field: string path = 1; - */ - path = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.InterfaceProbe.HTTP"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe_HTTP { - return new InterfaceProbe_HTTP().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe_HTTP { - return new InterfaceProbe_HTTP().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe_HTTP { - return new InterfaceProbe_HTTP().fromJsonString(jsonString, options); - } - - static equals(a: InterfaceProbe_HTTP | PlainMessage | undefined, b: InterfaceProbe_HTTP | PlainMessage | undefined): boolean { - return proto3.util.equals(InterfaceProbe_HTTP, a, b); - } -} - -/** - * @generated from message api.v1.capsule.InterfaceProbe.TCP - */ -export class InterfaceProbe_TCP extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.InterfaceProbe.TCP"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe_TCP { - return new InterfaceProbe_TCP().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe_TCP { - return new InterfaceProbe_TCP().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe_TCP { - return new InterfaceProbe_TCP().fromJsonString(jsonString, options); - } - - static equals(a: InterfaceProbe_TCP | PlainMessage | undefined, b: InterfaceProbe_TCP | PlainMessage | undefined): boolean { - return proto3.util.equals(InterfaceProbe_TCP, a, b); - } -} - -/** - * @generated from message api.v1.capsule.InterfaceProbe.GRPC - */ -export class InterfaceProbe_GRPC extends Message { - /** - * @generated from field: string service = 1; - */ - service = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.InterfaceProbe.GRPC"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceProbe_GRPC { - return new InterfaceProbe_GRPC().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceProbe_GRPC { - return new InterfaceProbe_GRPC().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterfaceProbe_GRPC { - return new InterfaceProbe_GRPC().fromJsonString(jsonString, options); - } - - static equals(a: InterfaceProbe_GRPC | PlainMessage | undefined, b: InterfaceProbe_GRPC | PlainMessage | undefined): boolean { - return proto3.util.equals(InterfaceProbe_GRPC, a, b); - } -} - -/** - * @generated from message api.v1.capsule.PublicInterface - */ -export class PublicInterface extends Message { - /** - * @generated from field: bool enabled = 1; - */ - enabled = false; - - /** - * @generated from field: api.v1.capsule.RoutingMethod method = 2; - */ - method?: RoutingMethod; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.PublicInterface"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "method", kind: "message", T: RoutingMethod }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PublicInterface { - return new PublicInterface().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PublicInterface { - return new PublicInterface().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PublicInterface { - return new PublicInterface().fromJsonString(jsonString, options); - } - - static equals(a: PublicInterface | PlainMessage | undefined, b: PublicInterface | PlainMessage | undefined): boolean { - return proto3.util.equals(PublicInterface, a, b); - } -} - -/** - * @generated from message api.v1.capsule.RoutingMethod - */ -export class RoutingMethod extends Message { - /** - * @generated from oneof api.v1.capsule.RoutingMethod.kind - */ - kind: { - /** - * @generated from field: api.v1.capsule.RoutingMethod.LoadBalancer load_balancer = 1; - */ - value: RoutingMethod_LoadBalancer; - case: "loadBalancer"; - } | { - /** - * @generated from field: api.v1.capsule.RoutingMethod.Ingress ingress = 2; - */ - value: RoutingMethod_Ingress; - case: "ingress"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.RoutingMethod"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "load_balancer", kind: "message", T: RoutingMethod_LoadBalancer, oneof: "kind" }, - { no: 2, name: "ingress", kind: "message", T: RoutingMethod_Ingress, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RoutingMethod { - return new RoutingMethod().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RoutingMethod { - return new RoutingMethod().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RoutingMethod { - return new RoutingMethod().fromJsonString(jsonString, options); - } - - static equals(a: RoutingMethod | PlainMessage | undefined, b: RoutingMethod | PlainMessage | undefined): boolean { - return proto3.util.equals(RoutingMethod, a, b); - } -} - -/** - * @generated from message api.v1.capsule.RoutingMethod.LoadBalancer - */ -export class RoutingMethod_LoadBalancer extends Message { - /** - * @generated from field: uint32 port = 1; - */ - port = 0; - - /** - * @generated from field: uint32 node_port = 2; - */ - nodePort = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.RoutingMethod.LoadBalancer"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "node_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RoutingMethod_LoadBalancer { - return new RoutingMethod_LoadBalancer().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RoutingMethod_LoadBalancer { - return new RoutingMethod_LoadBalancer().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RoutingMethod_LoadBalancer { - return new RoutingMethod_LoadBalancer().fromJsonString(jsonString, options); - } - - static equals(a: RoutingMethod_LoadBalancer | PlainMessage | undefined, b: RoutingMethod_LoadBalancer | PlainMessage | undefined): boolean { - return proto3.util.equals(RoutingMethod_LoadBalancer, a, b); - } -} - -/** - * @generated from message api.v1.capsule.RoutingMethod.Ingress - */ -export class RoutingMethod_Ingress extends Message { - /** - * @generated from field: string host = 1; - */ - host = ""; - - /** - * @generated from field: bool tls = 2; - */ - tls = false; - - /** - * @generated from field: repeated string paths = 3; - */ - paths: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.RoutingMethod.Ingress"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "tls", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RoutingMethod_Ingress { - return new RoutingMethod_Ingress().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RoutingMethod_Ingress { - return new RoutingMethod_Ingress().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RoutingMethod_Ingress { - return new RoutingMethod_Ingress().fromJsonString(jsonString, options); - } - - static equals(a: RoutingMethod_Ingress | PlainMessage | undefined, b: RoutingMethod_Ingress | PlainMessage | undefined): boolean { - return proto3.util.equals(RoutingMethod_Ingress, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Middleware - */ -export class Middleware extends Message { - /** - * @generated from oneof api.v1.capsule.Middleware.kind - */ - kind: { - /** - * @generated from field: api.v1.capsule.Logging logging = 1; - */ - value: Logging; - case: "logging"; - } | { - /** - * @generated from field: api.v1.capsule.Authentication authentication = 2; - */ - value: Authentication; - case: "authentication"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Middleware"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "logging", kind: "message", T: Logging, oneof: "kind" }, - { no: 2, name: "authentication", kind: "message", T: Authentication, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Middleware { - return new Middleware().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Middleware { - return new Middleware().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Middleware { - return new Middleware().fromJsonString(jsonString, options); - } - - static equals(a: Middleware | PlainMessage | undefined, b: Middleware | PlainMessage | undefined): boolean { - return proto3.util.equals(Middleware, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Logging - */ -export class Logging extends Message { - /** - * @generated from field: bool enabled = 1; - */ - enabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Logging"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Logging { - return new Logging().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Logging { - return new Logging().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Logging { - return new Logging().fromJsonString(jsonString, options); - } - - static equals(a: Logging | PlainMessage | undefined, b: Logging | PlainMessage | undefined): boolean { - return proto3.util.equals(Logging, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Authentication - */ -export class Authentication extends Message { - /** - * @generated from field: bool enabled = 1; - */ - enabled = false; - - /** - * @generated from field: api.v1.capsule.Auth default = 2; - */ - default?: Auth; - - /** - * @generated from field: repeated api.v1.capsule.HttpAuth http = 3; - */ - http: HttpAuth[] = []; - - /** - * @generated from field: api.v1.capsule.GRPC grpc = 4; - */ - grpc?: GRPC; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Authentication"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "default", kind: "message", T: Auth }, - { no: 3, name: "http", kind: "message", T: HttpAuth, repeated: true }, - { no: 4, name: "grpc", kind: "message", T: GRPC }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Authentication { - return new Authentication().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Authentication { - return new Authentication().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Authentication { - return new Authentication().fromJsonString(jsonString, options); - } - - static equals(a: Authentication | PlainMessage | undefined, b: Authentication | PlainMessage | undefined): boolean { - return proto3.util.equals(Authentication, a, b); - } -} - -/** - * @generated from message api.v1.capsule.HttpAuth - */ -export class HttpAuth extends Message { - /** - * @generated from field: string path = 1; - */ - path = ""; - - /** - * @generated from field: api.v1.capsule.Auth auth = 2; - */ - auth?: Auth; - - /** - * @generated from field: bool exact = 3; - */ - exact = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.HttpAuth"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "auth", kind: "message", T: Auth }, - { no: 3, name: "exact", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HttpAuth { - return new HttpAuth().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HttpAuth { - return new HttpAuth().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HttpAuth { - return new HttpAuth().fromJsonString(jsonString, options); - } - - static equals(a: HttpAuth | PlainMessage | undefined, b: HttpAuth | PlainMessage | undefined): boolean { - return proto3.util.equals(HttpAuth, a, b); - } -} - -/** - * @generated from message api.v1.capsule.GRPC - */ -export class GRPC extends Message { - /** - * @generated from field: api.v1.capsule.Auth auth = 1; - */ - auth?: Auth; - - /** - * @generated from field: string path_prefix = 2; - */ - pathPrefix = ""; - - /** - * @generated from field: map services = 3; - */ - services: { [key: string]: GRPCService } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.GRPC"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "auth", kind: "message", T: Auth }, - { no: 2, name: "path_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "services", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: GRPCService} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GRPC { - return new GRPC().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GRPC { - return new GRPC().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GRPC { - return new GRPC().fromJsonString(jsonString, options); - } - - static equals(a: GRPC | PlainMessage | undefined, b: GRPC | PlainMessage | undefined): boolean { - return proto3.util.equals(GRPC, a, b); - } -} - -/** - * @generated from message api.v1.capsule.GRPCService - */ -export class GRPCService extends Message { - /** - * @generated from field: api.v1.capsule.Auth auth = 1; - */ - auth?: Auth; - - /** - * @generated from field: map methods = 2; - */ - methods: { [key: string]: GRPCMethod } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.GRPCService"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "auth", kind: "message", T: Auth }, - { no: 2, name: "methods", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: GRPCMethod} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GRPCService { - return new GRPCService().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GRPCService { - return new GRPCService().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GRPCService { - return new GRPCService().fromJsonString(jsonString, options); - } - - static equals(a: GRPCService | PlainMessage | undefined, b: GRPCService | PlainMessage | undefined): boolean { - return proto3.util.equals(GRPCService, a, b); - } -} - -/** - * @generated from message api.v1.capsule.GRPCMethod - */ -export class GRPCMethod extends Message { - /** - * @generated from field: api.v1.capsule.Auth auth = 1; - */ - auth?: Auth; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.GRPCMethod"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "auth", kind: "message", T: Auth }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GRPCMethod { - return new GRPCMethod().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GRPCMethod { - return new GRPCMethod().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GRPCMethod { - return new GRPCMethod().fromJsonString(jsonString, options); - } - - static equals(a: GRPCMethod | PlainMessage | undefined, b: GRPCMethod | PlainMessage | undefined): boolean { - return proto3.util.equals(GRPCMethod, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Auth - */ -export class Auth extends Message { - /** - * @generated from oneof api.v1.capsule.Auth.method - */ - method: { - /** - * @generated from field: api.v1.capsule.Auth.AllowAny allow_any = 1; - */ - value: Auth_AllowAny; - case: "allowAny"; - } | { - /** - * @generated from field: api.v1.capsule.Auth.AllowAuthorized allow_authorized = 2; - */ - value: Auth_AllowAuthorized; - case: "allowAuthorized"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Auth"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allow_any", kind: "message", T: Auth_AllowAny, oneof: "method" }, - { no: 2, name: "allow_authorized", kind: "message", T: Auth_AllowAuthorized, oneof: "method" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Auth { - return new Auth().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Auth { - return new Auth().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Auth { - return new Auth().fromJsonString(jsonString, options); - } - - static equals(a: Auth | PlainMessage | undefined, b: Auth | PlainMessage | undefined): boolean { - return proto3.util.equals(Auth, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Auth.AllowAny - */ -export class Auth_AllowAny extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Auth.AllowAny"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Auth_AllowAny { - return new Auth_AllowAny().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Auth_AllowAny { - return new Auth_AllowAny().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Auth_AllowAny { - return new Auth_AllowAny().fromJsonString(jsonString, options); - } - - static equals(a: Auth_AllowAny | PlainMessage | undefined, b: Auth_AllowAny | PlainMessage | undefined): boolean { - return proto3.util.equals(Auth_AllowAny, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Auth.AllowAuthorized - */ -export class Auth_AllowAuthorized extends Message { - /** - * @generated from field: map claims = 1; - */ - claims: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Auth.AllowAuthorized"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "claims", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Auth_AllowAuthorized { - return new Auth_AllowAuthorized().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Auth_AllowAuthorized { - return new Auth_AllowAuthorized().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Auth_AllowAuthorized { - return new Auth_AllowAuthorized().fromJsonString(jsonString, options); - } - - static equals(a: Auth_AllowAuthorized | PlainMessage | undefined, b: Auth_AllowAuthorized | PlainMessage | undefined): boolean { - return proto3.util.equals(Auth_AllowAuthorized, a, b); - } -} - -/** - * @generated from message api.v1.capsule.HorizontalScale - */ -export class HorizontalScale extends Message { - /** - * @generated from field: uint32 max_replicas = 1; - */ - maxReplicas = 0; - - /** - * @generated from field: uint32 min_replicas = 2; - */ - minReplicas = 0; - - /** - * @generated from field: api.v1.capsule.CPUTarget cpu_target = 3; - */ - cpuTarget?: CPUTarget; - - /** - * @generated from field: repeated api.v1.capsule.CustomMetric custom_metrics = 4; - */ - customMetrics: CustomMetric[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.HorizontalScale"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_replicas", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "min_replicas", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "cpu_target", kind: "message", T: CPUTarget }, - { no: 4, name: "custom_metrics", kind: "message", T: CustomMetric, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HorizontalScale { - return new HorizontalScale().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HorizontalScale { - return new HorizontalScale().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HorizontalScale { - return new HorizontalScale().fromJsonString(jsonString, options); - } - - static equals(a: HorizontalScale | PlainMessage | undefined, b: HorizontalScale | PlainMessage | undefined): boolean { - return proto3.util.equals(HorizontalScale, a, b); - } -} - -/** - * @generated from message api.v1.capsule.CPUTarget - */ -export class CPUTarget extends Message { - /** - * @generated from field: uint32 average_utilization_percentage = 1; - */ - averageUtilizationPercentage = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.CPUTarget"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "average_utilization_percentage", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CPUTarget { - return new CPUTarget().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CPUTarget { - return new CPUTarget().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CPUTarget { - return new CPUTarget().fromJsonString(jsonString, options); - } - - static equals(a: CPUTarget | PlainMessage | undefined, b: CPUTarget | PlainMessage | undefined): boolean { - return proto3.util.equals(CPUTarget, a, b); - } -} - -/** - * @generated from message api.v1.capsule.Rollback - */ -export class Rollback extends Message { - /** - * @generated from field: uint64 rollback_id = 1; - */ - rollbackId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.Rollback"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rollback_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Rollback { - return new Rollback().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Rollback { - return new Rollback().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Rollback { - return new Rollback().fromJsonString(jsonString, options); - } - - static equals(a: Rollback | PlainMessage | undefined, b: Rollback | PlainMessage | undefined): boolean { - return proto3.util.equals(Rollback, a, b); - } -} - -/** - * @generated from message api.v1.capsule.CustomMetric - */ -export class CustomMetric extends Message { - /** - * @generated from oneof api.v1.capsule.CustomMetric.metric - */ - metric: { - /** - * @generated from field: api.v1.capsule.InstanceMetric instance = 1; - */ - value: InstanceMetric; - case: "instance"; - } | { - /** - * @generated from field: api.v1.capsule.ObjectMetric object = 2; - */ - value: ObjectMetric; - case: "object"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.CustomMetric"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "instance", kind: "message", T: InstanceMetric, oneof: "metric" }, - { no: 2, name: "object", kind: "message", T: ObjectMetric, oneof: "metric" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CustomMetric { - return new CustomMetric().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CustomMetric { - return new CustomMetric().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CustomMetric { - return new CustomMetric().fromJsonString(jsonString, options); - } - - static equals(a: CustomMetric | PlainMessage | undefined, b: CustomMetric | PlainMessage | undefined): boolean { - return proto3.util.equals(CustomMetric, a, b); - } -} - -/** - * @generated from message api.v1.capsule.InstanceMetric - */ -export class InstanceMetric extends Message { - /** - * @generated from field: string metric_name = 1; - */ - metricName = ""; - - /** - * @generated from field: map match_labels = 2; - */ - matchLabels: { [key: string]: string } = {}; - - /** - * @generated from field: string average_value = 3; - */ - averageValue = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.InstanceMetric"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metric_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "match_labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 3, name: "average_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InstanceMetric { - return new InstanceMetric().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InstanceMetric { - return new InstanceMetric().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InstanceMetric { - return new InstanceMetric().fromJsonString(jsonString, options); - } - - static equals(a: InstanceMetric | PlainMessage | undefined, b: InstanceMetric | PlainMessage | undefined): boolean { - return proto3.util.equals(InstanceMetric, a, b); - } -} - -/** - * @generated from message api.v1.capsule.ObjectMetric - */ -export class ObjectMetric extends Message { - /** - * @generated from field: string metric_name = 1; - */ - metricName = ""; - - /** - * @generated from field: map match_labels = 2; - */ - matchLabels: { [key: string]: string } = {}; - - /** - * @generated from field: string average_value = 3; - */ - averageValue = ""; - - /** - * @generated from field: string value = 4; - */ - value = ""; - - /** - * @generated from field: api.v1.capsule.ObjectReference object_reference = 5; - */ - objectReference?: ObjectReference; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.ObjectMetric"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metric_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "match_labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 3, name: "average_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "object_reference", kind: "message", T: ObjectReference }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ObjectMetric { - return new ObjectMetric().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ObjectMetric { - return new ObjectMetric().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ObjectMetric { - return new ObjectMetric().fromJsonString(jsonString, options); - } - - static equals(a: ObjectMetric | PlainMessage | undefined, b: ObjectMetric | PlainMessage | undefined): boolean { - return proto3.util.equals(ObjectMetric, a, b); - } -} - -/** - * @generated from message api.v1.capsule.ObjectReference - */ -export class ObjectReference extends Message { - /** - * @generated from field: string kind = 1; - */ - kind = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: string api_version = 3; - */ - apiVersion = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.ObjectReference"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "api_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ObjectReference { - return new ObjectReference().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ObjectReference { - return new ObjectReference().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ObjectReference { - return new ObjectReference().fromJsonString(jsonString, options); - } - - static equals(a: ObjectReference | PlainMessage | undefined, b: ObjectReference | PlainMessage | undefined): boolean { - return proto3.util.equals(ObjectReference, a, b); - } -} - -/** - * @generated from message api.v1.capsule.CronJobs - */ -export class CronJobs extends Message { - /** - * @generated from field: repeated api.v1.capsule.CronJob jobs = 1; - */ - jobs: CronJob[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.capsule.CronJobs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "jobs", kind: "message", T: CronJob, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CronJobs { - return new CronJobs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CronJobs { - return new CronJobs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CronJobs { - return new CronJobs().fromJsonString(jsonString, options); - } - - static equals(a: CronJobs | PlainMessage | undefined, b: CronJobs | PlainMessage | undefined): boolean { - return proto3.util.equals(CronJobs, a, b); - } -} - diff --git a/api/v1/capsule/service_pb.ts b/api/v1/capsule/service_pb.ts index 4a90940..cf41f6c 100644 --- a/api/v1/capsule/service_pb.ts +++ b/api/v1/capsule/service_pb.ts @@ -9,9 +9,10 @@ import { Capsule, Update } from "./capsule_pb.js"; import { Log } from "./log_pb.js"; import { Pagination } from "../../../model/common_pb.js"; import { Build, Origin } from "./build_pb.js"; -import { Change, Rollout } from "./rollout_pb.js"; +import { Change } from "./change_pb.js"; import { Instance } from "./instance_pb.js"; import { Status } from "./instance/status_pb.js"; +import { Rollout } from "./rollout_pb.js"; import { Event } from "./event_pb.js"; import { InstanceMetrics } from "./metrics_pb.js"; import { JobExecution, JobState } from "./job_pb.js"; diff --git a/api/v1/project/service_pb.ts b/api/v1/project/service_pb.ts index 8f0947d..1134aae 100644 --- a/api/v1/project/service_pb.ts +++ b/api/v1/project/service_pb.ts @@ -7,7 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Plan, Project, Update } from "./project_pb.js"; import { Pagination } from "../../../model/common_pb.js"; -import { ObjectReference } from "../capsule/rollout_pb.js"; +import { ObjectReference } from "../capsule/change_pb.js"; import { Metric } from "../capsule/service_pb.js"; /**