clarifai-web-grpc 10.2.1 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +13 -11
  2. package/VERSION +1 -1
  3. package/dist/cjs/index.d.ts +2 -1
  4. package/dist/cjs/index.js +8 -2
  5. package/dist/cjs/proto/clarifai/api/resources_pb.js +2102 -4
  6. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +0 -42
  7. package/dist/cjs/proto/clarifai/api/service_pb.js +731 -416
  8. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +2 -0
  9. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -0
  10. package/dist/cjs/resources.d.ts +1 -0
  11. package/dist/cjs/resources.js +3 -0
  12. package/dist/esm/index.d.ts +2 -1
  13. package/dist/esm/index.js +6 -2
  14. package/dist/esm/proto/clarifai/api/resources_pb.js +2102 -4
  15. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +0 -42
  16. package/dist/esm/proto/clarifai/api/service_pb.js +731 -416
  17. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +2 -0
  18. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -0
  19. package/dist/esm/resources.d.ts +1 -0
  20. package/dist/esm/resources.js +1 -0
  21. package/examples/post-app.ts +27 -0
  22. package/examples/post-input.ts +42 -0
  23. package/index.ts +7 -2
  24. package/package.json +1 -1
  25. package/proto/clarifai/api/resources_pb.d.ts +347 -0
  26. package/proto/clarifai/api/resources_pb.js +2629 -4
  27. package/proto/clarifai/api/service_grpc_web_pb.d.ts +0 -12
  28. package/proto/clarifai/api/service_grpc_web_pb.js +0 -61
  29. package/proto/clarifai/api/service_pb.d.ts +106 -64
  30. package/proto/clarifai/api/service_pb.js +918 -510
  31. package/proto/clarifai/api/status/status_code_pb.d.ts +2 -0
  32. package/proto/clarifai/api/status/status_code_pb.js +2 -0
  33. package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -0
  34. package/proto/clarifai/auth/scope/scope_pb.js +2 -0
  35. package/resources.ts +1 -0
