clarifai-web-grpc 11.10.9 → 11.10.10
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.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +793 -2
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +416 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +3437 -0
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +5 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +793 -2
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +416 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +3437 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +5 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +122 -0
- package/proto/clarifai/api/resources_pb.js +1017 -2
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +118 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +605 -0
- package/proto/clarifai/api/service_pb.d.ts +504 -0
- package/proto/clarifai/api/service_pb.js +4235 -0
- package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
- package/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +4 -0
- package/proto/clarifai/auth/scope/scope_pb.js +5 -1
|
@@ -48,6 +48,8 @@ goog.exportSymbol('proto.clarifai.api.DeleteAnnotationRequest', null, global);
|
|
|
48
48
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationTracksRequest', null, global);
|
|
49
49
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationsRequest', null, global);
|
|
50
50
|
goog.exportSymbol('proto.clarifai.api.DeleteAppRequest', null, global);
|
|
51
|
+
goog.exportSymbol('proto.clarifai.api.DeleteArtifactRequest', null, global);
|
|
52
|
+
goog.exportSymbol('proto.clarifai.api.DeleteArtifactVersionRequest', null, global);
|
|
51
53
|
goog.exportSymbol('proto.clarifai.api.DeleteBulkOperationRequest', null, global);
|
|
52
54
|
goog.exportSymbol('proto.clarifai.api.DeleteCollaboratorsRequest', null, global);
|
|
53
55
|
goog.exportSymbol('proto.clarifai.api.DeleteCollectorsRequest', null, global);
|
|
@@ -68,6 +70,8 @@ goog.exportSymbol('proto.clarifai.api.DeleteModelsRequest', null, global);
|
|
|
68
70
|
goog.exportSymbol('proto.clarifai.api.DeleteModuleVersionsRequest', null, global);
|
|
69
71
|
goog.exportSymbol('proto.clarifai.api.DeleteModulesRequest', null, global);
|
|
70
72
|
goog.exportSymbol('proto.clarifai.api.DeleteNodepoolsRequest', null, global);
|
|
73
|
+
goog.exportSymbol('proto.clarifai.api.DeletePipelineStepVersionsRequest', null, global);
|
|
74
|
+
goog.exportSymbol('proto.clarifai.api.DeletePipelineStepsRequest', null, global);
|
|
71
75
|
goog.exportSymbol('proto.clarifai.api.DeletePipelineVersionsRequest', null, global);
|
|
72
76
|
goog.exportSymbol('proto.clarifai.api.DeletePipelinesRequest', null, global);
|
|
73
77
|
goog.exportSymbol('proto.clarifai.api.DeleteRunnersRequest', null, global);
|
|
@@ -82,6 +86,8 @@ goog.exportSymbol('proto.clarifai.api.GetAnnotationFilterRequest', null, global)
|
|
|
82
86
|
goog.exportSymbol('proto.clarifai.api.GetAnnotationRequest', null, global);
|
|
83
87
|
goog.exportSymbol('proto.clarifai.api.GetAppDuplicationRequest', null, global);
|
|
84
88
|
goog.exportSymbol('proto.clarifai.api.GetAppRequest', null, global);
|
|
89
|
+
goog.exportSymbol('proto.clarifai.api.GetArtifactRequest', null, global);
|
|
90
|
+
goog.exportSymbol('proto.clarifai.api.GetArtifactVersionRequest', null, global);
|
|
85
91
|
goog.exportSymbol('proto.clarifai.api.GetBulkOperationRequest', null, global);
|
|
86
92
|
goog.exportSymbol('proto.clarifai.api.GetCollectorRequest', null, global);
|
|
87
93
|
goog.exportSymbol('proto.clarifai.api.GetComputeClusterRequest', null, global);
|
|
@@ -142,6 +148,8 @@ goog.exportSymbol('proto.clarifai.api.ListAppDuplicationsRequest', null, global)
|
|
|
142
148
|
goog.exportSymbol('proto.clarifai.api.ListAppKeysRequest', null, global);
|
|
143
149
|
goog.exportSymbol('proto.clarifai.api.ListAppsRequest', null, global);
|
|
144
150
|
goog.exportSymbol('proto.clarifai.api.ListAppsRequest.SortByCase', null, global);
|
|
151
|
+
goog.exportSymbol('proto.clarifai.api.ListArtifactVersionsRequest', null, global);
|
|
152
|
+
goog.exportSymbol('proto.clarifai.api.ListArtifactsRequest', null, global);
|
|
145
153
|
goog.exportSymbol('proto.clarifai.api.ListBulkOperationsRequest', null, global);
|
|
146
154
|
goog.exportSymbol('proto.clarifai.api.ListCloudProvidersRequest', null, global);
|
|
147
155
|
goog.exportSymbol('proto.clarifai.api.ListCloudRegionsRequest', null, global);
|
|
@@ -214,6 +222,8 @@ goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global);
|
|
|
214
222
|
goog.exportSymbol('proto.clarifai.api.MultiAnnotationTrackResponse', null, global);
|
|
215
223
|
goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global);
|
|
216
224
|
goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
|
|
225
|
+
goog.exportSymbol('proto.clarifai.api.MultiArtifactResponse', null, global);
|
|
226
|
+
goog.exportSymbol('proto.clarifai.api.MultiArtifactVersionResponse', null, global);
|
|
217
227
|
goog.exportSymbol('proto.clarifai.api.MultiAuditLogEntryResponse', null, global);
|
|
218
228
|
goog.exportSymbol('proto.clarifai.api.MultiBulkOperationsResponse', null, global);
|
|
219
229
|
goog.exportSymbol('proto.clarifai.api.MultiCloudProviderResponse', null, global);
|
|
@@ -339,6 +349,11 @@ goog.exportSymbol('proto.clarifai.api.PostAnnotationsSearchesRequest', null, glo
|
|
|
339
349
|
goog.exportSymbol('proto.clarifai.api.PostAppDuplicationsRequest', null, global);
|
|
340
350
|
goog.exportSymbol('proto.clarifai.api.PostAppsRequest', null, global);
|
|
341
351
|
goog.exportSymbol('proto.clarifai.api.PostAppsSearchesRequest', null, global);
|
|
352
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadConfig', null, global);
|
|
353
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadRequest', null, global);
|
|
354
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase', null, global);
|
|
355
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadResponse', null, global);
|
|
356
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactsRequest', null, global);
|
|
342
357
|
goog.exportSymbol('proto.clarifai.api.PostAuditLogSearchesRequest', null, global);
|
|
343
358
|
goog.exportSymbol('proto.clarifai.api.PostBulkOperationsRequest', null, global);
|
|
344
359
|
goog.exportSymbol('proto.clarifai.api.PostCollaboratorsRequest', null, global);
|
|
@@ -425,6 +440,8 @@ goog.exportSymbol('proto.clarifai.api.SingleAnnotationFilterResponse', null, glo
|
|
|
425
440
|
goog.exportSymbol('proto.clarifai.api.SingleAnnotationResponse', null, global);
|
|
426
441
|
goog.exportSymbol('proto.clarifai.api.SingleAppDuplicationResponse', null, global);
|
|
427
442
|
goog.exportSymbol('proto.clarifai.api.SingleAppResponse', null, global);
|
|
443
|
+
goog.exportSymbol('proto.clarifai.api.SingleArtifactResponse', null, global);
|
|
444
|
+
goog.exportSymbol('proto.clarifai.api.SingleArtifactVersionResponse', null, global);
|
|
428
445
|
goog.exportSymbol('proto.clarifai.api.SingleBulkOperationsResponse', null, global);
|
|
429
446
|
goog.exportSymbol('proto.clarifai.api.SingleCollectorResponse', null, global);
|
|
430
447
|
goog.exportSymbol('proto.clarifai.api.SingleComputeClusterResponse', null, global);
|
|
@@ -470,6 +487,7 @@ goog.exportSymbol('proto.clarifai.api.SingleWorkflowVersionEvaluationResponse',
|
|
|
470
487
|
goog.exportSymbol('proto.clarifai.api.SingleWorkflowVersionResponse', null, global);
|
|
471
488
|
goog.exportSymbol('proto.clarifai.api.StreamInputsRequest', null, global);
|
|
472
489
|
goog.exportSymbol('proto.clarifai.api.StreamLogEntriesRequest', null, global);
|
|
490
|
+
goog.exportSymbol('proto.clarifai.api.StreamTrackAnnotationsSearchesRequest', null, global);
|
|
473
491
|
goog.exportSymbol('proto.clarifai.api.SyncStateRequest', null, global);
|
|
474
492
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionPublishRequest', null, global);
|
|
475
493
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionUnPublishRequest', null, global);
|
|
@@ -557,6 +575,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
557
575
|
*/
|
|
558
576
|
proto.clarifai.api.PostTrackAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.PostTrackAnnotationsSearchesRequest';
|
|
559
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* Generated by JsPbCodeGenerator.
|
|
580
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
581
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
582
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
583
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
584
|
+
* valid.
|
|
585
|
+
* @extends {jspb.Message}
|
|
586
|
+
* @constructor
|
|
587
|
+
*/
|
|
588
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest = function (opt_data) {
|
|
589
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
590
|
+
};
|
|
591
|
+
goog.inherits(proto.clarifai.api.StreamTrackAnnotationsSearchesRequest, jspb.Message);
|
|
592
|
+
if (goog.DEBUG && !COMPILED) {
|
|
593
|
+
/**
|
|
594
|
+
* @public
|
|
595
|
+
* @override
|
|
596
|
+
*/
|
|
597
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.StreamTrackAnnotationsSearchesRequest';
|
|
598
|
+
}
|
|
560
599
|
/**
|
|
561
600
|
* Generated by JsPbCodeGenerator.
|
|
562
601
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9062,6 +9101,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
9062
9101
|
*/
|
|
9063
9102
|
proto.clarifai.api.SinglePipelineStepVersionResponse.displayName = 'proto.clarifai.api.SinglePipelineStepVersionResponse';
|
|
9064
9103
|
}
|
|
9104
|
+
/**
|
|
9105
|
+
* Generated by JsPbCodeGenerator.
|
|
9106
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9107
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9108
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9109
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9110
|
+
* valid.
|
|
9111
|
+
* @extends {jspb.Message}
|
|
9112
|
+
* @constructor
|
|
9113
|
+
*/
|
|
9114
|
+
proto.clarifai.api.DeletePipelineStepsRequest = function (opt_data) {
|
|
9115
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeletePipelineStepsRequest.repeatedFields_, null);
|
|
9116
|
+
};
|
|
9117
|
+
goog.inherits(proto.clarifai.api.DeletePipelineStepsRequest, jspb.Message);
|
|
9118
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9119
|
+
/**
|
|
9120
|
+
* @public
|
|
9121
|
+
* @override
|
|
9122
|
+
*/
|
|
9123
|
+
proto.clarifai.api.DeletePipelineStepsRequest.displayName = 'proto.clarifai.api.DeletePipelineStepsRequest';
|
|
9124
|
+
}
|
|
9125
|
+
/**
|
|
9126
|
+
* Generated by JsPbCodeGenerator.
|
|
9127
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9128
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9129
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9130
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9131
|
+
* valid.
|
|
9132
|
+
* @extends {jspb.Message}
|
|
9133
|
+
* @constructor
|
|
9134
|
+
*/
|
|
9135
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest = function (opt_data) {
|
|
9136
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeletePipelineStepVersionsRequest.repeatedFields_, null);
|
|
9137
|
+
};
|
|
9138
|
+
goog.inherits(proto.clarifai.api.DeletePipelineStepVersionsRequest, jspb.Message);
|
|
9139
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9140
|
+
/**
|
|
9141
|
+
* @public
|
|
9142
|
+
* @override
|
|
9143
|
+
*/
|
|
9144
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.displayName = 'proto.clarifai.api.DeletePipelineStepVersionsRequest';
|
|
9145
|
+
}
|
|
9065
9146
|
/**
|
|
9066
9147
|
* Generated by JsPbCodeGenerator.
|
|
9067
9148
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9293,6 +9374,300 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
9293
9374
|
*/
|
|
9294
9375
|
proto.clarifai.api.MultiMetricLabelsResponse.displayName = 'proto.clarifai.api.MultiMetricLabelsResponse';
|
|
9295
9376
|
}
|
|
9377
|
+
/**
|
|
9378
|
+
* Generated by JsPbCodeGenerator.
|
|
9379
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9380
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9381
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9382
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9383
|
+
* valid.
|
|
9384
|
+
* @extends {jspb.Message}
|
|
9385
|
+
* @constructor
|
|
9386
|
+
*/
|
|
9387
|
+
proto.clarifai.api.PostArtifactsRequest = function (opt_data) {
|
|
9388
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostArtifactsRequest.repeatedFields_, null);
|
|
9389
|
+
};
|
|
9390
|
+
goog.inherits(proto.clarifai.api.PostArtifactsRequest, jspb.Message);
|
|
9391
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9392
|
+
/**
|
|
9393
|
+
* @public
|
|
9394
|
+
* @override
|
|
9395
|
+
*/
|
|
9396
|
+
proto.clarifai.api.PostArtifactsRequest.displayName = 'proto.clarifai.api.PostArtifactsRequest';
|
|
9397
|
+
}
|
|
9398
|
+
/**
|
|
9399
|
+
* Generated by JsPbCodeGenerator.
|
|
9400
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9401
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9402
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9403
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9404
|
+
* valid.
|
|
9405
|
+
* @extends {jspb.Message}
|
|
9406
|
+
* @constructor
|
|
9407
|
+
*/
|
|
9408
|
+
proto.clarifai.api.MultiArtifactResponse = function (opt_data) {
|
|
9409
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiArtifactResponse.repeatedFields_, null);
|
|
9410
|
+
};
|
|
9411
|
+
goog.inherits(proto.clarifai.api.MultiArtifactResponse, jspb.Message);
|
|
9412
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9413
|
+
/**
|
|
9414
|
+
* @public
|
|
9415
|
+
* @override
|
|
9416
|
+
*/
|
|
9417
|
+
proto.clarifai.api.MultiArtifactResponse.displayName = 'proto.clarifai.api.MultiArtifactResponse';
|
|
9418
|
+
}
|
|
9419
|
+
/**
|
|
9420
|
+
* Generated by JsPbCodeGenerator.
|
|
9421
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9422
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9423
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9424
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9425
|
+
* valid.
|
|
9426
|
+
* @extends {jspb.Message}
|
|
9427
|
+
* @constructor
|
|
9428
|
+
*/
|
|
9429
|
+
proto.clarifai.api.ListArtifactsRequest = function (opt_data) {
|
|
9430
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9431
|
+
};
|
|
9432
|
+
goog.inherits(proto.clarifai.api.ListArtifactsRequest, jspb.Message);
|
|
9433
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9434
|
+
/**
|
|
9435
|
+
* @public
|
|
9436
|
+
* @override
|
|
9437
|
+
*/
|
|
9438
|
+
proto.clarifai.api.ListArtifactsRequest.displayName = 'proto.clarifai.api.ListArtifactsRequest';
|
|
9439
|
+
}
|
|
9440
|
+
/**
|
|
9441
|
+
* Generated by JsPbCodeGenerator.
|
|
9442
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9443
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9444
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9445
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9446
|
+
* valid.
|
|
9447
|
+
* @extends {jspb.Message}
|
|
9448
|
+
* @constructor
|
|
9449
|
+
*/
|
|
9450
|
+
proto.clarifai.api.GetArtifactRequest = function (opt_data) {
|
|
9451
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9452
|
+
};
|
|
9453
|
+
goog.inherits(proto.clarifai.api.GetArtifactRequest, jspb.Message);
|
|
9454
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9455
|
+
/**
|
|
9456
|
+
* @public
|
|
9457
|
+
* @override
|
|
9458
|
+
*/
|
|
9459
|
+
proto.clarifai.api.GetArtifactRequest.displayName = 'proto.clarifai.api.GetArtifactRequest';
|
|
9460
|
+
}
|
|
9461
|
+
/**
|
|
9462
|
+
* Generated by JsPbCodeGenerator.
|
|
9463
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9464
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9465
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9466
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9467
|
+
* valid.
|
|
9468
|
+
* @extends {jspb.Message}
|
|
9469
|
+
* @constructor
|
|
9470
|
+
*/
|
|
9471
|
+
proto.clarifai.api.SingleArtifactResponse = function (opt_data) {
|
|
9472
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9473
|
+
};
|
|
9474
|
+
goog.inherits(proto.clarifai.api.SingleArtifactResponse, jspb.Message);
|
|
9475
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9476
|
+
/**
|
|
9477
|
+
* @public
|
|
9478
|
+
* @override
|
|
9479
|
+
*/
|
|
9480
|
+
proto.clarifai.api.SingleArtifactResponse.displayName = 'proto.clarifai.api.SingleArtifactResponse';
|
|
9481
|
+
}
|
|
9482
|
+
/**
|
|
9483
|
+
* Generated by JsPbCodeGenerator.
|
|
9484
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9485
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9486
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9487
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9488
|
+
* valid.
|
|
9489
|
+
* @extends {jspb.Message}
|
|
9490
|
+
* @constructor
|
|
9491
|
+
*/
|
|
9492
|
+
proto.clarifai.api.DeleteArtifactRequest = function (opt_data) {
|
|
9493
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9494
|
+
};
|
|
9495
|
+
goog.inherits(proto.clarifai.api.DeleteArtifactRequest, jspb.Message);
|
|
9496
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9497
|
+
/**
|
|
9498
|
+
* @public
|
|
9499
|
+
* @override
|
|
9500
|
+
*/
|
|
9501
|
+
proto.clarifai.api.DeleteArtifactRequest.displayName = 'proto.clarifai.api.DeleteArtifactRequest';
|
|
9502
|
+
}
|
|
9503
|
+
/**
|
|
9504
|
+
* Generated by JsPbCodeGenerator.
|
|
9505
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9506
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9507
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9508
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9509
|
+
* valid.
|
|
9510
|
+
* @extends {jspb.Message}
|
|
9511
|
+
* @constructor
|
|
9512
|
+
*/
|
|
9513
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest = function (opt_data) {
|
|
9514
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_);
|
|
9515
|
+
};
|
|
9516
|
+
goog.inherits(proto.clarifai.api.PostArtifactVersionsUploadRequest, jspb.Message);
|
|
9517
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9518
|
+
/**
|
|
9519
|
+
* @public
|
|
9520
|
+
* @override
|
|
9521
|
+
*/
|
|
9522
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.displayName = 'proto.clarifai.api.PostArtifactVersionsUploadRequest';
|
|
9523
|
+
}
|
|
9524
|
+
/**
|
|
9525
|
+
* Generated by JsPbCodeGenerator.
|
|
9526
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9527
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9528
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9529
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9530
|
+
* valid.
|
|
9531
|
+
* @extends {jspb.Message}
|
|
9532
|
+
* @constructor
|
|
9533
|
+
*/
|
|
9534
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse = function (opt_data) {
|
|
9535
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9536
|
+
};
|
|
9537
|
+
goog.inherits(proto.clarifai.api.PostArtifactVersionsUploadResponse, jspb.Message);
|
|
9538
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9539
|
+
/**
|
|
9540
|
+
* @public
|
|
9541
|
+
* @override
|
|
9542
|
+
*/
|
|
9543
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.displayName = 'proto.clarifai.api.PostArtifactVersionsUploadResponse';
|
|
9544
|
+
}
|
|
9545
|
+
/**
|
|
9546
|
+
* Generated by JsPbCodeGenerator.
|
|
9547
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9548
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9549
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9550
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9551
|
+
* valid.
|
|
9552
|
+
* @extends {jspb.Message}
|
|
9553
|
+
* @constructor
|
|
9554
|
+
*/
|
|
9555
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig = function (opt_data) {
|
|
9556
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9557
|
+
};
|
|
9558
|
+
goog.inherits(proto.clarifai.api.PostArtifactVersionsUploadConfig, jspb.Message);
|
|
9559
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9560
|
+
/**
|
|
9561
|
+
* @public
|
|
9562
|
+
* @override
|
|
9563
|
+
*/
|
|
9564
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.displayName = 'proto.clarifai.api.PostArtifactVersionsUploadConfig';
|
|
9565
|
+
}
|
|
9566
|
+
/**
|
|
9567
|
+
* Generated by JsPbCodeGenerator.
|
|
9568
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9569
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9570
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9571
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9572
|
+
* valid.
|
|
9573
|
+
* @extends {jspb.Message}
|
|
9574
|
+
* @constructor
|
|
9575
|
+
*/
|
|
9576
|
+
proto.clarifai.api.ListArtifactVersionsRequest = function (opt_data) {
|
|
9577
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9578
|
+
};
|
|
9579
|
+
goog.inherits(proto.clarifai.api.ListArtifactVersionsRequest, jspb.Message);
|
|
9580
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9581
|
+
/**
|
|
9582
|
+
* @public
|
|
9583
|
+
* @override
|
|
9584
|
+
*/
|
|
9585
|
+
proto.clarifai.api.ListArtifactVersionsRequest.displayName = 'proto.clarifai.api.ListArtifactVersionsRequest';
|
|
9586
|
+
}
|
|
9587
|
+
/**
|
|
9588
|
+
* Generated by JsPbCodeGenerator.
|
|
9589
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9590
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9591
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9592
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9593
|
+
* valid.
|
|
9594
|
+
* @extends {jspb.Message}
|
|
9595
|
+
* @constructor
|
|
9596
|
+
*/
|
|
9597
|
+
proto.clarifai.api.MultiArtifactVersionResponse = function (opt_data) {
|
|
9598
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiArtifactVersionResponse.repeatedFields_, null);
|
|
9599
|
+
};
|
|
9600
|
+
goog.inherits(proto.clarifai.api.MultiArtifactVersionResponse, jspb.Message);
|
|
9601
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9602
|
+
/**
|
|
9603
|
+
* @public
|
|
9604
|
+
* @override
|
|
9605
|
+
*/
|
|
9606
|
+
proto.clarifai.api.MultiArtifactVersionResponse.displayName = 'proto.clarifai.api.MultiArtifactVersionResponse';
|
|
9607
|
+
}
|
|
9608
|
+
/**
|
|
9609
|
+
* Generated by JsPbCodeGenerator.
|
|
9610
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9611
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9612
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9613
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9614
|
+
* valid.
|
|
9615
|
+
* @extends {jspb.Message}
|
|
9616
|
+
* @constructor
|
|
9617
|
+
*/
|
|
9618
|
+
proto.clarifai.api.GetArtifactVersionRequest = function (opt_data) {
|
|
9619
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9620
|
+
};
|
|
9621
|
+
goog.inherits(proto.clarifai.api.GetArtifactVersionRequest, jspb.Message);
|
|
9622
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9623
|
+
/**
|
|
9624
|
+
* @public
|
|
9625
|
+
* @override
|
|
9626
|
+
*/
|
|
9627
|
+
proto.clarifai.api.GetArtifactVersionRequest.displayName = 'proto.clarifai.api.GetArtifactVersionRequest';
|
|
9628
|
+
}
|
|
9629
|
+
/**
|
|
9630
|
+
* Generated by JsPbCodeGenerator.
|
|
9631
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9632
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9633
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9634
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9635
|
+
* valid.
|
|
9636
|
+
* @extends {jspb.Message}
|
|
9637
|
+
* @constructor
|
|
9638
|
+
*/
|
|
9639
|
+
proto.clarifai.api.SingleArtifactVersionResponse = function (opt_data) {
|
|
9640
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9641
|
+
};
|
|
9642
|
+
goog.inherits(proto.clarifai.api.SingleArtifactVersionResponse, jspb.Message);
|
|
9643
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9644
|
+
/**
|
|
9645
|
+
* @public
|
|
9646
|
+
* @override
|
|
9647
|
+
*/
|
|
9648
|
+
proto.clarifai.api.SingleArtifactVersionResponse.displayName = 'proto.clarifai.api.SingleArtifactVersionResponse';
|
|
9649
|
+
}
|
|
9650
|
+
/**
|
|
9651
|
+
* Generated by JsPbCodeGenerator.
|
|
9652
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9653
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9654
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9655
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9656
|
+
* valid.
|
|
9657
|
+
* @extends {jspb.Message}
|
|
9658
|
+
* @constructor
|
|
9659
|
+
*/
|
|
9660
|
+
proto.clarifai.api.DeleteArtifactVersionRequest = function (opt_data) {
|
|
9661
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9662
|
+
};
|
|
9663
|
+
goog.inherits(proto.clarifai.api.DeleteArtifactVersionRequest, jspb.Message);
|
|
9664
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9665
|
+
/**
|
|
9666
|
+
* @public
|
|
9667
|
+
* @override
|
|
9668
|
+
*/
|
|
9669
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.displayName = 'proto.clarifai.api.DeleteArtifactVersionRequest';
|
|
9670
|
+
}
|
|
9296
9671
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9297
9672
|
/**
|
|
9298
9673
|
* Creates an object representation of this proto.
|
|
@@ -10384,6 +10759,327 @@ proto.clarifai.api.PostTrackAnnotationsSearchesRequest.prototype.clearWorker = f
|
|
|
10384
10759
|
proto.clarifai.api.PostTrackAnnotationsSearchesRequest.prototype.hasWorker = function () {
|
|
10385
10760
|
return jspb.Message.getField(this, 9) != null;
|
|
10386
10761
|
};
|
|
10762
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10763
|
+
/**
|
|
10764
|
+
* Creates an object representation of this proto.
|
|
10765
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10766
|
+
* Optional fields that are not set will be set to undefined.
|
|
10767
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10768
|
+
* For the list of reserved names please see:
|
|
10769
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10770
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10771
|
+
* JSPB instance for transitional soy proto support:
|
|
10772
|
+
* http://goto/soy-param-migration
|
|
10773
|
+
* @return {!Object}
|
|
10774
|
+
*/
|
|
10775
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.toObject = function (opt_includeInstance) {
|
|
10776
|
+
return proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.toObject(opt_includeInstance, this);
|
|
10777
|
+
};
|
|
10778
|
+
/**
|
|
10779
|
+
* Static version of the {@see toObject} method.
|
|
10780
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10781
|
+
* the JSPB instance for transitional soy proto support:
|
|
10782
|
+
* http://goto/soy-param-migration
|
|
10783
|
+
* @param {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} msg The msg instance to transform.
|
|
10784
|
+
* @return {!Object}
|
|
10785
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10786
|
+
*/
|
|
10787
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.toObject = function (includeInstance, msg) {
|
|
10788
|
+
var f, obj = {
|
|
10789
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
10790
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10791
|
+
trackId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10792
|
+
frameNumberStart: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
10793
|
+
frameTimeStart: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
10794
|
+
annotationType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
10795
|
+
maxFrames: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
10796
|
+
maxDuration: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
10797
|
+
worker: (f = msg.getWorker()) && proto_clarifai_api_resources_pb.Worker.toObject(includeInstance, f)
|
|
10798
|
+
};
|
|
10799
|
+
if (includeInstance) {
|
|
10800
|
+
obj.$jspbMessageInstance = msg;
|
|
10801
|
+
}
|
|
10802
|
+
return obj;
|
|
10803
|
+
};
|
|
10804
|
+
}
|
|
10805
|
+
/**
|
|
10806
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10807
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10808
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest}
|
|
10809
|
+
*/
|
|
10810
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.deserializeBinary = function (bytes) {
|
|
10811
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10812
|
+
var msg = new proto.clarifai.api.StreamTrackAnnotationsSearchesRequest;
|
|
10813
|
+
return proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.deserializeBinaryFromReader(msg, reader);
|
|
10814
|
+
};
|
|
10815
|
+
/**
|
|
10816
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10817
|
+
* given reader into the given message object.
|
|
10818
|
+
* @param {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} msg The message object to deserialize into.
|
|
10819
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10820
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest}
|
|
10821
|
+
*/
|
|
10822
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
10823
|
+
while (reader.nextField()) {
|
|
10824
|
+
if (reader.isEndGroup()) {
|
|
10825
|
+
break;
|
|
10826
|
+
}
|
|
10827
|
+
var field = reader.getFieldNumber();
|
|
10828
|
+
switch (field) {
|
|
10829
|
+
case 1:
|
|
10830
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
10831
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
10832
|
+
msg.setUserAppId(value);
|
|
10833
|
+
break;
|
|
10834
|
+
case 2:
|
|
10835
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10836
|
+
msg.setInputId(value);
|
|
10837
|
+
break;
|
|
10838
|
+
case 3:
|
|
10839
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10840
|
+
msg.setTrackId(value);
|
|
10841
|
+
break;
|
|
10842
|
+
case 4:
|
|
10843
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
10844
|
+
msg.setFrameNumberStart(value);
|
|
10845
|
+
break;
|
|
10846
|
+
case 5:
|
|
10847
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
10848
|
+
msg.setFrameTimeStart(value);
|
|
10849
|
+
break;
|
|
10850
|
+
case 6:
|
|
10851
|
+
var value = /** @type {!proto.clarifai.api.AnnotationDataType} */ (reader.readEnum());
|
|
10852
|
+
msg.setAnnotationType(value);
|
|
10853
|
+
break;
|
|
10854
|
+
case 7:
|
|
10855
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
10856
|
+
msg.setMaxFrames(value);
|
|
10857
|
+
break;
|
|
10858
|
+
case 8:
|
|
10859
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
10860
|
+
msg.setMaxDuration(value);
|
|
10861
|
+
break;
|
|
10862
|
+
case 9:
|
|
10863
|
+
var value = new proto_clarifai_api_resources_pb.Worker;
|
|
10864
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
|
|
10865
|
+
msg.setWorker(value);
|
|
10866
|
+
break;
|
|
10867
|
+
default:
|
|
10868
|
+
reader.skipField();
|
|
10869
|
+
break;
|
|
10870
|
+
}
|
|
10871
|
+
}
|
|
10872
|
+
return msg;
|
|
10873
|
+
};
|
|
10874
|
+
/**
|
|
10875
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10876
|
+
* @return {!Uint8Array}
|
|
10877
|
+
*/
|
|
10878
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.serializeBinary = function () {
|
|
10879
|
+
var writer = new jspb.BinaryWriter();
|
|
10880
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.serializeBinaryToWriter(this, writer);
|
|
10881
|
+
return writer.getResultBuffer();
|
|
10882
|
+
};
|
|
10883
|
+
/**
|
|
10884
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10885
|
+
* format), writing to the given BinaryWriter.
|
|
10886
|
+
* @param {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} message
|
|
10887
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10888
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10889
|
+
*/
|
|
10890
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.serializeBinaryToWriter = function (message, writer) {
|
|
10891
|
+
var f = undefined;
|
|
10892
|
+
f = message.getUserAppId();
|
|
10893
|
+
if (f != null) {
|
|
10894
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
10895
|
+
}
|
|
10896
|
+
f = message.getInputId();
|
|
10897
|
+
if (f.length > 0) {
|
|
10898
|
+
writer.writeString(2, f);
|
|
10899
|
+
}
|
|
10900
|
+
f = message.getTrackId();
|
|
10901
|
+
if (f.length > 0) {
|
|
10902
|
+
writer.writeString(3, f);
|
|
10903
|
+
}
|
|
10904
|
+
f = message.getFrameNumberStart();
|
|
10905
|
+
if (f !== 0) {
|
|
10906
|
+
writer.writeUint32(4, f);
|
|
10907
|
+
}
|
|
10908
|
+
f = message.getFrameTimeStart();
|
|
10909
|
+
if (f !== 0) {
|
|
10910
|
+
writer.writeUint32(5, f);
|
|
10911
|
+
}
|
|
10912
|
+
f = message.getAnnotationType();
|
|
10913
|
+
if (f !== 0.0) {
|
|
10914
|
+
writer.writeEnum(6, f);
|
|
10915
|
+
}
|
|
10916
|
+
f = message.getMaxFrames();
|
|
10917
|
+
if (f !== 0) {
|
|
10918
|
+
writer.writeUint32(7, f);
|
|
10919
|
+
}
|
|
10920
|
+
f = message.getMaxDuration();
|
|
10921
|
+
if (f !== 0) {
|
|
10922
|
+
writer.writeUint32(8, f);
|
|
10923
|
+
}
|
|
10924
|
+
f = message.getWorker();
|
|
10925
|
+
if (f != null) {
|
|
10926
|
+
writer.writeMessage(9, f, proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter);
|
|
10927
|
+
}
|
|
10928
|
+
};
|
|
10929
|
+
/**
|
|
10930
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
10931
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
10932
|
+
*/
|
|
10933
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getUserAppId = function () {
|
|
10934
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
10935
|
+
};
|
|
10936
|
+
/**
|
|
10937
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
10938
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
10939
|
+
*/
|
|
10940
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setUserAppId = function (value) {
|
|
10941
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
10942
|
+
};
|
|
10943
|
+
/**
|
|
10944
|
+
* Clears the message field making it undefined.
|
|
10945
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
10946
|
+
*/
|
|
10947
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.clearUserAppId = function () {
|
|
10948
|
+
return this.setUserAppId(undefined);
|
|
10949
|
+
};
|
|
10950
|
+
/**
|
|
10951
|
+
* Returns whether this field is set.
|
|
10952
|
+
* @return {boolean}
|
|
10953
|
+
*/
|
|
10954
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.hasUserAppId = function () {
|
|
10955
|
+
return jspb.Message.getField(this, 1) != null;
|
|
10956
|
+
};
|
|
10957
|
+
/**
|
|
10958
|
+
* optional string input_id = 2;
|
|
10959
|
+
* @return {string}
|
|
10960
|
+
*/
|
|
10961
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getInputId = function () {
|
|
10962
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
10963
|
+
};
|
|
10964
|
+
/**
|
|
10965
|
+
* @param {string} value
|
|
10966
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
10967
|
+
*/
|
|
10968
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setInputId = function (value) {
|
|
10969
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
10970
|
+
};
|
|
10971
|
+
/**
|
|
10972
|
+
* optional string track_id = 3;
|
|
10973
|
+
* @return {string}
|
|
10974
|
+
*/
|
|
10975
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getTrackId = function () {
|
|
10976
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
10977
|
+
};
|
|
10978
|
+
/**
|
|
10979
|
+
* @param {string} value
|
|
10980
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
10981
|
+
*/
|
|
10982
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setTrackId = function (value) {
|
|
10983
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
10984
|
+
};
|
|
10985
|
+
/**
|
|
10986
|
+
* optional uint32 frame_number_start = 4;
|
|
10987
|
+
* @return {number}
|
|
10988
|
+
*/
|
|
10989
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getFrameNumberStart = function () {
|
|
10990
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
10991
|
+
};
|
|
10992
|
+
/**
|
|
10993
|
+
* @param {number} value
|
|
10994
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
10995
|
+
*/
|
|
10996
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setFrameNumberStart = function (value) {
|
|
10997
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
10998
|
+
};
|
|
10999
|
+
/**
|
|
11000
|
+
* optional uint32 frame_time_start = 5;
|
|
11001
|
+
* @return {number}
|
|
11002
|
+
*/
|
|
11003
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getFrameTimeStart = function () {
|
|
11004
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
11005
|
+
};
|
|
11006
|
+
/**
|
|
11007
|
+
* @param {number} value
|
|
11008
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11009
|
+
*/
|
|
11010
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setFrameTimeStart = function (value) {
|
|
11011
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
11012
|
+
};
|
|
11013
|
+
/**
|
|
11014
|
+
* optional AnnotationDataType annotation_type = 6;
|
|
11015
|
+
* @return {!proto.clarifai.api.AnnotationDataType}
|
|
11016
|
+
*/
|
|
11017
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getAnnotationType = function () {
|
|
11018
|
+
return /** @type {!proto.clarifai.api.AnnotationDataType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
11019
|
+
};
|
|
11020
|
+
/**
|
|
11021
|
+
* @param {!proto.clarifai.api.AnnotationDataType} value
|
|
11022
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11023
|
+
*/
|
|
11024
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setAnnotationType = function (value) {
|
|
11025
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
11026
|
+
};
|
|
11027
|
+
/**
|
|
11028
|
+
* optional uint32 max_frames = 7;
|
|
11029
|
+
* @return {number}
|
|
11030
|
+
*/
|
|
11031
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getMaxFrames = function () {
|
|
11032
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
11033
|
+
};
|
|
11034
|
+
/**
|
|
11035
|
+
* @param {number} value
|
|
11036
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11037
|
+
*/
|
|
11038
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setMaxFrames = function (value) {
|
|
11039
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
11040
|
+
};
|
|
11041
|
+
/**
|
|
11042
|
+
* optional uint32 max_duration = 8;
|
|
11043
|
+
* @return {number}
|
|
11044
|
+
*/
|
|
11045
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getMaxDuration = function () {
|
|
11046
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
11047
|
+
};
|
|
11048
|
+
/**
|
|
11049
|
+
* @param {number} value
|
|
11050
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11051
|
+
*/
|
|
11052
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setMaxDuration = function (value) {
|
|
11053
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
11054
|
+
};
|
|
11055
|
+
/**
|
|
11056
|
+
* optional Worker worker = 9;
|
|
11057
|
+
* @return {?proto.clarifai.api.Worker}
|
|
11058
|
+
*/
|
|
11059
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getWorker = function () {
|
|
11060
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Worker, 9));
|
|
11061
|
+
};
|
|
11062
|
+
/**
|
|
11063
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
11064
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11065
|
+
*/
|
|
11066
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setWorker = function (value) {
|
|
11067
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
11068
|
+
};
|
|
11069
|
+
/**
|
|
11070
|
+
* Clears the message field making it undefined.
|
|
11071
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11072
|
+
*/
|
|
11073
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.clearWorker = function () {
|
|
11074
|
+
return this.setWorker(undefined);
|
|
11075
|
+
};
|
|
11076
|
+
/**
|
|
11077
|
+
* Returns whether this field is set.
|
|
11078
|
+
* @return {boolean}
|
|
11079
|
+
*/
|
|
11080
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.hasWorker = function () {
|
|
11081
|
+
return jspb.Message.getField(this, 9) != null;
|
|
11082
|
+
};
|
|
10387
11083
|
/**
|
|
10388
11084
|
* List of repeated fields within this message type.
|
|
10389
11085
|
* @private {!Array<number>}
|
|
@@ -87922,6 +88618,361 @@ proto.clarifai.api.SinglePipelineStepVersionResponse.prototype.clearPipelineStep
|
|
|
87922
88618
|
proto.clarifai.api.SinglePipelineStepVersionResponse.prototype.hasPipelineStepVersion = function () {
|
|
87923
88619
|
return jspb.Message.getField(this, 2) != null;
|
|
87924
88620
|
};
|
|
88621
|
+
/**
|
|
88622
|
+
* List of repeated fields within this message type.
|
|
88623
|
+
* @private {!Array<number>}
|
|
88624
|
+
* @const
|
|
88625
|
+
*/
|
|
88626
|
+
proto.clarifai.api.DeletePipelineStepsRequest.repeatedFields_ = [2];
|
|
88627
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88628
|
+
/**
|
|
88629
|
+
* Creates an object representation of this proto.
|
|
88630
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88631
|
+
* Optional fields that are not set will be set to undefined.
|
|
88632
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88633
|
+
* For the list of reserved names please see:
|
|
88634
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88635
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88636
|
+
* JSPB instance for transitional soy proto support:
|
|
88637
|
+
* http://goto/soy-param-migration
|
|
88638
|
+
* @return {!Object}
|
|
88639
|
+
*/
|
|
88640
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
88641
|
+
return proto.clarifai.api.DeletePipelineStepsRequest.toObject(opt_includeInstance, this);
|
|
88642
|
+
};
|
|
88643
|
+
/**
|
|
88644
|
+
* Static version of the {@see toObject} method.
|
|
88645
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88646
|
+
* the JSPB instance for transitional soy proto support:
|
|
88647
|
+
* http://goto/soy-param-migration
|
|
88648
|
+
* @param {!proto.clarifai.api.DeletePipelineStepsRequest} msg The msg instance to transform.
|
|
88649
|
+
* @return {!Object}
|
|
88650
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88651
|
+
*/
|
|
88652
|
+
proto.clarifai.api.DeletePipelineStepsRequest.toObject = function (includeInstance, msg) {
|
|
88653
|
+
var f, obj = {
|
|
88654
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
88655
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
88656
|
+
};
|
|
88657
|
+
if (includeInstance) {
|
|
88658
|
+
obj.$jspbMessageInstance = msg;
|
|
88659
|
+
}
|
|
88660
|
+
return obj;
|
|
88661
|
+
};
|
|
88662
|
+
}
|
|
88663
|
+
/**
|
|
88664
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88665
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88666
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest}
|
|
88667
|
+
*/
|
|
88668
|
+
proto.clarifai.api.DeletePipelineStepsRequest.deserializeBinary = function (bytes) {
|
|
88669
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88670
|
+
var msg = new proto.clarifai.api.DeletePipelineStepsRequest;
|
|
88671
|
+
return proto.clarifai.api.DeletePipelineStepsRequest.deserializeBinaryFromReader(msg, reader);
|
|
88672
|
+
};
|
|
88673
|
+
/**
|
|
88674
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88675
|
+
* given reader into the given message object.
|
|
88676
|
+
* @param {!proto.clarifai.api.DeletePipelineStepsRequest} msg The message object to deserialize into.
|
|
88677
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88678
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest}
|
|
88679
|
+
*/
|
|
88680
|
+
proto.clarifai.api.DeletePipelineStepsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
88681
|
+
while (reader.nextField()) {
|
|
88682
|
+
if (reader.isEndGroup()) {
|
|
88683
|
+
break;
|
|
88684
|
+
}
|
|
88685
|
+
var field = reader.getFieldNumber();
|
|
88686
|
+
switch (field) {
|
|
88687
|
+
case 1:
|
|
88688
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
88689
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
88690
|
+
msg.setUserAppId(value);
|
|
88691
|
+
break;
|
|
88692
|
+
case 2:
|
|
88693
|
+
var value = /** @type {string} */ (reader.readString());
|
|
88694
|
+
msg.addIds(value);
|
|
88695
|
+
break;
|
|
88696
|
+
default:
|
|
88697
|
+
reader.skipField();
|
|
88698
|
+
break;
|
|
88699
|
+
}
|
|
88700
|
+
}
|
|
88701
|
+
return msg;
|
|
88702
|
+
};
|
|
88703
|
+
/**
|
|
88704
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88705
|
+
* @return {!Uint8Array}
|
|
88706
|
+
*/
|
|
88707
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.serializeBinary = function () {
|
|
88708
|
+
var writer = new jspb.BinaryWriter();
|
|
88709
|
+
proto.clarifai.api.DeletePipelineStepsRequest.serializeBinaryToWriter(this, writer);
|
|
88710
|
+
return writer.getResultBuffer();
|
|
88711
|
+
};
|
|
88712
|
+
/**
|
|
88713
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88714
|
+
* format), writing to the given BinaryWriter.
|
|
88715
|
+
* @param {!proto.clarifai.api.DeletePipelineStepsRequest} message
|
|
88716
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88717
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88718
|
+
*/
|
|
88719
|
+
proto.clarifai.api.DeletePipelineStepsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
88720
|
+
var f = undefined;
|
|
88721
|
+
f = message.getUserAppId();
|
|
88722
|
+
if (f != null) {
|
|
88723
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
88724
|
+
}
|
|
88725
|
+
f = message.getIdsList();
|
|
88726
|
+
if (f.length > 0) {
|
|
88727
|
+
writer.writeRepeatedString(2, f);
|
|
88728
|
+
}
|
|
88729
|
+
};
|
|
88730
|
+
/**
|
|
88731
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
88732
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
88733
|
+
*/
|
|
88734
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.getUserAppId = function () {
|
|
88735
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
88736
|
+
};
|
|
88737
|
+
/**
|
|
88738
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
88739
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
88740
|
+
*/
|
|
88741
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.setUserAppId = function (value) {
|
|
88742
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88743
|
+
};
|
|
88744
|
+
/**
|
|
88745
|
+
* Clears the message field making it undefined.
|
|
88746
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
88747
|
+
*/
|
|
88748
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.clearUserAppId = function () {
|
|
88749
|
+
return this.setUserAppId(undefined);
|
|
88750
|
+
};
|
|
88751
|
+
/**
|
|
88752
|
+
* Returns whether this field is set.
|
|
88753
|
+
* @return {boolean}
|
|
88754
|
+
*/
|
|
88755
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.hasUserAppId = function () {
|
|
88756
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88757
|
+
};
|
|
88758
|
+
/**
|
|
88759
|
+
* repeated string ids = 2;
|
|
88760
|
+
* @return {!Array<string>}
|
|
88761
|
+
*/
|
|
88762
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.getIdsList = function () {
|
|
88763
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
88764
|
+
};
|
|
88765
|
+
/**
|
|
88766
|
+
* @param {!Array<string>} value
|
|
88767
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
88768
|
+
*/
|
|
88769
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.setIdsList = function (value) {
|
|
88770
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
88771
|
+
};
|
|
88772
|
+
/**
|
|
88773
|
+
* @param {string} value
|
|
88774
|
+
* @param {number=} opt_index
|
|
88775
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
88776
|
+
*/
|
|
88777
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.addIds = function (value, opt_index) {
|
|
88778
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
88779
|
+
};
|
|
88780
|
+
/**
|
|
88781
|
+
* Clears the list making it empty but non-null.
|
|
88782
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
88783
|
+
*/
|
|
88784
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.clearIdsList = function () {
|
|
88785
|
+
return this.setIdsList([]);
|
|
88786
|
+
};
|
|
88787
|
+
/**
|
|
88788
|
+
* List of repeated fields within this message type.
|
|
88789
|
+
* @private {!Array<number>}
|
|
88790
|
+
* @const
|
|
88791
|
+
*/
|
|
88792
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.repeatedFields_ = [3];
|
|
88793
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88794
|
+
/**
|
|
88795
|
+
* Creates an object representation of this proto.
|
|
88796
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88797
|
+
* Optional fields that are not set will be set to undefined.
|
|
88798
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88799
|
+
* For the list of reserved names please see:
|
|
88800
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88801
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88802
|
+
* JSPB instance for transitional soy proto support:
|
|
88803
|
+
* http://goto/soy-param-migration
|
|
88804
|
+
* @return {!Object}
|
|
88805
|
+
*/
|
|
88806
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
88807
|
+
return proto.clarifai.api.DeletePipelineStepVersionsRequest.toObject(opt_includeInstance, this);
|
|
88808
|
+
};
|
|
88809
|
+
/**
|
|
88810
|
+
* Static version of the {@see toObject} method.
|
|
88811
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88812
|
+
* the JSPB instance for transitional soy proto support:
|
|
88813
|
+
* http://goto/soy-param-migration
|
|
88814
|
+
* @param {!proto.clarifai.api.DeletePipelineStepVersionsRequest} msg The msg instance to transform.
|
|
88815
|
+
* @return {!Object}
|
|
88816
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88817
|
+
*/
|
|
88818
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.toObject = function (includeInstance, msg) {
|
|
88819
|
+
var f, obj = {
|
|
88820
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
88821
|
+
pipelineStepId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
88822
|
+
pipelineStepVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
88823
|
+
};
|
|
88824
|
+
if (includeInstance) {
|
|
88825
|
+
obj.$jspbMessageInstance = msg;
|
|
88826
|
+
}
|
|
88827
|
+
return obj;
|
|
88828
|
+
};
|
|
88829
|
+
}
|
|
88830
|
+
/**
|
|
88831
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88832
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88833
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest}
|
|
88834
|
+
*/
|
|
88835
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.deserializeBinary = function (bytes) {
|
|
88836
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88837
|
+
var msg = new proto.clarifai.api.DeletePipelineStepVersionsRequest;
|
|
88838
|
+
return proto.clarifai.api.DeletePipelineStepVersionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
88839
|
+
};
|
|
88840
|
+
/**
|
|
88841
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88842
|
+
* given reader into the given message object.
|
|
88843
|
+
* @param {!proto.clarifai.api.DeletePipelineStepVersionsRequest} msg The message object to deserialize into.
|
|
88844
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88845
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest}
|
|
88846
|
+
*/
|
|
88847
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
88848
|
+
while (reader.nextField()) {
|
|
88849
|
+
if (reader.isEndGroup()) {
|
|
88850
|
+
break;
|
|
88851
|
+
}
|
|
88852
|
+
var field = reader.getFieldNumber();
|
|
88853
|
+
switch (field) {
|
|
88854
|
+
case 1:
|
|
88855
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
88856
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
88857
|
+
msg.setUserAppId(value);
|
|
88858
|
+
break;
|
|
88859
|
+
case 2:
|
|
88860
|
+
var value = /** @type {string} */ (reader.readString());
|
|
88861
|
+
msg.setPipelineStepId(value);
|
|
88862
|
+
break;
|
|
88863
|
+
case 3:
|
|
88864
|
+
var value = /** @type {string} */ (reader.readString());
|
|
88865
|
+
msg.addPipelineStepVersionIds(value);
|
|
88866
|
+
break;
|
|
88867
|
+
default:
|
|
88868
|
+
reader.skipField();
|
|
88869
|
+
break;
|
|
88870
|
+
}
|
|
88871
|
+
}
|
|
88872
|
+
return msg;
|
|
88873
|
+
};
|
|
88874
|
+
/**
|
|
88875
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88876
|
+
* @return {!Uint8Array}
|
|
88877
|
+
*/
|
|
88878
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.serializeBinary = function () {
|
|
88879
|
+
var writer = new jspb.BinaryWriter();
|
|
88880
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.serializeBinaryToWriter(this, writer);
|
|
88881
|
+
return writer.getResultBuffer();
|
|
88882
|
+
};
|
|
88883
|
+
/**
|
|
88884
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88885
|
+
* format), writing to the given BinaryWriter.
|
|
88886
|
+
* @param {!proto.clarifai.api.DeletePipelineStepVersionsRequest} message
|
|
88887
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88888
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88889
|
+
*/
|
|
88890
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
88891
|
+
var f = undefined;
|
|
88892
|
+
f = message.getUserAppId();
|
|
88893
|
+
if (f != null) {
|
|
88894
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
88895
|
+
}
|
|
88896
|
+
f = message.getPipelineStepId();
|
|
88897
|
+
if (f.length > 0) {
|
|
88898
|
+
writer.writeString(2, f);
|
|
88899
|
+
}
|
|
88900
|
+
f = message.getPipelineStepVersionIdsList();
|
|
88901
|
+
if (f.length > 0) {
|
|
88902
|
+
writer.writeRepeatedString(3, f);
|
|
88903
|
+
}
|
|
88904
|
+
};
|
|
88905
|
+
/**
|
|
88906
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
88907
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
88908
|
+
*/
|
|
88909
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.getUserAppId = function () {
|
|
88910
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
88911
|
+
};
|
|
88912
|
+
/**
|
|
88913
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
88914
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
88915
|
+
*/
|
|
88916
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.setUserAppId = function (value) {
|
|
88917
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88918
|
+
};
|
|
88919
|
+
/**
|
|
88920
|
+
* Clears the message field making it undefined.
|
|
88921
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
88922
|
+
*/
|
|
88923
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.clearUserAppId = function () {
|
|
88924
|
+
return this.setUserAppId(undefined);
|
|
88925
|
+
};
|
|
88926
|
+
/**
|
|
88927
|
+
* Returns whether this field is set.
|
|
88928
|
+
* @return {boolean}
|
|
88929
|
+
*/
|
|
88930
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.hasUserAppId = function () {
|
|
88931
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88932
|
+
};
|
|
88933
|
+
/**
|
|
88934
|
+
* optional string pipeline_step_id = 2;
|
|
88935
|
+
* @return {string}
|
|
88936
|
+
*/
|
|
88937
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.getPipelineStepId = function () {
|
|
88938
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
88939
|
+
};
|
|
88940
|
+
/**
|
|
88941
|
+
* @param {string} value
|
|
88942
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
88943
|
+
*/
|
|
88944
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.setPipelineStepId = function (value) {
|
|
88945
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
88946
|
+
};
|
|
88947
|
+
/**
|
|
88948
|
+
* repeated string pipeline_step_version_ids = 3;
|
|
88949
|
+
* @return {!Array<string>}
|
|
88950
|
+
*/
|
|
88951
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.getPipelineStepVersionIdsList = function () {
|
|
88952
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
88953
|
+
};
|
|
88954
|
+
/**
|
|
88955
|
+
* @param {!Array<string>} value
|
|
88956
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
88957
|
+
*/
|
|
88958
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.setPipelineStepVersionIdsList = function (value) {
|
|
88959
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
88960
|
+
};
|
|
88961
|
+
/**
|
|
88962
|
+
* @param {string} value
|
|
88963
|
+
* @param {number=} opt_index
|
|
88964
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
88965
|
+
*/
|
|
88966
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.addPipelineStepVersionIds = function (value, opt_index) {
|
|
88967
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
88968
|
+
};
|
|
88969
|
+
/**
|
|
88970
|
+
* Clears the list making it empty but non-null.
|
|
88971
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
88972
|
+
*/
|
|
88973
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.clearPipelineStepVersionIdsList = function () {
|
|
88974
|
+
return this.setPipelineStepVersionIdsList([]);
|
|
88975
|
+
};
|
|
87925
88976
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87926
88977
|
/**
|
|
87927
88978
|
* Creates an object representation of this proto.
|
|
@@ -89763,6 +90814,2392 @@ proto.clarifai.api.MultiMetricLabelsResponse.prototype.addMetricTypeLabels = fun
|
|
|
89763
90814
|
proto.clarifai.api.MultiMetricLabelsResponse.prototype.clearMetricTypeLabelsList = function () {
|
|
89764
90815
|
return this.setMetricTypeLabelsList([]);
|
|
89765
90816
|
};
|
|
90817
|
+
/**
|
|
90818
|
+
* List of repeated fields within this message type.
|
|
90819
|
+
* @private {!Array<number>}
|
|
90820
|
+
* @const
|
|
90821
|
+
*/
|
|
90822
|
+
proto.clarifai.api.PostArtifactsRequest.repeatedFields_ = [2];
|
|
90823
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
90824
|
+
/**
|
|
90825
|
+
* Creates an object representation of this proto.
|
|
90826
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
90827
|
+
* Optional fields that are not set will be set to undefined.
|
|
90828
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
90829
|
+
* For the list of reserved names please see:
|
|
90830
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
90831
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
90832
|
+
* JSPB instance for transitional soy proto support:
|
|
90833
|
+
* http://goto/soy-param-migration
|
|
90834
|
+
* @return {!Object}
|
|
90835
|
+
*/
|
|
90836
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
90837
|
+
return proto.clarifai.api.PostArtifactsRequest.toObject(opt_includeInstance, this);
|
|
90838
|
+
};
|
|
90839
|
+
/**
|
|
90840
|
+
* Static version of the {@see toObject} method.
|
|
90841
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
90842
|
+
* the JSPB instance for transitional soy proto support:
|
|
90843
|
+
* http://goto/soy-param-migration
|
|
90844
|
+
* @param {!proto.clarifai.api.PostArtifactsRequest} msg The msg instance to transform.
|
|
90845
|
+
* @return {!Object}
|
|
90846
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
90847
|
+
*/
|
|
90848
|
+
proto.clarifai.api.PostArtifactsRequest.toObject = function (includeInstance, msg) {
|
|
90849
|
+
var f, obj = {
|
|
90850
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
90851
|
+
artifactsList: jspb.Message.toObjectList(msg.getArtifactsList(), proto_clarifai_api_resources_pb.Artifact.toObject, includeInstance)
|
|
90852
|
+
};
|
|
90853
|
+
if (includeInstance) {
|
|
90854
|
+
obj.$jspbMessageInstance = msg;
|
|
90855
|
+
}
|
|
90856
|
+
return obj;
|
|
90857
|
+
};
|
|
90858
|
+
}
|
|
90859
|
+
/**
|
|
90860
|
+
* Deserializes binary data (in protobuf wire format).
|
|
90861
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
90862
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest}
|
|
90863
|
+
*/
|
|
90864
|
+
proto.clarifai.api.PostArtifactsRequest.deserializeBinary = function (bytes) {
|
|
90865
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
90866
|
+
var msg = new proto.clarifai.api.PostArtifactsRequest;
|
|
90867
|
+
return proto.clarifai.api.PostArtifactsRequest.deserializeBinaryFromReader(msg, reader);
|
|
90868
|
+
};
|
|
90869
|
+
/**
|
|
90870
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
90871
|
+
* given reader into the given message object.
|
|
90872
|
+
* @param {!proto.clarifai.api.PostArtifactsRequest} msg The message object to deserialize into.
|
|
90873
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
90874
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest}
|
|
90875
|
+
*/
|
|
90876
|
+
proto.clarifai.api.PostArtifactsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
90877
|
+
while (reader.nextField()) {
|
|
90878
|
+
if (reader.isEndGroup()) {
|
|
90879
|
+
break;
|
|
90880
|
+
}
|
|
90881
|
+
var field = reader.getFieldNumber();
|
|
90882
|
+
switch (field) {
|
|
90883
|
+
case 1:
|
|
90884
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
90885
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
90886
|
+
msg.setUserAppId(value);
|
|
90887
|
+
break;
|
|
90888
|
+
case 2:
|
|
90889
|
+
var value = new proto_clarifai_api_resources_pb.Artifact;
|
|
90890
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.Artifact.deserializeBinaryFromReader);
|
|
90891
|
+
msg.addArtifacts(value);
|
|
90892
|
+
break;
|
|
90893
|
+
default:
|
|
90894
|
+
reader.skipField();
|
|
90895
|
+
break;
|
|
90896
|
+
}
|
|
90897
|
+
}
|
|
90898
|
+
return msg;
|
|
90899
|
+
};
|
|
90900
|
+
/**
|
|
90901
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
90902
|
+
* @return {!Uint8Array}
|
|
90903
|
+
*/
|
|
90904
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.serializeBinary = function () {
|
|
90905
|
+
var writer = new jspb.BinaryWriter();
|
|
90906
|
+
proto.clarifai.api.PostArtifactsRequest.serializeBinaryToWriter(this, writer);
|
|
90907
|
+
return writer.getResultBuffer();
|
|
90908
|
+
};
|
|
90909
|
+
/**
|
|
90910
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
90911
|
+
* format), writing to the given BinaryWriter.
|
|
90912
|
+
* @param {!proto.clarifai.api.PostArtifactsRequest} message
|
|
90913
|
+
* @param {!jspb.BinaryWriter} writer
|
|
90914
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
90915
|
+
*/
|
|
90916
|
+
proto.clarifai.api.PostArtifactsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
90917
|
+
var f = undefined;
|
|
90918
|
+
f = message.getUserAppId();
|
|
90919
|
+
if (f != null) {
|
|
90920
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
90921
|
+
}
|
|
90922
|
+
f = message.getArtifactsList();
|
|
90923
|
+
if (f.length > 0) {
|
|
90924
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Artifact.serializeBinaryToWriter);
|
|
90925
|
+
}
|
|
90926
|
+
};
|
|
90927
|
+
/**
|
|
90928
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
90929
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
90930
|
+
*/
|
|
90931
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.getUserAppId = function () {
|
|
90932
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
90933
|
+
};
|
|
90934
|
+
/**
|
|
90935
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
90936
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
90937
|
+
*/
|
|
90938
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.setUserAppId = function (value) {
|
|
90939
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
90940
|
+
};
|
|
90941
|
+
/**
|
|
90942
|
+
* Clears the message field making it undefined.
|
|
90943
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
90944
|
+
*/
|
|
90945
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.clearUserAppId = function () {
|
|
90946
|
+
return this.setUserAppId(undefined);
|
|
90947
|
+
};
|
|
90948
|
+
/**
|
|
90949
|
+
* Returns whether this field is set.
|
|
90950
|
+
* @return {boolean}
|
|
90951
|
+
*/
|
|
90952
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.hasUserAppId = function () {
|
|
90953
|
+
return jspb.Message.getField(this, 1) != null;
|
|
90954
|
+
};
|
|
90955
|
+
/**
|
|
90956
|
+
* repeated Artifact artifacts = 2;
|
|
90957
|
+
* @return {!Array<!proto.clarifai.api.Artifact>}
|
|
90958
|
+
*/
|
|
90959
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.getArtifactsList = function () {
|
|
90960
|
+
return /** @type{!Array<!proto.clarifai.api.Artifact>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Artifact, 2));
|
|
90961
|
+
};
|
|
90962
|
+
/**
|
|
90963
|
+
* @param {!Array<!proto.clarifai.api.Artifact>} value
|
|
90964
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
90965
|
+
*/
|
|
90966
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.setArtifactsList = function (value) {
|
|
90967
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
90968
|
+
};
|
|
90969
|
+
/**
|
|
90970
|
+
* @param {!proto.clarifai.api.Artifact=} opt_value
|
|
90971
|
+
* @param {number=} opt_index
|
|
90972
|
+
* @return {!proto.clarifai.api.Artifact}
|
|
90973
|
+
*/
|
|
90974
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.addArtifacts = function (opt_value, opt_index) {
|
|
90975
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Artifact, opt_index);
|
|
90976
|
+
};
|
|
90977
|
+
/**
|
|
90978
|
+
* Clears the list making it empty but non-null.
|
|
90979
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
90980
|
+
*/
|
|
90981
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.clearArtifactsList = function () {
|
|
90982
|
+
return this.setArtifactsList([]);
|
|
90983
|
+
};
|
|
90984
|
+
/**
|
|
90985
|
+
* List of repeated fields within this message type.
|
|
90986
|
+
* @private {!Array<number>}
|
|
90987
|
+
* @const
|
|
90988
|
+
*/
|
|
90989
|
+
proto.clarifai.api.MultiArtifactResponse.repeatedFields_ = [2];
|
|
90990
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
90991
|
+
/**
|
|
90992
|
+
* Creates an object representation of this proto.
|
|
90993
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
90994
|
+
* Optional fields that are not set will be set to undefined.
|
|
90995
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
90996
|
+
* For the list of reserved names please see:
|
|
90997
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
90998
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
90999
|
+
* JSPB instance for transitional soy proto support:
|
|
91000
|
+
* http://goto/soy-param-migration
|
|
91001
|
+
* @return {!Object}
|
|
91002
|
+
*/
|
|
91003
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.toObject = function (opt_includeInstance) {
|
|
91004
|
+
return proto.clarifai.api.MultiArtifactResponse.toObject(opt_includeInstance, this);
|
|
91005
|
+
};
|
|
91006
|
+
/**
|
|
91007
|
+
* Static version of the {@see toObject} method.
|
|
91008
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
91009
|
+
* the JSPB instance for transitional soy proto support:
|
|
91010
|
+
* http://goto/soy-param-migration
|
|
91011
|
+
* @param {!proto.clarifai.api.MultiArtifactResponse} msg The msg instance to transform.
|
|
91012
|
+
* @return {!Object}
|
|
91013
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91014
|
+
*/
|
|
91015
|
+
proto.clarifai.api.MultiArtifactResponse.toObject = function (includeInstance, msg) {
|
|
91016
|
+
var f, obj = {
|
|
91017
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
91018
|
+
artifactsList: jspb.Message.toObjectList(msg.getArtifactsList(), proto_clarifai_api_resources_pb.Artifact.toObject, includeInstance)
|
|
91019
|
+
};
|
|
91020
|
+
if (includeInstance) {
|
|
91021
|
+
obj.$jspbMessageInstance = msg;
|
|
91022
|
+
}
|
|
91023
|
+
return obj;
|
|
91024
|
+
};
|
|
91025
|
+
}
|
|
91026
|
+
/**
|
|
91027
|
+
* Deserializes binary data (in protobuf wire format).
|
|
91028
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
91029
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse}
|
|
91030
|
+
*/
|
|
91031
|
+
proto.clarifai.api.MultiArtifactResponse.deserializeBinary = function (bytes) {
|
|
91032
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
91033
|
+
var msg = new proto.clarifai.api.MultiArtifactResponse;
|
|
91034
|
+
return proto.clarifai.api.MultiArtifactResponse.deserializeBinaryFromReader(msg, reader);
|
|
91035
|
+
};
|
|
91036
|
+
/**
|
|
91037
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
91038
|
+
* given reader into the given message object.
|
|
91039
|
+
* @param {!proto.clarifai.api.MultiArtifactResponse} msg The message object to deserialize into.
|
|
91040
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
91041
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse}
|
|
91042
|
+
*/
|
|
91043
|
+
proto.clarifai.api.MultiArtifactResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
91044
|
+
while (reader.nextField()) {
|
|
91045
|
+
if (reader.isEndGroup()) {
|
|
91046
|
+
break;
|
|
91047
|
+
}
|
|
91048
|
+
var field = reader.getFieldNumber();
|
|
91049
|
+
switch (field) {
|
|
91050
|
+
case 1:
|
|
91051
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
91052
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
91053
|
+
msg.setStatus(value);
|
|
91054
|
+
break;
|
|
91055
|
+
case 2:
|
|
91056
|
+
var value = new proto_clarifai_api_resources_pb.Artifact;
|
|
91057
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.Artifact.deserializeBinaryFromReader);
|
|
91058
|
+
msg.addArtifacts(value);
|
|
91059
|
+
break;
|
|
91060
|
+
default:
|
|
91061
|
+
reader.skipField();
|
|
91062
|
+
break;
|
|
91063
|
+
}
|
|
91064
|
+
}
|
|
91065
|
+
return msg;
|
|
91066
|
+
};
|
|
91067
|
+
/**
|
|
91068
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
91069
|
+
* @return {!Uint8Array}
|
|
91070
|
+
*/
|
|
91071
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.serializeBinary = function () {
|
|
91072
|
+
var writer = new jspb.BinaryWriter();
|
|
91073
|
+
proto.clarifai.api.MultiArtifactResponse.serializeBinaryToWriter(this, writer);
|
|
91074
|
+
return writer.getResultBuffer();
|
|
91075
|
+
};
|
|
91076
|
+
/**
|
|
91077
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
91078
|
+
* format), writing to the given BinaryWriter.
|
|
91079
|
+
* @param {!proto.clarifai.api.MultiArtifactResponse} message
|
|
91080
|
+
* @param {!jspb.BinaryWriter} writer
|
|
91081
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91082
|
+
*/
|
|
91083
|
+
proto.clarifai.api.MultiArtifactResponse.serializeBinaryToWriter = function (message, writer) {
|
|
91084
|
+
var f = undefined;
|
|
91085
|
+
f = message.getStatus();
|
|
91086
|
+
if (f != null) {
|
|
91087
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
91088
|
+
}
|
|
91089
|
+
f = message.getArtifactsList();
|
|
91090
|
+
if (f.length > 0) {
|
|
91091
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Artifact.serializeBinaryToWriter);
|
|
91092
|
+
}
|
|
91093
|
+
};
|
|
91094
|
+
/**
|
|
91095
|
+
* optional status.Status status = 1;
|
|
91096
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
91097
|
+
*/
|
|
91098
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.getStatus = function () {
|
|
91099
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
91100
|
+
};
|
|
91101
|
+
/**
|
|
91102
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
91103
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
91104
|
+
*/
|
|
91105
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.setStatus = function (value) {
|
|
91106
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
91107
|
+
};
|
|
91108
|
+
/**
|
|
91109
|
+
* Clears the message field making it undefined.
|
|
91110
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
91111
|
+
*/
|
|
91112
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.clearStatus = function () {
|
|
91113
|
+
return this.setStatus(undefined);
|
|
91114
|
+
};
|
|
91115
|
+
/**
|
|
91116
|
+
* Returns whether this field is set.
|
|
91117
|
+
* @return {boolean}
|
|
91118
|
+
*/
|
|
91119
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.hasStatus = function () {
|
|
91120
|
+
return jspb.Message.getField(this, 1) != null;
|
|
91121
|
+
};
|
|
91122
|
+
/**
|
|
91123
|
+
* repeated Artifact artifacts = 2;
|
|
91124
|
+
* @return {!Array<!proto.clarifai.api.Artifact>}
|
|
91125
|
+
*/
|
|
91126
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.getArtifactsList = function () {
|
|
91127
|
+
return /** @type{!Array<!proto.clarifai.api.Artifact>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Artifact, 2));
|
|
91128
|
+
};
|
|
91129
|
+
/**
|
|
91130
|
+
* @param {!Array<!proto.clarifai.api.Artifact>} value
|
|
91131
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
91132
|
+
*/
|
|
91133
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.setArtifactsList = function (value) {
|
|
91134
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
91135
|
+
};
|
|
91136
|
+
/**
|
|
91137
|
+
* @param {!proto.clarifai.api.Artifact=} opt_value
|
|
91138
|
+
* @param {number=} opt_index
|
|
91139
|
+
* @return {!proto.clarifai.api.Artifact}
|
|
91140
|
+
*/
|
|
91141
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.addArtifacts = function (opt_value, opt_index) {
|
|
91142
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Artifact, opt_index);
|
|
91143
|
+
};
|
|
91144
|
+
/**
|
|
91145
|
+
* Clears the list making it empty but non-null.
|
|
91146
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
91147
|
+
*/
|
|
91148
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.clearArtifactsList = function () {
|
|
91149
|
+
return this.setArtifactsList([]);
|
|
91150
|
+
};
|
|
91151
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
91152
|
+
/**
|
|
91153
|
+
* Creates an object representation of this proto.
|
|
91154
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
91155
|
+
* Optional fields that are not set will be set to undefined.
|
|
91156
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
91157
|
+
* For the list of reserved names please see:
|
|
91158
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
91159
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
91160
|
+
* JSPB instance for transitional soy proto support:
|
|
91161
|
+
* http://goto/soy-param-migration
|
|
91162
|
+
* @return {!Object}
|
|
91163
|
+
*/
|
|
91164
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
91165
|
+
return proto.clarifai.api.ListArtifactsRequest.toObject(opt_includeInstance, this);
|
|
91166
|
+
};
|
|
91167
|
+
/**
|
|
91168
|
+
* Static version of the {@see toObject} method.
|
|
91169
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
91170
|
+
* the JSPB instance for transitional soy proto support:
|
|
91171
|
+
* http://goto/soy-param-migration
|
|
91172
|
+
* @param {!proto.clarifai.api.ListArtifactsRequest} msg The msg instance to transform.
|
|
91173
|
+
* @return {!Object}
|
|
91174
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91175
|
+
*/
|
|
91176
|
+
proto.clarifai.api.ListArtifactsRequest.toObject = function (includeInstance, msg) {
|
|
91177
|
+
var f, obj = {
|
|
91178
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
91179
|
+
page: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
91180
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
91181
|
+
};
|
|
91182
|
+
if (includeInstance) {
|
|
91183
|
+
obj.$jspbMessageInstance = msg;
|
|
91184
|
+
}
|
|
91185
|
+
return obj;
|
|
91186
|
+
};
|
|
91187
|
+
}
|
|
91188
|
+
/**
|
|
91189
|
+
* Deserializes binary data (in protobuf wire format).
|
|
91190
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
91191
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest}
|
|
91192
|
+
*/
|
|
91193
|
+
proto.clarifai.api.ListArtifactsRequest.deserializeBinary = function (bytes) {
|
|
91194
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
91195
|
+
var msg = new proto.clarifai.api.ListArtifactsRequest;
|
|
91196
|
+
return proto.clarifai.api.ListArtifactsRequest.deserializeBinaryFromReader(msg, reader);
|
|
91197
|
+
};
|
|
91198
|
+
/**
|
|
91199
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
91200
|
+
* given reader into the given message object.
|
|
91201
|
+
* @param {!proto.clarifai.api.ListArtifactsRequest} msg The message object to deserialize into.
|
|
91202
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
91203
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest}
|
|
91204
|
+
*/
|
|
91205
|
+
proto.clarifai.api.ListArtifactsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
91206
|
+
while (reader.nextField()) {
|
|
91207
|
+
if (reader.isEndGroup()) {
|
|
91208
|
+
break;
|
|
91209
|
+
}
|
|
91210
|
+
var field = reader.getFieldNumber();
|
|
91211
|
+
switch (field) {
|
|
91212
|
+
case 1:
|
|
91213
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
91214
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
91215
|
+
msg.setUserAppId(value);
|
|
91216
|
+
break;
|
|
91217
|
+
case 2:
|
|
91218
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
91219
|
+
msg.setPage(value);
|
|
91220
|
+
break;
|
|
91221
|
+
case 3:
|
|
91222
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
91223
|
+
msg.setPerPage(value);
|
|
91224
|
+
break;
|
|
91225
|
+
default:
|
|
91226
|
+
reader.skipField();
|
|
91227
|
+
break;
|
|
91228
|
+
}
|
|
91229
|
+
}
|
|
91230
|
+
return msg;
|
|
91231
|
+
};
|
|
91232
|
+
/**
|
|
91233
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
91234
|
+
* @return {!Uint8Array}
|
|
91235
|
+
*/
|
|
91236
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.serializeBinary = function () {
|
|
91237
|
+
var writer = new jspb.BinaryWriter();
|
|
91238
|
+
proto.clarifai.api.ListArtifactsRequest.serializeBinaryToWriter(this, writer);
|
|
91239
|
+
return writer.getResultBuffer();
|
|
91240
|
+
};
|
|
91241
|
+
/**
|
|
91242
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
91243
|
+
* format), writing to the given BinaryWriter.
|
|
91244
|
+
* @param {!proto.clarifai.api.ListArtifactsRequest} message
|
|
91245
|
+
* @param {!jspb.BinaryWriter} writer
|
|
91246
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91247
|
+
*/
|
|
91248
|
+
proto.clarifai.api.ListArtifactsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
91249
|
+
var f = undefined;
|
|
91250
|
+
f = message.getUserAppId();
|
|
91251
|
+
if (f != null) {
|
|
91252
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
91253
|
+
}
|
|
91254
|
+
f = message.getPage();
|
|
91255
|
+
if (f !== 0) {
|
|
91256
|
+
writer.writeUint32(2, f);
|
|
91257
|
+
}
|
|
91258
|
+
f = message.getPerPage();
|
|
91259
|
+
if (f !== 0) {
|
|
91260
|
+
writer.writeUint32(3, f);
|
|
91261
|
+
}
|
|
91262
|
+
};
|
|
91263
|
+
/**
|
|
91264
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
91265
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
91266
|
+
*/
|
|
91267
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.getUserAppId = function () {
|
|
91268
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
91269
|
+
};
|
|
91270
|
+
/**
|
|
91271
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
91272
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
91273
|
+
*/
|
|
91274
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.setUserAppId = function (value) {
|
|
91275
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
91276
|
+
};
|
|
91277
|
+
/**
|
|
91278
|
+
* Clears the message field making it undefined.
|
|
91279
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
91280
|
+
*/
|
|
91281
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.clearUserAppId = function () {
|
|
91282
|
+
return this.setUserAppId(undefined);
|
|
91283
|
+
};
|
|
91284
|
+
/**
|
|
91285
|
+
* Returns whether this field is set.
|
|
91286
|
+
* @return {boolean}
|
|
91287
|
+
*/
|
|
91288
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.hasUserAppId = function () {
|
|
91289
|
+
return jspb.Message.getField(this, 1) != null;
|
|
91290
|
+
};
|
|
91291
|
+
/**
|
|
91292
|
+
* optional uint32 page = 2;
|
|
91293
|
+
* @return {number}
|
|
91294
|
+
*/
|
|
91295
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.getPage = function () {
|
|
91296
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
91297
|
+
};
|
|
91298
|
+
/**
|
|
91299
|
+
* @param {number} value
|
|
91300
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
91301
|
+
*/
|
|
91302
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.setPage = function (value) {
|
|
91303
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
91304
|
+
};
|
|
91305
|
+
/**
|
|
91306
|
+
* optional uint32 per_page = 3;
|
|
91307
|
+
* @return {number}
|
|
91308
|
+
*/
|
|
91309
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.getPerPage = function () {
|
|
91310
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
91311
|
+
};
|
|
91312
|
+
/**
|
|
91313
|
+
* @param {number} value
|
|
91314
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
91315
|
+
*/
|
|
91316
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.setPerPage = function (value) {
|
|
91317
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
91318
|
+
};
|
|
91319
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
91320
|
+
/**
|
|
91321
|
+
* Creates an object representation of this proto.
|
|
91322
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
91323
|
+
* Optional fields that are not set will be set to undefined.
|
|
91324
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
91325
|
+
* For the list of reserved names please see:
|
|
91326
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
91327
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
91328
|
+
* JSPB instance for transitional soy proto support:
|
|
91329
|
+
* http://goto/soy-param-migration
|
|
91330
|
+
* @return {!Object}
|
|
91331
|
+
*/
|
|
91332
|
+
proto.clarifai.api.GetArtifactRequest.prototype.toObject = function (opt_includeInstance) {
|
|
91333
|
+
return proto.clarifai.api.GetArtifactRequest.toObject(opt_includeInstance, this);
|
|
91334
|
+
};
|
|
91335
|
+
/**
|
|
91336
|
+
* Static version of the {@see toObject} method.
|
|
91337
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
91338
|
+
* the JSPB instance for transitional soy proto support:
|
|
91339
|
+
* http://goto/soy-param-migration
|
|
91340
|
+
* @param {!proto.clarifai.api.GetArtifactRequest} msg The msg instance to transform.
|
|
91341
|
+
* @return {!Object}
|
|
91342
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91343
|
+
*/
|
|
91344
|
+
proto.clarifai.api.GetArtifactRequest.toObject = function (includeInstance, msg) {
|
|
91345
|
+
var f, obj = {
|
|
91346
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
91347
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
91348
|
+
};
|
|
91349
|
+
if (includeInstance) {
|
|
91350
|
+
obj.$jspbMessageInstance = msg;
|
|
91351
|
+
}
|
|
91352
|
+
return obj;
|
|
91353
|
+
};
|
|
91354
|
+
}
|
|
91355
|
+
/**
|
|
91356
|
+
* Deserializes binary data (in protobuf wire format).
|
|
91357
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
91358
|
+
* @return {!proto.clarifai.api.GetArtifactRequest}
|
|
91359
|
+
*/
|
|
91360
|
+
proto.clarifai.api.GetArtifactRequest.deserializeBinary = function (bytes) {
|
|
91361
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
91362
|
+
var msg = new proto.clarifai.api.GetArtifactRequest;
|
|
91363
|
+
return proto.clarifai.api.GetArtifactRequest.deserializeBinaryFromReader(msg, reader);
|
|
91364
|
+
};
|
|
91365
|
+
/**
|
|
91366
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
91367
|
+
* given reader into the given message object.
|
|
91368
|
+
* @param {!proto.clarifai.api.GetArtifactRequest} msg The message object to deserialize into.
|
|
91369
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
91370
|
+
* @return {!proto.clarifai.api.GetArtifactRequest}
|
|
91371
|
+
*/
|
|
91372
|
+
proto.clarifai.api.GetArtifactRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
91373
|
+
while (reader.nextField()) {
|
|
91374
|
+
if (reader.isEndGroup()) {
|
|
91375
|
+
break;
|
|
91376
|
+
}
|
|
91377
|
+
var field = reader.getFieldNumber();
|
|
91378
|
+
switch (field) {
|
|
91379
|
+
case 1:
|
|
91380
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
91381
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
91382
|
+
msg.setUserAppId(value);
|
|
91383
|
+
break;
|
|
91384
|
+
case 2:
|
|
91385
|
+
var value = /** @type {string} */ (reader.readString());
|
|
91386
|
+
msg.setArtifactId(value);
|
|
91387
|
+
break;
|
|
91388
|
+
default:
|
|
91389
|
+
reader.skipField();
|
|
91390
|
+
break;
|
|
91391
|
+
}
|
|
91392
|
+
}
|
|
91393
|
+
return msg;
|
|
91394
|
+
};
|
|
91395
|
+
/**
|
|
91396
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
91397
|
+
* @return {!Uint8Array}
|
|
91398
|
+
*/
|
|
91399
|
+
proto.clarifai.api.GetArtifactRequest.prototype.serializeBinary = function () {
|
|
91400
|
+
var writer = new jspb.BinaryWriter();
|
|
91401
|
+
proto.clarifai.api.GetArtifactRequest.serializeBinaryToWriter(this, writer);
|
|
91402
|
+
return writer.getResultBuffer();
|
|
91403
|
+
};
|
|
91404
|
+
/**
|
|
91405
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
91406
|
+
* format), writing to the given BinaryWriter.
|
|
91407
|
+
* @param {!proto.clarifai.api.GetArtifactRequest} message
|
|
91408
|
+
* @param {!jspb.BinaryWriter} writer
|
|
91409
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91410
|
+
*/
|
|
91411
|
+
proto.clarifai.api.GetArtifactRequest.serializeBinaryToWriter = function (message, writer) {
|
|
91412
|
+
var f = undefined;
|
|
91413
|
+
f = message.getUserAppId();
|
|
91414
|
+
if (f != null) {
|
|
91415
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
91416
|
+
}
|
|
91417
|
+
f = message.getArtifactId();
|
|
91418
|
+
if (f.length > 0) {
|
|
91419
|
+
writer.writeString(2, f);
|
|
91420
|
+
}
|
|
91421
|
+
};
|
|
91422
|
+
/**
|
|
91423
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
91424
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
91425
|
+
*/
|
|
91426
|
+
proto.clarifai.api.GetArtifactRequest.prototype.getUserAppId = function () {
|
|
91427
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
91428
|
+
};
|
|
91429
|
+
/**
|
|
91430
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
91431
|
+
* @return {!proto.clarifai.api.GetArtifactRequest} returns this
|
|
91432
|
+
*/
|
|
91433
|
+
proto.clarifai.api.GetArtifactRequest.prototype.setUserAppId = function (value) {
|
|
91434
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
91435
|
+
};
|
|
91436
|
+
/**
|
|
91437
|
+
* Clears the message field making it undefined.
|
|
91438
|
+
* @return {!proto.clarifai.api.GetArtifactRequest} returns this
|
|
91439
|
+
*/
|
|
91440
|
+
proto.clarifai.api.GetArtifactRequest.prototype.clearUserAppId = function () {
|
|
91441
|
+
return this.setUserAppId(undefined);
|
|
91442
|
+
};
|
|
91443
|
+
/**
|
|
91444
|
+
* Returns whether this field is set.
|
|
91445
|
+
* @return {boolean}
|
|
91446
|
+
*/
|
|
91447
|
+
proto.clarifai.api.GetArtifactRequest.prototype.hasUserAppId = function () {
|
|
91448
|
+
return jspb.Message.getField(this, 1) != null;
|
|
91449
|
+
};
|
|
91450
|
+
/**
|
|
91451
|
+
* optional string artifact_id = 2;
|
|
91452
|
+
* @return {string}
|
|
91453
|
+
*/
|
|
91454
|
+
proto.clarifai.api.GetArtifactRequest.prototype.getArtifactId = function () {
|
|
91455
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
91456
|
+
};
|
|
91457
|
+
/**
|
|
91458
|
+
* @param {string} value
|
|
91459
|
+
* @return {!proto.clarifai.api.GetArtifactRequest} returns this
|
|
91460
|
+
*/
|
|
91461
|
+
proto.clarifai.api.GetArtifactRequest.prototype.setArtifactId = function (value) {
|
|
91462
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
91463
|
+
};
|
|
91464
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
91465
|
+
/**
|
|
91466
|
+
* Creates an object representation of this proto.
|
|
91467
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
91468
|
+
* Optional fields that are not set will be set to undefined.
|
|
91469
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
91470
|
+
* For the list of reserved names please see:
|
|
91471
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
91472
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
91473
|
+
* JSPB instance for transitional soy proto support:
|
|
91474
|
+
* http://goto/soy-param-migration
|
|
91475
|
+
* @return {!Object}
|
|
91476
|
+
*/
|
|
91477
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.toObject = function (opt_includeInstance) {
|
|
91478
|
+
return proto.clarifai.api.SingleArtifactResponse.toObject(opt_includeInstance, this);
|
|
91479
|
+
};
|
|
91480
|
+
/**
|
|
91481
|
+
* Static version of the {@see toObject} method.
|
|
91482
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
91483
|
+
* the JSPB instance for transitional soy proto support:
|
|
91484
|
+
* http://goto/soy-param-migration
|
|
91485
|
+
* @param {!proto.clarifai.api.SingleArtifactResponse} msg The msg instance to transform.
|
|
91486
|
+
* @return {!Object}
|
|
91487
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91488
|
+
*/
|
|
91489
|
+
proto.clarifai.api.SingleArtifactResponse.toObject = function (includeInstance, msg) {
|
|
91490
|
+
var f, obj = {
|
|
91491
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
91492
|
+
artifact: (f = msg.getArtifact()) && proto_clarifai_api_resources_pb.Artifact.toObject(includeInstance, f)
|
|
91493
|
+
};
|
|
91494
|
+
if (includeInstance) {
|
|
91495
|
+
obj.$jspbMessageInstance = msg;
|
|
91496
|
+
}
|
|
91497
|
+
return obj;
|
|
91498
|
+
};
|
|
91499
|
+
}
|
|
91500
|
+
/**
|
|
91501
|
+
* Deserializes binary data (in protobuf wire format).
|
|
91502
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
91503
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse}
|
|
91504
|
+
*/
|
|
91505
|
+
proto.clarifai.api.SingleArtifactResponse.deserializeBinary = function (bytes) {
|
|
91506
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
91507
|
+
var msg = new proto.clarifai.api.SingleArtifactResponse;
|
|
91508
|
+
return proto.clarifai.api.SingleArtifactResponse.deserializeBinaryFromReader(msg, reader);
|
|
91509
|
+
};
|
|
91510
|
+
/**
|
|
91511
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
91512
|
+
* given reader into the given message object.
|
|
91513
|
+
* @param {!proto.clarifai.api.SingleArtifactResponse} msg The message object to deserialize into.
|
|
91514
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
91515
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse}
|
|
91516
|
+
*/
|
|
91517
|
+
proto.clarifai.api.SingleArtifactResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
91518
|
+
while (reader.nextField()) {
|
|
91519
|
+
if (reader.isEndGroup()) {
|
|
91520
|
+
break;
|
|
91521
|
+
}
|
|
91522
|
+
var field = reader.getFieldNumber();
|
|
91523
|
+
switch (field) {
|
|
91524
|
+
case 1:
|
|
91525
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
91526
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
91527
|
+
msg.setStatus(value);
|
|
91528
|
+
break;
|
|
91529
|
+
case 2:
|
|
91530
|
+
var value = new proto_clarifai_api_resources_pb.Artifact;
|
|
91531
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.Artifact.deserializeBinaryFromReader);
|
|
91532
|
+
msg.setArtifact(value);
|
|
91533
|
+
break;
|
|
91534
|
+
default:
|
|
91535
|
+
reader.skipField();
|
|
91536
|
+
break;
|
|
91537
|
+
}
|
|
91538
|
+
}
|
|
91539
|
+
return msg;
|
|
91540
|
+
};
|
|
91541
|
+
/**
|
|
91542
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
91543
|
+
* @return {!Uint8Array}
|
|
91544
|
+
*/
|
|
91545
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.serializeBinary = function () {
|
|
91546
|
+
var writer = new jspb.BinaryWriter();
|
|
91547
|
+
proto.clarifai.api.SingleArtifactResponse.serializeBinaryToWriter(this, writer);
|
|
91548
|
+
return writer.getResultBuffer();
|
|
91549
|
+
};
|
|
91550
|
+
/**
|
|
91551
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
91552
|
+
* format), writing to the given BinaryWriter.
|
|
91553
|
+
* @param {!proto.clarifai.api.SingleArtifactResponse} message
|
|
91554
|
+
* @param {!jspb.BinaryWriter} writer
|
|
91555
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91556
|
+
*/
|
|
91557
|
+
proto.clarifai.api.SingleArtifactResponse.serializeBinaryToWriter = function (message, writer) {
|
|
91558
|
+
var f = undefined;
|
|
91559
|
+
f = message.getStatus();
|
|
91560
|
+
if (f != null) {
|
|
91561
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
91562
|
+
}
|
|
91563
|
+
f = message.getArtifact();
|
|
91564
|
+
if (f != null) {
|
|
91565
|
+
writer.writeMessage(2, f, proto_clarifai_api_resources_pb.Artifact.serializeBinaryToWriter);
|
|
91566
|
+
}
|
|
91567
|
+
};
|
|
91568
|
+
/**
|
|
91569
|
+
* optional status.Status status = 1;
|
|
91570
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
91571
|
+
*/
|
|
91572
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.getStatus = function () {
|
|
91573
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
91574
|
+
};
|
|
91575
|
+
/**
|
|
91576
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
91577
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
91578
|
+
*/
|
|
91579
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.setStatus = function (value) {
|
|
91580
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
91581
|
+
};
|
|
91582
|
+
/**
|
|
91583
|
+
* Clears the message field making it undefined.
|
|
91584
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
91585
|
+
*/
|
|
91586
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.clearStatus = function () {
|
|
91587
|
+
return this.setStatus(undefined);
|
|
91588
|
+
};
|
|
91589
|
+
/**
|
|
91590
|
+
* Returns whether this field is set.
|
|
91591
|
+
* @return {boolean}
|
|
91592
|
+
*/
|
|
91593
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.hasStatus = function () {
|
|
91594
|
+
return jspb.Message.getField(this, 1) != null;
|
|
91595
|
+
};
|
|
91596
|
+
/**
|
|
91597
|
+
* optional Artifact artifact = 2;
|
|
91598
|
+
* @return {?proto.clarifai.api.Artifact}
|
|
91599
|
+
*/
|
|
91600
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.getArtifact = function () {
|
|
91601
|
+
return /** @type{?proto.clarifai.api.Artifact} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Artifact, 2));
|
|
91602
|
+
};
|
|
91603
|
+
/**
|
|
91604
|
+
* @param {?proto.clarifai.api.Artifact|undefined} value
|
|
91605
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
91606
|
+
*/
|
|
91607
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.setArtifact = function (value) {
|
|
91608
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
91609
|
+
};
|
|
91610
|
+
/**
|
|
91611
|
+
* Clears the message field making it undefined.
|
|
91612
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
91613
|
+
*/
|
|
91614
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.clearArtifact = function () {
|
|
91615
|
+
return this.setArtifact(undefined);
|
|
91616
|
+
};
|
|
91617
|
+
/**
|
|
91618
|
+
* Returns whether this field is set.
|
|
91619
|
+
* @return {boolean}
|
|
91620
|
+
*/
|
|
91621
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.hasArtifact = function () {
|
|
91622
|
+
return jspb.Message.getField(this, 2) != null;
|
|
91623
|
+
};
|
|
91624
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
91625
|
+
/**
|
|
91626
|
+
* Creates an object representation of this proto.
|
|
91627
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
91628
|
+
* Optional fields that are not set will be set to undefined.
|
|
91629
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
91630
|
+
* For the list of reserved names please see:
|
|
91631
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
91632
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
91633
|
+
* JSPB instance for transitional soy proto support:
|
|
91634
|
+
* http://goto/soy-param-migration
|
|
91635
|
+
* @return {!Object}
|
|
91636
|
+
*/
|
|
91637
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.toObject = function (opt_includeInstance) {
|
|
91638
|
+
return proto.clarifai.api.DeleteArtifactRequest.toObject(opt_includeInstance, this);
|
|
91639
|
+
};
|
|
91640
|
+
/**
|
|
91641
|
+
* Static version of the {@see toObject} method.
|
|
91642
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
91643
|
+
* the JSPB instance for transitional soy proto support:
|
|
91644
|
+
* http://goto/soy-param-migration
|
|
91645
|
+
* @param {!proto.clarifai.api.DeleteArtifactRequest} msg The msg instance to transform.
|
|
91646
|
+
* @return {!Object}
|
|
91647
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91648
|
+
*/
|
|
91649
|
+
proto.clarifai.api.DeleteArtifactRequest.toObject = function (includeInstance, msg) {
|
|
91650
|
+
var f, obj = {
|
|
91651
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
91652
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
91653
|
+
};
|
|
91654
|
+
if (includeInstance) {
|
|
91655
|
+
obj.$jspbMessageInstance = msg;
|
|
91656
|
+
}
|
|
91657
|
+
return obj;
|
|
91658
|
+
};
|
|
91659
|
+
}
|
|
91660
|
+
/**
|
|
91661
|
+
* Deserializes binary data (in protobuf wire format).
|
|
91662
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
91663
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest}
|
|
91664
|
+
*/
|
|
91665
|
+
proto.clarifai.api.DeleteArtifactRequest.deserializeBinary = function (bytes) {
|
|
91666
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
91667
|
+
var msg = new proto.clarifai.api.DeleteArtifactRequest;
|
|
91668
|
+
return proto.clarifai.api.DeleteArtifactRequest.deserializeBinaryFromReader(msg, reader);
|
|
91669
|
+
};
|
|
91670
|
+
/**
|
|
91671
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
91672
|
+
* given reader into the given message object.
|
|
91673
|
+
* @param {!proto.clarifai.api.DeleteArtifactRequest} msg The message object to deserialize into.
|
|
91674
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
91675
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest}
|
|
91676
|
+
*/
|
|
91677
|
+
proto.clarifai.api.DeleteArtifactRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
91678
|
+
while (reader.nextField()) {
|
|
91679
|
+
if (reader.isEndGroup()) {
|
|
91680
|
+
break;
|
|
91681
|
+
}
|
|
91682
|
+
var field = reader.getFieldNumber();
|
|
91683
|
+
switch (field) {
|
|
91684
|
+
case 1:
|
|
91685
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
91686
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
91687
|
+
msg.setUserAppId(value);
|
|
91688
|
+
break;
|
|
91689
|
+
case 2:
|
|
91690
|
+
var value = /** @type {string} */ (reader.readString());
|
|
91691
|
+
msg.setArtifactId(value);
|
|
91692
|
+
break;
|
|
91693
|
+
default:
|
|
91694
|
+
reader.skipField();
|
|
91695
|
+
break;
|
|
91696
|
+
}
|
|
91697
|
+
}
|
|
91698
|
+
return msg;
|
|
91699
|
+
};
|
|
91700
|
+
/**
|
|
91701
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
91702
|
+
* @return {!Uint8Array}
|
|
91703
|
+
*/
|
|
91704
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.serializeBinary = function () {
|
|
91705
|
+
var writer = new jspb.BinaryWriter();
|
|
91706
|
+
proto.clarifai.api.DeleteArtifactRequest.serializeBinaryToWriter(this, writer);
|
|
91707
|
+
return writer.getResultBuffer();
|
|
91708
|
+
};
|
|
91709
|
+
/**
|
|
91710
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
91711
|
+
* format), writing to the given BinaryWriter.
|
|
91712
|
+
* @param {!proto.clarifai.api.DeleteArtifactRequest} message
|
|
91713
|
+
* @param {!jspb.BinaryWriter} writer
|
|
91714
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91715
|
+
*/
|
|
91716
|
+
proto.clarifai.api.DeleteArtifactRequest.serializeBinaryToWriter = function (message, writer) {
|
|
91717
|
+
var f = undefined;
|
|
91718
|
+
f = message.getUserAppId();
|
|
91719
|
+
if (f != null) {
|
|
91720
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
91721
|
+
}
|
|
91722
|
+
f = message.getArtifactId();
|
|
91723
|
+
if (f.length > 0) {
|
|
91724
|
+
writer.writeString(2, f);
|
|
91725
|
+
}
|
|
91726
|
+
};
|
|
91727
|
+
/**
|
|
91728
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
91729
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
91730
|
+
*/
|
|
91731
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.getUserAppId = function () {
|
|
91732
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
91733
|
+
};
|
|
91734
|
+
/**
|
|
91735
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
91736
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest} returns this
|
|
91737
|
+
*/
|
|
91738
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.setUserAppId = function (value) {
|
|
91739
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
91740
|
+
};
|
|
91741
|
+
/**
|
|
91742
|
+
* Clears the message field making it undefined.
|
|
91743
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest} returns this
|
|
91744
|
+
*/
|
|
91745
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.clearUserAppId = function () {
|
|
91746
|
+
return this.setUserAppId(undefined);
|
|
91747
|
+
};
|
|
91748
|
+
/**
|
|
91749
|
+
* Returns whether this field is set.
|
|
91750
|
+
* @return {boolean}
|
|
91751
|
+
*/
|
|
91752
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.hasUserAppId = function () {
|
|
91753
|
+
return jspb.Message.getField(this, 1) != null;
|
|
91754
|
+
};
|
|
91755
|
+
/**
|
|
91756
|
+
* optional string artifact_id = 2;
|
|
91757
|
+
* @return {string}
|
|
91758
|
+
*/
|
|
91759
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.getArtifactId = function () {
|
|
91760
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
91761
|
+
};
|
|
91762
|
+
/**
|
|
91763
|
+
* @param {string} value
|
|
91764
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest} returns this
|
|
91765
|
+
*/
|
|
91766
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.setArtifactId = function (value) {
|
|
91767
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
91768
|
+
};
|
|
91769
|
+
/**
|
|
91770
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
91771
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
91772
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
91773
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
91774
|
+
* @private {!Array<!Array<number>>}
|
|
91775
|
+
* @const
|
|
91776
|
+
*/
|
|
91777
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_ = [[2, 3]];
|
|
91778
|
+
/**
|
|
91779
|
+
* @enum {number}
|
|
91780
|
+
*/
|
|
91781
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase = {
|
|
91782
|
+
UPLOAD_DATA_NOT_SET: 0,
|
|
91783
|
+
UPLOAD_CONFIG: 2,
|
|
91784
|
+
CONTENT_PART: 3
|
|
91785
|
+
};
|
|
91786
|
+
/**
|
|
91787
|
+
* @return {proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase}
|
|
91788
|
+
*/
|
|
91789
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.getUploadDataCase = function () {
|
|
91790
|
+
return /** @type {proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_[0]));
|
|
91791
|
+
};
|
|
91792
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
91793
|
+
/**
|
|
91794
|
+
* Creates an object representation of this proto.
|
|
91795
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
91796
|
+
* Optional fields that are not set will be set to undefined.
|
|
91797
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
91798
|
+
* For the list of reserved names please see:
|
|
91799
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
91800
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
91801
|
+
* JSPB instance for transitional soy proto support:
|
|
91802
|
+
* http://goto/soy-param-migration
|
|
91803
|
+
* @return {!Object}
|
|
91804
|
+
*/
|
|
91805
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.toObject = function (opt_includeInstance) {
|
|
91806
|
+
return proto.clarifai.api.PostArtifactVersionsUploadRequest.toObject(opt_includeInstance, this);
|
|
91807
|
+
};
|
|
91808
|
+
/**
|
|
91809
|
+
* Static version of the {@see toObject} method.
|
|
91810
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
91811
|
+
* the JSPB instance for transitional soy proto support:
|
|
91812
|
+
* http://goto/soy-param-migration
|
|
91813
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadRequest} msg The msg instance to transform.
|
|
91814
|
+
* @return {!Object}
|
|
91815
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91816
|
+
*/
|
|
91817
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.toObject = function (includeInstance, msg) {
|
|
91818
|
+
var f, obj = {
|
|
91819
|
+
uploadConfig: (f = msg.getUploadConfig()) && proto.clarifai.api.PostArtifactVersionsUploadConfig.toObject(includeInstance, f),
|
|
91820
|
+
contentPart: (f = msg.getContentPart()) && proto_clarifai_api_resources_pb.UploadContentPart.toObject(includeInstance, f)
|
|
91821
|
+
};
|
|
91822
|
+
if (includeInstance) {
|
|
91823
|
+
obj.$jspbMessageInstance = msg;
|
|
91824
|
+
}
|
|
91825
|
+
return obj;
|
|
91826
|
+
};
|
|
91827
|
+
}
|
|
91828
|
+
/**
|
|
91829
|
+
* Deserializes binary data (in protobuf wire format).
|
|
91830
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
91831
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest}
|
|
91832
|
+
*/
|
|
91833
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.deserializeBinary = function (bytes) {
|
|
91834
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
91835
|
+
var msg = new proto.clarifai.api.PostArtifactVersionsUploadRequest;
|
|
91836
|
+
return proto.clarifai.api.PostArtifactVersionsUploadRequest.deserializeBinaryFromReader(msg, reader);
|
|
91837
|
+
};
|
|
91838
|
+
/**
|
|
91839
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
91840
|
+
* given reader into the given message object.
|
|
91841
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadRequest} msg The message object to deserialize into.
|
|
91842
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
91843
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest}
|
|
91844
|
+
*/
|
|
91845
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
91846
|
+
while (reader.nextField()) {
|
|
91847
|
+
if (reader.isEndGroup()) {
|
|
91848
|
+
break;
|
|
91849
|
+
}
|
|
91850
|
+
var field = reader.getFieldNumber();
|
|
91851
|
+
switch (field) {
|
|
91852
|
+
case 2:
|
|
91853
|
+
var value = new proto.clarifai.api.PostArtifactVersionsUploadConfig;
|
|
91854
|
+
reader.readMessage(value, proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinaryFromReader);
|
|
91855
|
+
msg.setUploadConfig(value);
|
|
91856
|
+
break;
|
|
91857
|
+
case 3:
|
|
91858
|
+
var value = new proto_clarifai_api_resources_pb.UploadContentPart;
|
|
91859
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UploadContentPart.deserializeBinaryFromReader);
|
|
91860
|
+
msg.setContentPart(value);
|
|
91861
|
+
break;
|
|
91862
|
+
default:
|
|
91863
|
+
reader.skipField();
|
|
91864
|
+
break;
|
|
91865
|
+
}
|
|
91866
|
+
}
|
|
91867
|
+
return msg;
|
|
91868
|
+
};
|
|
91869
|
+
/**
|
|
91870
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
91871
|
+
* @return {!Uint8Array}
|
|
91872
|
+
*/
|
|
91873
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.serializeBinary = function () {
|
|
91874
|
+
var writer = new jspb.BinaryWriter();
|
|
91875
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.serializeBinaryToWriter(this, writer);
|
|
91876
|
+
return writer.getResultBuffer();
|
|
91877
|
+
};
|
|
91878
|
+
/**
|
|
91879
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
91880
|
+
* format), writing to the given BinaryWriter.
|
|
91881
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadRequest} message
|
|
91882
|
+
* @param {!jspb.BinaryWriter} writer
|
|
91883
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91884
|
+
*/
|
|
91885
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.serializeBinaryToWriter = function (message, writer) {
|
|
91886
|
+
var f = undefined;
|
|
91887
|
+
f = message.getUploadConfig();
|
|
91888
|
+
if (f != null) {
|
|
91889
|
+
writer.writeMessage(2, f, proto.clarifai.api.PostArtifactVersionsUploadConfig.serializeBinaryToWriter);
|
|
91890
|
+
}
|
|
91891
|
+
f = message.getContentPart();
|
|
91892
|
+
if (f != null) {
|
|
91893
|
+
writer.writeMessage(3, f, proto_clarifai_api_resources_pb.UploadContentPart.serializeBinaryToWriter);
|
|
91894
|
+
}
|
|
91895
|
+
};
|
|
91896
|
+
/**
|
|
91897
|
+
* optional PostArtifactVersionsUploadConfig upload_config = 2;
|
|
91898
|
+
* @return {?proto.clarifai.api.PostArtifactVersionsUploadConfig}
|
|
91899
|
+
*/
|
|
91900
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.getUploadConfig = function () {
|
|
91901
|
+
return /** @type{?proto.clarifai.api.PostArtifactVersionsUploadConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PostArtifactVersionsUploadConfig, 2));
|
|
91902
|
+
};
|
|
91903
|
+
/**
|
|
91904
|
+
* @param {?proto.clarifai.api.PostArtifactVersionsUploadConfig|undefined} value
|
|
91905
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
91906
|
+
*/
|
|
91907
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.setUploadConfig = function (value) {
|
|
91908
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_[0], value);
|
|
91909
|
+
};
|
|
91910
|
+
/**
|
|
91911
|
+
* Clears the message field making it undefined.
|
|
91912
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
91913
|
+
*/
|
|
91914
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.clearUploadConfig = function () {
|
|
91915
|
+
return this.setUploadConfig(undefined);
|
|
91916
|
+
};
|
|
91917
|
+
/**
|
|
91918
|
+
* Returns whether this field is set.
|
|
91919
|
+
* @return {boolean}
|
|
91920
|
+
*/
|
|
91921
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.hasUploadConfig = function () {
|
|
91922
|
+
return jspb.Message.getField(this, 2) != null;
|
|
91923
|
+
};
|
|
91924
|
+
/**
|
|
91925
|
+
* optional UploadContentPart content_part = 3;
|
|
91926
|
+
* @return {?proto.clarifai.api.UploadContentPart}
|
|
91927
|
+
*/
|
|
91928
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.getContentPart = function () {
|
|
91929
|
+
return /** @type{?proto.clarifai.api.UploadContentPart} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UploadContentPart, 3));
|
|
91930
|
+
};
|
|
91931
|
+
/**
|
|
91932
|
+
* @param {?proto.clarifai.api.UploadContentPart|undefined} value
|
|
91933
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
91934
|
+
*/
|
|
91935
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.setContentPart = function (value) {
|
|
91936
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_[0], value);
|
|
91937
|
+
};
|
|
91938
|
+
/**
|
|
91939
|
+
* Clears the message field making it undefined.
|
|
91940
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
91941
|
+
*/
|
|
91942
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.clearContentPart = function () {
|
|
91943
|
+
return this.setContentPart(undefined);
|
|
91944
|
+
};
|
|
91945
|
+
/**
|
|
91946
|
+
* Returns whether this field is set.
|
|
91947
|
+
* @return {boolean}
|
|
91948
|
+
*/
|
|
91949
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.hasContentPart = function () {
|
|
91950
|
+
return jspb.Message.getField(this, 3) != null;
|
|
91951
|
+
};
|
|
91952
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
91953
|
+
/**
|
|
91954
|
+
* Creates an object representation of this proto.
|
|
91955
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
91956
|
+
* Optional fields that are not set will be set to undefined.
|
|
91957
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
91958
|
+
* For the list of reserved names please see:
|
|
91959
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
91960
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
91961
|
+
* JSPB instance for transitional soy proto support:
|
|
91962
|
+
* http://goto/soy-param-migration
|
|
91963
|
+
* @return {!Object}
|
|
91964
|
+
*/
|
|
91965
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.toObject = function (opt_includeInstance) {
|
|
91966
|
+
return proto.clarifai.api.PostArtifactVersionsUploadResponse.toObject(opt_includeInstance, this);
|
|
91967
|
+
};
|
|
91968
|
+
/**
|
|
91969
|
+
* Static version of the {@see toObject} method.
|
|
91970
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
91971
|
+
* the JSPB instance for transitional soy proto support:
|
|
91972
|
+
* http://goto/soy-param-migration
|
|
91973
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadResponse} msg The msg instance to transform.
|
|
91974
|
+
* @return {!Object}
|
|
91975
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
91976
|
+
*/
|
|
91977
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.toObject = function (includeInstance, msg) {
|
|
91978
|
+
var f, obj = {
|
|
91979
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
91980
|
+
bytesRemaining: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
91981
|
+
artifactVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
91982
|
+
};
|
|
91983
|
+
if (includeInstance) {
|
|
91984
|
+
obj.$jspbMessageInstance = msg;
|
|
91985
|
+
}
|
|
91986
|
+
return obj;
|
|
91987
|
+
};
|
|
91988
|
+
}
|
|
91989
|
+
/**
|
|
91990
|
+
* Deserializes binary data (in protobuf wire format).
|
|
91991
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
91992
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse}
|
|
91993
|
+
*/
|
|
91994
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.deserializeBinary = function (bytes) {
|
|
91995
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
91996
|
+
var msg = new proto.clarifai.api.PostArtifactVersionsUploadResponse;
|
|
91997
|
+
return proto.clarifai.api.PostArtifactVersionsUploadResponse.deserializeBinaryFromReader(msg, reader);
|
|
91998
|
+
};
|
|
91999
|
+
/**
|
|
92000
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
92001
|
+
* given reader into the given message object.
|
|
92002
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadResponse} msg The message object to deserialize into.
|
|
92003
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
92004
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse}
|
|
92005
|
+
*/
|
|
92006
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
92007
|
+
while (reader.nextField()) {
|
|
92008
|
+
if (reader.isEndGroup()) {
|
|
92009
|
+
break;
|
|
92010
|
+
}
|
|
92011
|
+
var field = reader.getFieldNumber();
|
|
92012
|
+
switch (field) {
|
|
92013
|
+
case 1:
|
|
92014
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
92015
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
92016
|
+
msg.setStatus(value);
|
|
92017
|
+
break;
|
|
92018
|
+
case 2:
|
|
92019
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
92020
|
+
msg.setBytesRemaining(value);
|
|
92021
|
+
break;
|
|
92022
|
+
case 3:
|
|
92023
|
+
var value = /** @type {string} */ (reader.readString());
|
|
92024
|
+
msg.setArtifactVersionId(value);
|
|
92025
|
+
break;
|
|
92026
|
+
default:
|
|
92027
|
+
reader.skipField();
|
|
92028
|
+
break;
|
|
92029
|
+
}
|
|
92030
|
+
}
|
|
92031
|
+
return msg;
|
|
92032
|
+
};
|
|
92033
|
+
/**
|
|
92034
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
92035
|
+
* @return {!Uint8Array}
|
|
92036
|
+
*/
|
|
92037
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.serializeBinary = function () {
|
|
92038
|
+
var writer = new jspb.BinaryWriter();
|
|
92039
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.serializeBinaryToWriter(this, writer);
|
|
92040
|
+
return writer.getResultBuffer();
|
|
92041
|
+
};
|
|
92042
|
+
/**
|
|
92043
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
92044
|
+
* format), writing to the given BinaryWriter.
|
|
92045
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadResponse} message
|
|
92046
|
+
* @param {!jspb.BinaryWriter} writer
|
|
92047
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92048
|
+
*/
|
|
92049
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.serializeBinaryToWriter = function (message, writer) {
|
|
92050
|
+
var f = undefined;
|
|
92051
|
+
f = message.getStatus();
|
|
92052
|
+
if (f != null) {
|
|
92053
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
92054
|
+
}
|
|
92055
|
+
f = message.getBytesRemaining();
|
|
92056
|
+
if (f !== 0) {
|
|
92057
|
+
writer.writeUint64(2, f);
|
|
92058
|
+
}
|
|
92059
|
+
f = message.getArtifactVersionId();
|
|
92060
|
+
if (f.length > 0) {
|
|
92061
|
+
writer.writeString(3, f);
|
|
92062
|
+
}
|
|
92063
|
+
};
|
|
92064
|
+
/**
|
|
92065
|
+
* optional status.Status status = 1;
|
|
92066
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
92067
|
+
*/
|
|
92068
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.getStatus = function () {
|
|
92069
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
92070
|
+
};
|
|
92071
|
+
/**
|
|
92072
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
92073
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
92074
|
+
*/
|
|
92075
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.setStatus = function (value) {
|
|
92076
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
92077
|
+
};
|
|
92078
|
+
/**
|
|
92079
|
+
* Clears the message field making it undefined.
|
|
92080
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
92081
|
+
*/
|
|
92082
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.clearStatus = function () {
|
|
92083
|
+
return this.setStatus(undefined);
|
|
92084
|
+
};
|
|
92085
|
+
/**
|
|
92086
|
+
* Returns whether this field is set.
|
|
92087
|
+
* @return {boolean}
|
|
92088
|
+
*/
|
|
92089
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.hasStatus = function () {
|
|
92090
|
+
return jspb.Message.getField(this, 1) != null;
|
|
92091
|
+
};
|
|
92092
|
+
/**
|
|
92093
|
+
* optional uint64 bytes_remaining = 2;
|
|
92094
|
+
* @return {number}
|
|
92095
|
+
*/
|
|
92096
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.getBytesRemaining = function () {
|
|
92097
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
92098
|
+
};
|
|
92099
|
+
/**
|
|
92100
|
+
* @param {number} value
|
|
92101
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
92102
|
+
*/
|
|
92103
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.setBytesRemaining = function (value) {
|
|
92104
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
92105
|
+
};
|
|
92106
|
+
/**
|
|
92107
|
+
* optional string artifact_version_id = 3;
|
|
92108
|
+
* @return {string}
|
|
92109
|
+
*/
|
|
92110
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.getArtifactVersionId = function () {
|
|
92111
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
92112
|
+
};
|
|
92113
|
+
/**
|
|
92114
|
+
* @param {string} value
|
|
92115
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
92116
|
+
*/
|
|
92117
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.setArtifactVersionId = function (value) {
|
|
92118
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
92119
|
+
};
|
|
92120
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
92121
|
+
/**
|
|
92122
|
+
* Creates an object representation of this proto.
|
|
92123
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
92124
|
+
* Optional fields that are not set will be set to undefined.
|
|
92125
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
92126
|
+
* For the list of reserved names please see:
|
|
92127
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
92128
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
92129
|
+
* JSPB instance for transitional soy proto support:
|
|
92130
|
+
* http://goto/soy-param-migration
|
|
92131
|
+
* @return {!Object}
|
|
92132
|
+
*/
|
|
92133
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.toObject = function (opt_includeInstance) {
|
|
92134
|
+
return proto.clarifai.api.PostArtifactVersionsUploadConfig.toObject(opt_includeInstance, this);
|
|
92135
|
+
};
|
|
92136
|
+
/**
|
|
92137
|
+
* Static version of the {@see toObject} method.
|
|
92138
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92139
|
+
* the JSPB instance for transitional soy proto support:
|
|
92140
|
+
* http://goto/soy-param-migration
|
|
92141
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadConfig} msg The msg instance to transform.
|
|
92142
|
+
* @return {!Object}
|
|
92143
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92144
|
+
*/
|
|
92145
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.toObject = function (includeInstance, msg) {
|
|
92146
|
+
var f, obj = {
|
|
92147
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
92148
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
92149
|
+
artifactVersion: (f = msg.getArtifactVersion()) && proto_clarifai_api_resources_pb.ArtifactVersion.toObject(includeInstance, f),
|
|
92150
|
+
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
92151
|
+
storageRequestSize: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
92152
|
+
};
|
|
92153
|
+
if (includeInstance) {
|
|
92154
|
+
obj.$jspbMessageInstance = msg;
|
|
92155
|
+
}
|
|
92156
|
+
return obj;
|
|
92157
|
+
};
|
|
92158
|
+
}
|
|
92159
|
+
/**
|
|
92160
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92161
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
92162
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig}
|
|
92163
|
+
*/
|
|
92164
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinary = function (bytes) {
|
|
92165
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
92166
|
+
var msg = new proto.clarifai.api.PostArtifactVersionsUploadConfig;
|
|
92167
|
+
return proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinaryFromReader(msg, reader);
|
|
92168
|
+
};
|
|
92169
|
+
/**
|
|
92170
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
92171
|
+
* given reader into the given message object.
|
|
92172
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadConfig} msg The message object to deserialize into.
|
|
92173
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
92174
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig}
|
|
92175
|
+
*/
|
|
92176
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinaryFromReader = function (msg, reader) {
|
|
92177
|
+
while (reader.nextField()) {
|
|
92178
|
+
if (reader.isEndGroup()) {
|
|
92179
|
+
break;
|
|
92180
|
+
}
|
|
92181
|
+
var field = reader.getFieldNumber();
|
|
92182
|
+
switch (field) {
|
|
92183
|
+
case 1:
|
|
92184
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
92185
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
92186
|
+
msg.setUserAppId(value);
|
|
92187
|
+
break;
|
|
92188
|
+
case 2:
|
|
92189
|
+
var value = /** @type {string} */ (reader.readString());
|
|
92190
|
+
msg.setArtifactId(value);
|
|
92191
|
+
break;
|
|
92192
|
+
case 3:
|
|
92193
|
+
var value = new proto_clarifai_api_resources_pb.ArtifactVersion;
|
|
92194
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.ArtifactVersion.deserializeBinaryFromReader);
|
|
92195
|
+
msg.setArtifactVersion(value);
|
|
92196
|
+
break;
|
|
92197
|
+
case 4:
|
|
92198
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
92199
|
+
msg.setTotalSize(value);
|
|
92200
|
+
break;
|
|
92201
|
+
case 5:
|
|
92202
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
92203
|
+
msg.setStorageRequestSize(value);
|
|
92204
|
+
break;
|
|
92205
|
+
default:
|
|
92206
|
+
reader.skipField();
|
|
92207
|
+
break;
|
|
92208
|
+
}
|
|
92209
|
+
}
|
|
92210
|
+
return msg;
|
|
92211
|
+
};
|
|
92212
|
+
/**
|
|
92213
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
92214
|
+
* @return {!Uint8Array}
|
|
92215
|
+
*/
|
|
92216
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.serializeBinary = function () {
|
|
92217
|
+
var writer = new jspb.BinaryWriter();
|
|
92218
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.serializeBinaryToWriter(this, writer);
|
|
92219
|
+
return writer.getResultBuffer();
|
|
92220
|
+
};
|
|
92221
|
+
/**
|
|
92222
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
92223
|
+
* format), writing to the given BinaryWriter.
|
|
92224
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadConfig} message
|
|
92225
|
+
* @param {!jspb.BinaryWriter} writer
|
|
92226
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92227
|
+
*/
|
|
92228
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.serializeBinaryToWriter = function (message, writer) {
|
|
92229
|
+
var f = undefined;
|
|
92230
|
+
f = message.getUserAppId();
|
|
92231
|
+
if (f != null) {
|
|
92232
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
92233
|
+
}
|
|
92234
|
+
f = message.getArtifactId();
|
|
92235
|
+
if (f.length > 0) {
|
|
92236
|
+
writer.writeString(2, f);
|
|
92237
|
+
}
|
|
92238
|
+
f = message.getArtifactVersion();
|
|
92239
|
+
if (f != null) {
|
|
92240
|
+
writer.writeMessage(3, f, proto_clarifai_api_resources_pb.ArtifactVersion.serializeBinaryToWriter);
|
|
92241
|
+
}
|
|
92242
|
+
f = message.getTotalSize();
|
|
92243
|
+
if (f !== 0) {
|
|
92244
|
+
writer.writeUint64(4, f);
|
|
92245
|
+
}
|
|
92246
|
+
f = message.getStorageRequestSize();
|
|
92247
|
+
if (f !== 0) {
|
|
92248
|
+
writer.writeUint64(5, f);
|
|
92249
|
+
}
|
|
92250
|
+
};
|
|
92251
|
+
/**
|
|
92252
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
92253
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
92254
|
+
*/
|
|
92255
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getUserAppId = function () {
|
|
92256
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
92257
|
+
};
|
|
92258
|
+
/**
|
|
92259
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
92260
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
92261
|
+
*/
|
|
92262
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setUserAppId = function (value) {
|
|
92263
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
92264
|
+
};
|
|
92265
|
+
/**
|
|
92266
|
+
* Clears the message field making it undefined.
|
|
92267
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
92268
|
+
*/
|
|
92269
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.clearUserAppId = function () {
|
|
92270
|
+
return this.setUserAppId(undefined);
|
|
92271
|
+
};
|
|
92272
|
+
/**
|
|
92273
|
+
* Returns whether this field is set.
|
|
92274
|
+
* @return {boolean}
|
|
92275
|
+
*/
|
|
92276
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.hasUserAppId = function () {
|
|
92277
|
+
return jspb.Message.getField(this, 1) != null;
|
|
92278
|
+
};
|
|
92279
|
+
/**
|
|
92280
|
+
* optional string artifact_id = 2;
|
|
92281
|
+
* @return {string}
|
|
92282
|
+
*/
|
|
92283
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getArtifactId = function () {
|
|
92284
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
92285
|
+
};
|
|
92286
|
+
/**
|
|
92287
|
+
* @param {string} value
|
|
92288
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
92289
|
+
*/
|
|
92290
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setArtifactId = function (value) {
|
|
92291
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
92292
|
+
};
|
|
92293
|
+
/**
|
|
92294
|
+
* optional ArtifactVersion artifact_version = 3;
|
|
92295
|
+
* @return {?proto.clarifai.api.ArtifactVersion}
|
|
92296
|
+
*/
|
|
92297
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getArtifactVersion = function () {
|
|
92298
|
+
return /** @type{?proto.clarifai.api.ArtifactVersion} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ArtifactVersion, 3));
|
|
92299
|
+
};
|
|
92300
|
+
/**
|
|
92301
|
+
* @param {?proto.clarifai.api.ArtifactVersion|undefined} value
|
|
92302
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
92303
|
+
*/
|
|
92304
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setArtifactVersion = function (value) {
|
|
92305
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
92306
|
+
};
|
|
92307
|
+
/**
|
|
92308
|
+
* Clears the message field making it undefined.
|
|
92309
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
92310
|
+
*/
|
|
92311
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.clearArtifactVersion = function () {
|
|
92312
|
+
return this.setArtifactVersion(undefined);
|
|
92313
|
+
};
|
|
92314
|
+
/**
|
|
92315
|
+
* Returns whether this field is set.
|
|
92316
|
+
* @return {boolean}
|
|
92317
|
+
*/
|
|
92318
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.hasArtifactVersion = function () {
|
|
92319
|
+
return jspb.Message.getField(this, 3) != null;
|
|
92320
|
+
};
|
|
92321
|
+
/**
|
|
92322
|
+
* optional uint64 total_size = 4;
|
|
92323
|
+
* @return {number}
|
|
92324
|
+
*/
|
|
92325
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getTotalSize = function () {
|
|
92326
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
92327
|
+
};
|
|
92328
|
+
/**
|
|
92329
|
+
* @param {number} value
|
|
92330
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
92331
|
+
*/
|
|
92332
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setTotalSize = function (value) {
|
|
92333
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
92334
|
+
};
|
|
92335
|
+
/**
|
|
92336
|
+
* optional uint64 storage_request_size = 5;
|
|
92337
|
+
* @return {number}
|
|
92338
|
+
*/
|
|
92339
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getStorageRequestSize = function () {
|
|
92340
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
92341
|
+
};
|
|
92342
|
+
/**
|
|
92343
|
+
* @param {number} value
|
|
92344
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
92345
|
+
*/
|
|
92346
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setStorageRequestSize = function (value) {
|
|
92347
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
92348
|
+
};
|
|
92349
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
92350
|
+
/**
|
|
92351
|
+
* Creates an object representation of this proto.
|
|
92352
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
92353
|
+
* Optional fields that are not set will be set to undefined.
|
|
92354
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
92355
|
+
* For the list of reserved names please see:
|
|
92356
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
92357
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
92358
|
+
* JSPB instance for transitional soy proto support:
|
|
92359
|
+
* http://goto/soy-param-migration
|
|
92360
|
+
* @return {!Object}
|
|
92361
|
+
*/
|
|
92362
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
92363
|
+
return proto.clarifai.api.ListArtifactVersionsRequest.toObject(opt_includeInstance, this);
|
|
92364
|
+
};
|
|
92365
|
+
/**
|
|
92366
|
+
* Static version of the {@see toObject} method.
|
|
92367
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92368
|
+
* the JSPB instance for transitional soy proto support:
|
|
92369
|
+
* http://goto/soy-param-migration
|
|
92370
|
+
* @param {!proto.clarifai.api.ListArtifactVersionsRequest} msg The msg instance to transform.
|
|
92371
|
+
* @return {!Object}
|
|
92372
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92373
|
+
*/
|
|
92374
|
+
proto.clarifai.api.ListArtifactVersionsRequest.toObject = function (includeInstance, msg) {
|
|
92375
|
+
var f, obj = {
|
|
92376
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
92377
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
92378
|
+
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
92379
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
92380
|
+
};
|
|
92381
|
+
if (includeInstance) {
|
|
92382
|
+
obj.$jspbMessageInstance = msg;
|
|
92383
|
+
}
|
|
92384
|
+
return obj;
|
|
92385
|
+
};
|
|
92386
|
+
}
|
|
92387
|
+
/**
|
|
92388
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92389
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
92390
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest}
|
|
92391
|
+
*/
|
|
92392
|
+
proto.clarifai.api.ListArtifactVersionsRequest.deserializeBinary = function (bytes) {
|
|
92393
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
92394
|
+
var msg = new proto.clarifai.api.ListArtifactVersionsRequest;
|
|
92395
|
+
return proto.clarifai.api.ListArtifactVersionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
92396
|
+
};
|
|
92397
|
+
/**
|
|
92398
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
92399
|
+
* given reader into the given message object.
|
|
92400
|
+
* @param {!proto.clarifai.api.ListArtifactVersionsRequest} msg The message object to deserialize into.
|
|
92401
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
92402
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest}
|
|
92403
|
+
*/
|
|
92404
|
+
proto.clarifai.api.ListArtifactVersionsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
92405
|
+
while (reader.nextField()) {
|
|
92406
|
+
if (reader.isEndGroup()) {
|
|
92407
|
+
break;
|
|
92408
|
+
}
|
|
92409
|
+
var field = reader.getFieldNumber();
|
|
92410
|
+
switch (field) {
|
|
92411
|
+
case 1:
|
|
92412
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
92413
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
92414
|
+
msg.setUserAppId(value);
|
|
92415
|
+
break;
|
|
92416
|
+
case 2:
|
|
92417
|
+
var value = /** @type {string} */ (reader.readString());
|
|
92418
|
+
msg.setArtifactId(value);
|
|
92419
|
+
break;
|
|
92420
|
+
case 3:
|
|
92421
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
92422
|
+
msg.setPage(value);
|
|
92423
|
+
break;
|
|
92424
|
+
case 4:
|
|
92425
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
92426
|
+
msg.setPerPage(value);
|
|
92427
|
+
break;
|
|
92428
|
+
default:
|
|
92429
|
+
reader.skipField();
|
|
92430
|
+
break;
|
|
92431
|
+
}
|
|
92432
|
+
}
|
|
92433
|
+
return msg;
|
|
92434
|
+
};
|
|
92435
|
+
/**
|
|
92436
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
92437
|
+
* @return {!Uint8Array}
|
|
92438
|
+
*/
|
|
92439
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.serializeBinary = function () {
|
|
92440
|
+
var writer = new jspb.BinaryWriter();
|
|
92441
|
+
proto.clarifai.api.ListArtifactVersionsRequest.serializeBinaryToWriter(this, writer);
|
|
92442
|
+
return writer.getResultBuffer();
|
|
92443
|
+
};
|
|
92444
|
+
/**
|
|
92445
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
92446
|
+
* format), writing to the given BinaryWriter.
|
|
92447
|
+
* @param {!proto.clarifai.api.ListArtifactVersionsRequest} message
|
|
92448
|
+
* @param {!jspb.BinaryWriter} writer
|
|
92449
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92450
|
+
*/
|
|
92451
|
+
proto.clarifai.api.ListArtifactVersionsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
92452
|
+
var f = undefined;
|
|
92453
|
+
f = message.getUserAppId();
|
|
92454
|
+
if (f != null) {
|
|
92455
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
92456
|
+
}
|
|
92457
|
+
f = message.getArtifactId();
|
|
92458
|
+
if (f.length > 0) {
|
|
92459
|
+
writer.writeString(2, f);
|
|
92460
|
+
}
|
|
92461
|
+
f = message.getPage();
|
|
92462
|
+
if (f !== 0) {
|
|
92463
|
+
writer.writeUint32(3, f);
|
|
92464
|
+
}
|
|
92465
|
+
f = message.getPerPage();
|
|
92466
|
+
if (f !== 0) {
|
|
92467
|
+
writer.writeUint32(4, f);
|
|
92468
|
+
}
|
|
92469
|
+
};
|
|
92470
|
+
/**
|
|
92471
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
92472
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
92473
|
+
*/
|
|
92474
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getUserAppId = function () {
|
|
92475
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
92476
|
+
};
|
|
92477
|
+
/**
|
|
92478
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
92479
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
92480
|
+
*/
|
|
92481
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setUserAppId = function (value) {
|
|
92482
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
92483
|
+
};
|
|
92484
|
+
/**
|
|
92485
|
+
* Clears the message field making it undefined.
|
|
92486
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
92487
|
+
*/
|
|
92488
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.clearUserAppId = function () {
|
|
92489
|
+
return this.setUserAppId(undefined);
|
|
92490
|
+
};
|
|
92491
|
+
/**
|
|
92492
|
+
* Returns whether this field is set.
|
|
92493
|
+
* @return {boolean}
|
|
92494
|
+
*/
|
|
92495
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.hasUserAppId = function () {
|
|
92496
|
+
return jspb.Message.getField(this, 1) != null;
|
|
92497
|
+
};
|
|
92498
|
+
/**
|
|
92499
|
+
* optional string artifact_id = 2;
|
|
92500
|
+
* @return {string}
|
|
92501
|
+
*/
|
|
92502
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getArtifactId = function () {
|
|
92503
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
92504
|
+
};
|
|
92505
|
+
/**
|
|
92506
|
+
* @param {string} value
|
|
92507
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
92508
|
+
*/
|
|
92509
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setArtifactId = function (value) {
|
|
92510
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
92511
|
+
};
|
|
92512
|
+
/**
|
|
92513
|
+
* optional uint32 page = 3;
|
|
92514
|
+
* @return {number}
|
|
92515
|
+
*/
|
|
92516
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getPage = function () {
|
|
92517
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
92518
|
+
};
|
|
92519
|
+
/**
|
|
92520
|
+
* @param {number} value
|
|
92521
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
92522
|
+
*/
|
|
92523
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setPage = function (value) {
|
|
92524
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
92525
|
+
};
|
|
92526
|
+
/**
|
|
92527
|
+
* optional uint32 per_page = 4;
|
|
92528
|
+
* @return {number}
|
|
92529
|
+
*/
|
|
92530
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getPerPage = function () {
|
|
92531
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
92532
|
+
};
|
|
92533
|
+
/**
|
|
92534
|
+
* @param {number} value
|
|
92535
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
92536
|
+
*/
|
|
92537
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setPerPage = function (value) {
|
|
92538
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
92539
|
+
};
|
|
92540
|
+
/**
|
|
92541
|
+
* List of repeated fields within this message type.
|
|
92542
|
+
* @private {!Array<number>}
|
|
92543
|
+
* @const
|
|
92544
|
+
*/
|
|
92545
|
+
proto.clarifai.api.MultiArtifactVersionResponse.repeatedFields_ = [2];
|
|
92546
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
92547
|
+
/**
|
|
92548
|
+
* Creates an object representation of this proto.
|
|
92549
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
92550
|
+
* Optional fields that are not set will be set to undefined.
|
|
92551
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
92552
|
+
* For the list of reserved names please see:
|
|
92553
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
92554
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
92555
|
+
* JSPB instance for transitional soy proto support:
|
|
92556
|
+
* http://goto/soy-param-migration
|
|
92557
|
+
* @return {!Object}
|
|
92558
|
+
*/
|
|
92559
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.toObject = function (opt_includeInstance) {
|
|
92560
|
+
return proto.clarifai.api.MultiArtifactVersionResponse.toObject(opt_includeInstance, this);
|
|
92561
|
+
};
|
|
92562
|
+
/**
|
|
92563
|
+
* Static version of the {@see toObject} method.
|
|
92564
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92565
|
+
* the JSPB instance for transitional soy proto support:
|
|
92566
|
+
* http://goto/soy-param-migration
|
|
92567
|
+
* @param {!proto.clarifai.api.MultiArtifactVersionResponse} msg The msg instance to transform.
|
|
92568
|
+
* @return {!Object}
|
|
92569
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92570
|
+
*/
|
|
92571
|
+
proto.clarifai.api.MultiArtifactVersionResponse.toObject = function (includeInstance, msg) {
|
|
92572
|
+
var f, obj = {
|
|
92573
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
92574
|
+
artifactVersionsList: jspb.Message.toObjectList(msg.getArtifactVersionsList(), proto_clarifai_api_resources_pb.ArtifactVersion.toObject, includeInstance)
|
|
92575
|
+
};
|
|
92576
|
+
if (includeInstance) {
|
|
92577
|
+
obj.$jspbMessageInstance = msg;
|
|
92578
|
+
}
|
|
92579
|
+
return obj;
|
|
92580
|
+
};
|
|
92581
|
+
}
|
|
92582
|
+
/**
|
|
92583
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92584
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
92585
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse}
|
|
92586
|
+
*/
|
|
92587
|
+
proto.clarifai.api.MultiArtifactVersionResponse.deserializeBinary = function (bytes) {
|
|
92588
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
92589
|
+
var msg = new proto.clarifai.api.MultiArtifactVersionResponse;
|
|
92590
|
+
return proto.clarifai.api.MultiArtifactVersionResponse.deserializeBinaryFromReader(msg, reader);
|
|
92591
|
+
};
|
|
92592
|
+
/**
|
|
92593
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
92594
|
+
* given reader into the given message object.
|
|
92595
|
+
* @param {!proto.clarifai.api.MultiArtifactVersionResponse} msg The message object to deserialize into.
|
|
92596
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
92597
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse}
|
|
92598
|
+
*/
|
|
92599
|
+
proto.clarifai.api.MultiArtifactVersionResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
92600
|
+
while (reader.nextField()) {
|
|
92601
|
+
if (reader.isEndGroup()) {
|
|
92602
|
+
break;
|
|
92603
|
+
}
|
|
92604
|
+
var field = reader.getFieldNumber();
|
|
92605
|
+
switch (field) {
|
|
92606
|
+
case 1:
|
|
92607
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
92608
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
92609
|
+
msg.setStatus(value);
|
|
92610
|
+
break;
|
|
92611
|
+
case 2:
|
|
92612
|
+
var value = new proto_clarifai_api_resources_pb.ArtifactVersion;
|
|
92613
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.ArtifactVersion.deserializeBinaryFromReader);
|
|
92614
|
+
msg.addArtifactVersions(value);
|
|
92615
|
+
break;
|
|
92616
|
+
default:
|
|
92617
|
+
reader.skipField();
|
|
92618
|
+
break;
|
|
92619
|
+
}
|
|
92620
|
+
}
|
|
92621
|
+
return msg;
|
|
92622
|
+
};
|
|
92623
|
+
/**
|
|
92624
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
92625
|
+
* @return {!Uint8Array}
|
|
92626
|
+
*/
|
|
92627
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.serializeBinary = function () {
|
|
92628
|
+
var writer = new jspb.BinaryWriter();
|
|
92629
|
+
proto.clarifai.api.MultiArtifactVersionResponse.serializeBinaryToWriter(this, writer);
|
|
92630
|
+
return writer.getResultBuffer();
|
|
92631
|
+
};
|
|
92632
|
+
/**
|
|
92633
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
92634
|
+
* format), writing to the given BinaryWriter.
|
|
92635
|
+
* @param {!proto.clarifai.api.MultiArtifactVersionResponse} message
|
|
92636
|
+
* @param {!jspb.BinaryWriter} writer
|
|
92637
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92638
|
+
*/
|
|
92639
|
+
proto.clarifai.api.MultiArtifactVersionResponse.serializeBinaryToWriter = function (message, writer) {
|
|
92640
|
+
var f = undefined;
|
|
92641
|
+
f = message.getStatus();
|
|
92642
|
+
if (f != null) {
|
|
92643
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
92644
|
+
}
|
|
92645
|
+
f = message.getArtifactVersionsList();
|
|
92646
|
+
if (f.length > 0) {
|
|
92647
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.ArtifactVersion.serializeBinaryToWriter);
|
|
92648
|
+
}
|
|
92649
|
+
};
|
|
92650
|
+
/**
|
|
92651
|
+
* optional status.Status status = 1;
|
|
92652
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
92653
|
+
*/
|
|
92654
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.getStatus = function () {
|
|
92655
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
92656
|
+
};
|
|
92657
|
+
/**
|
|
92658
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
92659
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
92660
|
+
*/
|
|
92661
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.setStatus = function (value) {
|
|
92662
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
92663
|
+
};
|
|
92664
|
+
/**
|
|
92665
|
+
* Clears the message field making it undefined.
|
|
92666
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
92667
|
+
*/
|
|
92668
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.clearStatus = function () {
|
|
92669
|
+
return this.setStatus(undefined);
|
|
92670
|
+
};
|
|
92671
|
+
/**
|
|
92672
|
+
* Returns whether this field is set.
|
|
92673
|
+
* @return {boolean}
|
|
92674
|
+
*/
|
|
92675
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.hasStatus = function () {
|
|
92676
|
+
return jspb.Message.getField(this, 1) != null;
|
|
92677
|
+
};
|
|
92678
|
+
/**
|
|
92679
|
+
* repeated ArtifactVersion artifact_versions = 2;
|
|
92680
|
+
* @return {!Array<!proto.clarifai.api.ArtifactVersion>}
|
|
92681
|
+
*/
|
|
92682
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.getArtifactVersionsList = function () {
|
|
92683
|
+
return /** @type{!Array<!proto.clarifai.api.ArtifactVersion>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ArtifactVersion, 2));
|
|
92684
|
+
};
|
|
92685
|
+
/**
|
|
92686
|
+
* @param {!Array<!proto.clarifai.api.ArtifactVersion>} value
|
|
92687
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
92688
|
+
*/
|
|
92689
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.setArtifactVersionsList = function (value) {
|
|
92690
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
92691
|
+
};
|
|
92692
|
+
/**
|
|
92693
|
+
* @param {!proto.clarifai.api.ArtifactVersion=} opt_value
|
|
92694
|
+
* @param {number=} opt_index
|
|
92695
|
+
* @return {!proto.clarifai.api.ArtifactVersion}
|
|
92696
|
+
*/
|
|
92697
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.addArtifactVersions = function (opt_value, opt_index) {
|
|
92698
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ArtifactVersion, opt_index);
|
|
92699
|
+
};
|
|
92700
|
+
/**
|
|
92701
|
+
* Clears the list making it empty but non-null.
|
|
92702
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
92703
|
+
*/
|
|
92704
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.clearArtifactVersionsList = function () {
|
|
92705
|
+
return this.setArtifactVersionsList([]);
|
|
92706
|
+
};
|
|
92707
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
92708
|
+
/**
|
|
92709
|
+
* Creates an object representation of this proto.
|
|
92710
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
92711
|
+
* Optional fields that are not set will be set to undefined.
|
|
92712
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
92713
|
+
* For the list of reserved names please see:
|
|
92714
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
92715
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
92716
|
+
* JSPB instance for transitional soy proto support:
|
|
92717
|
+
* http://goto/soy-param-migration
|
|
92718
|
+
* @return {!Object}
|
|
92719
|
+
*/
|
|
92720
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.toObject = function (opt_includeInstance) {
|
|
92721
|
+
return proto.clarifai.api.GetArtifactVersionRequest.toObject(opt_includeInstance, this);
|
|
92722
|
+
};
|
|
92723
|
+
/**
|
|
92724
|
+
* Static version of the {@see toObject} method.
|
|
92725
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92726
|
+
* the JSPB instance for transitional soy proto support:
|
|
92727
|
+
* http://goto/soy-param-migration
|
|
92728
|
+
* @param {!proto.clarifai.api.GetArtifactVersionRequest} msg The msg instance to transform.
|
|
92729
|
+
* @return {!Object}
|
|
92730
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92731
|
+
*/
|
|
92732
|
+
proto.clarifai.api.GetArtifactVersionRequest.toObject = function (includeInstance, msg) {
|
|
92733
|
+
var f, obj = {
|
|
92734
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
92735
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
92736
|
+
artifactVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
92737
|
+
};
|
|
92738
|
+
if (includeInstance) {
|
|
92739
|
+
obj.$jspbMessageInstance = msg;
|
|
92740
|
+
}
|
|
92741
|
+
return obj;
|
|
92742
|
+
};
|
|
92743
|
+
}
|
|
92744
|
+
/**
|
|
92745
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92746
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
92747
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest}
|
|
92748
|
+
*/
|
|
92749
|
+
proto.clarifai.api.GetArtifactVersionRequest.deserializeBinary = function (bytes) {
|
|
92750
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
92751
|
+
var msg = new proto.clarifai.api.GetArtifactVersionRequest;
|
|
92752
|
+
return proto.clarifai.api.GetArtifactVersionRequest.deserializeBinaryFromReader(msg, reader);
|
|
92753
|
+
};
|
|
92754
|
+
/**
|
|
92755
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
92756
|
+
* given reader into the given message object.
|
|
92757
|
+
* @param {!proto.clarifai.api.GetArtifactVersionRequest} msg The message object to deserialize into.
|
|
92758
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
92759
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest}
|
|
92760
|
+
*/
|
|
92761
|
+
proto.clarifai.api.GetArtifactVersionRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
92762
|
+
while (reader.nextField()) {
|
|
92763
|
+
if (reader.isEndGroup()) {
|
|
92764
|
+
break;
|
|
92765
|
+
}
|
|
92766
|
+
var field = reader.getFieldNumber();
|
|
92767
|
+
switch (field) {
|
|
92768
|
+
case 1:
|
|
92769
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
92770
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
92771
|
+
msg.setUserAppId(value);
|
|
92772
|
+
break;
|
|
92773
|
+
case 2:
|
|
92774
|
+
var value = /** @type {string} */ (reader.readString());
|
|
92775
|
+
msg.setArtifactId(value);
|
|
92776
|
+
break;
|
|
92777
|
+
case 3:
|
|
92778
|
+
var value = /** @type {string} */ (reader.readString());
|
|
92779
|
+
msg.setArtifactVersionId(value);
|
|
92780
|
+
break;
|
|
92781
|
+
default:
|
|
92782
|
+
reader.skipField();
|
|
92783
|
+
break;
|
|
92784
|
+
}
|
|
92785
|
+
}
|
|
92786
|
+
return msg;
|
|
92787
|
+
};
|
|
92788
|
+
/**
|
|
92789
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
92790
|
+
* @return {!Uint8Array}
|
|
92791
|
+
*/
|
|
92792
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.serializeBinary = function () {
|
|
92793
|
+
var writer = new jspb.BinaryWriter();
|
|
92794
|
+
proto.clarifai.api.GetArtifactVersionRequest.serializeBinaryToWriter(this, writer);
|
|
92795
|
+
return writer.getResultBuffer();
|
|
92796
|
+
};
|
|
92797
|
+
/**
|
|
92798
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
92799
|
+
* format), writing to the given BinaryWriter.
|
|
92800
|
+
* @param {!proto.clarifai.api.GetArtifactVersionRequest} message
|
|
92801
|
+
* @param {!jspb.BinaryWriter} writer
|
|
92802
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92803
|
+
*/
|
|
92804
|
+
proto.clarifai.api.GetArtifactVersionRequest.serializeBinaryToWriter = function (message, writer) {
|
|
92805
|
+
var f = undefined;
|
|
92806
|
+
f = message.getUserAppId();
|
|
92807
|
+
if (f != null) {
|
|
92808
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
92809
|
+
}
|
|
92810
|
+
f = message.getArtifactId();
|
|
92811
|
+
if (f.length > 0) {
|
|
92812
|
+
writer.writeString(2, f);
|
|
92813
|
+
}
|
|
92814
|
+
f = message.getArtifactVersionId();
|
|
92815
|
+
if (f.length > 0) {
|
|
92816
|
+
writer.writeString(3, f);
|
|
92817
|
+
}
|
|
92818
|
+
};
|
|
92819
|
+
/**
|
|
92820
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
92821
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
92822
|
+
*/
|
|
92823
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.getUserAppId = function () {
|
|
92824
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
92825
|
+
};
|
|
92826
|
+
/**
|
|
92827
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
92828
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
92829
|
+
*/
|
|
92830
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.setUserAppId = function (value) {
|
|
92831
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
92832
|
+
};
|
|
92833
|
+
/**
|
|
92834
|
+
* Clears the message field making it undefined.
|
|
92835
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
92836
|
+
*/
|
|
92837
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.clearUserAppId = function () {
|
|
92838
|
+
return this.setUserAppId(undefined);
|
|
92839
|
+
};
|
|
92840
|
+
/**
|
|
92841
|
+
* Returns whether this field is set.
|
|
92842
|
+
* @return {boolean}
|
|
92843
|
+
*/
|
|
92844
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.hasUserAppId = function () {
|
|
92845
|
+
return jspb.Message.getField(this, 1) != null;
|
|
92846
|
+
};
|
|
92847
|
+
/**
|
|
92848
|
+
* optional string artifact_id = 2;
|
|
92849
|
+
* @return {string}
|
|
92850
|
+
*/
|
|
92851
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.getArtifactId = function () {
|
|
92852
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
92853
|
+
};
|
|
92854
|
+
/**
|
|
92855
|
+
* @param {string} value
|
|
92856
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
92857
|
+
*/
|
|
92858
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.setArtifactId = function (value) {
|
|
92859
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
92860
|
+
};
|
|
92861
|
+
/**
|
|
92862
|
+
* optional string artifact_version_id = 3;
|
|
92863
|
+
* @return {string}
|
|
92864
|
+
*/
|
|
92865
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.getArtifactVersionId = function () {
|
|
92866
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
92867
|
+
};
|
|
92868
|
+
/**
|
|
92869
|
+
* @param {string} value
|
|
92870
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
92871
|
+
*/
|
|
92872
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.setArtifactVersionId = function (value) {
|
|
92873
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
92874
|
+
};
|
|
92875
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
92876
|
+
/**
|
|
92877
|
+
* Creates an object representation of this proto.
|
|
92878
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
92879
|
+
* Optional fields that are not set will be set to undefined.
|
|
92880
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
92881
|
+
* For the list of reserved names please see:
|
|
92882
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
92883
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
92884
|
+
* JSPB instance for transitional soy proto support:
|
|
92885
|
+
* http://goto/soy-param-migration
|
|
92886
|
+
* @return {!Object}
|
|
92887
|
+
*/
|
|
92888
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.toObject = function (opt_includeInstance) {
|
|
92889
|
+
return proto.clarifai.api.SingleArtifactVersionResponse.toObject(opt_includeInstance, this);
|
|
92890
|
+
};
|
|
92891
|
+
/**
|
|
92892
|
+
* Static version of the {@see toObject} method.
|
|
92893
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92894
|
+
* the JSPB instance for transitional soy proto support:
|
|
92895
|
+
* http://goto/soy-param-migration
|
|
92896
|
+
* @param {!proto.clarifai.api.SingleArtifactVersionResponse} msg The msg instance to transform.
|
|
92897
|
+
* @return {!Object}
|
|
92898
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92899
|
+
*/
|
|
92900
|
+
proto.clarifai.api.SingleArtifactVersionResponse.toObject = function (includeInstance, msg) {
|
|
92901
|
+
var f, obj = {
|
|
92902
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
92903
|
+
artifactVersion: (f = msg.getArtifactVersion()) && proto_clarifai_api_resources_pb.ArtifactVersion.toObject(includeInstance, f)
|
|
92904
|
+
};
|
|
92905
|
+
if (includeInstance) {
|
|
92906
|
+
obj.$jspbMessageInstance = msg;
|
|
92907
|
+
}
|
|
92908
|
+
return obj;
|
|
92909
|
+
};
|
|
92910
|
+
}
|
|
92911
|
+
/**
|
|
92912
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92913
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
92914
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse}
|
|
92915
|
+
*/
|
|
92916
|
+
proto.clarifai.api.SingleArtifactVersionResponse.deserializeBinary = function (bytes) {
|
|
92917
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
92918
|
+
var msg = new proto.clarifai.api.SingleArtifactVersionResponse;
|
|
92919
|
+
return proto.clarifai.api.SingleArtifactVersionResponse.deserializeBinaryFromReader(msg, reader);
|
|
92920
|
+
};
|
|
92921
|
+
/**
|
|
92922
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
92923
|
+
* given reader into the given message object.
|
|
92924
|
+
* @param {!proto.clarifai.api.SingleArtifactVersionResponse} msg The message object to deserialize into.
|
|
92925
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
92926
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse}
|
|
92927
|
+
*/
|
|
92928
|
+
proto.clarifai.api.SingleArtifactVersionResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
92929
|
+
while (reader.nextField()) {
|
|
92930
|
+
if (reader.isEndGroup()) {
|
|
92931
|
+
break;
|
|
92932
|
+
}
|
|
92933
|
+
var field = reader.getFieldNumber();
|
|
92934
|
+
switch (field) {
|
|
92935
|
+
case 1:
|
|
92936
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
92937
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
92938
|
+
msg.setStatus(value);
|
|
92939
|
+
break;
|
|
92940
|
+
case 2:
|
|
92941
|
+
var value = new proto_clarifai_api_resources_pb.ArtifactVersion;
|
|
92942
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.ArtifactVersion.deserializeBinaryFromReader);
|
|
92943
|
+
msg.setArtifactVersion(value);
|
|
92944
|
+
break;
|
|
92945
|
+
default:
|
|
92946
|
+
reader.skipField();
|
|
92947
|
+
break;
|
|
92948
|
+
}
|
|
92949
|
+
}
|
|
92950
|
+
return msg;
|
|
92951
|
+
};
|
|
92952
|
+
/**
|
|
92953
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
92954
|
+
* @return {!Uint8Array}
|
|
92955
|
+
*/
|
|
92956
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.serializeBinary = function () {
|
|
92957
|
+
var writer = new jspb.BinaryWriter();
|
|
92958
|
+
proto.clarifai.api.SingleArtifactVersionResponse.serializeBinaryToWriter(this, writer);
|
|
92959
|
+
return writer.getResultBuffer();
|
|
92960
|
+
};
|
|
92961
|
+
/**
|
|
92962
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
92963
|
+
* format), writing to the given BinaryWriter.
|
|
92964
|
+
* @param {!proto.clarifai.api.SingleArtifactVersionResponse} message
|
|
92965
|
+
* @param {!jspb.BinaryWriter} writer
|
|
92966
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
92967
|
+
*/
|
|
92968
|
+
proto.clarifai.api.SingleArtifactVersionResponse.serializeBinaryToWriter = function (message, writer) {
|
|
92969
|
+
var f = undefined;
|
|
92970
|
+
f = message.getStatus();
|
|
92971
|
+
if (f != null) {
|
|
92972
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
92973
|
+
}
|
|
92974
|
+
f = message.getArtifactVersion();
|
|
92975
|
+
if (f != null) {
|
|
92976
|
+
writer.writeMessage(2, f, proto_clarifai_api_resources_pb.ArtifactVersion.serializeBinaryToWriter);
|
|
92977
|
+
}
|
|
92978
|
+
};
|
|
92979
|
+
/**
|
|
92980
|
+
* optional status.Status status = 1;
|
|
92981
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
92982
|
+
*/
|
|
92983
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.getStatus = function () {
|
|
92984
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
92985
|
+
};
|
|
92986
|
+
/**
|
|
92987
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
92988
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
92989
|
+
*/
|
|
92990
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.setStatus = function (value) {
|
|
92991
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
92992
|
+
};
|
|
92993
|
+
/**
|
|
92994
|
+
* Clears the message field making it undefined.
|
|
92995
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
92996
|
+
*/
|
|
92997
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.clearStatus = function () {
|
|
92998
|
+
return this.setStatus(undefined);
|
|
92999
|
+
};
|
|
93000
|
+
/**
|
|
93001
|
+
* Returns whether this field is set.
|
|
93002
|
+
* @return {boolean}
|
|
93003
|
+
*/
|
|
93004
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.hasStatus = function () {
|
|
93005
|
+
return jspb.Message.getField(this, 1) != null;
|
|
93006
|
+
};
|
|
93007
|
+
/**
|
|
93008
|
+
* optional ArtifactVersion artifact_version = 2;
|
|
93009
|
+
* @return {?proto.clarifai.api.ArtifactVersion}
|
|
93010
|
+
*/
|
|
93011
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.getArtifactVersion = function () {
|
|
93012
|
+
return /** @type{?proto.clarifai.api.ArtifactVersion} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ArtifactVersion, 2));
|
|
93013
|
+
};
|
|
93014
|
+
/**
|
|
93015
|
+
* @param {?proto.clarifai.api.ArtifactVersion|undefined} value
|
|
93016
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
93017
|
+
*/
|
|
93018
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.setArtifactVersion = function (value) {
|
|
93019
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
93020
|
+
};
|
|
93021
|
+
/**
|
|
93022
|
+
* Clears the message field making it undefined.
|
|
93023
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
93024
|
+
*/
|
|
93025
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.clearArtifactVersion = function () {
|
|
93026
|
+
return this.setArtifactVersion(undefined);
|
|
93027
|
+
};
|
|
93028
|
+
/**
|
|
93029
|
+
* Returns whether this field is set.
|
|
93030
|
+
* @return {boolean}
|
|
93031
|
+
*/
|
|
93032
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.hasArtifactVersion = function () {
|
|
93033
|
+
return jspb.Message.getField(this, 2) != null;
|
|
93034
|
+
};
|
|
93035
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
93036
|
+
/**
|
|
93037
|
+
* Creates an object representation of this proto.
|
|
93038
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
93039
|
+
* Optional fields that are not set will be set to undefined.
|
|
93040
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
93041
|
+
* For the list of reserved names please see:
|
|
93042
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
93043
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
93044
|
+
* JSPB instance for transitional soy proto support:
|
|
93045
|
+
* http://goto/soy-param-migration
|
|
93046
|
+
* @return {!Object}
|
|
93047
|
+
*/
|
|
93048
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.toObject = function (opt_includeInstance) {
|
|
93049
|
+
return proto.clarifai.api.DeleteArtifactVersionRequest.toObject(opt_includeInstance, this);
|
|
93050
|
+
};
|
|
93051
|
+
/**
|
|
93052
|
+
* Static version of the {@see toObject} method.
|
|
93053
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
93054
|
+
* the JSPB instance for transitional soy proto support:
|
|
93055
|
+
* http://goto/soy-param-migration
|
|
93056
|
+
* @param {!proto.clarifai.api.DeleteArtifactVersionRequest} msg The msg instance to transform.
|
|
93057
|
+
* @return {!Object}
|
|
93058
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
93059
|
+
*/
|
|
93060
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.toObject = function (includeInstance, msg) {
|
|
93061
|
+
var f, obj = {
|
|
93062
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
93063
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
93064
|
+
artifactVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
93065
|
+
};
|
|
93066
|
+
if (includeInstance) {
|
|
93067
|
+
obj.$jspbMessageInstance = msg;
|
|
93068
|
+
}
|
|
93069
|
+
return obj;
|
|
93070
|
+
};
|
|
93071
|
+
}
|
|
93072
|
+
/**
|
|
93073
|
+
* Deserializes binary data (in protobuf wire format).
|
|
93074
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
93075
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest}
|
|
93076
|
+
*/
|
|
93077
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.deserializeBinary = function (bytes) {
|
|
93078
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
93079
|
+
var msg = new proto.clarifai.api.DeleteArtifactVersionRequest;
|
|
93080
|
+
return proto.clarifai.api.DeleteArtifactVersionRequest.deserializeBinaryFromReader(msg, reader);
|
|
93081
|
+
};
|
|
93082
|
+
/**
|
|
93083
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
93084
|
+
* given reader into the given message object.
|
|
93085
|
+
* @param {!proto.clarifai.api.DeleteArtifactVersionRequest} msg The message object to deserialize into.
|
|
93086
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
93087
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest}
|
|
93088
|
+
*/
|
|
93089
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
93090
|
+
while (reader.nextField()) {
|
|
93091
|
+
if (reader.isEndGroup()) {
|
|
93092
|
+
break;
|
|
93093
|
+
}
|
|
93094
|
+
var field = reader.getFieldNumber();
|
|
93095
|
+
switch (field) {
|
|
93096
|
+
case 1:
|
|
93097
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
93098
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
93099
|
+
msg.setUserAppId(value);
|
|
93100
|
+
break;
|
|
93101
|
+
case 2:
|
|
93102
|
+
var value = /** @type {string} */ (reader.readString());
|
|
93103
|
+
msg.setArtifactId(value);
|
|
93104
|
+
break;
|
|
93105
|
+
case 3:
|
|
93106
|
+
var value = /** @type {string} */ (reader.readString());
|
|
93107
|
+
msg.setArtifactVersionId(value);
|
|
93108
|
+
break;
|
|
93109
|
+
default:
|
|
93110
|
+
reader.skipField();
|
|
93111
|
+
break;
|
|
93112
|
+
}
|
|
93113
|
+
}
|
|
93114
|
+
return msg;
|
|
93115
|
+
};
|
|
93116
|
+
/**
|
|
93117
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
93118
|
+
* @return {!Uint8Array}
|
|
93119
|
+
*/
|
|
93120
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.serializeBinary = function () {
|
|
93121
|
+
var writer = new jspb.BinaryWriter();
|
|
93122
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.serializeBinaryToWriter(this, writer);
|
|
93123
|
+
return writer.getResultBuffer();
|
|
93124
|
+
};
|
|
93125
|
+
/**
|
|
93126
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
93127
|
+
* format), writing to the given BinaryWriter.
|
|
93128
|
+
* @param {!proto.clarifai.api.DeleteArtifactVersionRequest} message
|
|
93129
|
+
* @param {!jspb.BinaryWriter} writer
|
|
93130
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
93131
|
+
*/
|
|
93132
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.serializeBinaryToWriter = function (message, writer) {
|
|
93133
|
+
var f = undefined;
|
|
93134
|
+
f = message.getUserAppId();
|
|
93135
|
+
if (f != null) {
|
|
93136
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
93137
|
+
}
|
|
93138
|
+
f = message.getArtifactId();
|
|
93139
|
+
if (f.length > 0) {
|
|
93140
|
+
writer.writeString(2, f);
|
|
93141
|
+
}
|
|
93142
|
+
f = message.getArtifactVersionId();
|
|
93143
|
+
if (f.length > 0) {
|
|
93144
|
+
writer.writeString(3, f);
|
|
93145
|
+
}
|
|
93146
|
+
};
|
|
93147
|
+
/**
|
|
93148
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
93149
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
93150
|
+
*/
|
|
93151
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.getUserAppId = function () {
|
|
93152
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
93153
|
+
};
|
|
93154
|
+
/**
|
|
93155
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
93156
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
93157
|
+
*/
|
|
93158
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.setUserAppId = function (value) {
|
|
93159
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
93160
|
+
};
|
|
93161
|
+
/**
|
|
93162
|
+
* Clears the message field making it undefined.
|
|
93163
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
93164
|
+
*/
|
|
93165
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.clearUserAppId = function () {
|
|
93166
|
+
return this.setUserAppId(undefined);
|
|
93167
|
+
};
|
|
93168
|
+
/**
|
|
93169
|
+
* Returns whether this field is set.
|
|
93170
|
+
* @return {boolean}
|
|
93171
|
+
*/
|
|
93172
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.hasUserAppId = function () {
|
|
93173
|
+
return jspb.Message.getField(this, 1) != null;
|
|
93174
|
+
};
|
|
93175
|
+
/**
|
|
93176
|
+
* optional string artifact_id = 2;
|
|
93177
|
+
* @return {string}
|
|
93178
|
+
*/
|
|
93179
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.getArtifactId = function () {
|
|
93180
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
93181
|
+
};
|
|
93182
|
+
/**
|
|
93183
|
+
* @param {string} value
|
|
93184
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
93185
|
+
*/
|
|
93186
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.setArtifactId = function (value) {
|
|
93187
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
93188
|
+
};
|
|
93189
|
+
/**
|
|
93190
|
+
* optional string artifact_version_id = 3;
|
|
93191
|
+
* @return {string}
|
|
93192
|
+
*/
|
|
93193
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.getArtifactVersionId = function () {
|
|
93194
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
93195
|
+
};
|
|
93196
|
+
/**
|
|
93197
|
+
* @param {string} value
|
|
93198
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
93199
|
+
*/
|
|
93200
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.setArtifactVersionId = function (value) {
|
|
93201
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
93202
|
+
};
|
|
89766
93203
|
/**
|
|
89767
93204
|
* @enum {number}
|
|
89768
93205
|
*/
|