@@ -307,10 +307,12 @@ proto.clarifai.api.status.StatusCode = {
307
307
  TASK_CONFLICT: 54100,
308
308
  TASK_NOT_IMPLEMENTED: 54101,
309
309
  TASK_MISSING: 54102,
310
+ TASK_PERMISSION_DENIED: 54103,
310
311
  TASK_ASSIGNMENT_SUCCESS: 54200,
311
312
  TASK_ASSIGNMENT_PENDING: 54201,
312
313
  TASK_ASSIGNMENT_AWAITING_REVIEW: 54202,
313
314
  TASK_ASSIGNMENT_AWAITING_CONSENSUS_REVIEW: 54203,
315
+ TASK_ASSIGNMENT_REVIEW_DENIED: 54204,
314
316
  LABEL_ORDER_PENDING: 55001,
315
317
  LABEL_ORDER_IN_PROGRESS: 55002,
316
318
  LABEL_ORDER_SUCCESS: 55003,
@@ -236,6 +236,8 @@ proto.clarifai.auth.scope.S = {
236
236
  MODELS_DELETE: 17,
237
237
  MODELS_TRAIN: 26,
238
238
  MODELS_SYNC: 27,
239
+ MODELEXPORTS_GET: 142,
240
+ MODELEXPORTS_ADD: 143,
239
241
  WORKFLOWS_ADD: 18,
240
242
  WORKFLOWS_GET: 19,
241
243
  WORKFLOWS_PATCH: 20,
@@ -1 +1,2 @@
1
1
  export * from './proto/clarifai/api/resources_pb';
2
+ export { Struct } from 'google-protobuf/google/protobuf/struct_pb';
@@ -1 +1,2 @@
1
1
  export * from './proto/clarifai/api/resources_pb';
2
+ export { Struct } from 'google-protobuf/google/protobuf/struct_pb';
@@ -0,0 +1,27 @@
1
+ import { ClarifaiStub } from '../index'
2
+ import { App } from '../resources'
3
+ import { PostAppsRequest } from '../service'
4
+
5
+ export async function createAnApp() {
6
+ // get a client object
7
+ const client = ClarifaiStub.promise()
8
+
9
+ // create an app
10
+ const app = new App();
11
+ app.setId('cat-app');
12
+ app.setDefaultWorkflowId('General-Detection');
13
+ app.setDescription('An app for some cats');
14
+
15
+ // create a request
16
+ const req = new PostAppsRequest();
17
+ req.setAppsList([app]);
18
+
19
+ // send the request
20
+ const auth = {
21
+ authorization: `Key ${process.env.CLARIFAI_TOKEN}`,
22
+ };
23
+ const resp = await client.postApps(req, auth);
24
+
25
+ // log the app id
26
+ console.log(resp.getAppsList()[0].getId());
27
+ }
@@ -0,0 +1,42 @@
1
+ import { ClarifaiStub } from '../index'
2
+ import { Struct, Data, Input, Text } from '../resources'
3
+ import { PostInputsRequest } from '../service'
4
+
5
+ export async function createAnInput() {
6
+ // create an input with some text. In a real app, this might come
7
+ // from a filepicker widget, or maybe a datasource like S3 or a database.
8
+ const input = new Input();
9
+
10
+ const data = new Data();
11
+
12
+ const text = new Text();
13
+ text.setRaw("hello world");
14
+
15
+ // we can also attach metadata to an input so we can correlate it with
16
+ // other data in our system. This can be any JSON-serializable object.
17
+ const metadata = Struct.fromJavaScript({
18
+ product_id: '1234',
19
+ location: 'San Francisco',
20
+ client: 'acme',
21
+ });
22
+
23
+ data.setMetadata(metadata);
24
+
25
+ input.setData(data);
26
+
27
+ // get a client object
28
+ const client = ClarifaiStub.promise()
29
+
30
+ // create a request
31
+ const req = new PostInputsRequest();
32
+ req.setInputsList([input]);
33
+
34
+ // send the request
35
+ const auth = {
36
+ authorization: `Key ${process.env.CLARIFAI_TOKEN}`,
37
+ };
38
+ const resp = await client.postInputs(req, auth);
39
+
40
+ // log the input id
41
+ console.log(resp.getInputsList()[0].getId());
42
+ }
package/index.ts CHANGED
@@ -1,12 +1,17 @@
1
1
  import { V2Client, V2PromiseClient } from './proto/clarifai/api/service_grpc_web_pb'
2
2
 
3
3
  export class ClarifaiStub {
4
- static grpc (hostname = 'api.clarifai.com') {
4
+ static grpc (hostname = 'https://api-grpc-web.clarifai.com') {
5
5
  const options = { 'grpc.max_receive_message_length': 128 * 1024 * 1024 } // 128 MB
6
6
  return new V2Client(hostname, null, options)
7
7
  }
8
+
9
+ static promise (hostname = 'https://api-grpc-web.clarifai.com') {
10
+ const options = { 'grpc.max_receive_message_length': 128 * 1024 * 1024 } // 128 MB
11
+ return new V2PromiseClient(hostname, null, options)
12
+ }
8
13
  }
9
14
 
10
15
  export { V2Client, V2PromiseClient }
11
- export { RpcError, Metadata, ClientReadableStream } from 'grpc-web'
16
+ export { RpcError, Metadata, ClientReadableStream, Request, UnaryResponse } from 'grpc-web'
12
17
  export { BaseResponse } from './proto/clarifai/api/status/status_pb'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.2.1",
3
+ "version": "10.3.0",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -3330,6 +3330,16 @@ export class ModelVersion extends jspb.Message {
3330
3330
  getTrainLog(): string;
3331
3331
  setTrainLog(value: string): ModelVersion;
3332
3332
 
3333
+ getInferenceComputeInfo(): ComputeInfo | undefined;
3334
+ setInferenceComputeInfo(value?: ComputeInfo): ModelVersion;
3335
+ hasInferenceComputeInfo(): boolean;
3336
+ clearInferenceComputeInfo(): ModelVersion;
3337
+
3338
+ getBuildInfo(): BuildInfo | undefined;
3339
+ setBuildInfo(value?: BuildInfo): ModelVersion;
3340
+ hasBuildInfo(): boolean;
3341
+ clearBuildInfo(): ModelVersion;
3342
+
3333
3343
  serializeBinary(): Uint8Array;
3334
3344
  toObject(includeInstance?: boolean): ModelVersion.AsObject;
3335
3345
  static toObject(includeInstance: boolean, msg: ModelVersion): ModelVersion.AsObject;
@@ -3360,6 +3370,34 @@ export namespace ModelVersion {
3360
3370
  trainInfo?: TrainInfo.AsObject,
3361
3371
  importInfo?: ImportInfo.AsObject,
3362
3372
  trainLog: string,
3373
+ inferenceComputeInfo?: ComputeInfo.AsObject,
3374
+ buildInfo?: BuildInfo.AsObject,
3375
+ }
3376
+ }
3377
+
3378
+ export class BuildInfo extends jspb.Message {
3379
+ getDockerImageName(): string;
3380
+ setDockerImageName(value: string): BuildInfo;
3381
+
3382
+ getDockerImageTag(): string;
3383
+ setDockerImageTag(value: string): BuildInfo;
3384
+
3385
+ getDockerImageDigest(): string;
3386
+ setDockerImageDigest(value: string): BuildInfo;
3387
+
3388
+ serializeBinary(): Uint8Array;
3389
+ toObject(includeInstance?: boolean): BuildInfo.AsObject;
3390
+ static toObject(includeInstance: boolean, msg: BuildInfo): BuildInfo.AsObject;
3391
+ static serializeBinaryToWriter(message: BuildInfo, writer: jspb.BinaryWriter): void;
3392
+ static deserializeBinary(bytes: Uint8Array): BuildInfo;
3393
+ static deserializeBinaryFromReader(message: BuildInfo, reader: jspb.BinaryReader): BuildInfo;
3394
+ }
3395
+
3396
+ export namespace BuildInfo {
3397
+ export type AsObject = {
3398
+ dockerImageName: string,
3399
+ dockerImageTag: string,
3400
+ dockerImageDigest: string,
3363
3401
  }
3364
3402
  }
3365
3403
 
@@ -3838,6 +3876,16 @@ export class EvalTestSetEntry extends jspb.Message {
3838
3876
  hasAnnotation(): boolean;
3839
3877
  clearAnnotation(): EvalTestSetEntry;
3840
3878
 
3879
+ getPredictedAnnotation(): Annotation | undefined;
3880
+ setPredictedAnnotation(value?: Annotation): EvalTestSetEntry;
3881
+ hasPredictedAnnotation(): boolean;
3882
+ clearPredictedAnnotation(): EvalTestSetEntry;
3883
+
3884
+ getGroundTruthAnnotation(): Annotation | undefined;
3885
+ setGroundTruthAnnotation(value?: Annotation): EvalTestSetEntry;
3886
+ hasGroundTruthAnnotation(): boolean;
3887
+ clearGroundTruthAnnotation(): EvalTestSetEntry;
3888
+
3841
3889
  serializeBinary(): Uint8Array;
3842
3890
  toObject(includeInstance?: boolean): EvalTestSetEntry.AsObject;
3843
3891
  static toObject(includeInstance: boolean, msg: EvalTestSetEntry): EvalTestSetEntry.AsObject;
@@ -3852,6 +3900,8 @@ export namespace EvalTestSetEntry {
3852
3900
  predictedConceptsList: Array<Concept.AsObject>,
3853
3901
  groundTruthConceptsList: Array<Concept.AsObject>,
3854
3902
  annotation?: Annotation.AsObject,
3903
+ predictedAnnotation?: Annotation.AsObject,
3904
+ groundTruthAnnotation?: Annotation.AsObject,
3855
3905
  }
3856
3906
  }
3857
3907
 
@@ -7833,6 +7883,28 @@ export class Runner extends jspb.Message {
7833
7883
  clearLabelsList(): Runner;
7834
7884
  addLabels(value: string, index?: number): Runner;
7835
7885
 
7886
+ getModel(): Model | undefined;
7887
+ setModel(value?: Model): Runner;
7888
+ hasModel(): boolean;
7889
+ clearModel(): Runner;
7890
+
7891
+ getWorkflow(): Workflow | undefined;
7892
+ setWorkflow(value?: Workflow): Runner;
7893
+ hasWorkflow(): boolean;
7894
+ clearWorkflow(): Runner;
7895
+
7896
+ getNodepool(): Nodepool | undefined;
7897
+ setNodepool(value?: Nodepool): Runner;
7898
+ hasNodepool(): boolean;
7899
+ clearNodepool(): Runner;
7900
+
7901
+ getComputeInfo(): ComputeInfo | undefined;
7902
+ setComputeInfo(value?: ComputeInfo): Runner;
7903
+ hasComputeInfo(): boolean;
7904
+ clearComputeInfo(): Runner;
7905
+
7906
+ getObjectCase(): Runner.ObjectCase;
7907
+
7836
7908
  serializeBinary(): Uint8Array;
7837
7909
  toObject(includeInstance?: boolean): Runner.AsObject;
7838
7910
  static toObject(includeInstance: boolean, msg: Runner): Runner.AsObject;
@@ -7850,6 +7922,281 @@ export namespace Runner {
7850
7922
  metadata?: google_protobuf_struct_pb.Struct.AsObject,
7851
7923
  userId: string,
7852
7924
  labelsList: Array<string>,
7925
+ model?: Model.AsObject,
7926
+ workflow?: Workflow.AsObject,
7927
+ nodepool?: Nodepool.AsObject,
7928
+ computeInfo?: ComputeInfo.AsObject,
7929
+ }
7930
+
7931
+ export enum ObjectCase {
7932
+ OBJECT_NOT_SET = 0,
7933
+ MODEL = 9,
7934
+ WORKFLOW = 10,
7935
+ }
7936
+ }
7937
+
7938
+ export class Nodepool extends jspb.Message {
7939
+ getId(): string;
7940
+ setId(value: string): Nodepool;
7941
+
7942
+ getUserId(): string;
7943
+ setUserId(value: string): Nodepool;
7944
+
7945
+ getCloudRegion(): CloudRegion | undefined;
7946
+ setCloudRegion(value?: CloudRegion): Nodepool;
7947
+ hasCloudRegion(): boolean;
7948
+ clearCloudRegion(): Nodepool;
7949
+
7950
+ getCapacityTypesList(): Array<Nodepool.CapacityType>;
7951
+ setCapacityTypesList(value: Array<Nodepool.CapacityType>): Nodepool;
7952
+ clearCapacityTypesList(): Nodepool;
7953
+ addCapacityTypes(value: Nodepool.CapacityType, index?: number): Nodepool;
7954
+
7955
+ getInstanceTypesList(): Array<string>;
7956
+ setInstanceTypesList(value: Array<string>): Nodepool;
7957
+ clearInstanceTypesList(): Nodepool;
7958
+ addInstanceTypes(value: string, index?: number): Nodepool;
7959
+
7960
+ getMinInstances(): number;
7961
+ setMinInstances(value: number): Nodepool;
7962
+
7963
+ getMaxInstances(): number;
7964
+ setMaxInstances(value: number): Nodepool;
7965
+
7966
+ serializeBinary(): Uint8Array;
7967
+ toObject(includeInstance?: boolean): Nodepool.AsObject;
7968
+ static toObject(includeInstance: boolean, msg: Nodepool): Nodepool.AsObject;
7969
+ static serializeBinaryToWriter(message: Nodepool, writer: jspb.BinaryWriter): void;
7970
+ static deserializeBinary(bytes: Uint8Array): Nodepool;
7971
+ static deserializeBinaryFromReader(message: Nodepool, reader: jspb.BinaryReader): Nodepool;
7972
+ }
7973
+
7974
+ export namespace Nodepool {
7975
+ export type AsObject = {
7976
+ id: string,
7977
+ userId: string,
7978
+ cloudRegion?: CloudRegion.AsObject,
7979
+ capacityTypesList: Array<Nodepool.CapacityType>,
7980
+ instanceTypesList: Array<string>,
7981
+ minInstances: number,
7982
+ maxInstances: number,
7983
+ }
7984
+
7985
+ export enum CapacityType {
7986
+ UKNOWN_CAPACITY_TYPE = 0,
7987
+ ONDEMAND_TYPE = 1,
7988
+ SPOT_TYPE = 2,
7989
+ }
7990
+ }
7991
+
7992
+ export class CloudRegion extends jspb.Message {
7993
+ getId(): string;
7994
+ setId(value: string): CloudRegion;
7995
+
7996
+ getCloud(): CloudRegion.Cloud;
7997
+ setCloud(value: CloudRegion.Cloud): CloudRegion;
7998
+
7999
+ getRegion(): string;
8000
+ setRegion(value: string): CloudRegion;
8001
+
8002
+ serializeBinary(): Uint8Array;
8003
+ toObject(includeInstance?: boolean): CloudRegion.AsObject;
8004
+ static toObject(includeInstance: boolean, msg: CloudRegion): CloudRegion.AsObject;
8005
+ static serializeBinaryToWriter(message: CloudRegion, writer: jspb.BinaryWriter): void;
8006
+ static deserializeBinary(bytes: Uint8Array): CloudRegion;
8007
+ static deserializeBinaryFromReader(message: CloudRegion, reader: jspb.BinaryReader): CloudRegion;
8008
+ }
8009
+
8010
+ export namespace CloudRegion {
8011
+ export type AsObject = {
8012
+ id: string,
8013
+ cloud: CloudRegion.Cloud,
8014
+ region: string,
8015
+ }
8016
+
8017
+ export enum Cloud {
8018
+ UNKOWN_CLOUD = 0,
8019
+ SELF_HOSTED = 1,
8020
+ AWS = 2,
8021
+ GCP = 3,
8022
+ AZURE = 4,
8023
+ LAMBDA = 5,
8024
+ }
8025
+ }
8026
+
8027
+ export class ComputeInfo extends jspb.Message {
8028
+ getNumCpus(): number;
8029
+ setNumCpus(value: number): ComputeInfo;
8030
+
8031
+ getCpuMemory(): string;
8032
+ setCpuMemory(value: string): ComputeInfo;
8033
+
8034
+ getNumAccelerators(): number;
8035
+ setNumAccelerators(value: number): ComputeInfo;
8036
+
8037
+ getAcceleratorMemory(): string;
8038
+ setAcceleratorMemory(value: string): ComputeInfo;
8039
+
8040
+ getAcceleratorTypeList(): Array<string>;
8041
+ setAcceleratorTypeList(value: Array<string>): ComputeInfo;
8042
+ clearAcceleratorTypeList(): ComputeInfo;
8043
+ addAcceleratorType(value: string, index?: number): ComputeInfo;
8044
+
8045
+ serializeBinary(): Uint8Array;
8046
+ toObject(includeInstance?: boolean): ComputeInfo.AsObject;
8047
+ static toObject(includeInstance: boolean, msg: ComputeInfo): ComputeInfo.AsObject;
8048
+ static serializeBinaryToWriter(message: ComputeInfo, writer: jspb.BinaryWriter): void;
8049
+ static deserializeBinary(bytes: Uint8Array): ComputeInfo;
8050
+ static deserializeBinaryFromReader(message: ComputeInfo, reader: jspb.BinaryReader): ComputeInfo;
8051
+ }
8052
+
8053
+ export namespace ComputeInfo {
8054
+ export type AsObject = {
8055
+ numCpus: number,
8056
+ cpuMemory: string,
8057
+ numAccelerators: number,
8058
+ acceleratorMemory: string,
8059
+ acceleratorTypeList: Array<string>,
8060
+ }
8061
+ }
8062
+
8063
+ export class AutoscaleConfig extends jspb.Message {
8064
+ getMinReplicas(): number;
8065
+ setMinReplicas(value: number): AutoscaleConfig;
8066
+
8067
+ getMaxReplicas(): number;
8068
+ setMaxReplicas(value: number): AutoscaleConfig;
8069
+
8070
+ getTrafficHistorySeconds(): number;
8071
+ setTrafficHistorySeconds(value: number): AutoscaleConfig;
8072
+
8073
+ getScaleDownDelaySeconds(): number;
8074
+ setScaleDownDelaySeconds(value: number): AutoscaleConfig;
8075
+
8076
+ getScaleUpDelaySeconds(): number;
8077
+ setScaleUpDelaySeconds(value: number): AutoscaleConfig;
8078
+
8079
+ getEnablePacking(): boolean;
8080
+ setEnablePacking(value: boolean): AutoscaleConfig;
8081
+
8082
+ serializeBinary(): Uint8Array;
8083
+ toObject(includeInstance?: boolean): AutoscaleConfig.AsObject;
8084
+ static toObject(includeInstance: boolean, msg: AutoscaleConfig): AutoscaleConfig.AsObject;
8085
+ static serializeBinaryToWriter(message: AutoscaleConfig, writer: jspb.BinaryWriter): void;
8086
+ static deserializeBinary(bytes: Uint8Array): AutoscaleConfig;
8087
+ static deserializeBinaryFromReader(message: AutoscaleConfig, reader: jspb.BinaryReader): AutoscaleConfig;
8088
+ }
8089
+
8090
+ export namespace AutoscaleConfig {
8091
+ export type AsObject = {
8092
+ minReplicas: number,
8093
+ maxReplicas: number,
8094
+ trafficHistorySeconds: number,
8095
+ scaleDownDelaySeconds: number,
8096
+ scaleUpDelaySeconds: number,
8097
+ enablePacking: boolean,
8098
+ }
8099
+ }
8100
+
8101
+ export class Deployment extends jspb.Message {
8102
+ getId(): string;
8103
+ setId(value: string): Deployment;
8104
+
8105
+ getUserId(): string;
8106
+ setUserId(value: string): Deployment;
8107
+
8108
+ getAutoscaleConfig(): AutoscaleConfig | undefined;
8109
+ setAutoscaleConfig(value?: AutoscaleConfig): Deployment;
8110
+ hasAutoscaleConfig(): boolean;
8111
+ clearAutoscaleConfig(): Deployment;
8112
+
8113
+ getNodepoolsList(): Array<Nodepool>;
8114
+ setNodepoolsList(value: Array<Nodepool>): Deployment;
8115
+ clearNodepoolsList(): Deployment;
8116
+ addNodepools(value?: Nodepool, index?: number): Nodepool;
8117
+
8118
+ getModel(): Model | undefined;
8119
+ setModel(value?: Model): Deployment;
8120
+ hasModel(): boolean;
8121
+ clearModel(): Deployment;
8122
+
8123
+ getWorkflow(): Workflow | undefined;
8124
+ setWorkflow(value?: Workflow): Deployment;
8125
+ hasWorkflow(): boolean;
8126
+ clearWorkflow(): Deployment;
8127
+
8128
+ getSchedulingChoice(): Deployment.SchedulingChoice;
8129
+ setSchedulingChoice(value: Deployment.SchedulingChoice): Deployment;
8130
+
8131
+ getObjectCase(): Deployment.ObjectCase;
8132
+
8133
+ serializeBinary(): Uint8Array;
8134
+ toObject(includeInstance?: boolean): Deployment.AsObject;
8135
+ static toObject(includeInstance: boolean, msg: Deployment): Deployment.AsObject;
8136
+ static serializeBinaryToWriter(message: Deployment, writer: jspb.BinaryWriter): void;
8137
+ static deserializeBinary(bytes: Uint8Array): Deployment;
8138
+ static deserializeBinaryFromReader(message: Deployment, reader: jspb.BinaryReader): Deployment;
8139
+ }
8140
+
8141
+ export namespace Deployment {
8142
+ export type AsObject = {
8143
+ id: string,
8144
+ userId: string,
8145
+ autoscaleConfig?: AutoscaleConfig.AsObject,
8146
+ nodepoolsList: Array<Nodepool.AsObject>,
8147
+ model?: Model.AsObject,
8148
+ workflow?: Workflow.AsObject,
8149
+ schedulingChoice: Deployment.SchedulingChoice,
8150
+ }
8151
+
8152
+ export enum SchedulingChoice {
8153
+ UNKNOWN_SCHEDULING_CHOICE = 0,
8154
+ FAIL = 1,
8155
+ RANDOM = 2,
8156
+ PRICE = 3,
8157
+ PERFORMANCE = 4,
8158
+ NETWORK = 5,
8159
+ UTILIZATION = 6,
8160
+ PREFER_SPOT = 7,
8161
+ PREFER_ONDEMAND = 8,
8162
+ }
8163
+
8164
+ export enum ObjectCase {
8165
+ OBJECT_NOT_SET = 0,
8166
+ MODEL = 5,
8167
+ WORKFLOW = 6,
8168
+ }
8169
+ }
8170
+
8171
+ export class RunnerSelector extends jspb.Message {
8172
+ getNodepool(): Nodepool | undefined;
8173
+ setNodepool(value?: Nodepool): RunnerSelector;
8174
+ hasNodepool(): boolean;
8175
+ clearNodepool(): RunnerSelector;
8176
+
8177
+ getRunner(): Runner | undefined;
8178
+ setRunner(value?: Runner): RunnerSelector;
8179
+ hasRunner(): boolean;
8180
+ clearRunner(): RunnerSelector;
8181
+
8182
+ getDeployment(): Deployment | undefined;
8183
+ setDeployment(value?: Deployment): RunnerSelector;
8184
+ hasDeployment(): boolean;
8185
+ clearDeployment(): RunnerSelector;
8186
+
8187
+ serializeBinary(): Uint8Array;
8188
+ toObject(includeInstance?: boolean): RunnerSelector.AsObject;
8189
+ static toObject(includeInstance: boolean, msg: RunnerSelector): RunnerSelector.AsObject;
8190
+ static serializeBinaryToWriter(message: RunnerSelector, writer: jspb.BinaryWriter): void;
8191
+ static deserializeBinary(bytes: Uint8Array): RunnerSelector;
8192
+ static deserializeBinaryFromReader(message: RunnerSelector, reader: jspb.BinaryReader): RunnerSelector;
8193
+ }
8194
+
8195
+ export namespace RunnerSelector {
8196
+ export type AsObject = {
8197
+ nodepool?: Nodepool.AsObject,
8198
+ runner?: Runner.AsObject,
8199
+ deployment?: Deployment.AsObject,
7853
8200
  }
7854
8201
  }
7855
8202