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
|
@@ -50,6 +50,8 @@ goog.exportSymbol('proto.clarifai.api.DeleteAnnotationRequest', null, global);
|
|
|
50
50
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationTracksRequest', null, global);
|
|
51
51
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationsRequest', null, global);
|
|
52
52
|
goog.exportSymbol('proto.clarifai.api.DeleteAppRequest', null, global);
|
|
53
|
+
goog.exportSymbol('proto.clarifai.api.DeleteArtifactRequest', null, global);
|
|
54
|
+
goog.exportSymbol('proto.clarifai.api.DeleteArtifactVersionRequest', null, global);
|
|
53
55
|
goog.exportSymbol('proto.clarifai.api.DeleteBulkOperationRequest', null, global);
|
|
54
56
|
goog.exportSymbol('proto.clarifai.api.DeleteCollaboratorsRequest', null, global);
|
|
55
57
|
goog.exportSymbol('proto.clarifai.api.DeleteCollectorsRequest', null, global);
|
|
@@ -70,6 +72,8 @@ goog.exportSymbol('proto.clarifai.api.DeleteModelsRequest', null, global);
|
|
|
70
72
|
goog.exportSymbol('proto.clarifai.api.DeleteModuleVersionsRequest', null, global);
|
|
71
73
|
goog.exportSymbol('proto.clarifai.api.DeleteModulesRequest', null, global);
|
|
72
74
|
goog.exportSymbol('proto.clarifai.api.DeleteNodepoolsRequest', null, global);
|
|
75
|
+
goog.exportSymbol('proto.clarifai.api.DeletePipelineStepVersionsRequest', null, global);
|
|
76
|
+
goog.exportSymbol('proto.clarifai.api.DeletePipelineStepsRequest', null, global);
|
|
73
77
|
goog.exportSymbol('proto.clarifai.api.DeletePipelineVersionsRequest', null, global);
|
|
74
78
|
goog.exportSymbol('proto.clarifai.api.DeletePipelinesRequest', null, global);
|
|
75
79
|
goog.exportSymbol('proto.clarifai.api.DeleteRunnersRequest', null, global);
|
|
@@ -84,6 +88,8 @@ goog.exportSymbol('proto.clarifai.api.GetAnnotationFilterRequest', null, global)
|
|
|
84
88
|
goog.exportSymbol('proto.clarifai.api.GetAnnotationRequest', null, global);
|
|
85
89
|
goog.exportSymbol('proto.clarifai.api.GetAppDuplicationRequest', null, global);
|
|
86
90
|
goog.exportSymbol('proto.clarifai.api.GetAppRequest', null, global);
|
|
91
|
+
goog.exportSymbol('proto.clarifai.api.GetArtifactRequest', null, global);
|
|
92
|
+
goog.exportSymbol('proto.clarifai.api.GetArtifactVersionRequest', null, global);
|
|
87
93
|
goog.exportSymbol('proto.clarifai.api.GetBulkOperationRequest', null, global);
|
|
88
94
|
goog.exportSymbol('proto.clarifai.api.GetCollectorRequest', null, global);
|
|
89
95
|
goog.exportSymbol('proto.clarifai.api.GetComputeClusterRequest', null, global);
|
|
@@ -144,6 +150,8 @@ goog.exportSymbol('proto.clarifai.api.ListAppDuplicationsRequest', null, global)
|
|
|
144
150
|
goog.exportSymbol('proto.clarifai.api.ListAppKeysRequest', null, global);
|
|
145
151
|
goog.exportSymbol('proto.clarifai.api.ListAppsRequest', null, global);
|
|
146
152
|
goog.exportSymbol('proto.clarifai.api.ListAppsRequest.SortByCase', null, global);
|
|
153
|
+
goog.exportSymbol('proto.clarifai.api.ListArtifactVersionsRequest', null, global);
|
|
154
|
+
goog.exportSymbol('proto.clarifai.api.ListArtifactsRequest', null, global);
|
|
147
155
|
goog.exportSymbol('proto.clarifai.api.ListBulkOperationsRequest', null, global);
|
|
148
156
|
goog.exportSymbol('proto.clarifai.api.ListCloudProvidersRequest', null, global);
|
|
149
157
|
goog.exportSymbol('proto.clarifai.api.ListCloudRegionsRequest', null, global);
|
|
@@ -216,6 +224,8 @@ goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global);
|
|
|
216
224
|
goog.exportSymbol('proto.clarifai.api.MultiAnnotationTrackResponse', null, global);
|
|
217
225
|
goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global);
|
|
218
226
|
goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
|
|
227
|
+
goog.exportSymbol('proto.clarifai.api.MultiArtifactResponse', null, global);
|
|
228
|
+
goog.exportSymbol('proto.clarifai.api.MultiArtifactVersionResponse', null, global);
|
|
219
229
|
goog.exportSymbol('proto.clarifai.api.MultiAuditLogEntryResponse', null, global);
|
|
220
230
|
goog.exportSymbol('proto.clarifai.api.MultiBulkOperationsResponse', null, global);
|
|
221
231
|
goog.exportSymbol('proto.clarifai.api.MultiCloudProviderResponse', null, global);
|
|
@@ -341,6 +351,11 @@ goog.exportSymbol('proto.clarifai.api.PostAnnotationsSearchesRequest', null, glo
|
|
|
341
351
|
goog.exportSymbol('proto.clarifai.api.PostAppDuplicationsRequest', null, global);
|
|
342
352
|
goog.exportSymbol('proto.clarifai.api.PostAppsRequest', null, global);
|
|
343
353
|
goog.exportSymbol('proto.clarifai.api.PostAppsSearchesRequest', null, global);
|
|
354
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadConfig', null, global);
|
|
355
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadRequest', null, global);
|
|
356
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase', null, global);
|
|
357
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactVersionsUploadResponse', null, global);
|
|
358
|
+
goog.exportSymbol('proto.clarifai.api.PostArtifactsRequest', null, global);
|
|
344
359
|
goog.exportSymbol('proto.clarifai.api.PostAuditLogSearchesRequest', null, global);
|
|
345
360
|
goog.exportSymbol('proto.clarifai.api.PostBulkOperationsRequest', null, global);
|
|
346
361
|
goog.exportSymbol('proto.clarifai.api.PostCollaboratorsRequest', null, global);
|
|
@@ -427,6 +442,8 @@ goog.exportSymbol('proto.clarifai.api.SingleAnnotationFilterResponse', null, glo
|
|
|
427
442
|
goog.exportSymbol('proto.clarifai.api.SingleAnnotationResponse', null, global);
|
|
428
443
|
goog.exportSymbol('proto.clarifai.api.SingleAppDuplicationResponse', null, global);
|
|
429
444
|
goog.exportSymbol('proto.clarifai.api.SingleAppResponse', null, global);
|
|
445
|
+
goog.exportSymbol('proto.clarifai.api.SingleArtifactResponse', null, global);
|
|
446
|
+
goog.exportSymbol('proto.clarifai.api.SingleArtifactVersionResponse', null, global);
|
|
430
447
|
goog.exportSymbol('proto.clarifai.api.SingleBulkOperationsResponse', null, global);
|
|
431
448
|
goog.exportSymbol('proto.clarifai.api.SingleCollectorResponse', null, global);
|
|
432
449
|
goog.exportSymbol('proto.clarifai.api.SingleComputeClusterResponse', null, global);
|
|
@@ -472,6 +489,7 @@ goog.exportSymbol('proto.clarifai.api.SingleWorkflowVersionEvaluationResponse',
|
|
|
472
489
|
goog.exportSymbol('proto.clarifai.api.SingleWorkflowVersionResponse', null, global);
|
|
473
490
|
goog.exportSymbol('proto.clarifai.api.StreamInputsRequest', null, global);
|
|
474
491
|
goog.exportSymbol('proto.clarifai.api.StreamLogEntriesRequest', null, global);
|
|
492
|
+
goog.exportSymbol('proto.clarifai.api.StreamTrackAnnotationsSearchesRequest', null, global);
|
|
475
493
|
goog.exportSymbol('proto.clarifai.api.SyncStateRequest', null, global);
|
|
476
494
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionPublishRequest', null, global);
|
|
477
495
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionUnPublishRequest', null, global);
|
|
@@ -559,6 +577,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
559
577
|
*/
|
|
560
578
|
proto.clarifai.api.PostTrackAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.PostTrackAnnotationsSearchesRequest';
|
|
561
579
|
}
|
|
580
|
+
/**
|
|
581
|
+
* Generated by JsPbCodeGenerator.
|
|
582
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
583
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
584
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
585
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
586
|
+
* valid.
|
|
587
|
+
* @extends {jspb.Message}
|
|
588
|
+
* @constructor
|
|
589
|
+
*/
|
|
590
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest = function(opt_data) {
|
|
591
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
592
|
+
};
|
|
593
|
+
goog.inherits(proto.clarifai.api.StreamTrackAnnotationsSearchesRequest, jspb.Message);
|
|
594
|
+
if (goog.DEBUG && !COMPILED) {
|
|
595
|
+
/**
|
|
596
|
+
* @public
|
|
597
|
+
* @override
|
|
598
|
+
*/
|
|
599
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.StreamTrackAnnotationsSearchesRequest';
|
|
600
|
+
}
|
|
562
601
|
/**
|
|
563
602
|
* Generated by JsPbCodeGenerator.
|
|
564
603
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9064,6 +9103,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
9064
9103
|
*/
|
|
9065
9104
|
proto.clarifai.api.SinglePipelineStepVersionResponse.displayName = 'proto.clarifai.api.SinglePipelineStepVersionResponse';
|
|
9066
9105
|
}
|
|
9106
|
+
/**
|
|
9107
|
+
* Generated by JsPbCodeGenerator.
|
|
9108
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9109
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9110
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9111
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9112
|
+
* valid.
|
|
9113
|
+
* @extends {jspb.Message}
|
|
9114
|
+
* @constructor
|
|
9115
|
+
*/
|
|
9116
|
+
proto.clarifai.api.DeletePipelineStepsRequest = function(opt_data) {
|
|
9117
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeletePipelineStepsRequest.repeatedFields_, null);
|
|
9118
|
+
};
|
|
9119
|
+
goog.inherits(proto.clarifai.api.DeletePipelineStepsRequest, jspb.Message);
|
|
9120
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9121
|
+
/**
|
|
9122
|
+
* @public
|
|
9123
|
+
* @override
|
|
9124
|
+
*/
|
|
9125
|
+
proto.clarifai.api.DeletePipelineStepsRequest.displayName = 'proto.clarifai.api.DeletePipelineStepsRequest';
|
|
9126
|
+
}
|
|
9127
|
+
/**
|
|
9128
|
+
* Generated by JsPbCodeGenerator.
|
|
9129
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9130
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9131
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9132
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9133
|
+
* valid.
|
|
9134
|
+
* @extends {jspb.Message}
|
|
9135
|
+
* @constructor
|
|
9136
|
+
*/
|
|
9137
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest = function(opt_data) {
|
|
9138
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeletePipelineStepVersionsRequest.repeatedFields_, null);
|
|
9139
|
+
};
|
|
9140
|
+
goog.inherits(proto.clarifai.api.DeletePipelineStepVersionsRequest, jspb.Message);
|
|
9141
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9142
|
+
/**
|
|
9143
|
+
* @public
|
|
9144
|
+
* @override
|
|
9145
|
+
*/
|
|
9146
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.displayName = 'proto.clarifai.api.DeletePipelineStepVersionsRequest';
|
|
9147
|
+
}
|
|
9067
9148
|
/**
|
|
9068
9149
|
* Generated by JsPbCodeGenerator.
|
|
9069
9150
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9295,6 +9376,300 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
9295
9376
|
*/
|
|
9296
9377
|
proto.clarifai.api.MultiMetricLabelsResponse.displayName = 'proto.clarifai.api.MultiMetricLabelsResponse';
|
|
9297
9378
|
}
|
|
9379
|
+
/**
|
|
9380
|
+
* Generated by JsPbCodeGenerator.
|
|
9381
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9382
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9383
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9384
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9385
|
+
* valid.
|
|
9386
|
+
* @extends {jspb.Message}
|
|
9387
|
+
* @constructor
|
|
9388
|
+
*/
|
|
9389
|
+
proto.clarifai.api.PostArtifactsRequest = function(opt_data) {
|
|
9390
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostArtifactsRequest.repeatedFields_, null);
|
|
9391
|
+
};
|
|
9392
|
+
goog.inherits(proto.clarifai.api.PostArtifactsRequest, jspb.Message);
|
|
9393
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9394
|
+
/**
|
|
9395
|
+
* @public
|
|
9396
|
+
* @override
|
|
9397
|
+
*/
|
|
9398
|
+
proto.clarifai.api.PostArtifactsRequest.displayName = 'proto.clarifai.api.PostArtifactsRequest';
|
|
9399
|
+
}
|
|
9400
|
+
/**
|
|
9401
|
+
* Generated by JsPbCodeGenerator.
|
|
9402
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9403
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9404
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9405
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9406
|
+
* valid.
|
|
9407
|
+
* @extends {jspb.Message}
|
|
9408
|
+
* @constructor
|
|
9409
|
+
*/
|
|
9410
|
+
proto.clarifai.api.MultiArtifactResponse = function(opt_data) {
|
|
9411
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiArtifactResponse.repeatedFields_, null);
|
|
9412
|
+
};
|
|
9413
|
+
goog.inherits(proto.clarifai.api.MultiArtifactResponse, jspb.Message);
|
|
9414
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9415
|
+
/**
|
|
9416
|
+
* @public
|
|
9417
|
+
* @override
|
|
9418
|
+
*/
|
|
9419
|
+
proto.clarifai.api.MultiArtifactResponse.displayName = 'proto.clarifai.api.MultiArtifactResponse';
|
|
9420
|
+
}
|
|
9421
|
+
/**
|
|
9422
|
+
* Generated by JsPbCodeGenerator.
|
|
9423
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9424
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9425
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9426
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9427
|
+
* valid.
|
|
9428
|
+
* @extends {jspb.Message}
|
|
9429
|
+
* @constructor
|
|
9430
|
+
*/
|
|
9431
|
+
proto.clarifai.api.ListArtifactsRequest = function(opt_data) {
|
|
9432
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9433
|
+
};
|
|
9434
|
+
goog.inherits(proto.clarifai.api.ListArtifactsRequest, jspb.Message);
|
|
9435
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9436
|
+
/**
|
|
9437
|
+
* @public
|
|
9438
|
+
* @override
|
|
9439
|
+
*/
|
|
9440
|
+
proto.clarifai.api.ListArtifactsRequest.displayName = 'proto.clarifai.api.ListArtifactsRequest';
|
|
9441
|
+
}
|
|
9442
|
+
/**
|
|
9443
|
+
* Generated by JsPbCodeGenerator.
|
|
9444
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9445
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9446
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9447
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9448
|
+
* valid.
|
|
9449
|
+
* @extends {jspb.Message}
|
|
9450
|
+
* @constructor
|
|
9451
|
+
*/
|
|
9452
|
+
proto.clarifai.api.GetArtifactRequest = function(opt_data) {
|
|
9453
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9454
|
+
};
|
|
9455
|
+
goog.inherits(proto.clarifai.api.GetArtifactRequest, jspb.Message);
|
|
9456
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9457
|
+
/**
|
|
9458
|
+
* @public
|
|
9459
|
+
* @override
|
|
9460
|
+
*/
|
|
9461
|
+
proto.clarifai.api.GetArtifactRequest.displayName = 'proto.clarifai.api.GetArtifactRequest';
|
|
9462
|
+
}
|
|
9463
|
+
/**
|
|
9464
|
+
* Generated by JsPbCodeGenerator.
|
|
9465
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9466
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9467
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9468
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9469
|
+
* valid.
|
|
9470
|
+
* @extends {jspb.Message}
|
|
9471
|
+
* @constructor
|
|
9472
|
+
*/
|
|
9473
|
+
proto.clarifai.api.SingleArtifactResponse = function(opt_data) {
|
|
9474
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9475
|
+
};
|
|
9476
|
+
goog.inherits(proto.clarifai.api.SingleArtifactResponse, jspb.Message);
|
|
9477
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9478
|
+
/**
|
|
9479
|
+
* @public
|
|
9480
|
+
* @override
|
|
9481
|
+
*/
|
|
9482
|
+
proto.clarifai.api.SingleArtifactResponse.displayName = 'proto.clarifai.api.SingleArtifactResponse';
|
|
9483
|
+
}
|
|
9484
|
+
/**
|
|
9485
|
+
* Generated by JsPbCodeGenerator.
|
|
9486
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9487
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9488
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9489
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9490
|
+
* valid.
|
|
9491
|
+
* @extends {jspb.Message}
|
|
9492
|
+
* @constructor
|
|
9493
|
+
*/
|
|
9494
|
+
proto.clarifai.api.DeleteArtifactRequest = function(opt_data) {
|
|
9495
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9496
|
+
};
|
|
9497
|
+
goog.inherits(proto.clarifai.api.DeleteArtifactRequest, jspb.Message);
|
|
9498
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9499
|
+
/**
|
|
9500
|
+
* @public
|
|
9501
|
+
* @override
|
|
9502
|
+
*/
|
|
9503
|
+
proto.clarifai.api.DeleteArtifactRequest.displayName = 'proto.clarifai.api.DeleteArtifactRequest';
|
|
9504
|
+
}
|
|
9505
|
+
/**
|
|
9506
|
+
* Generated by JsPbCodeGenerator.
|
|
9507
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9508
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9509
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9510
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9511
|
+
* valid.
|
|
9512
|
+
* @extends {jspb.Message}
|
|
9513
|
+
* @constructor
|
|
9514
|
+
*/
|
|
9515
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest = function(opt_data) {
|
|
9516
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_);
|
|
9517
|
+
};
|
|
9518
|
+
goog.inherits(proto.clarifai.api.PostArtifactVersionsUploadRequest, jspb.Message);
|
|
9519
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9520
|
+
/**
|
|
9521
|
+
* @public
|
|
9522
|
+
* @override
|
|
9523
|
+
*/
|
|
9524
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.displayName = 'proto.clarifai.api.PostArtifactVersionsUploadRequest';
|
|
9525
|
+
}
|
|
9526
|
+
/**
|
|
9527
|
+
* Generated by JsPbCodeGenerator.
|
|
9528
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9529
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9530
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9531
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9532
|
+
* valid.
|
|
9533
|
+
* @extends {jspb.Message}
|
|
9534
|
+
* @constructor
|
|
9535
|
+
*/
|
|
9536
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse = function(opt_data) {
|
|
9537
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9538
|
+
};
|
|
9539
|
+
goog.inherits(proto.clarifai.api.PostArtifactVersionsUploadResponse, jspb.Message);
|
|
9540
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9541
|
+
/**
|
|
9542
|
+
* @public
|
|
9543
|
+
* @override
|
|
9544
|
+
*/
|
|
9545
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.displayName = 'proto.clarifai.api.PostArtifactVersionsUploadResponse';
|
|
9546
|
+
}
|
|
9547
|
+
/**
|
|
9548
|
+
* Generated by JsPbCodeGenerator.
|
|
9549
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9550
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9551
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9552
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9553
|
+
* valid.
|
|
9554
|
+
* @extends {jspb.Message}
|
|
9555
|
+
* @constructor
|
|
9556
|
+
*/
|
|
9557
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig = function(opt_data) {
|
|
9558
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9559
|
+
};
|
|
9560
|
+
goog.inherits(proto.clarifai.api.PostArtifactVersionsUploadConfig, jspb.Message);
|
|
9561
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9562
|
+
/**
|
|
9563
|
+
* @public
|
|
9564
|
+
* @override
|
|
9565
|
+
*/
|
|
9566
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.displayName = 'proto.clarifai.api.PostArtifactVersionsUploadConfig';
|
|
9567
|
+
}
|
|
9568
|
+
/**
|
|
9569
|
+
* Generated by JsPbCodeGenerator.
|
|
9570
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9571
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9572
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9573
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9574
|
+
* valid.
|
|
9575
|
+
* @extends {jspb.Message}
|
|
9576
|
+
* @constructor
|
|
9577
|
+
*/
|
|
9578
|
+
proto.clarifai.api.ListArtifactVersionsRequest = function(opt_data) {
|
|
9579
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9580
|
+
};
|
|
9581
|
+
goog.inherits(proto.clarifai.api.ListArtifactVersionsRequest, jspb.Message);
|
|
9582
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9583
|
+
/**
|
|
9584
|
+
* @public
|
|
9585
|
+
* @override
|
|
9586
|
+
*/
|
|
9587
|
+
proto.clarifai.api.ListArtifactVersionsRequest.displayName = 'proto.clarifai.api.ListArtifactVersionsRequest';
|
|
9588
|
+
}
|
|
9589
|
+
/**
|
|
9590
|
+
* Generated by JsPbCodeGenerator.
|
|
9591
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9592
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9593
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9594
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9595
|
+
* valid.
|
|
9596
|
+
* @extends {jspb.Message}
|
|
9597
|
+
* @constructor
|
|
9598
|
+
*/
|
|
9599
|
+
proto.clarifai.api.MultiArtifactVersionResponse = function(opt_data) {
|
|
9600
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiArtifactVersionResponse.repeatedFields_, null);
|
|
9601
|
+
};
|
|
9602
|
+
goog.inherits(proto.clarifai.api.MultiArtifactVersionResponse, jspb.Message);
|
|
9603
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9604
|
+
/**
|
|
9605
|
+
* @public
|
|
9606
|
+
* @override
|
|
9607
|
+
*/
|
|
9608
|
+
proto.clarifai.api.MultiArtifactVersionResponse.displayName = 'proto.clarifai.api.MultiArtifactVersionResponse';
|
|
9609
|
+
}
|
|
9610
|
+
/**
|
|
9611
|
+
* Generated by JsPbCodeGenerator.
|
|
9612
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9613
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9614
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9615
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9616
|
+
* valid.
|
|
9617
|
+
* @extends {jspb.Message}
|
|
9618
|
+
* @constructor
|
|
9619
|
+
*/
|
|
9620
|
+
proto.clarifai.api.GetArtifactVersionRequest = function(opt_data) {
|
|
9621
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9622
|
+
};
|
|
9623
|
+
goog.inherits(proto.clarifai.api.GetArtifactVersionRequest, jspb.Message);
|
|
9624
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9625
|
+
/**
|
|
9626
|
+
* @public
|
|
9627
|
+
* @override
|
|
9628
|
+
*/
|
|
9629
|
+
proto.clarifai.api.GetArtifactVersionRequest.displayName = 'proto.clarifai.api.GetArtifactVersionRequest';
|
|
9630
|
+
}
|
|
9631
|
+
/**
|
|
9632
|
+
* Generated by JsPbCodeGenerator.
|
|
9633
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9634
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9635
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9636
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9637
|
+
* valid.
|
|
9638
|
+
* @extends {jspb.Message}
|
|
9639
|
+
* @constructor
|
|
9640
|
+
*/
|
|
9641
|
+
proto.clarifai.api.SingleArtifactVersionResponse = function(opt_data) {
|
|
9642
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9643
|
+
};
|
|
9644
|
+
goog.inherits(proto.clarifai.api.SingleArtifactVersionResponse, jspb.Message);
|
|
9645
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9646
|
+
/**
|
|
9647
|
+
* @public
|
|
9648
|
+
* @override
|
|
9649
|
+
*/
|
|
9650
|
+
proto.clarifai.api.SingleArtifactVersionResponse.displayName = 'proto.clarifai.api.SingleArtifactVersionResponse';
|
|
9651
|
+
}
|
|
9652
|
+
/**
|
|
9653
|
+
* Generated by JsPbCodeGenerator.
|
|
9654
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9655
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9656
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9657
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9658
|
+
* valid.
|
|
9659
|
+
* @extends {jspb.Message}
|
|
9660
|
+
* @constructor
|
|
9661
|
+
*/
|
|
9662
|
+
proto.clarifai.api.DeleteArtifactVersionRequest = function(opt_data) {
|
|
9663
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9664
|
+
};
|
|
9665
|
+
goog.inherits(proto.clarifai.api.DeleteArtifactVersionRequest, jspb.Message);
|
|
9666
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9667
|
+
/**
|
|
9668
|
+
* @public
|
|
9669
|
+
* @override
|
|
9670
|
+
*/
|
|
9671
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.displayName = 'proto.clarifai.api.DeleteArtifactVersionRequest';
|
|
9672
|
+
}
|
|
9298
9673
|
|
|
9299
9674
|
|
|
9300
9675
|
|
|
@@ -10685,6 +11060,418 @@ proto.clarifai.api.PostTrackAnnotationsSearchesRequest.prototype.hasWorker = fun
|
|
|
10685
11060
|
|
|
10686
11061
|
|
|
10687
11062
|
|
|
11063
|
+
|
|
11064
|
+
|
|
11065
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11066
|
+
/**
|
|
11067
|
+
* Creates an object representation of this proto.
|
|
11068
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11069
|
+
* Optional fields that are not set will be set to undefined.
|
|
11070
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11071
|
+
* For the list of reserved names please see:
|
|
11072
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11073
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11074
|
+
* JSPB instance for transitional soy proto support:
|
|
11075
|
+
* http://goto/soy-param-migration
|
|
11076
|
+
* @return {!Object}
|
|
11077
|
+
*/
|
|
11078
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
11079
|
+
return proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.toObject(opt_includeInstance, this);
|
|
11080
|
+
};
|
|
11081
|
+
|
|
11082
|
+
|
|
11083
|
+
/**
|
|
11084
|
+
* Static version of the {@see toObject} method.
|
|
11085
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11086
|
+
* the JSPB instance for transitional soy proto support:
|
|
11087
|
+
* http://goto/soy-param-migration
|
|
11088
|
+
* @param {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} msg The msg instance to transform.
|
|
11089
|
+
* @return {!Object}
|
|
11090
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11091
|
+
*/
|
|
11092
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.toObject = function(includeInstance, msg) {
|
|
11093
|
+
var f, obj = {
|
|
11094
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11095
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
11096
|
+
trackId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11097
|
+
frameNumberStart: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
11098
|
+
frameTimeStart: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
11099
|
+
annotationType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
11100
|
+
maxFrames: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
11101
|
+
maxDuration: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
11102
|
+
worker: (f = msg.getWorker()) && proto_clarifai_api_resources_pb.Worker.toObject(includeInstance, f)
|
|
11103
|
+
};
|
|
11104
|
+
|
|
11105
|
+
if (includeInstance) {
|
|
11106
|
+
obj.$jspbMessageInstance = msg;
|
|
11107
|
+
}
|
|
11108
|
+
return obj;
|
|
11109
|
+
};
|
|
11110
|
+
}
|
|
11111
|
+
|
|
11112
|
+
|
|
11113
|
+
/**
|
|
11114
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11115
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11116
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest}
|
|
11117
|
+
*/
|
|
11118
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.deserializeBinary = function(bytes) {
|
|
11119
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11120
|
+
var msg = new proto.clarifai.api.StreamTrackAnnotationsSearchesRequest;
|
|
11121
|
+
return proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.deserializeBinaryFromReader(msg, reader);
|
|
11122
|
+
};
|
|
11123
|
+
|
|
11124
|
+
|
|
11125
|
+
/**
|
|
11126
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11127
|
+
* given reader into the given message object.
|
|
11128
|
+
* @param {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} msg The message object to deserialize into.
|
|
11129
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11130
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest}
|
|
11131
|
+
*/
|
|
11132
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
11133
|
+
while (reader.nextField()) {
|
|
11134
|
+
if (reader.isEndGroup()) {
|
|
11135
|
+
break;
|
|
11136
|
+
}
|
|
11137
|
+
var field = reader.getFieldNumber();
|
|
11138
|
+
switch (field) {
|
|
11139
|
+
case 1:
|
|
11140
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
11141
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
11142
|
+
msg.setUserAppId(value);
|
|
11143
|
+
break;
|
|
11144
|
+
case 2:
|
|
11145
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11146
|
+
msg.setInputId(value);
|
|
11147
|
+
break;
|
|
11148
|
+
case 3:
|
|
11149
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11150
|
+
msg.setTrackId(value);
|
|
11151
|
+
break;
|
|
11152
|
+
case 4:
|
|
11153
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11154
|
+
msg.setFrameNumberStart(value);
|
|
11155
|
+
break;
|
|
11156
|
+
case 5:
|
|
11157
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11158
|
+
msg.setFrameTimeStart(value);
|
|
11159
|
+
break;
|
|
11160
|
+
case 6:
|
|
11161
|
+
var value = /** @type {!proto.clarifai.api.AnnotationDataType} */ (reader.readEnum());
|
|
11162
|
+
msg.setAnnotationType(value);
|
|
11163
|
+
break;
|
|
11164
|
+
case 7:
|
|
11165
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11166
|
+
msg.setMaxFrames(value);
|
|
11167
|
+
break;
|
|
11168
|
+
case 8:
|
|
11169
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11170
|
+
msg.setMaxDuration(value);
|
|
11171
|
+
break;
|
|
11172
|
+
case 9:
|
|
11173
|
+
var value = new proto_clarifai_api_resources_pb.Worker;
|
|
11174
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
|
|
11175
|
+
msg.setWorker(value);
|
|
11176
|
+
break;
|
|
11177
|
+
default:
|
|
11178
|
+
reader.skipField();
|
|
11179
|
+
break;
|
|
11180
|
+
}
|
|
11181
|
+
}
|
|
11182
|
+
return msg;
|
|
11183
|
+
};
|
|
11184
|
+
|
|
11185
|
+
|
|
11186
|
+
/**
|
|
11187
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11188
|
+
* @return {!Uint8Array}
|
|
11189
|
+
*/
|
|
11190
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.serializeBinary = function() {
|
|
11191
|
+
var writer = new jspb.BinaryWriter();
|
|
11192
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.serializeBinaryToWriter(this, writer);
|
|
11193
|
+
return writer.getResultBuffer();
|
|
11194
|
+
};
|
|
11195
|
+
|
|
11196
|
+
|
|
11197
|
+
/**
|
|
11198
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11199
|
+
* format), writing to the given BinaryWriter.
|
|
11200
|
+
* @param {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} message
|
|
11201
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11202
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11203
|
+
*/
|
|
11204
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
11205
|
+
var f = undefined;
|
|
11206
|
+
f = message.getUserAppId();
|
|
11207
|
+
if (f != null) {
|
|
11208
|
+
writer.writeMessage(
|
|
11209
|
+
1,
|
|
11210
|
+
f,
|
|
11211
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
11212
|
+
);
|
|
11213
|
+
}
|
|
11214
|
+
f = message.getInputId();
|
|
11215
|
+
if (f.length > 0) {
|
|
11216
|
+
writer.writeString(
|
|
11217
|
+
2,
|
|
11218
|
+
f
|
|
11219
|
+
);
|
|
11220
|
+
}
|
|
11221
|
+
f = message.getTrackId();
|
|
11222
|
+
if (f.length > 0) {
|
|
11223
|
+
writer.writeString(
|
|
11224
|
+
3,
|
|
11225
|
+
f
|
|
11226
|
+
);
|
|
11227
|
+
}
|
|
11228
|
+
f = message.getFrameNumberStart();
|
|
11229
|
+
if (f !== 0) {
|
|
11230
|
+
writer.writeUint32(
|
|
11231
|
+
4,
|
|
11232
|
+
f
|
|
11233
|
+
);
|
|
11234
|
+
}
|
|
11235
|
+
f = message.getFrameTimeStart();
|
|
11236
|
+
if (f !== 0) {
|
|
11237
|
+
writer.writeUint32(
|
|
11238
|
+
5,
|
|
11239
|
+
f
|
|
11240
|
+
);
|
|
11241
|
+
}
|
|
11242
|
+
f = message.getAnnotationType();
|
|
11243
|
+
if (f !== 0.0) {
|
|
11244
|
+
writer.writeEnum(
|
|
11245
|
+
6,
|
|
11246
|
+
f
|
|
11247
|
+
);
|
|
11248
|
+
}
|
|
11249
|
+
f = message.getMaxFrames();
|
|
11250
|
+
if (f !== 0) {
|
|
11251
|
+
writer.writeUint32(
|
|
11252
|
+
7,
|
|
11253
|
+
f
|
|
11254
|
+
);
|
|
11255
|
+
}
|
|
11256
|
+
f = message.getMaxDuration();
|
|
11257
|
+
if (f !== 0) {
|
|
11258
|
+
writer.writeUint32(
|
|
11259
|
+
8,
|
|
11260
|
+
f
|
|
11261
|
+
);
|
|
11262
|
+
}
|
|
11263
|
+
f = message.getWorker();
|
|
11264
|
+
if (f != null) {
|
|
11265
|
+
writer.writeMessage(
|
|
11266
|
+
9,
|
|
11267
|
+
f,
|
|
11268
|
+
proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter
|
|
11269
|
+
);
|
|
11270
|
+
}
|
|
11271
|
+
};
|
|
11272
|
+
|
|
11273
|
+
|
|
11274
|
+
/**
|
|
11275
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
11276
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
11277
|
+
*/
|
|
11278
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getUserAppId = function() {
|
|
11279
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
11280
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
11281
|
+
};
|
|
11282
|
+
|
|
11283
|
+
|
|
11284
|
+
/**
|
|
11285
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
11286
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11287
|
+
*/
|
|
11288
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setUserAppId = function(value) {
|
|
11289
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
11290
|
+
};
|
|
11291
|
+
|
|
11292
|
+
|
|
11293
|
+
/**
|
|
11294
|
+
* Clears the message field making it undefined.
|
|
11295
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11296
|
+
*/
|
|
11297
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.clearUserAppId = function() {
|
|
11298
|
+
return this.setUserAppId(undefined);
|
|
11299
|
+
};
|
|
11300
|
+
|
|
11301
|
+
|
|
11302
|
+
/**
|
|
11303
|
+
* Returns whether this field is set.
|
|
11304
|
+
* @return {boolean}
|
|
11305
|
+
*/
|
|
11306
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.hasUserAppId = function() {
|
|
11307
|
+
return jspb.Message.getField(this, 1) != null;
|
|
11308
|
+
};
|
|
11309
|
+
|
|
11310
|
+
|
|
11311
|
+
/**
|
|
11312
|
+
* optional string input_id = 2;
|
|
11313
|
+
* @return {string}
|
|
11314
|
+
*/
|
|
11315
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getInputId = function() {
|
|
11316
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
11317
|
+
};
|
|
11318
|
+
|
|
11319
|
+
|
|
11320
|
+
/**
|
|
11321
|
+
* @param {string} value
|
|
11322
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11323
|
+
*/
|
|
11324
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setInputId = function(value) {
|
|
11325
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
11326
|
+
};
|
|
11327
|
+
|
|
11328
|
+
|
|
11329
|
+
/**
|
|
11330
|
+
* optional string track_id = 3;
|
|
11331
|
+
* @return {string}
|
|
11332
|
+
*/
|
|
11333
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getTrackId = function() {
|
|
11334
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11335
|
+
};
|
|
11336
|
+
|
|
11337
|
+
|
|
11338
|
+
/**
|
|
11339
|
+
* @param {string} value
|
|
11340
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11341
|
+
*/
|
|
11342
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setTrackId = function(value) {
|
|
11343
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
11344
|
+
};
|
|
11345
|
+
|
|
11346
|
+
|
|
11347
|
+
/**
|
|
11348
|
+
* optional uint32 frame_number_start = 4;
|
|
11349
|
+
* @return {number}
|
|
11350
|
+
*/
|
|
11351
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getFrameNumberStart = function() {
|
|
11352
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
11353
|
+
};
|
|
11354
|
+
|
|
11355
|
+
|
|
11356
|
+
/**
|
|
11357
|
+
* @param {number} value
|
|
11358
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11359
|
+
*/
|
|
11360
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setFrameNumberStart = function(value) {
|
|
11361
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
11362
|
+
};
|
|
11363
|
+
|
|
11364
|
+
|
|
11365
|
+
/**
|
|
11366
|
+
* optional uint32 frame_time_start = 5;
|
|
11367
|
+
* @return {number}
|
|
11368
|
+
*/
|
|
11369
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getFrameTimeStart = function() {
|
|
11370
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
11371
|
+
};
|
|
11372
|
+
|
|
11373
|
+
|
|
11374
|
+
/**
|
|
11375
|
+
* @param {number} value
|
|
11376
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11377
|
+
*/
|
|
11378
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setFrameTimeStart = function(value) {
|
|
11379
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
11380
|
+
};
|
|
11381
|
+
|
|
11382
|
+
|
|
11383
|
+
/**
|
|
11384
|
+
* optional AnnotationDataType annotation_type = 6;
|
|
11385
|
+
* @return {!proto.clarifai.api.AnnotationDataType}
|
|
11386
|
+
*/
|
|
11387
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getAnnotationType = function() {
|
|
11388
|
+
return /** @type {!proto.clarifai.api.AnnotationDataType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
11389
|
+
};
|
|
11390
|
+
|
|
11391
|
+
|
|
11392
|
+
/**
|
|
11393
|
+
* @param {!proto.clarifai.api.AnnotationDataType} value
|
|
11394
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11395
|
+
*/
|
|
11396
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setAnnotationType = function(value) {
|
|
11397
|
+
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
11398
|
+
};
|
|
11399
|
+
|
|
11400
|
+
|
|
11401
|
+
/**
|
|
11402
|
+
* optional uint32 max_frames = 7;
|
|
11403
|
+
* @return {number}
|
|
11404
|
+
*/
|
|
11405
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getMaxFrames = function() {
|
|
11406
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
11407
|
+
};
|
|
11408
|
+
|
|
11409
|
+
|
|
11410
|
+
/**
|
|
11411
|
+
* @param {number} value
|
|
11412
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11413
|
+
*/
|
|
11414
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setMaxFrames = function(value) {
|
|
11415
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
11416
|
+
};
|
|
11417
|
+
|
|
11418
|
+
|
|
11419
|
+
/**
|
|
11420
|
+
* optional uint32 max_duration = 8;
|
|
11421
|
+
* @return {number}
|
|
11422
|
+
*/
|
|
11423
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getMaxDuration = function() {
|
|
11424
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
11425
|
+
};
|
|
11426
|
+
|
|
11427
|
+
|
|
11428
|
+
/**
|
|
11429
|
+
* @param {number} value
|
|
11430
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11431
|
+
*/
|
|
11432
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setMaxDuration = function(value) {
|
|
11433
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
11434
|
+
};
|
|
11435
|
+
|
|
11436
|
+
|
|
11437
|
+
/**
|
|
11438
|
+
* optional Worker worker = 9;
|
|
11439
|
+
* @return {?proto.clarifai.api.Worker}
|
|
11440
|
+
*/
|
|
11441
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.getWorker = function() {
|
|
11442
|
+
return /** @type{?proto.clarifai.api.Worker} */ (
|
|
11443
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Worker, 9));
|
|
11444
|
+
};
|
|
11445
|
+
|
|
11446
|
+
|
|
11447
|
+
/**
|
|
11448
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
11449
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11450
|
+
*/
|
|
11451
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.setWorker = function(value) {
|
|
11452
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
11453
|
+
};
|
|
11454
|
+
|
|
11455
|
+
|
|
11456
|
+
/**
|
|
11457
|
+
* Clears the message field making it undefined.
|
|
11458
|
+
* @return {!proto.clarifai.api.StreamTrackAnnotationsSearchesRequest} returns this
|
|
11459
|
+
*/
|
|
11460
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.clearWorker = function() {
|
|
11461
|
+
return this.setWorker(undefined);
|
|
11462
|
+
};
|
|
11463
|
+
|
|
11464
|
+
|
|
11465
|
+
/**
|
|
11466
|
+
* Returns whether this field is set.
|
|
11467
|
+
* @return {boolean}
|
|
11468
|
+
*/
|
|
11469
|
+
proto.clarifai.api.StreamTrackAnnotationsSearchesRequest.prototype.hasWorker = function() {
|
|
11470
|
+
return jspb.Message.getField(this, 9) != null;
|
|
11471
|
+
};
|
|
11472
|
+
|
|
11473
|
+
|
|
11474
|
+
|
|
10688
11475
|
/**
|
|
10689
11476
|
* List of repeated fields within this message type.
|
|
10690
11477
|
* @private {!Array<number>}
|
|
@@ -108714,6 +109501,450 @@ proto.clarifai.api.SinglePipelineStepVersionResponse.prototype.hasPipelineStepVe
|
|
|
108714
109501
|
|
|
108715
109502
|
|
|
108716
109503
|
|
|
109504
|
+
/**
|
|
109505
|
+
* List of repeated fields within this message type.
|
|
109506
|
+
* @private {!Array<number>}
|
|
109507
|
+
* @const
|
|
109508
|
+
*/
|
|
109509
|
+
proto.clarifai.api.DeletePipelineStepsRequest.repeatedFields_ = [2];
|
|
109510
|
+
|
|
109511
|
+
|
|
109512
|
+
|
|
109513
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
109514
|
+
/**
|
|
109515
|
+
* Creates an object representation of this proto.
|
|
109516
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
109517
|
+
* Optional fields that are not set will be set to undefined.
|
|
109518
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
109519
|
+
* For the list of reserved names please see:
|
|
109520
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
109521
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
109522
|
+
* JSPB instance for transitional soy proto support:
|
|
109523
|
+
* http://goto/soy-param-migration
|
|
109524
|
+
* @return {!Object}
|
|
109525
|
+
*/
|
|
109526
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
109527
|
+
return proto.clarifai.api.DeletePipelineStepsRequest.toObject(opt_includeInstance, this);
|
|
109528
|
+
};
|
|
109529
|
+
|
|
109530
|
+
|
|
109531
|
+
/**
|
|
109532
|
+
* Static version of the {@see toObject} method.
|
|
109533
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
109534
|
+
* the JSPB instance for transitional soy proto support:
|
|
109535
|
+
* http://goto/soy-param-migration
|
|
109536
|
+
* @param {!proto.clarifai.api.DeletePipelineStepsRequest} msg The msg instance to transform.
|
|
109537
|
+
* @return {!Object}
|
|
109538
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
109539
|
+
*/
|
|
109540
|
+
proto.clarifai.api.DeletePipelineStepsRequest.toObject = function(includeInstance, msg) {
|
|
109541
|
+
var f, obj = {
|
|
109542
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
109543
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
109544
|
+
};
|
|
109545
|
+
|
|
109546
|
+
if (includeInstance) {
|
|
109547
|
+
obj.$jspbMessageInstance = msg;
|
|
109548
|
+
}
|
|
109549
|
+
return obj;
|
|
109550
|
+
};
|
|
109551
|
+
}
|
|
109552
|
+
|
|
109553
|
+
|
|
109554
|
+
/**
|
|
109555
|
+
* Deserializes binary data (in protobuf wire format).
|
|
109556
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
109557
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest}
|
|
109558
|
+
*/
|
|
109559
|
+
proto.clarifai.api.DeletePipelineStepsRequest.deserializeBinary = function(bytes) {
|
|
109560
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
109561
|
+
var msg = new proto.clarifai.api.DeletePipelineStepsRequest;
|
|
109562
|
+
return proto.clarifai.api.DeletePipelineStepsRequest.deserializeBinaryFromReader(msg, reader);
|
|
109563
|
+
};
|
|
109564
|
+
|
|
109565
|
+
|
|
109566
|
+
/**
|
|
109567
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
109568
|
+
* given reader into the given message object.
|
|
109569
|
+
* @param {!proto.clarifai.api.DeletePipelineStepsRequest} msg The message object to deserialize into.
|
|
109570
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
109571
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest}
|
|
109572
|
+
*/
|
|
109573
|
+
proto.clarifai.api.DeletePipelineStepsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
109574
|
+
while (reader.nextField()) {
|
|
109575
|
+
if (reader.isEndGroup()) {
|
|
109576
|
+
break;
|
|
109577
|
+
}
|
|
109578
|
+
var field = reader.getFieldNumber();
|
|
109579
|
+
switch (field) {
|
|
109580
|
+
case 1:
|
|
109581
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
109582
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
109583
|
+
msg.setUserAppId(value);
|
|
109584
|
+
break;
|
|
109585
|
+
case 2:
|
|
109586
|
+
var value = /** @type {string} */ (reader.readString());
|
|
109587
|
+
msg.addIds(value);
|
|
109588
|
+
break;
|
|
109589
|
+
default:
|
|
109590
|
+
reader.skipField();
|
|
109591
|
+
break;
|
|
109592
|
+
}
|
|
109593
|
+
}
|
|
109594
|
+
return msg;
|
|
109595
|
+
};
|
|
109596
|
+
|
|
109597
|
+
|
|
109598
|
+
/**
|
|
109599
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
109600
|
+
* @return {!Uint8Array}
|
|
109601
|
+
*/
|
|
109602
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.serializeBinary = function() {
|
|
109603
|
+
var writer = new jspb.BinaryWriter();
|
|
109604
|
+
proto.clarifai.api.DeletePipelineStepsRequest.serializeBinaryToWriter(this, writer);
|
|
109605
|
+
return writer.getResultBuffer();
|
|
109606
|
+
};
|
|
109607
|
+
|
|
109608
|
+
|
|
109609
|
+
/**
|
|
109610
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
109611
|
+
* format), writing to the given BinaryWriter.
|
|
109612
|
+
* @param {!proto.clarifai.api.DeletePipelineStepsRequest} message
|
|
109613
|
+
* @param {!jspb.BinaryWriter} writer
|
|
109614
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
109615
|
+
*/
|
|
109616
|
+
proto.clarifai.api.DeletePipelineStepsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
109617
|
+
var f = undefined;
|
|
109618
|
+
f = message.getUserAppId();
|
|
109619
|
+
if (f != null) {
|
|
109620
|
+
writer.writeMessage(
|
|
109621
|
+
1,
|
|
109622
|
+
f,
|
|
109623
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
109624
|
+
);
|
|
109625
|
+
}
|
|
109626
|
+
f = message.getIdsList();
|
|
109627
|
+
if (f.length > 0) {
|
|
109628
|
+
writer.writeRepeatedString(
|
|
109629
|
+
2,
|
|
109630
|
+
f
|
|
109631
|
+
);
|
|
109632
|
+
}
|
|
109633
|
+
};
|
|
109634
|
+
|
|
109635
|
+
|
|
109636
|
+
/**
|
|
109637
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
109638
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
109639
|
+
*/
|
|
109640
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.getUserAppId = function() {
|
|
109641
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
109642
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
109643
|
+
};
|
|
109644
|
+
|
|
109645
|
+
|
|
109646
|
+
/**
|
|
109647
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
109648
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
109649
|
+
*/
|
|
109650
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.setUserAppId = function(value) {
|
|
109651
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
109652
|
+
};
|
|
109653
|
+
|
|
109654
|
+
|
|
109655
|
+
/**
|
|
109656
|
+
* Clears the message field making it undefined.
|
|
109657
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
109658
|
+
*/
|
|
109659
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.clearUserAppId = function() {
|
|
109660
|
+
return this.setUserAppId(undefined);
|
|
109661
|
+
};
|
|
109662
|
+
|
|
109663
|
+
|
|
109664
|
+
/**
|
|
109665
|
+
* Returns whether this field is set.
|
|
109666
|
+
* @return {boolean}
|
|
109667
|
+
*/
|
|
109668
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.hasUserAppId = function() {
|
|
109669
|
+
return jspb.Message.getField(this, 1) != null;
|
|
109670
|
+
};
|
|
109671
|
+
|
|
109672
|
+
|
|
109673
|
+
/**
|
|
109674
|
+
* repeated string ids = 2;
|
|
109675
|
+
* @return {!Array<string>}
|
|
109676
|
+
*/
|
|
109677
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.getIdsList = function() {
|
|
109678
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
109679
|
+
};
|
|
109680
|
+
|
|
109681
|
+
|
|
109682
|
+
/**
|
|
109683
|
+
* @param {!Array<string>} value
|
|
109684
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
109685
|
+
*/
|
|
109686
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.setIdsList = function(value) {
|
|
109687
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
109688
|
+
};
|
|
109689
|
+
|
|
109690
|
+
|
|
109691
|
+
/**
|
|
109692
|
+
* @param {string} value
|
|
109693
|
+
* @param {number=} opt_index
|
|
109694
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
109695
|
+
*/
|
|
109696
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.addIds = function(value, opt_index) {
|
|
109697
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
109698
|
+
};
|
|
109699
|
+
|
|
109700
|
+
|
|
109701
|
+
/**
|
|
109702
|
+
* Clears the list making it empty but non-null.
|
|
109703
|
+
* @return {!proto.clarifai.api.DeletePipelineStepsRequest} returns this
|
|
109704
|
+
*/
|
|
109705
|
+
proto.clarifai.api.DeletePipelineStepsRequest.prototype.clearIdsList = function() {
|
|
109706
|
+
return this.setIdsList([]);
|
|
109707
|
+
};
|
|
109708
|
+
|
|
109709
|
+
|
|
109710
|
+
|
|
109711
|
+
/**
|
|
109712
|
+
* List of repeated fields within this message type.
|
|
109713
|
+
* @private {!Array<number>}
|
|
109714
|
+
* @const
|
|
109715
|
+
*/
|
|
109716
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.repeatedFields_ = [3];
|
|
109717
|
+
|
|
109718
|
+
|
|
109719
|
+
|
|
109720
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
109721
|
+
/**
|
|
109722
|
+
* Creates an object representation of this proto.
|
|
109723
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
109724
|
+
* Optional fields that are not set will be set to undefined.
|
|
109725
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
109726
|
+
* For the list of reserved names please see:
|
|
109727
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
109728
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
109729
|
+
* JSPB instance for transitional soy proto support:
|
|
109730
|
+
* http://goto/soy-param-migration
|
|
109731
|
+
* @return {!Object}
|
|
109732
|
+
*/
|
|
109733
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
109734
|
+
return proto.clarifai.api.DeletePipelineStepVersionsRequest.toObject(opt_includeInstance, this);
|
|
109735
|
+
};
|
|
109736
|
+
|
|
109737
|
+
|
|
109738
|
+
/**
|
|
109739
|
+
* Static version of the {@see toObject} method.
|
|
109740
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
109741
|
+
* the JSPB instance for transitional soy proto support:
|
|
109742
|
+
* http://goto/soy-param-migration
|
|
109743
|
+
* @param {!proto.clarifai.api.DeletePipelineStepVersionsRequest} msg The msg instance to transform.
|
|
109744
|
+
* @return {!Object}
|
|
109745
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
109746
|
+
*/
|
|
109747
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.toObject = function(includeInstance, msg) {
|
|
109748
|
+
var f, obj = {
|
|
109749
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
109750
|
+
pipelineStepId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
109751
|
+
pipelineStepVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
109752
|
+
};
|
|
109753
|
+
|
|
109754
|
+
if (includeInstance) {
|
|
109755
|
+
obj.$jspbMessageInstance = msg;
|
|
109756
|
+
}
|
|
109757
|
+
return obj;
|
|
109758
|
+
};
|
|
109759
|
+
}
|
|
109760
|
+
|
|
109761
|
+
|
|
109762
|
+
/**
|
|
109763
|
+
* Deserializes binary data (in protobuf wire format).
|
|
109764
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
109765
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest}
|
|
109766
|
+
*/
|
|
109767
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.deserializeBinary = function(bytes) {
|
|
109768
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
109769
|
+
var msg = new proto.clarifai.api.DeletePipelineStepVersionsRequest;
|
|
109770
|
+
return proto.clarifai.api.DeletePipelineStepVersionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
109771
|
+
};
|
|
109772
|
+
|
|
109773
|
+
|
|
109774
|
+
/**
|
|
109775
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
109776
|
+
* given reader into the given message object.
|
|
109777
|
+
* @param {!proto.clarifai.api.DeletePipelineStepVersionsRequest} msg The message object to deserialize into.
|
|
109778
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
109779
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest}
|
|
109780
|
+
*/
|
|
109781
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
109782
|
+
while (reader.nextField()) {
|
|
109783
|
+
if (reader.isEndGroup()) {
|
|
109784
|
+
break;
|
|
109785
|
+
}
|
|
109786
|
+
var field = reader.getFieldNumber();
|
|
109787
|
+
switch (field) {
|
|
109788
|
+
case 1:
|
|
109789
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
109790
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
109791
|
+
msg.setUserAppId(value);
|
|
109792
|
+
break;
|
|
109793
|
+
case 2:
|
|
109794
|
+
var value = /** @type {string} */ (reader.readString());
|
|
109795
|
+
msg.setPipelineStepId(value);
|
|
109796
|
+
break;
|
|
109797
|
+
case 3:
|
|
109798
|
+
var value = /** @type {string} */ (reader.readString());
|
|
109799
|
+
msg.addPipelineStepVersionIds(value);
|
|
109800
|
+
break;
|
|
109801
|
+
default:
|
|
109802
|
+
reader.skipField();
|
|
109803
|
+
break;
|
|
109804
|
+
}
|
|
109805
|
+
}
|
|
109806
|
+
return msg;
|
|
109807
|
+
};
|
|
109808
|
+
|
|
109809
|
+
|
|
109810
|
+
/**
|
|
109811
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
109812
|
+
* @return {!Uint8Array}
|
|
109813
|
+
*/
|
|
109814
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.serializeBinary = function() {
|
|
109815
|
+
var writer = new jspb.BinaryWriter();
|
|
109816
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.serializeBinaryToWriter(this, writer);
|
|
109817
|
+
return writer.getResultBuffer();
|
|
109818
|
+
};
|
|
109819
|
+
|
|
109820
|
+
|
|
109821
|
+
/**
|
|
109822
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
109823
|
+
* format), writing to the given BinaryWriter.
|
|
109824
|
+
* @param {!proto.clarifai.api.DeletePipelineStepVersionsRequest} message
|
|
109825
|
+
* @param {!jspb.BinaryWriter} writer
|
|
109826
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
109827
|
+
*/
|
|
109828
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
109829
|
+
var f = undefined;
|
|
109830
|
+
f = message.getUserAppId();
|
|
109831
|
+
if (f != null) {
|
|
109832
|
+
writer.writeMessage(
|
|
109833
|
+
1,
|
|
109834
|
+
f,
|
|
109835
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
109836
|
+
);
|
|
109837
|
+
}
|
|
109838
|
+
f = message.getPipelineStepId();
|
|
109839
|
+
if (f.length > 0) {
|
|
109840
|
+
writer.writeString(
|
|
109841
|
+
2,
|
|
109842
|
+
f
|
|
109843
|
+
);
|
|
109844
|
+
}
|
|
109845
|
+
f = message.getPipelineStepVersionIdsList();
|
|
109846
|
+
if (f.length > 0) {
|
|
109847
|
+
writer.writeRepeatedString(
|
|
109848
|
+
3,
|
|
109849
|
+
f
|
|
109850
|
+
);
|
|
109851
|
+
}
|
|
109852
|
+
};
|
|
109853
|
+
|
|
109854
|
+
|
|
109855
|
+
/**
|
|
109856
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
109857
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
109858
|
+
*/
|
|
109859
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.getUserAppId = function() {
|
|
109860
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
109861
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
109862
|
+
};
|
|
109863
|
+
|
|
109864
|
+
|
|
109865
|
+
/**
|
|
109866
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
109867
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
109868
|
+
*/
|
|
109869
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.setUserAppId = function(value) {
|
|
109870
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
109871
|
+
};
|
|
109872
|
+
|
|
109873
|
+
|
|
109874
|
+
/**
|
|
109875
|
+
* Clears the message field making it undefined.
|
|
109876
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
109877
|
+
*/
|
|
109878
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.clearUserAppId = function() {
|
|
109879
|
+
return this.setUserAppId(undefined);
|
|
109880
|
+
};
|
|
109881
|
+
|
|
109882
|
+
|
|
109883
|
+
/**
|
|
109884
|
+
* Returns whether this field is set.
|
|
109885
|
+
* @return {boolean}
|
|
109886
|
+
*/
|
|
109887
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.hasUserAppId = function() {
|
|
109888
|
+
return jspb.Message.getField(this, 1) != null;
|
|
109889
|
+
};
|
|
109890
|
+
|
|
109891
|
+
|
|
109892
|
+
/**
|
|
109893
|
+
* optional string pipeline_step_id = 2;
|
|
109894
|
+
* @return {string}
|
|
109895
|
+
*/
|
|
109896
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.getPipelineStepId = function() {
|
|
109897
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
109898
|
+
};
|
|
109899
|
+
|
|
109900
|
+
|
|
109901
|
+
/**
|
|
109902
|
+
* @param {string} value
|
|
109903
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
109904
|
+
*/
|
|
109905
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.setPipelineStepId = function(value) {
|
|
109906
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
109907
|
+
};
|
|
109908
|
+
|
|
109909
|
+
|
|
109910
|
+
/**
|
|
109911
|
+
* repeated string pipeline_step_version_ids = 3;
|
|
109912
|
+
* @return {!Array<string>}
|
|
109913
|
+
*/
|
|
109914
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.getPipelineStepVersionIdsList = function() {
|
|
109915
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
109916
|
+
};
|
|
109917
|
+
|
|
109918
|
+
|
|
109919
|
+
/**
|
|
109920
|
+
* @param {!Array<string>} value
|
|
109921
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
109922
|
+
*/
|
|
109923
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.setPipelineStepVersionIdsList = function(value) {
|
|
109924
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
109925
|
+
};
|
|
109926
|
+
|
|
109927
|
+
|
|
109928
|
+
/**
|
|
109929
|
+
* @param {string} value
|
|
109930
|
+
* @param {number=} opt_index
|
|
109931
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
109932
|
+
*/
|
|
109933
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.addPipelineStepVersionIds = function(value, opt_index) {
|
|
109934
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
109935
|
+
};
|
|
109936
|
+
|
|
109937
|
+
|
|
109938
|
+
/**
|
|
109939
|
+
* Clears the list making it empty but non-null.
|
|
109940
|
+
* @return {!proto.clarifai.api.DeletePipelineStepVersionsRequest} returns this
|
|
109941
|
+
*/
|
|
109942
|
+
proto.clarifai.api.DeletePipelineStepVersionsRequest.prototype.clearPipelineStepVersionIdsList = function() {
|
|
109943
|
+
return this.setPipelineStepVersionIdsList([]);
|
|
109944
|
+
};
|
|
109945
|
+
|
|
109946
|
+
|
|
109947
|
+
|
|
108717
109948
|
|
|
108718
109949
|
|
|
108719
109950
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -111031,6 +112262,3010 @@ proto.clarifai.api.MultiMetricLabelsResponse.prototype.clearMetricTypeLabelsList
|
|
|
111031
112262
|
};
|
|
111032
112263
|
|
|
111033
112264
|
|
|
112265
|
+
|
|
112266
|
+
/**
|
|
112267
|
+
* List of repeated fields within this message type.
|
|
112268
|
+
* @private {!Array<number>}
|
|
112269
|
+
* @const
|
|
112270
|
+
*/
|
|
112271
|
+
proto.clarifai.api.PostArtifactsRequest.repeatedFields_ = [2];
|
|
112272
|
+
|
|
112273
|
+
|
|
112274
|
+
|
|
112275
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
112276
|
+
/**
|
|
112277
|
+
* Creates an object representation of this proto.
|
|
112278
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
112279
|
+
* Optional fields that are not set will be set to undefined.
|
|
112280
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
112281
|
+
* For the list of reserved names please see:
|
|
112282
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
112283
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
112284
|
+
* JSPB instance for transitional soy proto support:
|
|
112285
|
+
* http://goto/soy-param-migration
|
|
112286
|
+
* @return {!Object}
|
|
112287
|
+
*/
|
|
112288
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
112289
|
+
return proto.clarifai.api.PostArtifactsRequest.toObject(opt_includeInstance, this);
|
|
112290
|
+
};
|
|
112291
|
+
|
|
112292
|
+
|
|
112293
|
+
/**
|
|
112294
|
+
* Static version of the {@see toObject} method.
|
|
112295
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
112296
|
+
* the JSPB instance for transitional soy proto support:
|
|
112297
|
+
* http://goto/soy-param-migration
|
|
112298
|
+
* @param {!proto.clarifai.api.PostArtifactsRequest} msg The msg instance to transform.
|
|
112299
|
+
* @return {!Object}
|
|
112300
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
112301
|
+
*/
|
|
112302
|
+
proto.clarifai.api.PostArtifactsRequest.toObject = function(includeInstance, msg) {
|
|
112303
|
+
var f, obj = {
|
|
112304
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
112305
|
+
artifactsList: jspb.Message.toObjectList(msg.getArtifactsList(),
|
|
112306
|
+
proto_clarifai_api_resources_pb.Artifact.toObject, includeInstance)
|
|
112307
|
+
};
|
|
112308
|
+
|
|
112309
|
+
if (includeInstance) {
|
|
112310
|
+
obj.$jspbMessageInstance = msg;
|
|
112311
|
+
}
|
|
112312
|
+
return obj;
|
|
112313
|
+
};
|
|
112314
|
+
}
|
|
112315
|
+
|
|
112316
|
+
|
|
112317
|
+
/**
|
|
112318
|
+
* Deserializes binary data (in protobuf wire format).
|
|
112319
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
112320
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest}
|
|
112321
|
+
*/
|
|
112322
|
+
proto.clarifai.api.PostArtifactsRequest.deserializeBinary = function(bytes) {
|
|
112323
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
112324
|
+
var msg = new proto.clarifai.api.PostArtifactsRequest;
|
|
112325
|
+
return proto.clarifai.api.PostArtifactsRequest.deserializeBinaryFromReader(msg, reader);
|
|
112326
|
+
};
|
|
112327
|
+
|
|
112328
|
+
|
|
112329
|
+
/**
|
|
112330
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
112331
|
+
* given reader into the given message object.
|
|
112332
|
+
* @param {!proto.clarifai.api.PostArtifactsRequest} msg The message object to deserialize into.
|
|
112333
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
112334
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest}
|
|
112335
|
+
*/
|
|
112336
|
+
proto.clarifai.api.PostArtifactsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
112337
|
+
while (reader.nextField()) {
|
|
112338
|
+
if (reader.isEndGroup()) {
|
|
112339
|
+
break;
|
|
112340
|
+
}
|
|
112341
|
+
var field = reader.getFieldNumber();
|
|
112342
|
+
switch (field) {
|
|
112343
|
+
case 1:
|
|
112344
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
112345
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
112346
|
+
msg.setUserAppId(value);
|
|
112347
|
+
break;
|
|
112348
|
+
case 2:
|
|
112349
|
+
var value = new proto_clarifai_api_resources_pb.Artifact;
|
|
112350
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Artifact.deserializeBinaryFromReader);
|
|
112351
|
+
msg.addArtifacts(value);
|
|
112352
|
+
break;
|
|
112353
|
+
default:
|
|
112354
|
+
reader.skipField();
|
|
112355
|
+
break;
|
|
112356
|
+
}
|
|
112357
|
+
}
|
|
112358
|
+
return msg;
|
|
112359
|
+
};
|
|
112360
|
+
|
|
112361
|
+
|
|
112362
|
+
/**
|
|
112363
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
112364
|
+
* @return {!Uint8Array}
|
|
112365
|
+
*/
|
|
112366
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.serializeBinary = function() {
|
|
112367
|
+
var writer = new jspb.BinaryWriter();
|
|
112368
|
+
proto.clarifai.api.PostArtifactsRequest.serializeBinaryToWriter(this, writer);
|
|
112369
|
+
return writer.getResultBuffer();
|
|
112370
|
+
};
|
|
112371
|
+
|
|
112372
|
+
|
|
112373
|
+
/**
|
|
112374
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
112375
|
+
* format), writing to the given BinaryWriter.
|
|
112376
|
+
* @param {!proto.clarifai.api.PostArtifactsRequest} message
|
|
112377
|
+
* @param {!jspb.BinaryWriter} writer
|
|
112378
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
112379
|
+
*/
|
|
112380
|
+
proto.clarifai.api.PostArtifactsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
112381
|
+
var f = undefined;
|
|
112382
|
+
f = message.getUserAppId();
|
|
112383
|
+
if (f != null) {
|
|
112384
|
+
writer.writeMessage(
|
|
112385
|
+
1,
|
|
112386
|
+
f,
|
|
112387
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
112388
|
+
);
|
|
112389
|
+
}
|
|
112390
|
+
f = message.getArtifactsList();
|
|
112391
|
+
if (f.length > 0) {
|
|
112392
|
+
writer.writeRepeatedMessage(
|
|
112393
|
+
2,
|
|
112394
|
+
f,
|
|
112395
|
+
proto_clarifai_api_resources_pb.Artifact.serializeBinaryToWriter
|
|
112396
|
+
);
|
|
112397
|
+
}
|
|
112398
|
+
};
|
|
112399
|
+
|
|
112400
|
+
|
|
112401
|
+
/**
|
|
112402
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
112403
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
112404
|
+
*/
|
|
112405
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.getUserAppId = function() {
|
|
112406
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
112407
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
112408
|
+
};
|
|
112409
|
+
|
|
112410
|
+
|
|
112411
|
+
/**
|
|
112412
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
112413
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
112414
|
+
*/
|
|
112415
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.setUserAppId = function(value) {
|
|
112416
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
112417
|
+
};
|
|
112418
|
+
|
|
112419
|
+
|
|
112420
|
+
/**
|
|
112421
|
+
* Clears the message field making it undefined.
|
|
112422
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
112423
|
+
*/
|
|
112424
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.clearUserAppId = function() {
|
|
112425
|
+
return this.setUserAppId(undefined);
|
|
112426
|
+
};
|
|
112427
|
+
|
|
112428
|
+
|
|
112429
|
+
/**
|
|
112430
|
+
* Returns whether this field is set.
|
|
112431
|
+
* @return {boolean}
|
|
112432
|
+
*/
|
|
112433
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.hasUserAppId = function() {
|
|
112434
|
+
return jspb.Message.getField(this, 1) != null;
|
|
112435
|
+
};
|
|
112436
|
+
|
|
112437
|
+
|
|
112438
|
+
/**
|
|
112439
|
+
* repeated Artifact artifacts = 2;
|
|
112440
|
+
* @return {!Array<!proto.clarifai.api.Artifact>}
|
|
112441
|
+
*/
|
|
112442
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.getArtifactsList = function() {
|
|
112443
|
+
return /** @type{!Array<!proto.clarifai.api.Artifact>} */ (
|
|
112444
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Artifact, 2));
|
|
112445
|
+
};
|
|
112446
|
+
|
|
112447
|
+
|
|
112448
|
+
/**
|
|
112449
|
+
* @param {!Array<!proto.clarifai.api.Artifact>} value
|
|
112450
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
112451
|
+
*/
|
|
112452
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.setArtifactsList = function(value) {
|
|
112453
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
112454
|
+
};
|
|
112455
|
+
|
|
112456
|
+
|
|
112457
|
+
/**
|
|
112458
|
+
* @param {!proto.clarifai.api.Artifact=} opt_value
|
|
112459
|
+
* @param {number=} opt_index
|
|
112460
|
+
* @return {!proto.clarifai.api.Artifact}
|
|
112461
|
+
*/
|
|
112462
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.addArtifacts = function(opt_value, opt_index) {
|
|
112463
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Artifact, opt_index);
|
|
112464
|
+
};
|
|
112465
|
+
|
|
112466
|
+
|
|
112467
|
+
/**
|
|
112468
|
+
* Clears the list making it empty but non-null.
|
|
112469
|
+
* @return {!proto.clarifai.api.PostArtifactsRequest} returns this
|
|
112470
|
+
*/
|
|
112471
|
+
proto.clarifai.api.PostArtifactsRequest.prototype.clearArtifactsList = function() {
|
|
112472
|
+
return this.setArtifactsList([]);
|
|
112473
|
+
};
|
|
112474
|
+
|
|
112475
|
+
|
|
112476
|
+
|
|
112477
|
+
/**
|
|
112478
|
+
* List of repeated fields within this message type.
|
|
112479
|
+
* @private {!Array<number>}
|
|
112480
|
+
* @const
|
|
112481
|
+
*/
|
|
112482
|
+
proto.clarifai.api.MultiArtifactResponse.repeatedFields_ = [2];
|
|
112483
|
+
|
|
112484
|
+
|
|
112485
|
+
|
|
112486
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
112487
|
+
/**
|
|
112488
|
+
* Creates an object representation of this proto.
|
|
112489
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
112490
|
+
* Optional fields that are not set will be set to undefined.
|
|
112491
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
112492
|
+
* For the list of reserved names please see:
|
|
112493
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
112494
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
112495
|
+
* JSPB instance for transitional soy proto support:
|
|
112496
|
+
* http://goto/soy-param-migration
|
|
112497
|
+
* @return {!Object}
|
|
112498
|
+
*/
|
|
112499
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.toObject = function(opt_includeInstance) {
|
|
112500
|
+
return proto.clarifai.api.MultiArtifactResponse.toObject(opt_includeInstance, this);
|
|
112501
|
+
};
|
|
112502
|
+
|
|
112503
|
+
|
|
112504
|
+
/**
|
|
112505
|
+
* Static version of the {@see toObject} method.
|
|
112506
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
112507
|
+
* the JSPB instance for transitional soy proto support:
|
|
112508
|
+
* http://goto/soy-param-migration
|
|
112509
|
+
* @param {!proto.clarifai.api.MultiArtifactResponse} msg The msg instance to transform.
|
|
112510
|
+
* @return {!Object}
|
|
112511
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
112512
|
+
*/
|
|
112513
|
+
proto.clarifai.api.MultiArtifactResponse.toObject = function(includeInstance, msg) {
|
|
112514
|
+
var f, obj = {
|
|
112515
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
112516
|
+
artifactsList: jspb.Message.toObjectList(msg.getArtifactsList(),
|
|
112517
|
+
proto_clarifai_api_resources_pb.Artifact.toObject, includeInstance)
|
|
112518
|
+
};
|
|
112519
|
+
|
|
112520
|
+
if (includeInstance) {
|
|
112521
|
+
obj.$jspbMessageInstance = msg;
|
|
112522
|
+
}
|
|
112523
|
+
return obj;
|
|
112524
|
+
};
|
|
112525
|
+
}
|
|
112526
|
+
|
|
112527
|
+
|
|
112528
|
+
/**
|
|
112529
|
+
* Deserializes binary data (in protobuf wire format).
|
|
112530
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
112531
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse}
|
|
112532
|
+
*/
|
|
112533
|
+
proto.clarifai.api.MultiArtifactResponse.deserializeBinary = function(bytes) {
|
|
112534
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
112535
|
+
var msg = new proto.clarifai.api.MultiArtifactResponse;
|
|
112536
|
+
return proto.clarifai.api.MultiArtifactResponse.deserializeBinaryFromReader(msg, reader);
|
|
112537
|
+
};
|
|
112538
|
+
|
|
112539
|
+
|
|
112540
|
+
/**
|
|
112541
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
112542
|
+
* given reader into the given message object.
|
|
112543
|
+
* @param {!proto.clarifai.api.MultiArtifactResponse} msg The message object to deserialize into.
|
|
112544
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
112545
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse}
|
|
112546
|
+
*/
|
|
112547
|
+
proto.clarifai.api.MultiArtifactResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
112548
|
+
while (reader.nextField()) {
|
|
112549
|
+
if (reader.isEndGroup()) {
|
|
112550
|
+
break;
|
|
112551
|
+
}
|
|
112552
|
+
var field = reader.getFieldNumber();
|
|
112553
|
+
switch (field) {
|
|
112554
|
+
case 1:
|
|
112555
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
112556
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
112557
|
+
msg.setStatus(value);
|
|
112558
|
+
break;
|
|
112559
|
+
case 2:
|
|
112560
|
+
var value = new proto_clarifai_api_resources_pb.Artifact;
|
|
112561
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Artifact.deserializeBinaryFromReader);
|
|
112562
|
+
msg.addArtifacts(value);
|
|
112563
|
+
break;
|
|
112564
|
+
default:
|
|
112565
|
+
reader.skipField();
|
|
112566
|
+
break;
|
|
112567
|
+
}
|
|
112568
|
+
}
|
|
112569
|
+
return msg;
|
|
112570
|
+
};
|
|
112571
|
+
|
|
112572
|
+
|
|
112573
|
+
/**
|
|
112574
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
112575
|
+
* @return {!Uint8Array}
|
|
112576
|
+
*/
|
|
112577
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.serializeBinary = function() {
|
|
112578
|
+
var writer = new jspb.BinaryWriter();
|
|
112579
|
+
proto.clarifai.api.MultiArtifactResponse.serializeBinaryToWriter(this, writer);
|
|
112580
|
+
return writer.getResultBuffer();
|
|
112581
|
+
};
|
|
112582
|
+
|
|
112583
|
+
|
|
112584
|
+
/**
|
|
112585
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
112586
|
+
* format), writing to the given BinaryWriter.
|
|
112587
|
+
* @param {!proto.clarifai.api.MultiArtifactResponse} message
|
|
112588
|
+
* @param {!jspb.BinaryWriter} writer
|
|
112589
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
112590
|
+
*/
|
|
112591
|
+
proto.clarifai.api.MultiArtifactResponse.serializeBinaryToWriter = function(message, writer) {
|
|
112592
|
+
var f = undefined;
|
|
112593
|
+
f = message.getStatus();
|
|
112594
|
+
if (f != null) {
|
|
112595
|
+
writer.writeMessage(
|
|
112596
|
+
1,
|
|
112597
|
+
f,
|
|
112598
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
112599
|
+
);
|
|
112600
|
+
}
|
|
112601
|
+
f = message.getArtifactsList();
|
|
112602
|
+
if (f.length > 0) {
|
|
112603
|
+
writer.writeRepeatedMessage(
|
|
112604
|
+
2,
|
|
112605
|
+
f,
|
|
112606
|
+
proto_clarifai_api_resources_pb.Artifact.serializeBinaryToWriter
|
|
112607
|
+
);
|
|
112608
|
+
}
|
|
112609
|
+
};
|
|
112610
|
+
|
|
112611
|
+
|
|
112612
|
+
/**
|
|
112613
|
+
* optional status.Status status = 1;
|
|
112614
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
112615
|
+
*/
|
|
112616
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.getStatus = function() {
|
|
112617
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
112618
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
112619
|
+
};
|
|
112620
|
+
|
|
112621
|
+
|
|
112622
|
+
/**
|
|
112623
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
112624
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
112625
|
+
*/
|
|
112626
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.setStatus = function(value) {
|
|
112627
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
112628
|
+
};
|
|
112629
|
+
|
|
112630
|
+
|
|
112631
|
+
/**
|
|
112632
|
+
* Clears the message field making it undefined.
|
|
112633
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
112634
|
+
*/
|
|
112635
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.clearStatus = function() {
|
|
112636
|
+
return this.setStatus(undefined);
|
|
112637
|
+
};
|
|
112638
|
+
|
|
112639
|
+
|
|
112640
|
+
/**
|
|
112641
|
+
* Returns whether this field is set.
|
|
112642
|
+
* @return {boolean}
|
|
112643
|
+
*/
|
|
112644
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.hasStatus = function() {
|
|
112645
|
+
return jspb.Message.getField(this, 1) != null;
|
|
112646
|
+
};
|
|
112647
|
+
|
|
112648
|
+
|
|
112649
|
+
/**
|
|
112650
|
+
* repeated Artifact artifacts = 2;
|
|
112651
|
+
* @return {!Array<!proto.clarifai.api.Artifact>}
|
|
112652
|
+
*/
|
|
112653
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.getArtifactsList = function() {
|
|
112654
|
+
return /** @type{!Array<!proto.clarifai.api.Artifact>} */ (
|
|
112655
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Artifact, 2));
|
|
112656
|
+
};
|
|
112657
|
+
|
|
112658
|
+
|
|
112659
|
+
/**
|
|
112660
|
+
* @param {!Array<!proto.clarifai.api.Artifact>} value
|
|
112661
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
112662
|
+
*/
|
|
112663
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.setArtifactsList = function(value) {
|
|
112664
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
112665
|
+
};
|
|
112666
|
+
|
|
112667
|
+
|
|
112668
|
+
/**
|
|
112669
|
+
* @param {!proto.clarifai.api.Artifact=} opt_value
|
|
112670
|
+
* @param {number=} opt_index
|
|
112671
|
+
* @return {!proto.clarifai.api.Artifact}
|
|
112672
|
+
*/
|
|
112673
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.addArtifacts = function(opt_value, opt_index) {
|
|
112674
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Artifact, opt_index);
|
|
112675
|
+
};
|
|
112676
|
+
|
|
112677
|
+
|
|
112678
|
+
/**
|
|
112679
|
+
* Clears the list making it empty but non-null.
|
|
112680
|
+
* @return {!proto.clarifai.api.MultiArtifactResponse} returns this
|
|
112681
|
+
*/
|
|
112682
|
+
proto.clarifai.api.MultiArtifactResponse.prototype.clearArtifactsList = function() {
|
|
112683
|
+
return this.setArtifactsList([]);
|
|
112684
|
+
};
|
|
112685
|
+
|
|
112686
|
+
|
|
112687
|
+
|
|
112688
|
+
|
|
112689
|
+
|
|
112690
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
112691
|
+
/**
|
|
112692
|
+
* Creates an object representation of this proto.
|
|
112693
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
112694
|
+
* Optional fields that are not set will be set to undefined.
|
|
112695
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
112696
|
+
* For the list of reserved names please see:
|
|
112697
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
112698
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
112699
|
+
* JSPB instance for transitional soy proto support:
|
|
112700
|
+
* http://goto/soy-param-migration
|
|
112701
|
+
* @return {!Object}
|
|
112702
|
+
*/
|
|
112703
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
112704
|
+
return proto.clarifai.api.ListArtifactsRequest.toObject(opt_includeInstance, this);
|
|
112705
|
+
};
|
|
112706
|
+
|
|
112707
|
+
|
|
112708
|
+
/**
|
|
112709
|
+
* Static version of the {@see toObject} method.
|
|
112710
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
112711
|
+
* the JSPB instance for transitional soy proto support:
|
|
112712
|
+
* http://goto/soy-param-migration
|
|
112713
|
+
* @param {!proto.clarifai.api.ListArtifactsRequest} msg The msg instance to transform.
|
|
112714
|
+
* @return {!Object}
|
|
112715
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
112716
|
+
*/
|
|
112717
|
+
proto.clarifai.api.ListArtifactsRequest.toObject = function(includeInstance, msg) {
|
|
112718
|
+
var f, obj = {
|
|
112719
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
112720
|
+
page: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
112721
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
112722
|
+
};
|
|
112723
|
+
|
|
112724
|
+
if (includeInstance) {
|
|
112725
|
+
obj.$jspbMessageInstance = msg;
|
|
112726
|
+
}
|
|
112727
|
+
return obj;
|
|
112728
|
+
};
|
|
112729
|
+
}
|
|
112730
|
+
|
|
112731
|
+
|
|
112732
|
+
/**
|
|
112733
|
+
* Deserializes binary data (in protobuf wire format).
|
|
112734
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
112735
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest}
|
|
112736
|
+
*/
|
|
112737
|
+
proto.clarifai.api.ListArtifactsRequest.deserializeBinary = function(bytes) {
|
|
112738
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
112739
|
+
var msg = new proto.clarifai.api.ListArtifactsRequest;
|
|
112740
|
+
return proto.clarifai.api.ListArtifactsRequest.deserializeBinaryFromReader(msg, reader);
|
|
112741
|
+
};
|
|
112742
|
+
|
|
112743
|
+
|
|
112744
|
+
/**
|
|
112745
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
112746
|
+
* given reader into the given message object.
|
|
112747
|
+
* @param {!proto.clarifai.api.ListArtifactsRequest} msg The message object to deserialize into.
|
|
112748
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
112749
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest}
|
|
112750
|
+
*/
|
|
112751
|
+
proto.clarifai.api.ListArtifactsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
112752
|
+
while (reader.nextField()) {
|
|
112753
|
+
if (reader.isEndGroup()) {
|
|
112754
|
+
break;
|
|
112755
|
+
}
|
|
112756
|
+
var field = reader.getFieldNumber();
|
|
112757
|
+
switch (field) {
|
|
112758
|
+
case 1:
|
|
112759
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
112760
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
112761
|
+
msg.setUserAppId(value);
|
|
112762
|
+
break;
|
|
112763
|
+
case 2:
|
|
112764
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
112765
|
+
msg.setPage(value);
|
|
112766
|
+
break;
|
|
112767
|
+
case 3:
|
|
112768
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
112769
|
+
msg.setPerPage(value);
|
|
112770
|
+
break;
|
|
112771
|
+
default:
|
|
112772
|
+
reader.skipField();
|
|
112773
|
+
break;
|
|
112774
|
+
}
|
|
112775
|
+
}
|
|
112776
|
+
return msg;
|
|
112777
|
+
};
|
|
112778
|
+
|
|
112779
|
+
|
|
112780
|
+
/**
|
|
112781
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
112782
|
+
* @return {!Uint8Array}
|
|
112783
|
+
*/
|
|
112784
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.serializeBinary = function() {
|
|
112785
|
+
var writer = new jspb.BinaryWriter();
|
|
112786
|
+
proto.clarifai.api.ListArtifactsRequest.serializeBinaryToWriter(this, writer);
|
|
112787
|
+
return writer.getResultBuffer();
|
|
112788
|
+
};
|
|
112789
|
+
|
|
112790
|
+
|
|
112791
|
+
/**
|
|
112792
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
112793
|
+
* format), writing to the given BinaryWriter.
|
|
112794
|
+
* @param {!proto.clarifai.api.ListArtifactsRequest} message
|
|
112795
|
+
* @param {!jspb.BinaryWriter} writer
|
|
112796
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
112797
|
+
*/
|
|
112798
|
+
proto.clarifai.api.ListArtifactsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
112799
|
+
var f = undefined;
|
|
112800
|
+
f = message.getUserAppId();
|
|
112801
|
+
if (f != null) {
|
|
112802
|
+
writer.writeMessage(
|
|
112803
|
+
1,
|
|
112804
|
+
f,
|
|
112805
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
112806
|
+
);
|
|
112807
|
+
}
|
|
112808
|
+
f = message.getPage();
|
|
112809
|
+
if (f !== 0) {
|
|
112810
|
+
writer.writeUint32(
|
|
112811
|
+
2,
|
|
112812
|
+
f
|
|
112813
|
+
);
|
|
112814
|
+
}
|
|
112815
|
+
f = message.getPerPage();
|
|
112816
|
+
if (f !== 0) {
|
|
112817
|
+
writer.writeUint32(
|
|
112818
|
+
3,
|
|
112819
|
+
f
|
|
112820
|
+
);
|
|
112821
|
+
}
|
|
112822
|
+
};
|
|
112823
|
+
|
|
112824
|
+
|
|
112825
|
+
/**
|
|
112826
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
112827
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
112828
|
+
*/
|
|
112829
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.getUserAppId = function() {
|
|
112830
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
112831
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
112832
|
+
};
|
|
112833
|
+
|
|
112834
|
+
|
|
112835
|
+
/**
|
|
112836
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
112837
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
112838
|
+
*/
|
|
112839
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.setUserAppId = function(value) {
|
|
112840
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
112841
|
+
};
|
|
112842
|
+
|
|
112843
|
+
|
|
112844
|
+
/**
|
|
112845
|
+
* Clears the message field making it undefined.
|
|
112846
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
112847
|
+
*/
|
|
112848
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.clearUserAppId = function() {
|
|
112849
|
+
return this.setUserAppId(undefined);
|
|
112850
|
+
};
|
|
112851
|
+
|
|
112852
|
+
|
|
112853
|
+
/**
|
|
112854
|
+
* Returns whether this field is set.
|
|
112855
|
+
* @return {boolean}
|
|
112856
|
+
*/
|
|
112857
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.hasUserAppId = function() {
|
|
112858
|
+
return jspb.Message.getField(this, 1) != null;
|
|
112859
|
+
};
|
|
112860
|
+
|
|
112861
|
+
|
|
112862
|
+
/**
|
|
112863
|
+
* optional uint32 page = 2;
|
|
112864
|
+
* @return {number}
|
|
112865
|
+
*/
|
|
112866
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.getPage = function() {
|
|
112867
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
112868
|
+
};
|
|
112869
|
+
|
|
112870
|
+
|
|
112871
|
+
/**
|
|
112872
|
+
* @param {number} value
|
|
112873
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
112874
|
+
*/
|
|
112875
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.setPage = function(value) {
|
|
112876
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
112877
|
+
};
|
|
112878
|
+
|
|
112879
|
+
|
|
112880
|
+
/**
|
|
112881
|
+
* optional uint32 per_page = 3;
|
|
112882
|
+
* @return {number}
|
|
112883
|
+
*/
|
|
112884
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.getPerPage = function() {
|
|
112885
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
112886
|
+
};
|
|
112887
|
+
|
|
112888
|
+
|
|
112889
|
+
/**
|
|
112890
|
+
* @param {number} value
|
|
112891
|
+
* @return {!proto.clarifai.api.ListArtifactsRequest} returns this
|
|
112892
|
+
*/
|
|
112893
|
+
proto.clarifai.api.ListArtifactsRequest.prototype.setPerPage = function(value) {
|
|
112894
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
112895
|
+
};
|
|
112896
|
+
|
|
112897
|
+
|
|
112898
|
+
|
|
112899
|
+
|
|
112900
|
+
|
|
112901
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
112902
|
+
/**
|
|
112903
|
+
* Creates an object representation of this proto.
|
|
112904
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
112905
|
+
* Optional fields that are not set will be set to undefined.
|
|
112906
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
112907
|
+
* For the list of reserved names please see:
|
|
112908
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
112909
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
112910
|
+
* JSPB instance for transitional soy proto support:
|
|
112911
|
+
* http://goto/soy-param-migration
|
|
112912
|
+
* @return {!Object}
|
|
112913
|
+
*/
|
|
112914
|
+
proto.clarifai.api.GetArtifactRequest.prototype.toObject = function(opt_includeInstance) {
|
|
112915
|
+
return proto.clarifai.api.GetArtifactRequest.toObject(opt_includeInstance, this);
|
|
112916
|
+
};
|
|
112917
|
+
|
|
112918
|
+
|
|
112919
|
+
/**
|
|
112920
|
+
* Static version of the {@see toObject} method.
|
|
112921
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
112922
|
+
* the JSPB instance for transitional soy proto support:
|
|
112923
|
+
* http://goto/soy-param-migration
|
|
112924
|
+
* @param {!proto.clarifai.api.GetArtifactRequest} msg The msg instance to transform.
|
|
112925
|
+
* @return {!Object}
|
|
112926
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
112927
|
+
*/
|
|
112928
|
+
proto.clarifai.api.GetArtifactRequest.toObject = function(includeInstance, msg) {
|
|
112929
|
+
var f, obj = {
|
|
112930
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
112931
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
112932
|
+
};
|
|
112933
|
+
|
|
112934
|
+
if (includeInstance) {
|
|
112935
|
+
obj.$jspbMessageInstance = msg;
|
|
112936
|
+
}
|
|
112937
|
+
return obj;
|
|
112938
|
+
};
|
|
112939
|
+
}
|
|
112940
|
+
|
|
112941
|
+
|
|
112942
|
+
/**
|
|
112943
|
+
* Deserializes binary data (in protobuf wire format).
|
|
112944
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
112945
|
+
* @return {!proto.clarifai.api.GetArtifactRequest}
|
|
112946
|
+
*/
|
|
112947
|
+
proto.clarifai.api.GetArtifactRequest.deserializeBinary = function(bytes) {
|
|
112948
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
112949
|
+
var msg = new proto.clarifai.api.GetArtifactRequest;
|
|
112950
|
+
return proto.clarifai.api.GetArtifactRequest.deserializeBinaryFromReader(msg, reader);
|
|
112951
|
+
};
|
|
112952
|
+
|
|
112953
|
+
|
|
112954
|
+
/**
|
|
112955
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
112956
|
+
* given reader into the given message object.
|
|
112957
|
+
* @param {!proto.clarifai.api.GetArtifactRequest} msg The message object to deserialize into.
|
|
112958
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
112959
|
+
* @return {!proto.clarifai.api.GetArtifactRequest}
|
|
112960
|
+
*/
|
|
112961
|
+
proto.clarifai.api.GetArtifactRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
112962
|
+
while (reader.nextField()) {
|
|
112963
|
+
if (reader.isEndGroup()) {
|
|
112964
|
+
break;
|
|
112965
|
+
}
|
|
112966
|
+
var field = reader.getFieldNumber();
|
|
112967
|
+
switch (field) {
|
|
112968
|
+
case 1:
|
|
112969
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
112970
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
112971
|
+
msg.setUserAppId(value);
|
|
112972
|
+
break;
|
|
112973
|
+
case 2:
|
|
112974
|
+
var value = /** @type {string} */ (reader.readString());
|
|
112975
|
+
msg.setArtifactId(value);
|
|
112976
|
+
break;
|
|
112977
|
+
default:
|
|
112978
|
+
reader.skipField();
|
|
112979
|
+
break;
|
|
112980
|
+
}
|
|
112981
|
+
}
|
|
112982
|
+
return msg;
|
|
112983
|
+
};
|
|
112984
|
+
|
|
112985
|
+
|
|
112986
|
+
/**
|
|
112987
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
112988
|
+
* @return {!Uint8Array}
|
|
112989
|
+
*/
|
|
112990
|
+
proto.clarifai.api.GetArtifactRequest.prototype.serializeBinary = function() {
|
|
112991
|
+
var writer = new jspb.BinaryWriter();
|
|
112992
|
+
proto.clarifai.api.GetArtifactRequest.serializeBinaryToWriter(this, writer);
|
|
112993
|
+
return writer.getResultBuffer();
|
|
112994
|
+
};
|
|
112995
|
+
|
|
112996
|
+
|
|
112997
|
+
/**
|
|
112998
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
112999
|
+
* format), writing to the given BinaryWriter.
|
|
113000
|
+
* @param {!proto.clarifai.api.GetArtifactRequest} message
|
|
113001
|
+
* @param {!jspb.BinaryWriter} writer
|
|
113002
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113003
|
+
*/
|
|
113004
|
+
proto.clarifai.api.GetArtifactRequest.serializeBinaryToWriter = function(message, writer) {
|
|
113005
|
+
var f = undefined;
|
|
113006
|
+
f = message.getUserAppId();
|
|
113007
|
+
if (f != null) {
|
|
113008
|
+
writer.writeMessage(
|
|
113009
|
+
1,
|
|
113010
|
+
f,
|
|
113011
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
113012
|
+
);
|
|
113013
|
+
}
|
|
113014
|
+
f = message.getArtifactId();
|
|
113015
|
+
if (f.length > 0) {
|
|
113016
|
+
writer.writeString(
|
|
113017
|
+
2,
|
|
113018
|
+
f
|
|
113019
|
+
);
|
|
113020
|
+
}
|
|
113021
|
+
};
|
|
113022
|
+
|
|
113023
|
+
|
|
113024
|
+
/**
|
|
113025
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
113026
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
113027
|
+
*/
|
|
113028
|
+
proto.clarifai.api.GetArtifactRequest.prototype.getUserAppId = function() {
|
|
113029
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
113030
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
113031
|
+
};
|
|
113032
|
+
|
|
113033
|
+
|
|
113034
|
+
/**
|
|
113035
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
113036
|
+
* @return {!proto.clarifai.api.GetArtifactRequest} returns this
|
|
113037
|
+
*/
|
|
113038
|
+
proto.clarifai.api.GetArtifactRequest.prototype.setUserAppId = function(value) {
|
|
113039
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
113040
|
+
};
|
|
113041
|
+
|
|
113042
|
+
|
|
113043
|
+
/**
|
|
113044
|
+
* Clears the message field making it undefined.
|
|
113045
|
+
* @return {!proto.clarifai.api.GetArtifactRequest} returns this
|
|
113046
|
+
*/
|
|
113047
|
+
proto.clarifai.api.GetArtifactRequest.prototype.clearUserAppId = function() {
|
|
113048
|
+
return this.setUserAppId(undefined);
|
|
113049
|
+
};
|
|
113050
|
+
|
|
113051
|
+
|
|
113052
|
+
/**
|
|
113053
|
+
* Returns whether this field is set.
|
|
113054
|
+
* @return {boolean}
|
|
113055
|
+
*/
|
|
113056
|
+
proto.clarifai.api.GetArtifactRequest.prototype.hasUserAppId = function() {
|
|
113057
|
+
return jspb.Message.getField(this, 1) != null;
|
|
113058
|
+
};
|
|
113059
|
+
|
|
113060
|
+
|
|
113061
|
+
/**
|
|
113062
|
+
* optional string artifact_id = 2;
|
|
113063
|
+
* @return {string}
|
|
113064
|
+
*/
|
|
113065
|
+
proto.clarifai.api.GetArtifactRequest.prototype.getArtifactId = function() {
|
|
113066
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
113067
|
+
};
|
|
113068
|
+
|
|
113069
|
+
|
|
113070
|
+
/**
|
|
113071
|
+
* @param {string} value
|
|
113072
|
+
* @return {!proto.clarifai.api.GetArtifactRequest} returns this
|
|
113073
|
+
*/
|
|
113074
|
+
proto.clarifai.api.GetArtifactRequest.prototype.setArtifactId = function(value) {
|
|
113075
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
113076
|
+
};
|
|
113077
|
+
|
|
113078
|
+
|
|
113079
|
+
|
|
113080
|
+
|
|
113081
|
+
|
|
113082
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
113083
|
+
/**
|
|
113084
|
+
* Creates an object representation of this proto.
|
|
113085
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
113086
|
+
* Optional fields that are not set will be set to undefined.
|
|
113087
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
113088
|
+
* For the list of reserved names please see:
|
|
113089
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
113090
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
113091
|
+
* JSPB instance for transitional soy proto support:
|
|
113092
|
+
* http://goto/soy-param-migration
|
|
113093
|
+
* @return {!Object}
|
|
113094
|
+
*/
|
|
113095
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.toObject = function(opt_includeInstance) {
|
|
113096
|
+
return proto.clarifai.api.SingleArtifactResponse.toObject(opt_includeInstance, this);
|
|
113097
|
+
};
|
|
113098
|
+
|
|
113099
|
+
|
|
113100
|
+
/**
|
|
113101
|
+
* Static version of the {@see toObject} method.
|
|
113102
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
113103
|
+
* the JSPB instance for transitional soy proto support:
|
|
113104
|
+
* http://goto/soy-param-migration
|
|
113105
|
+
* @param {!proto.clarifai.api.SingleArtifactResponse} msg The msg instance to transform.
|
|
113106
|
+
* @return {!Object}
|
|
113107
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113108
|
+
*/
|
|
113109
|
+
proto.clarifai.api.SingleArtifactResponse.toObject = function(includeInstance, msg) {
|
|
113110
|
+
var f, obj = {
|
|
113111
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
113112
|
+
artifact: (f = msg.getArtifact()) && proto_clarifai_api_resources_pb.Artifact.toObject(includeInstance, f)
|
|
113113
|
+
};
|
|
113114
|
+
|
|
113115
|
+
if (includeInstance) {
|
|
113116
|
+
obj.$jspbMessageInstance = msg;
|
|
113117
|
+
}
|
|
113118
|
+
return obj;
|
|
113119
|
+
};
|
|
113120
|
+
}
|
|
113121
|
+
|
|
113122
|
+
|
|
113123
|
+
/**
|
|
113124
|
+
* Deserializes binary data (in protobuf wire format).
|
|
113125
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
113126
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse}
|
|
113127
|
+
*/
|
|
113128
|
+
proto.clarifai.api.SingleArtifactResponse.deserializeBinary = function(bytes) {
|
|
113129
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113130
|
+
var msg = new proto.clarifai.api.SingleArtifactResponse;
|
|
113131
|
+
return proto.clarifai.api.SingleArtifactResponse.deserializeBinaryFromReader(msg, reader);
|
|
113132
|
+
};
|
|
113133
|
+
|
|
113134
|
+
|
|
113135
|
+
/**
|
|
113136
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
113137
|
+
* given reader into the given message object.
|
|
113138
|
+
* @param {!proto.clarifai.api.SingleArtifactResponse} msg The message object to deserialize into.
|
|
113139
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
113140
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse}
|
|
113141
|
+
*/
|
|
113142
|
+
proto.clarifai.api.SingleArtifactResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
113143
|
+
while (reader.nextField()) {
|
|
113144
|
+
if (reader.isEndGroup()) {
|
|
113145
|
+
break;
|
|
113146
|
+
}
|
|
113147
|
+
var field = reader.getFieldNumber();
|
|
113148
|
+
switch (field) {
|
|
113149
|
+
case 1:
|
|
113150
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
113151
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
113152
|
+
msg.setStatus(value);
|
|
113153
|
+
break;
|
|
113154
|
+
case 2:
|
|
113155
|
+
var value = new proto_clarifai_api_resources_pb.Artifact;
|
|
113156
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Artifact.deserializeBinaryFromReader);
|
|
113157
|
+
msg.setArtifact(value);
|
|
113158
|
+
break;
|
|
113159
|
+
default:
|
|
113160
|
+
reader.skipField();
|
|
113161
|
+
break;
|
|
113162
|
+
}
|
|
113163
|
+
}
|
|
113164
|
+
return msg;
|
|
113165
|
+
};
|
|
113166
|
+
|
|
113167
|
+
|
|
113168
|
+
/**
|
|
113169
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
113170
|
+
* @return {!Uint8Array}
|
|
113171
|
+
*/
|
|
113172
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.serializeBinary = function() {
|
|
113173
|
+
var writer = new jspb.BinaryWriter();
|
|
113174
|
+
proto.clarifai.api.SingleArtifactResponse.serializeBinaryToWriter(this, writer);
|
|
113175
|
+
return writer.getResultBuffer();
|
|
113176
|
+
};
|
|
113177
|
+
|
|
113178
|
+
|
|
113179
|
+
/**
|
|
113180
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
113181
|
+
* format), writing to the given BinaryWriter.
|
|
113182
|
+
* @param {!proto.clarifai.api.SingleArtifactResponse} message
|
|
113183
|
+
* @param {!jspb.BinaryWriter} writer
|
|
113184
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113185
|
+
*/
|
|
113186
|
+
proto.clarifai.api.SingleArtifactResponse.serializeBinaryToWriter = function(message, writer) {
|
|
113187
|
+
var f = undefined;
|
|
113188
|
+
f = message.getStatus();
|
|
113189
|
+
if (f != null) {
|
|
113190
|
+
writer.writeMessage(
|
|
113191
|
+
1,
|
|
113192
|
+
f,
|
|
113193
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
113194
|
+
);
|
|
113195
|
+
}
|
|
113196
|
+
f = message.getArtifact();
|
|
113197
|
+
if (f != null) {
|
|
113198
|
+
writer.writeMessage(
|
|
113199
|
+
2,
|
|
113200
|
+
f,
|
|
113201
|
+
proto_clarifai_api_resources_pb.Artifact.serializeBinaryToWriter
|
|
113202
|
+
);
|
|
113203
|
+
}
|
|
113204
|
+
};
|
|
113205
|
+
|
|
113206
|
+
|
|
113207
|
+
/**
|
|
113208
|
+
* optional status.Status status = 1;
|
|
113209
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
113210
|
+
*/
|
|
113211
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.getStatus = function() {
|
|
113212
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
113213
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
113214
|
+
};
|
|
113215
|
+
|
|
113216
|
+
|
|
113217
|
+
/**
|
|
113218
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
113219
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
113220
|
+
*/
|
|
113221
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.setStatus = function(value) {
|
|
113222
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
113223
|
+
};
|
|
113224
|
+
|
|
113225
|
+
|
|
113226
|
+
/**
|
|
113227
|
+
* Clears the message field making it undefined.
|
|
113228
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
113229
|
+
*/
|
|
113230
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.clearStatus = function() {
|
|
113231
|
+
return this.setStatus(undefined);
|
|
113232
|
+
};
|
|
113233
|
+
|
|
113234
|
+
|
|
113235
|
+
/**
|
|
113236
|
+
* Returns whether this field is set.
|
|
113237
|
+
* @return {boolean}
|
|
113238
|
+
*/
|
|
113239
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.hasStatus = function() {
|
|
113240
|
+
return jspb.Message.getField(this, 1) != null;
|
|
113241
|
+
};
|
|
113242
|
+
|
|
113243
|
+
|
|
113244
|
+
/**
|
|
113245
|
+
* optional Artifact artifact = 2;
|
|
113246
|
+
* @return {?proto.clarifai.api.Artifact}
|
|
113247
|
+
*/
|
|
113248
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.getArtifact = function() {
|
|
113249
|
+
return /** @type{?proto.clarifai.api.Artifact} */ (
|
|
113250
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Artifact, 2));
|
|
113251
|
+
};
|
|
113252
|
+
|
|
113253
|
+
|
|
113254
|
+
/**
|
|
113255
|
+
* @param {?proto.clarifai.api.Artifact|undefined} value
|
|
113256
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
113257
|
+
*/
|
|
113258
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.setArtifact = function(value) {
|
|
113259
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
113260
|
+
};
|
|
113261
|
+
|
|
113262
|
+
|
|
113263
|
+
/**
|
|
113264
|
+
* Clears the message field making it undefined.
|
|
113265
|
+
* @return {!proto.clarifai.api.SingleArtifactResponse} returns this
|
|
113266
|
+
*/
|
|
113267
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.clearArtifact = function() {
|
|
113268
|
+
return this.setArtifact(undefined);
|
|
113269
|
+
};
|
|
113270
|
+
|
|
113271
|
+
|
|
113272
|
+
/**
|
|
113273
|
+
* Returns whether this field is set.
|
|
113274
|
+
* @return {boolean}
|
|
113275
|
+
*/
|
|
113276
|
+
proto.clarifai.api.SingleArtifactResponse.prototype.hasArtifact = function() {
|
|
113277
|
+
return jspb.Message.getField(this, 2) != null;
|
|
113278
|
+
};
|
|
113279
|
+
|
|
113280
|
+
|
|
113281
|
+
|
|
113282
|
+
|
|
113283
|
+
|
|
113284
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
113285
|
+
/**
|
|
113286
|
+
* Creates an object representation of this proto.
|
|
113287
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
113288
|
+
* Optional fields that are not set will be set to undefined.
|
|
113289
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
113290
|
+
* For the list of reserved names please see:
|
|
113291
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
113292
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
113293
|
+
* JSPB instance for transitional soy proto support:
|
|
113294
|
+
* http://goto/soy-param-migration
|
|
113295
|
+
* @return {!Object}
|
|
113296
|
+
*/
|
|
113297
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.toObject = function(opt_includeInstance) {
|
|
113298
|
+
return proto.clarifai.api.DeleteArtifactRequest.toObject(opt_includeInstance, this);
|
|
113299
|
+
};
|
|
113300
|
+
|
|
113301
|
+
|
|
113302
|
+
/**
|
|
113303
|
+
* Static version of the {@see toObject} method.
|
|
113304
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
113305
|
+
* the JSPB instance for transitional soy proto support:
|
|
113306
|
+
* http://goto/soy-param-migration
|
|
113307
|
+
* @param {!proto.clarifai.api.DeleteArtifactRequest} msg The msg instance to transform.
|
|
113308
|
+
* @return {!Object}
|
|
113309
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113310
|
+
*/
|
|
113311
|
+
proto.clarifai.api.DeleteArtifactRequest.toObject = function(includeInstance, msg) {
|
|
113312
|
+
var f, obj = {
|
|
113313
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
113314
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
113315
|
+
};
|
|
113316
|
+
|
|
113317
|
+
if (includeInstance) {
|
|
113318
|
+
obj.$jspbMessageInstance = msg;
|
|
113319
|
+
}
|
|
113320
|
+
return obj;
|
|
113321
|
+
};
|
|
113322
|
+
}
|
|
113323
|
+
|
|
113324
|
+
|
|
113325
|
+
/**
|
|
113326
|
+
* Deserializes binary data (in protobuf wire format).
|
|
113327
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
113328
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest}
|
|
113329
|
+
*/
|
|
113330
|
+
proto.clarifai.api.DeleteArtifactRequest.deserializeBinary = function(bytes) {
|
|
113331
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113332
|
+
var msg = new proto.clarifai.api.DeleteArtifactRequest;
|
|
113333
|
+
return proto.clarifai.api.DeleteArtifactRequest.deserializeBinaryFromReader(msg, reader);
|
|
113334
|
+
};
|
|
113335
|
+
|
|
113336
|
+
|
|
113337
|
+
/**
|
|
113338
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
113339
|
+
* given reader into the given message object.
|
|
113340
|
+
* @param {!proto.clarifai.api.DeleteArtifactRequest} msg The message object to deserialize into.
|
|
113341
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
113342
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest}
|
|
113343
|
+
*/
|
|
113344
|
+
proto.clarifai.api.DeleteArtifactRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
113345
|
+
while (reader.nextField()) {
|
|
113346
|
+
if (reader.isEndGroup()) {
|
|
113347
|
+
break;
|
|
113348
|
+
}
|
|
113349
|
+
var field = reader.getFieldNumber();
|
|
113350
|
+
switch (field) {
|
|
113351
|
+
case 1:
|
|
113352
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
113353
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
113354
|
+
msg.setUserAppId(value);
|
|
113355
|
+
break;
|
|
113356
|
+
case 2:
|
|
113357
|
+
var value = /** @type {string} */ (reader.readString());
|
|
113358
|
+
msg.setArtifactId(value);
|
|
113359
|
+
break;
|
|
113360
|
+
default:
|
|
113361
|
+
reader.skipField();
|
|
113362
|
+
break;
|
|
113363
|
+
}
|
|
113364
|
+
}
|
|
113365
|
+
return msg;
|
|
113366
|
+
};
|
|
113367
|
+
|
|
113368
|
+
|
|
113369
|
+
/**
|
|
113370
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
113371
|
+
* @return {!Uint8Array}
|
|
113372
|
+
*/
|
|
113373
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.serializeBinary = function() {
|
|
113374
|
+
var writer = new jspb.BinaryWriter();
|
|
113375
|
+
proto.clarifai.api.DeleteArtifactRequest.serializeBinaryToWriter(this, writer);
|
|
113376
|
+
return writer.getResultBuffer();
|
|
113377
|
+
};
|
|
113378
|
+
|
|
113379
|
+
|
|
113380
|
+
/**
|
|
113381
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
113382
|
+
* format), writing to the given BinaryWriter.
|
|
113383
|
+
* @param {!proto.clarifai.api.DeleteArtifactRequest} message
|
|
113384
|
+
* @param {!jspb.BinaryWriter} writer
|
|
113385
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113386
|
+
*/
|
|
113387
|
+
proto.clarifai.api.DeleteArtifactRequest.serializeBinaryToWriter = function(message, writer) {
|
|
113388
|
+
var f = undefined;
|
|
113389
|
+
f = message.getUserAppId();
|
|
113390
|
+
if (f != null) {
|
|
113391
|
+
writer.writeMessage(
|
|
113392
|
+
1,
|
|
113393
|
+
f,
|
|
113394
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
113395
|
+
);
|
|
113396
|
+
}
|
|
113397
|
+
f = message.getArtifactId();
|
|
113398
|
+
if (f.length > 0) {
|
|
113399
|
+
writer.writeString(
|
|
113400
|
+
2,
|
|
113401
|
+
f
|
|
113402
|
+
);
|
|
113403
|
+
}
|
|
113404
|
+
};
|
|
113405
|
+
|
|
113406
|
+
|
|
113407
|
+
/**
|
|
113408
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
113409
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
113410
|
+
*/
|
|
113411
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.getUserAppId = function() {
|
|
113412
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
113413
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
113414
|
+
};
|
|
113415
|
+
|
|
113416
|
+
|
|
113417
|
+
/**
|
|
113418
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
113419
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest} returns this
|
|
113420
|
+
*/
|
|
113421
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.setUserAppId = function(value) {
|
|
113422
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
113423
|
+
};
|
|
113424
|
+
|
|
113425
|
+
|
|
113426
|
+
/**
|
|
113427
|
+
* Clears the message field making it undefined.
|
|
113428
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest} returns this
|
|
113429
|
+
*/
|
|
113430
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.clearUserAppId = function() {
|
|
113431
|
+
return this.setUserAppId(undefined);
|
|
113432
|
+
};
|
|
113433
|
+
|
|
113434
|
+
|
|
113435
|
+
/**
|
|
113436
|
+
* Returns whether this field is set.
|
|
113437
|
+
* @return {boolean}
|
|
113438
|
+
*/
|
|
113439
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.hasUserAppId = function() {
|
|
113440
|
+
return jspb.Message.getField(this, 1) != null;
|
|
113441
|
+
};
|
|
113442
|
+
|
|
113443
|
+
|
|
113444
|
+
/**
|
|
113445
|
+
* optional string artifact_id = 2;
|
|
113446
|
+
* @return {string}
|
|
113447
|
+
*/
|
|
113448
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.getArtifactId = function() {
|
|
113449
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
113450
|
+
};
|
|
113451
|
+
|
|
113452
|
+
|
|
113453
|
+
/**
|
|
113454
|
+
* @param {string} value
|
|
113455
|
+
* @return {!proto.clarifai.api.DeleteArtifactRequest} returns this
|
|
113456
|
+
*/
|
|
113457
|
+
proto.clarifai.api.DeleteArtifactRequest.prototype.setArtifactId = function(value) {
|
|
113458
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
113459
|
+
};
|
|
113460
|
+
|
|
113461
|
+
|
|
113462
|
+
|
|
113463
|
+
/**
|
|
113464
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
113465
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
113466
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
113467
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
113468
|
+
* @private {!Array<!Array<number>>}
|
|
113469
|
+
* @const
|
|
113470
|
+
*/
|
|
113471
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_ = [[2,3]];
|
|
113472
|
+
|
|
113473
|
+
/**
|
|
113474
|
+
* @enum {number}
|
|
113475
|
+
*/
|
|
113476
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase = {
|
|
113477
|
+
UPLOAD_DATA_NOT_SET: 0,
|
|
113478
|
+
UPLOAD_CONFIG: 2,
|
|
113479
|
+
CONTENT_PART: 3
|
|
113480
|
+
};
|
|
113481
|
+
|
|
113482
|
+
/**
|
|
113483
|
+
* @return {proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase}
|
|
113484
|
+
*/
|
|
113485
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.getUploadDataCase = function() {
|
|
113486
|
+
return /** @type {proto.clarifai.api.PostArtifactVersionsUploadRequest.UploadDataCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_[0]));
|
|
113487
|
+
};
|
|
113488
|
+
|
|
113489
|
+
|
|
113490
|
+
|
|
113491
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
113492
|
+
/**
|
|
113493
|
+
* Creates an object representation of this proto.
|
|
113494
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
113495
|
+
* Optional fields that are not set will be set to undefined.
|
|
113496
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
113497
|
+
* For the list of reserved names please see:
|
|
113498
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
113499
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
113500
|
+
* JSPB instance for transitional soy proto support:
|
|
113501
|
+
* http://goto/soy-param-migration
|
|
113502
|
+
* @return {!Object}
|
|
113503
|
+
*/
|
|
113504
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
113505
|
+
return proto.clarifai.api.PostArtifactVersionsUploadRequest.toObject(opt_includeInstance, this);
|
|
113506
|
+
};
|
|
113507
|
+
|
|
113508
|
+
|
|
113509
|
+
/**
|
|
113510
|
+
* Static version of the {@see toObject} method.
|
|
113511
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
113512
|
+
* the JSPB instance for transitional soy proto support:
|
|
113513
|
+
* http://goto/soy-param-migration
|
|
113514
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadRequest} msg The msg instance to transform.
|
|
113515
|
+
* @return {!Object}
|
|
113516
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113517
|
+
*/
|
|
113518
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.toObject = function(includeInstance, msg) {
|
|
113519
|
+
var f, obj = {
|
|
113520
|
+
uploadConfig: (f = msg.getUploadConfig()) && proto.clarifai.api.PostArtifactVersionsUploadConfig.toObject(includeInstance, f),
|
|
113521
|
+
contentPart: (f = msg.getContentPart()) && proto_clarifai_api_resources_pb.UploadContentPart.toObject(includeInstance, f)
|
|
113522
|
+
};
|
|
113523
|
+
|
|
113524
|
+
if (includeInstance) {
|
|
113525
|
+
obj.$jspbMessageInstance = msg;
|
|
113526
|
+
}
|
|
113527
|
+
return obj;
|
|
113528
|
+
};
|
|
113529
|
+
}
|
|
113530
|
+
|
|
113531
|
+
|
|
113532
|
+
/**
|
|
113533
|
+
* Deserializes binary data (in protobuf wire format).
|
|
113534
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
113535
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest}
|
|
113536
|
+
*/
|
|
113537
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.deserializeBinary = function(bytes) {
|
|
113538
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113539
|
+
var msg = new proto.clarifai.api.PostArtifactVersionsUploadRequest;
|
|
113540
|
+
return proto.clarifai.api.PostArtifactVersionsUploadRequest.deserializeBinaryFromReader(msg, reader);
|
|
113541
|
+
};
|
|
113542
|
+
|
|
113543
|
+
|
|
113544
|
+
/**
|
|
113545
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
113546
|
+
* given reader into the given message object.
|
|
113547
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadRequest} msg The message object to deserialize into.
|
|
113548
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
113549
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest}
|
|
113550
|
+
*/
|
|
113551
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
113552
|
+
while (reader.nextField()) {
|
|
113553
|
+
if (reader.isEndGroup()) {
|
|
113554
|
+
break;
|
|
113555
|
+
}
|
|
113556
|
+
var field = reader.getFieldNumber();
|
|
113557
|
+
switch (field) {
|
|
113558
|
+
case 2:
|
|
113559
|
+
var value = new proto.clarifai.api.PostArtifactVersionsUploadConfig;
|
|
113560
|
+
reader.readMessage(value,proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinaryFromReader);
|
|
113561
|
+
msg.setUploadConfig(value);
|
|
113562
|
+
break;
|
|
113563
|
+
case 3:
|
|
113564
|
+
var value = new proto_clarifai_api_resources_pb.UploadContentPart;
|
|
113565
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UploadContentPart.deserializeBinaryFromReader);
|
|
113566
|
+
msg.setContentPart(value);
|
|
113567
|
+
break;
|
|
113568
|
+
default:
|
|
113569
|
+
reader.skipField();
|
|
113570
|
+
break;
|
|
113571
|
+
}
|
|
113572
|
+
}
|
|
113573
|
+
return msg;
|
|
113574
|
+
};
|
|
113575
|
+
|
|
113576
|
+
|
|
113577
|
+
/**
|
|
113578
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
113579
|
+
* @return {!Uint8Array}
|
|
113580
|
+
*/
|
|
113581
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.serializeBinary = function() {
|
|
113582
|
+
var writer = new jspb.BinaryWriter();
|
|
113583
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.serializeBinaryToWriter(this, writer);
|
|
113584
|
+
return writer.getResultBuffer();
|
|
113585
|
+
};
|
|
113586
|
+
|
|
113587
|
+
|
|
113588
|
+
/**
|
|
113589
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
113590
|
+
* format), writing to the given BinaryWriter.
|
|
113591
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadRequest} message
|
|
113592
|
+
* @param {!jspb.BinaryWriter} writer
|
|
113593
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113594
|
+
*/
|
|
113595
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
113596
|
+
var f = undefined;
|
|
113597
|
+
f = message.getUploadConfig();
|
|
113598
|
+
if (f != null) {
|
|
113599
|
+
writer.writeMessage(
|
|
113600
|
+
2,
|
|
113601
|
+
f,
|
|
113602
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.serializeBinaryToWriter
|
|
113603
|
+
);
|
|
113604
|
+
}
|
|
113605
|
+
f = message.getContentPart();
|
|
113606
|
+
if (f != null) {
|
|
113607
|
+
writer.writeMessage(
|
|
113608
|
+
3,
|
|
113609
|
+
f,
|
|
113610
|
+
proto_clarifai_api_resources_pb.UploadContentPart.serializeBinaryToWriter
|
|
113611
|
+
);
|
|
113612
|
+
}
|
|
113613
|
+
};
|
|
113614
|
+
|
|
113615
|
+
|
|
113616
|
+
/**
|
|
113617
|
+
* optional PostArtifactVersionsUploadConfig upload_config = 2;
|
|
113618
|
+
* @return {?proto.clarifai.api.PostArtifactVersionsUploadConfig}
|
|
113619
|
+
*/
|
|
113620
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.getUploadConfig = function() {
|
|
113621
|
+
return /** @type{?proto.clarifai.api.PostArtifactVersionsUploadConfig} */ (
|
|
113622
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.PostArtifactVersionsUploadConfig, 2));
|
|
113623
|
+
};
|
|
113624
|
+
|
|
113625
|
+
|
|
113626
|
+
/**
|
|
113627
|
+
* @param {?proto.clarifai.api.PostArtifactVersionsUploadConfig|undefined} value
|
|
113628
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
113629
|
+
*/
|
|
113630
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.setUploadConfig = function(value) {
|
|
113631
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_[0], value);
|
|
113632
|
+
};
|
|
113633
|
+
|
|
113634
|
+
|
|
113635
|
+
/**
|
|
113636
|
+
* Clears the message field making it undefined.
|
|
113637
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
113638
|
+
*/
|
|
113639
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.clearUploadConfig = function() {
|
|
113640
|
+
return this.setUploadConfig(undefined);
|
|
113641
|
+
};
|
|
113642
|
+
|
|
113643
|
+
|
|
113644
|
+
/**
|
|
113645
|
+
* Returns whether this field is set.
|
|
113646
|
+
* @return {boolean}
|
|
113647
|
+
*/
|
|
113648
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.hasUploadConfig = function() {
|
|
113649
|
+
return jspb.Message.getField(this, 2) != null;
|
|
113650
|
+
};
|
|
113651
|
+
|
|
113652
|
+
|
|
113653
|
+
/**
|
|
113654
|
+
* optional UploadContentPart content_part = 3;
|
|
113655
|
+
* @return {?proto.clarifai.api.UploadContentPart}
|
|
113656
|
+
*/
|
|
113657
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.getContentPart = function() {
|
|
113658
|
+
return /** @type{?proto.clarifai.api.UploadContentPart} */ (
|
|
113659
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UploadContentPart, 3));
|
|
113660
|
+
};
|
|
113661
|
+
|
|
113662
|
+
|
|
113663
|
+
/**
|
|
113664
|
+
* @param {?proto.clarifai.api.UploadContentPart|undefined} value
|
|
113665
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
113666
|
+
*/
|
|
113667
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.setContentPart = function(value) {
|
|
113668
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.PostArtifactVersionsUploadRequest.oneofGroups_[0], value);
|
|
113669
|
+
};
|
|
113670
|
+
|
|
113671
|
+
|
|
113672
|
+
/**
|
|
113673
|
+
* Clears the message field making it undefined.
|
|
113674
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadRequest} returns this
|
|
113675
|
+
*/
|
|
113676
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.clearContentPart = function() {
|
|
113677
|
+
return this.setContentPart(undefined);
|
|
113678
|
+
};
|
|
113679
|
+
|
|
113680
|
+
|
|
113681
|
+
/**
|
|
113682
|
+
* Returns whether this field is set.
|
|
113683
|
+
* @return {boolean}
|
|
113684
|
+
*/
|
|
113685
|
+
proto.clarifai.api.PostArtifactVersionsUploadRequest.prototype.hasContentPart = function() {
|
|
113686
|
+
return jspb.Message.getField(this, 3) != null;
|
|
113687
|
+
};
|
|
113688
|
+
|
|
113689
|
+
|
|
113690
|
+
|
|
113691
|
+
|
|
113692
|
+
|
|
113693
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
113694
|
+
/**
|
|
113695
|
+
* Creates an object representation of this proto.
|
|
113696
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
113697
|
+
* Optional fields that are not set will be set to undefined.
|
|
113698
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
113699
|
+
* For the list of reserved names please see:
|
|
113700
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
113701
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
113702
|
+
* JSPB instance for transitional soy proto support:
|
|
113703
|
+
* http://goto/soy-param-migration
|
|
113704
|
+
* @return {!Object}
|
|
113705
|
+
*/
|
|
113706
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
113707
|
+
return proto.clarifai.api.PostArtifactVersionsUploadResponse.toObject(opt_includeInstance, this);
|
|
113708
|
+
};
|
|
113709
|
+
|
|
113710
|
+
|
|
113711
|
+
/**
|
|
113712
|
+
* Static version of the {@see toObject} method.
|
|
113713
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
113714
|
+
* the JSPB instance for transitional soy proto support:
|
|
113715
|
+
* http://goto/soy-param-migration
|
|
113716
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadResponse} msg The msg instance to transform.
|
|
113717
|
+
* @return {!Object}
|
|
113718
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113719
|
+
*/
|
|
113720
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.toObject = function(includeInstance, msg) {
|
|
113721
|
+
var f, obj = {
|
|
113722
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
113723
|
+
bytesRemaining: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
113724
|
+
artifactVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
113725
|
+
};
|
|
113726
|
+
|
|
113727
|
+
if (includeInstance) {
|
|
113728
|
+
obj.$jspbMessageInstance = msg;
|
|
113729
|
+
}
|
|
113730
|
+
return obj;
|
|
113731
|
+
};
|
|
113732
|
+
}
|
|
113733
|
+
|
|
113734
|
+
|
|
113735
|
+
/**
|
|
113736
|
+
* Deserializes binary data (in protobuf wire format).
|
|
113737
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
113738
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse}
|
|
113739
|
+
*/
|
|
113740
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.deserializeBinary = function(bytes) {
|
|
113741
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113742
|
+
var msg = new proto.clarifai.api.PostArtifactVersionsUploadResponse;
|
|
113743
|
+
return proto.clarifai.api.PostArtifactVersionsUploadResponse.deserializeBinaryFromReader(msg, reader);
|
|
113744
|
+
};
|
|
113745
|
+
|
|
113746
|
+
|
|
113747
|
+
/**
|
|
113748
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
113749
|
+
* given reader into the given message object.
|
|
113750
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadResponse} msg The message object to deserialize into.
|
|
113751
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
113752
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse}
|
|
113753
|
+
*/
|
|
113754
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
113755
|
+
while (reader.nextField()) {
|
|
113756
|
+
if (reader.isEndGroup()) {
|
|
113757
|
+
break;
|
|
113758
|
+
}
|
|
113759
|
+
var field = reader.getFieldNumber();
|
|
113760
|
+
switch (field) {
|
|
113761
|
+
case 1:
|
|
113762
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
113763
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
113764
|
+
msg.setStatus(value);
|
|
113765
|
+
break;
|
|
113766
|
+
case 2:
|
|
113767
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
113768
|
+
msg.setBytesRemaining(value);
|
|
113769
|
+
break;
|
|
113770
|
+
case 3:
|
|
113771
|
+
var value = /** @type {string} */ (reader.readString());
|
|
113772
|
+
msg.setArtifactVersionId(value);
|
|
113773
|
+
break;
|
|
113774
|
+
default:
|
|
113775
|
+
reader.skipField();
|
|
113776
|
+
break;
|
|
113777
|
+
}
|
|
113778
|
+
}
|
|
113779
|
+
return msg;
|
|
113780
|
+
};
|
|
113781
|
+
|
|
113782
|
+
|
|
113783
|
+
/**
|
|
113784
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
113785
|
+
* @return {!Uint8Array}
|
|
113786
|
+
*/
|
|
113787
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.serializeBinary = function() {
|
|
113788
|
+
var writer = new jspb.BinaryWriter();
|
|
113789
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.serializeBinaryToWriter(this, writer);
|
|
113790
|
+
return writer.getResultBuffer();
|
|
113791
|
+
};
|
|
113792
|
+
|
|
113793
|
+
|
|
113794
|
+
/**
|
|
113795
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
113796
|
+
* format), writing to the given BinaryWriter.
|
|
113797
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadResponse} message
|
|
113798
|
+
* @param {!jspb.BinaryWriter} writer
|
|
113799
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113800
|
+
*/
|
|
113801
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
113802
|
+
var f = undefined;
|
|
113803
|
+
f = message.getStatus();
|
|
113804
|
+
if (f != null) {
|
|
113805
|
+
writer.writeMessage(
|
|
113806
|
+
1,
|
|
113807
|
+
f,
|
|
113808
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
113809
|
+
);
|
|
113810
|
+
}
|
|
113811
|
+
f = message.getBytesRemaining();
|
|
113812
|
+
if (f !== 0) {
|
|
113813
|
+
writer.writeUint64(
|
|
113814
|
+
2,
|
|
113815
|
+
f
|
|
113816
|
+
);
|
|
113817
|
+
}
|
|
113818
|
+
f = message.getArtifactVersionId();
|
|
113819
|
+
if (f.length > 0) {
|
|
113820
|
+
writer.writeString(
|
|
113821
|
+
3,
|
|
113822
|
+
f
|
|
113823
|
+
);
|
|
113824
|
+
}
|
|
113825
|
+
};
|
|
113826
|
+
|
|
113827
|
+
|
|
113828
|
+
/**
|
|
113829
|
+
* optional status.Status status = 1;
|
|
113830
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
113831
|
+
*/
|
|
113832
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.getStatus = function() {
|
|
113833
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
113834
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
113835
|
+
};
|
|
113836
|
+
|
|
113837
|
+
|
|
113838
|
+
/**
|
|
113839
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
113840
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
113841
|
+
*/
|
|
113842
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.setStatus = function(value) {
|
|
113843
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
113844
|
+
};
|
|
113845
|
+
|
|
113846
|
+
|
|
113847
|
+
/**
|
|
113848
|
+
* Clears the message field making it undefined.
|
|
113849
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
113850
|
+
*/
|
|
113851
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.clearStatus = function() {
|
|
113852
|
+
return this.setStatus(undefined);
|
|
113853
|
+
};
|
|
113854
|
+
|
|
113855
|
+
|
|
113856
|
+
/**
|
|
113857
|
+
* Returns whether this field is set.
|
|
113858
|
+
* @return {boolean}
|
|
113859
|
+
*/
|
|
113860
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.hasStatus = function() {
|
|
113861
|
+
return jspb.Message.getField(this, 1) != null;
|
|
113862
|
+
};
|
|
113863
|
+
|
|
113864
|
+
|
|
113865
|
+
/**
|
|
113866
|
+
* optional uint64 bytes_remaining = 2;
|
|
113867
|
+
* @return {number}
|
|
113868
|
+
*/
|
|
113869
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.getBytesRemaining = function() {
|
|
113870
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
113871
|
+
};
|
|
113872
|
+
|
|
113873
|
+
|
|
113874
|
+
/**
|
|
113875
|
+
* @param {number} value
|
|
113876
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
113877
|
+
*/
|
|
113878
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.setBytesRemaining = function(value) {
|
|
113879
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
113880
|
+
};
|
|
113881
|
+
|
|
113882
|
+
|
|
113883
|
+
/**
|
|
113884
|
+
* optional string artifact_version_id = 3;
|
|
113885
|
+
* @return {string}
|
|
113886
|
+
*/
|
|
113887
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.getArtifactVersionId = function() {
|
|
113888
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
113889
|
+
};
|
|
113890
|
+
|
|
113891
|
+
|
|
113892
|
+
/**
|
|
113893
|
+
* @param {string} value
|
|
113894
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadResponse} returns this
|
|
113895
|
+
*/
|
|
113896
|
+
proto.clarifai.api.PostArtifactVersionsUploadResponse.prototype.setArtifactVersionId = function(value) {
|
|
113897
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
113898
|
+
};
|
|
113899
|
+
|
|
113900
|
+
|
|
113901
|
+
|
|
113902
|
+
|
|
113903
|
+
|
|
113904
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
113905
|
+
/**
|
|
113906
|
+
* Creates an object representation of this proto.
|
|
113907
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
113908
|
+
* Optional fields that are not set will be set to undefined.
|
|
113909
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
113910
|
+
* For the list of reserved names please see:
|
|
113911
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
113912
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
113913
|
+
* JSPB instance for transitional soy proto support:
|
|
113914
|
+
* http://goto/soy-param-migration
|
|
113915
|
+
* @return {!Object}
|
|
113916
|
+
*/
|
|
113917
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.toObject = function(opt_includeInstance) {
|
|
113918
|
+
return proto.clarifai.api.PostArtifactVersionsUploadConfig.toObject(opt_includeInstance, this);
|
|
113919
|
+
};
|
|
113920
|
+
|
|
113921
|
+
|
|
113922
|
+
/**
|
|
113923
|
+
* Static version of the {@see toObject} method.
|
|
113924
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
113925
|
+
* the JSPB instance for transitional soy proto support:
|
|
113926
|
+
* http://goto/soy-param-migration
|
|
113927
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadConfig} msg The msg instance to transform.
|
|
113928
|
+
* @return {!Object}
|
|
113929
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113930
|
+
*/
|
|
113931
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.toObject = function(includeInstance, msg) {
|
|
113932
|
+
var f, obj = {
|
|
113933
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
113934
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
113935
|
+
artifactVersion: (f = msg.getArtifactVersion()) && proto_clarifai_api_resources_pb.ArtifactVersion.toObject(includeInstance, f),
|
|
113936
|
+
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
113937
|
+
storageRequestSize: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
113938
|
+
};
|
|
113939
|
+
|
|
113940
|
+
if (includeInstance) {
|
|
113941
|
+
obj.$jspbMessageInstance = msg;
|
|
113942
|
+
}
|
|
113943
|
+
return obj;
|
|
113944
|
+
};
|
|
113945
|
+
}
|
|
113946
|
+
|
|
113947
|
+
|
|
113948
|
+
/**
|
|
113949
|
+
* Deserializes binary data (in protobuf wire format).
|
|
113950
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
113951
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig}
|
|
113952
|
+
*/
|
|
113953
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinary = function(bytes) {
|
|
113954
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
113955
|
+
var msg = new proto.clarifai.api.PostArtifactVersionsUploadConfig;
|
|
113956
|
+
return proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinaryFromReader(msg, reader);
|
|
113957
|
+
};
|
|
113958
|
+
|
|
113959
|
+
|
|
113960
|
+
/**
|
|
113961
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
113962
|
+
* given reader into the given message object.
|
|
113963
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadConfig} msg The message object to deserialize into.
|
|
113964
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
113965
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig}
|
|
113966
|
+
*/
|
|
113967
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
113968
|
+
while (reader.nextField()) {
|
|
113969
|
+
if (reader.isEndGroup()) {
|
|
113970
|
+
break;
|
|
113971
|
+
}
|
|
113972
|
+
var field = reader.getFieldNumber();
|
|
113973
|
+
switch (field) {
|
|
113974
|
+
case 1:
|
|
113975
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
113976
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
113977
|
+
msg.setUserAppId(value);
|
|
113978
|
+
break;
|
|
113979
|
+
case 2:
|
|
113980
|
+
var value = /** @type {string} */ (reader.readString());
|
|
113981
|
+
msg.setArtifactId(value);
|
|
113982
|
+
break;
|
|
113983
|
+
case 3:
|
|
113984
|
+
var value = new proto_clarifai_api_resources_pb.ArtifactVersion;
|
|
113985
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.ArtifactVersion.deserializeBinaryFromReader);
|
|
113986
|
+
msg.setArtifactVersion(value);
|
|
113987
|
+
break;
|
|
113988
|
+
case 4:
|
|
113989
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
113990
|
+
msg.setTotalSize(value);
|
|
113991
|
+
break;
|
|
113992
|
+
case 5:
|
|
113993
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
113994
|
+
msg.setStorageRequestSize(value);
|
|
113995
|
+
break;
|
|
113996
|
+
default:
|
|
113997
|
+
reader.skipField();
|
|
113998
|
+
break;
|
|
113999
|
+
}
|
|
114000
|
+
}
|
|
114001
|
+
return msg;
|
|
114002
|
+
};
|
|
114003
|
+
|
|
114004
|
+
|
|
114005
|
+
/**
|
|
114006
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
114007
|
+
* @return {!Uint8Array}
|
|
114008
|
+
*/
|
|
114009
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.serializeBinary = function() {
|
|
114010
|
+
var writer = new jspb.BinaryWriter();
|
|
114011
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.serializeBinaryToWriter(this, writer);
|
|
114012
|
+
return writer.getResultBuffer();
|
|
114013
|
+
};
|
|
114014
|
+
|
|
114015
|
+
|
|
114016
|
+
/**
|
|
114017
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
114018
|
+
* format), writing to the given BinaryWriter.
|
|
114019
|
+
* @param {!proto.clarifai.api.PostArtifactVersionsUploadConfig} message
|
|
114020
|
+
* @param {!jspb.BinaryWriter} writer
|
|
114021
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114022
|
+
*/
|
|
114023
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.serializeBinaryToWriter = function(message, writer) {
|
|
114024
|
+
var f = undefined;
|
|
114025
|
+
f = message.getUserAppId();
|
|
114026
|
+
if (f != null) {
|
|
114027
|
+
writer.writeMessage(
|
|
114028
|
+
1,
|
|
114029
|
+
f,
|
|
114030
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
114031
|
+
);
|
|
114032
|
+
}
|
|
114033
|
+
f = message.getArtifactId();
|
|
114034
|
+
if (f.length > 0) {
|
|
114035
|
+
writer.writeString(
|
|
114036
|
+
2,
|
|
114037
|
+
f
|
|
114038
|
+
);
|
|
114039
|
+
}
|
|
114040
|
+
f = message.getArtifactVersion();
|
|
114041
|
+
if (f != null) {
|
|
114042
|
+
writer.writeMessage(
|
|
114043
|
+
3,
|
|
114044
|
+
f,
|
|
114045
|
+
proto_clarifai_api_resources_pb.ArtifactVersion.serializeBinaryToWriter
|
|
114046
|
+
);
|
|
114047
|
+
}
|
|
114048
|
+
f = message.getTotalSize();
|
|
114049
|
+
if (f !== 0) {
|
|
114050
|
+
writer.writeUint64(
|
|
114051
|
+
4,
|
|
114052
|
+
f
|
|
114053
|
+
);
|
|
114054
|
+
}
|
|
114055
|
+
f = message.getStorageRequestSize();
|
|
114056
|
+
if (f !== 0) {
|
|
114057
|
+
writer.writeUint64(
|
|
114058
|
+
5,
|
|
114059
|
+
f
|
|
114060
|
+
);
|
|
114061
|
+
}
|
|
114062
|
+
};
|
|
114063
|
+
|
|
114064
|
+
|
|
114065
|
+
/**
|
|
114066
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
114067
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
114068
|
+
*/
|
|
114069
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getUserAppId = function() {
|
|
114070
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
114071
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
114072
|
+
};
|
|
114073
|
+
|
|
114074
|
+
|
|
114075
|
+
/**
|
|
114076
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
114077
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
114078
|
+
*/
|
|
114079
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setUserAppId = function(value) {
|
|
114080
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
114081
|
+
};
|
|
114082
|
+
|
|
114083
|
+
|
|
114084
|
+
/**
|
|
114085
|
+
* Clears the message field making it undefined.
|
|
114086
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
114087
|
+
*/
|
|
114088
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.clearUserAppId = function() {
|
|
114089
|
+
return this.setUserAppId(undefined);
|
|
114090
|
+
};
|
|
114091
|
+
|
|
114092
|
+
|
|
114093
|
+
/**
|
|
114094
|
+
* Returns whether this field is set.
|
|
114095
|
+
* @return {boolean}
|
|
114096
|
+
*/
|
|
114097
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.hasUserAppId = function() {
|
|
114098
|
+
return jspb.Message.getField(this, 1) != null;
|
|
114099
|
+
};
|
|
114100
|
+
|
|
114101
|
+
|
|
114102
|
+
/**
|
|
114103
|
+
* optional string artifact_id = 2;
|
|
114104
|
+
* @return {string}
|
|
114105
|
+
*/
|
|
114106
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getArtifactId = function() {
|
|
114107
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
114108
|
+
};
|
|
114109
|
+
|
|
114110
|
+
|
|
114111
|
+
/**
|
|
114112
|
+
* @param {string} value
|
|
114113
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
114114
|
+
*/
|
|
114115
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setArtifactId = function(value) {
|
|
114116
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
114117
|
+
};
|
|
114118
|
+
|
|
114119
|
+
|
|
114120
|
+
/**
|
|
114121
|
+
* optional ArtifactVersion artifact_version = 3;
|
|
114122
|
+
* @return {?proto.clarifai.api.ArtifactVersion}
|
|
114123
|
+
*/
|
|
114124
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getArtifactVersion = function() {
|
|
114125
|
+
return /** @type{?proto.clarifai.api.ArtifactVersion} */ (
|
|
114126
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ArtifactVersion, 3));
|
|
114127
|
+
};
|
|
114128
|
+
|
|
114129
|
+
|
|
114130
|
+
/**
|
|
114131
|
+
* @param {?proto.clarifai.api.ArtifactVersion|undefined} value
|
|
114132
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
114133
|
+
*/
|
|
114134
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setArtifactVersion = function(value) {
|
|
114135
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
114136
|
+
};
|
|
114137
|
+
|
|
114138
|
+
|
|
114139
|
+
/**
|
|
114140
|
+
* Clears the message field making it undefined.
|
|
114141
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
114142
|
+
*/
|
|
114143
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.clearArtifactVersion = function() {
|
|
114144
|
+
return this.setArtifactVersion(undefined);
|
|
114145
|
+
};
|
|
114146
|
+
|
|
114147
|
+
|
|
114148
|
+
/**
|
|
114149
|
+
* Returns whether this field is set.
|
|
114150
|
+
* @return {boolean}
|
|
114151
|
+
*/
|
|
114152
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.hasArtifactVersion = function() {
|
|
114153
|
+
return jspb.Message.getField(this, 3) != null;
|
|
114154
|
+
};
|
|
114155
|
+
|
|
114156
|
+
|
|
114157
|
+
/**
|
|
114158
|
+
* optional uint64 total_size = 4;
|
|
114159
|
+
* @return {number}
|
|
114160
|
+
*/
|
|
114161
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getTotalSize = function() {
|
|
114162
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
114163
|
+
};
|
|
114164
|
+
|
|
114165
|
+
|
|
114166
|
+
/**
|
|
114167
|
+
* @param {number} value
|
|
114168
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
114169
|
+
*/
|
|
114170
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setTotalSize = function(value) {
|
|
114171
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
114172
|
+
};
|
|
114173
|
+
|
|
114174
|
+
|
|
114175
|
+
/**
|
|
114176
|
+
* optional uint64 storage_request_size = 5;
|
|
114177
|
+
* @return {number}
|
|
114178
|
+
*/
|
|
114179
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.getStorageRequestSize = function() {
|
|
114180
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
114181
|
+
};
|
|
114182
|
+
|
|
114183
|
+
|
|
114184
|
+
/**
|
|
114185
|
+
* @param {number} value
|
|
114186
|
+
* @return {!proto.clarifai.api.PostArtifactVersionsUploadConfig} returns this
|
|
114187
|
+
*/
|
|
114188
|
+
proto.clarifai.api.PostArtifactVersionsUploadConfig.prototype.setStorageRequestSize = function(value) {
|
|
114189
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
114190
|
+
};
|
|
114191
|
+
|
|
114192
|
+
|
|
114193
|
+
|
|
114194
|
+
|
|
114195
|
+
|
|
114196
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
114197
|
+
/**
|
|
114198
|
+
* Creates an object representation of this proto.
|
|
114199
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
114200
|
+
* Optional fields that are not set will be set to undefined.
|
|
114201
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
114202
|
+
* For the list of reserved names please see:
|
|
114203
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
114204
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
114205
|
+
* JSPB instance for transitional soy proto support:
|
|
114206
|
+
* http://goto/soy-param-migration
|
|
114207
|
+
* @return {!Object}
|
|
114208
|
+
*/
|
|
114209
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
114210
|
+
return proto.clarifai.api.ListArtifactVersionsRequest.toObject(opt_includeInstance, this);
|
|
114211
|
+
};
|
|
114212
|
+
|
|
114213
|
+
|
|
114214
|
+
/**
|
|
114215
|
+
* Static version of the {@see toObject} method.
|
|
114216
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
114217
|
+
* the JSPB instance for transitional soy proto support:
|
|
114218
|
+
* http://goto/soy-param-migration
|
|
114219
|
+
* @param {!proto.clarifai.api.ListArtifactVersionsRequest} msg The msg instance to transform.
|
|
114220
|
+
* @return {!Object}
|
|
114221
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114222
|
+
*/
|
|
114223
|
+
proto.clarifai.api.ListArtifactVersionsRequest.toObject = function(includeInstance, msg) {
|
|
114224
|
+
var f, obj = {
|
|
114225
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
114226
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
114227
|
+
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
114228
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
114229
|
+
};
|
|
114230
|
+
|
|
114231
|
+
if (includeInstance) {
|
|
114232
|
+
obj.$jspbMessageInstance = msg;
|
|
114233
|
+
}
|
|
114234
|
+
return obj;
|
|
114235
|
+
};
|
|
114236
|
+
}
|
|
114237
|
+
|
|
114238
|
+
|
|
114239
|
+
/**
|
|
114240
|
+
* Deserializes binary data (in protobuf wire format).
|
|
114241
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
114242
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest}
|
|
114243
|
+
*/
|
|
114244
|
+
proto.clarifai.api.ListArtifactVersionsRequest.deserializeBinary = function(bytes) {
|
|
114245
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
114246
|
+
var msg = new proto.clarifai.api.ListArtifactVersionsRequest;
|
|
114247
|
+
return proto.clarifai.api.ListArtifactVersionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
114248
|
+
};
|
|
114249
|
+
|
|
114250
|
+
|
|
114251
|
+
/**
|
|
114252
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
114253
|
+
* given reader into the given message object.
|
|
114254
|
+
* @param {!proto.clarifai.api.ListArtifactVersionsRequest} msg The message object to deserialize into.
|
|
114255
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
114256
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest}
|
|
114257
|
+
*/
|
|
114258
|
+
proto.clarifai.api.ListArtifactVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
114259
|
+
while (reader.nextField()) {
|
|
114260
|
+
if (reader.isEndGroup()) {
|
|
114261
|
+
break;
|
|
114262
|
+
}
|
|
114263
|
+
var field = reader.getFieldNumber();
|
|
114264
|
+
switch (field) {
|
|
114265
|
+
case 1:
|
|
114266
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
114267
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
114268
|
+
msg.setUserAppId(value);
|
|
114269
|
+
break;
|
|
114270
|
+
case 2:
|
|
114271
|
+
var value = /** @type {string} */ (reader.readString());
|
|
114272
|
+
msg.setArtifactId(value);
|
|
114273
|
+
break;
|
|
114274
|
+
case 3:
|
|
114275
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
114276
|
+
msg.setPage(value);
|
|
114277
|
+
break;
|
|
114278
|
+
case 4:
|
|
114279
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
114280
|
+
msg.setPerPage(value);
|
|
114281
|
+
break;
|
|
114282
|
+
default:
|
|
114283
|
+
reader.skipField();
|
|
114284
|
+
break;
|
|
114285
|
+
}
|
|
114286
|
+
}
|
|
114287
|
+
return msg;
|
|
114288
|
+
};
|
|
114289
|
+
|
|
114290
|
+
|
|
114291
|
+
/**
|
|
114292
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
114293
|
+
* @return {!Uint8Array}
|
|
114294
|
+
*/
|
|
114295
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.serializeBinary = function() {
|
|
114296
|
+
var writer = new jspb.BinaryWriter();
|
|
114297
|
+
proto.clarifai.api.ListArtifactVersionsRequest.serializeBinaryToWriter(this, writer);
|
|
114298
|
+
return writer.getResultBuffer();
|
|
114299
|
+
};
|
|
114300
|
+
|
|
114301
|
+
|
|
114302
|
+
/**
|
|
114303
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
114304
|
+
* format), writing to the given BinaryWriter.
|
|
114305
|
+
* @param {!proto.clarifai.api.ListArtifactVersionsRequest} message
|
|
114306
|
+
* @param {!jspb.BinaryWriter} writer
|
|
114307
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114308
|
+
*/
|
|
114309
|
+
proto.clarifai.api.ListArtifactVersionsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
114310
|
+
var f = undefined;
|
|
114311
|
+
f = message.getUserAppId();
|
|
114312
|
+
if (f != null) {
|
|
114313
|
+
writer.writeMessage(
|
|
114314
|
+
1,
|
|
114315
|
+
f,
|
|
114316
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
114317
|
+
);
|
|
114318
|
+
}
|
|
114319
|
+
f = message.getArtifactId();
|
|
114320
|
+
if (f.length > 0) {
|
|
114321
|
+
writer.writeString(
|
|
114322
|
+
2,
|
|
114323
|
+
f
|
|
114324
|
+
);
|
|
114325
|
+
}
|
|
114326
|
+
f = message.getPage();
|
|
114327
|
+
if (f !== 0) {
|
|
114328
|
+
writer.writeUint32(
|
|
114329
|
+
3,
|
|
114330
|
+
f
|
|
114331
|
+
);
|
|
114332
|
+
}
|
|
114333
|
+
f = message.getPerPage();
|
|
114334
|
+
if (f !== 0) {
|
|
114335
|
+
writer.writeUint32(
|
|
114336
|
+
4,
|
|
114337
|
+
f
|
|
114338
|
+
);
|
|
114339
|
+
}
|
|
114340
|
+
};
|
|
114341
|
+
|
|
114342
|
+
|
|
114343
|
+
/**
|
|
114344
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
114345
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
114346
|
+
*/
|
|
114347
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getUserAppId = function() {
|
|
114348
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
114349
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
114350
|
+
};
|
|
114351
|
+
|
|
114352
|
+
|
|
114353
|
+
/**
|
|
114354
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
114355
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
114356
|
+
*/
|
|
114357
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setUserAppId = function(value) {
|
|
114358
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
114359
|
+
};
|
|
114360
|
+
|
|
114361
|
+
|
|
114362
|
+
/**
|
|
114363
|
+
* Clears the message field making it undefined.
|
|
114364
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
114365
|
+
*/
|
|
114366
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.clearUserAppId = function() {
|
|
114367
|
+
return this.setUserAppId(undefined);
|
|
114368
|
+
};
|
|
114369
|
+
|
|
114370
|
+
|
|
114371
|
+
/**
|
|
114372
|
+
* Returns whether this field is set.
|
|
114373
|
+
* @return {boolean}
|
|
114374
|
+
*/
|
|
114375
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.hasUserAppId = function() {
|
|
114376
|
+
return jspb.Message.getField(this, 1) != null;
|
|
114377
|
+
};
|
|
114378
|
+
|
|
114379
|
+
|
|
114380
|
+
/**
|
|
114381
|
+
* optional string artifact_id = 2;
|
|
114382
|
+
* @return {string}
|
|
114383
|
+
*/
|
|
114384
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getArtifactId = function() {
|
|
114385
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
114386
|
+
};
|
|
114387
|
+
|
|
114388
|
+
|
|
114389
|
+
/**
|
|
114390
|
+
* @param {string} value
|
|
114391
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
114392
|
+
*/
|
|
114393
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setArtifactId = function(value) {
|
|
114394
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
114395
|
+
};
|
|
114396
|
+
|
|
114397
|
+
|
|
114398
|
+
/**
|
|
114399
|
+
* optional uint32 page = 3;
|
|
114400
|
+
* @return {number}
|
|
114401
|
+
*/
|
|
114402
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getPage = function() {
|
|
114403
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
114404
|
+
};
|
|
114405
|
+
|
|
114406
|
+
|
|
114407
|
+
/**
|
|
114408
|
+
* @param {number} value
|
|
114409
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
114410
|
+
*/
|
|
114411
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setPage = function(value) {
|
|
114412
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
114413
|
+
};
|
|
114414
|
+
|
|
114415
|
+
|
|
114416
|
+
/**
|
|
114417
|
+
* optional uint32 per_page = 4;
|
|
114418
|
+
* @return {number}
|
|
114419
|
+
*/
|
|
114420
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.getPerPage = function() {
|
|
114421
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
114422
|
+
};
|
|
114423
|
+
|
|
114424
|
+
|
|
114425
|
+
/**
|
|
114426
|
+
* @param {number} value
|
|
114427
|
+
* @return {!proto.clarifai.api.ListArtifactVersionsRequest} returns this
|
|
114428
|
+
*/
|
|
114429
|
+
proto.clarifai.api.ListArtifactVersionsRequest.prototype.setPerPage = function(value) {
|
|
114430
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
114431
|
+
};
|
|
114432
|
+
|
|
114433
|
+
|
|
114434
|
+
|
|
114435
|
+
/**
|
|
114436
|
+
* List of repeated fields within this message type.
|
|
114437
|
+
* @private {!Array<number>}
|
|
114438
|
+
* @const
|
|
114439
|
+
*/
|
|
114440
|
+
proto.clarifai.api.MultiArtifactVersionResponse.repeatedFields_ = [2];
|
|
114441
|
+
|
|
114442
|
+
|
|
114443
|
+
|
|
114444
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
114445
|
+
/**
|
|
114446
|
+
* Creates an object representation of this proto.
|
|
114447
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
114448
|
+
* Optional fields that are not set will be set to undefined.
|
|
114449
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
114450
|
+
* For the list of reserved names please see:
|
|
114451
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
114452
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
114453
|
+
* JSPB instance for transitional soy proto support:
|
|
114454
|
+
* http://goto/soy-param-migration
|
|
114455
|
+
* @return {!Object}
|
|
114456
|
+
*/
|
|
114457
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
114458
|
+
return proto.clarifai.api.MultiArtifactVersionResponse.toObject(opt_includeInstance, this);
|
|
114459
|
+
};
|
|
114460
|
+
|
|
114461
|
+
|
|
114462
|
+
/**
|
|
114463
|
+
* Static version of the {@see toObject} method.
|
|
114464
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
114465
|
+
* the JSPB instance for transitional soy proto support:
|
|
114466
|
+
* http://goto/soy-param-migration
|
|
114467
|
+
* @param {!proto.clarifai.api.MultiArtifactVersionResponse} msg The msg instance to transform.
|
|
114468
|
+
* @return {!Object}
|
|
114469
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114470
|
+
*/
|
|
114471
|
+
proto.clarifai.api.MultiArtifactVersionResponse.toObject = function(includeInstance, msg) {
|
|
114472
|
+
var f, obj = {
|
|
114473
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
114474
|
+
artifactVersionsList: jspb.Message.toObjectList(msg.getArtifactVersionsList(),
|
|
114475
|
+
proto_clarifai_api_resources_pb.ArtifactVersion.toObject, includeInstance)
|
|
114476
|
+
};
|
|
114477
|
+
|
|
114478
|
+
if (includeInstance) {
|
|
114479
|
+
obj.$jspbMessageInstance = msg;
|
|
114480
|
+
}
|
|
114481
|
+
return obj;
|
|
114482
|
+
};
|
|
114483
|
+
}
|
|
114484
|
+
|
|
114485
|
+
|
|
114486
|
+
/**
|
|
114487
|
+
* Deserializes binary data (in protobuf wire format).
|
|
114488
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
114489
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse}
|
|
114490
|
+
*/
|
|
114491
|
+
proto.clarifai.api.MultiArtifactVersionResponse.deserializeBinary = function(bytes) {
|
|
114492
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
114493
|
+
var msg = new proto.clarifai.api.MultiArtifactVersionResponse;
|
|
114494
|
+
return proto.clarifai.api.MultiArtifactVersionResponse.deserializeBinaryFromReader(msg, reader);
|
|
114495
|
+
};
|
|
114496
|
+
|
|
114497
|
+
|
|
114498
|
+
/**
|
|
114499
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
114500
|
+
* given reader into the given message object.
|
|
114501
|
+
* @param {!proto.clarifai.api.MultiArtifactVersionResponse} msg The message object to deserialize into.
|
|
114502
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
114503
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse}
|
|
114504
|
+
*/
|
|
114505
|
+
proto.clarifai.api.MultiArtifactVersionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
114506
|
+
while (reader.nextField()) {
|
|
114507
|
+
if (reader.isEndGroup()) {
|
|
114508
|
+
break;
|
|
114509
|
+
}
|
|
114510
|
+
var field = reader.getFieldNumber();
|
|
114511
|
+
switch (field) {
|
|
114512
|
+
case 1:
|
|
114513
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
114514
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
114515
|
+
msg.setStatus(value);
|
|
114516
|
+
break;
|
|
114517
|
+
case 2:
|
|
114518
|
+
var value = new proto_clarifai_api_resources_pb.ArtifactVersion;
|
|
114519
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.ArtifactVersion.deserializeBinaryFromReader);
|
|
114520
|
+
msg.addArtifactVersions(value);
|
|
114521
|
+
break;
|
|
114522
|
+
default:
|
|
114523
|
+
reader.skipField();
|
|
114524
|
+
break;
|
|
114525
|
+
}
|
|
114526
|
+
}
|
|
114527
|
+
return msg;
|
|
114528
|
+
};
|
|
114529
|
+
|
|
114530
|
+
|
|
114531
|
+
/**
|
|
114532
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
114533
|
+
* @return {!Uint8Array}
|
|
114534
|
+
*/
|
|
114535
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.serializeBinary = function() {
|
|
114536
|
+
var writer = new jspb.BinaryWriter();
|
|
114537
|
+
proto.clarifai.api.MultiArtifactVersionResponse.serializeBinaryToWriter(this, writer);
|
|
114538
|
+
return writer.getResultBuffer();
|
|
114539
|
+
};
|
|
114540
|
+
|
|
114541
|
+
|
|
114542
|
+
/**
|
|
114543
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
114544
|
+
* format), writing to the given BinaryWriter.
|
|
114545
|
+
* @param {!proto.clarifai.api.MultiArtifactVersionResponse} message
|
|
114546
|
+
* @param {!jspb.BinaryWriter} writer
|
|
114547
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114548
|
+
*/
|
|
114549
|
+
proto.clarifai.api.MultiArtifactVersionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
114550
|
+
var f = undefined;
|
|
114551
|
+
f = message.getStatus();
|
|
114552
|
+
if (f != null) {
|
|
114553
|
+
writer.writeMessage(
|
|
114554
|
+
1,
|
|
114555
|
+
f,
|
|
114556
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
114557
|
+
);
|
|
114558
|
+
}
|
|
114559
|
+
f = message.getArtifactVersionsList();
|
|
114560
|
+
if (f.length > 0) {
|
|
114561
|
+
writer.writeRepeatedMessage(
|
|
114562
|
+
2,
|
|
114563
|
+
f,
|
|
114564
|
+
proto_clarifai_api_resources_pb.ArtifactVersion.serializeBinaryToWriter
|
|
114565
|
+
);
|
|
114566
|
+
}
|
|
114567
|
+
};
|
|
114568
|
+
|
|
114569
|
+
|
|
114570
|
+
/**
|
|
114571
|
+
* optional status.Status status = 1;
|
|
114572
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
114573
|
+
*/
|
|
114574
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.getStatus = function() {
|
|
114575
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
114576
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
114577
|
+
};
|
|
114578
|
+
|
|
114579
|
+
|
|
114580
|
+
/**
|
|
114581
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
114582
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
114583
|
+
*/
|
|
114584
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.setStatus = function(value) {
|
|
114585
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
114586
|
+
};
|
|
114587
|
+
|
|
114588
|
+
|
|
114589
|
+
/**
|
|
114590
|
+
* Clears the message field making it undefined.
|
|
114591
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
114592
|
+
*/
|
|
114593
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.clearStatus = function() {
|
|
114594
|
+
return this.setStatus(undefined);
|
|
114595
|
+
};
|
|
114596
|
+
|
|
114597
|
+
|
|
114598
|
+
/**
|
|
114599
|
+
* Returns whether this field is set.
|
|
114600
|
+
* @return {boolean}
|
|
114601
|
+
*/
|
|
114602
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.hasStatus = function() {
|
|
114603
|
+
return jspb.Message.getField(this, 1) != null;
|
|
114604
|
+
};
|
|
114605
|
+
|
|
114606
|
+
|
|
114607
|
+
/**
|
|
114608
|
+
* repeated ArtifactVersion artifact_versions = 2;
|
|
114609
|
+
* @return {!Array<!proto.clarifai.api.ArtifactVersion>}
|
|
114610
|
+
*/
|
|
114611
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.getArtifactVersionsList = function() {
|
|
114612
|
+
return /** @type{!Array<!proto.clarifai.api.ArtifactVersion>} */ (
|
|
114613
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ArtifactVersion, 2));
|
|
114614
|
+
};
|
|
114615
|
+
|
|
114616
|
+
|
|
114617
|
+
/**
|
|
114618
|
+
* @param {!Array<!proto.clarifai.api.ArtifactVersion>} value
|
|
114619
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
114620
|
+
*/
|
|
114621
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.setArtifactVersionsList = function(value) {
|
|
114622
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
114623
|
+
};
|
|
114624
|
+
|
|
114625
|
+
|
|
114626
|
+
/**
|
|
114627
|
+
* @param {!proto.clarifai.api.ArtifactVersion=} opt_value
|
|
114628
|
+
* @param {number=} opt_index
|
|
114629
|
+
* @return {!proto.clarifai.api.ArtifactVersion}
|
|
114630
|
+
*/
|
|
114631
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.addArtifactVersions = function(opt_value, opt_index) {
|
|
114632
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ArtifactVersion, opt_index);
|
|
114633
|
+
};
|
|
114634
|
+
|
|
114635
|
+
|
|
114636
|
+
/**
|
|
114637
|
+
* Clears the list making it empty but non-null.
|
|
114638
|
+
* @return {!proto.clarifai.api.MultiArtifactVersionResponse} returns this
|
|
114639
|
+
*/
|
|
114640
|
+
proto.clarifai.api.MultiArtifactVersionResponse.prototype.clearArtifactVersionsList = function() {
|
|
114641
|
+
return this.setArtifactVersionsList([]);
|
|
114642
|
+
};
|
|
114643
|
+
|
|
114644
|
+
|
|
114645
|
+
|
|
114646
|
+
|
|
114647
|
+
|
|
114648
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
114649
|
+
/**
|
|
114650
|
+
* Creates an object representation of this proto.
|
|
114651
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
114652
|
+
* Optional fields that are not set will be set to undefined.
|
|
114653
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
114654
|
+
* For the list of reserved names please see:
|
|
114655
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
114656
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
114657
|
+
* JSPB instance for transitional soy proto support:
|
|
114658
|
+
* http://goto/soy-param-migration
|
|
114659
|
+
* @return {!Object}
|
|
114660
|
+
*/
|
|
114661
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
114662
|
+
return proto.clarifai.api.GetArtifactVersionRequest.toObject(opt_includeInstance, this);
|
|
114663
|
+
};
|
|
114664
|
+
|
|
114665
|
+
|
|
114666
|
+
/**
|
|
114667
|
+
* Static version of the {@see toObject} method.
|
|
114668
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
114669
|
+
* the JSPB instance for transitional soy proto support:
|
|
114670
|
+
* http://goto/soy-param-migration
|
|
114671
|
+
* @param {!proto.clarifai.api.GetArtifactVersionRequest} msg The msg instance to transform.
|
|
114672
|
+
* @return {!Object}
|
|
114673
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114674
|
+
*/
|
|
114675
|
+
proto.clarifai.api.GetArtifactVersionRequest.toObject = function(includeInstance, msg) {
|
|
114676
|
+
var f, obj = {
|
|
114677
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
114678
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
114679
|
+
artifactVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
114680
|
+
};
|
|
114681
|
+
|
|
114682
|
+
if (includeInstance) {
|
|
114683
|
+
obj.$jspbMessageInstance = msg;
|
|
114684
|
+
}
|
|
114685
|
+
return obj;
|
|
114686
|
+
};
|
|
114687
|
+
}
|
|
114688
|
+
|
|
114689
|
+
|
|
114690
|
+
/**
|
|
114691
|
+
* Deserializes binary data (in protobuf wire format).
|
|
114692
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
114693
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest}
|
|
114694
|
+
*/
|
|
114695
|
+
proto.clarifai.api.GetArtifactVersionRequest.deserializeBinary = function(bytes) {
|
|
114696
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
114697
|
+
var msg = new proto.clarifai.api.GetArtifactVersionRequest;
|
|
114698
|
+
return proto.clarifai.api.GetArtifactVersionRequest.deserializeBinaryFromReader(msg, reader);
|
|
114699
|
+
};
|
|
114700
|
+
|
|
114701
|
+
|
|
114702
|
+
/**
|
|
114703
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
114704
|
+
* given reader into the given message object.
|
|
114705
|
+
* @param {!proto.clarifai.api.GetArtifactVersionRequest} msg The message object to deserialize into.
|
|
114706
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
114707
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest}
|
|
114708
|
+
*/
|
|
114709
|
+
proto.clarifai.api.GetArtifactVersionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
114710
|
+
while (reader.nextField()) {
|
|
114711
|
+
if (reader.isEndGroup()) {
|
|
114712
|
+
break;
|
|
114713
|
+
}
|
|
114714
|
+
var field = reader.getFieldNumber();
|
|
114715
|
+
switch (field) {
|
|
114716
|
+
case 1:
|
|
114717
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
114718
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
114719
|
+
msg.setUserAppId(value);
|
|
114720
|
+
break;
|
|
114721
|
+
case 2:
|
|
114722
|
+
var value = /** @type {string} */ (reader.readString());
|
|
114723
|
+
msg.setArtifactId(value);
|
|
114724
|
+
break;
|
|
114725
|
+
case 3:
|
|
114726
|
+
var value = /** @type {string} */ (reader.readString());
|
|
114727
|
+
msg.setArtifactVersionId(value);
|
|
114728
|
+
break;
|
|
114729
|
+
default:
|
|
114730
|
+
reader.skipField();
|
|
114731
|
+
break;
|
|
114732
|
+
}
|
|
114733
|
+
}
|
|
114734
|
+
return msg;
|
|
114735
|
+
};
|
|
114736
|
+
|
|
114737
|
+
|
|
114738
|
+
/**
|
|
114739
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
114740
|
+
* @return {!Uint8Array}
|
|
114741
|
+
*/
|
|
114742
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.serializeBinary = function() {
|
|
114743
|
+
var writer = new jspb.BinaryWriter();
|
|
114744
|
+
proto.clarifai.api.GetArtifactVersionRequest.serializeBinaryToWriter(this, writer);
|
|
114745
|
+
return writer.getResultBuffer();
|
|
114746
|
+
};
|
|
114747
|
+
|
|
114748
|
+
|
|
114749
|
+
/**
|
|
114750
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
114751
|
+
* format), writing to the given BinaryWriter.
|
|
114752
|
+
* @param {!proto.clarifai.api.GetArtifactVersionRequest} message
|
|
114753
|
+
* @param {!jspb.BinaryWriter} writer
|
|
114754
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114755
|
+
*/
|
|
114756
|
+
proto.clarifai.api.GetArtifactVersionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
114757
|
+
var f = undefined;
|
|
114758
|
+
f = message.getUserAppId();
|
|
114759
|
+
if (f != null) {
|
|
114760
|
+
writer.writeMessage(
|
|
114761
|
+
1,
|
|
114762
|
+
f,
|
|
114763
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
114764
|
+
);
|
|
114765
|
+
}
|
|
114766
|
+
f = message.getArtifactId();
|
|
114767
|
+
if (f.length > 0) {
|
|
114768
|
+
writer.writeString(
|
|
114769
|
+
2,
|
|
114770
|
+
f
|
|
114771
|
+
);
|
|
114772
|
+
}
|
|
114773
|
+
f = message.getArtifactVersionId();
|
|
114774
|
+
if (f.length > 0) {
|
|
114775
|
+
writer.writeString(
|
|
114776
|
+
3,
|
|
114777
|
+
f
|
|
114778
|
+
);
|
|
114779
|
+
}
|
|
114780
|
+
};
|
|
114781
|
+
|
|
114782
|
+
|
|
114783
|
+
/**
|
|
114784
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
114785
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
114786
|
+
*/
|
|
114787
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.getUserAppId = function() {
|
|
114788
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
114789
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
114790
|
+
};
|
|
114791
|
+
|
|
114792
|
+
|
|
114793
|
+
/**
|
|
114794
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
114795
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
114796
|
+
*/
|
|
114797
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.setUserAppId = function(value) {
|
|
114798
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
114799
|
+
};
|
|
114800
|
+
|
|
114801
|
+
|
|
114802
|
+
/**
|
|
114803
|
+
* Clears the message field making it undefined.
|
|
114804
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
114805
|
+
*/
|
|
114806
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.clearUserAppId = function() {
|
|
114807
|
+
return this.setUserAppId(undefined);
|
|
114808
|
+
};
|
|
114809
|
+
|
|
114810
|
+
|
|
114811
|
+
/**
|
|
114812
|
+
* Returns whether this field is set.
|
|
114813
|
+
* @return {boolean}
|
|
114814
|
+
*/
|
|
114815
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.hasUserAppId = function() {
|
|
114816
|
+
return jspb.Message.getField(this, 1) != null;
|
|
114817
|
+
};
|
|
114818
|
+
|
|
114819
|
+
|
|
114820
|
+
/**
|
|
114821
|
+
* optional string artifact_id = 2;
|
|
114822
|
+
* @return {string}
|
|
114823
|
+
*/
|
|
114824
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.getArtifactId = function() {
|
|
114825
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
114826
|
+
};
|
|
114827
|
+
|
|
114828
|
+
|
|
114829
|
+
/**
|
|
114830
|
+
* @param {string} value
|
|
114831
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
114832
|
+
*/
|
|
114833
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.setArtifactId = function(value) {
|
|
114834
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
114835
|
+
};
|
|
114836
|
+
|
|
114837
|
+
|
|
114838
|
+
/**
|
|
114839
|
+
* optional string artifact_version_id = 3;
|
|
114840
|
+
* @return {string}
|
|
114841
|
+
*/
|
|
114842
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.getArtifactVersionId = function() {
|
|
114843
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
114844
|
+
};
|
|
114845
|
+
|
|
114846
|
+
|
|
114847
|
+
/**
|
|
114848
|
+
* @param {string} value
|
|
114849
|
+
* @return {!proto.clarifai.api.GetArtifactVersionRequest} returns this
|
|
114850
|
+
*/
|
|
114851
|
+
proto.clarifai.api.GetArtifactVersionRequest.prototype.setArtifactVersionId = function(value) {
|
|
114852
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
114853
|
+
};
|
|
114854
|
+
|
|
114855
|
+
|
|
114856
|
+
|
|
114857
|
+
|
|
114858
|
+
|
|
114859
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
114860
|
+
/**
|
|
114861
|
+
* Creates an object representation of this proto.
|
|
114862
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
114863
|
+
* Optional fields that are not set will be set to undefined.
|
|
114864
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
114865
|
+
* For the list of reserved names please see:
|
|
114866
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
114867
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
114868
|
+
* JSPB instance for transitional soy proto support:
|
|
114869
|
+
* http://goto/soy-param-migration
|
|
114870
|
+
* @return {!Object}
|
|
114871
|
+
*/
|
|
114872
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
114873
|
+
return proto.clarifai.api.SingleArtifactVersionResponse.toObject(opt_includeInstance, this);
|
|
114874
|
+
};
|
|
114875
|
+
|
|
114876
|
+
|
|
114877
|
+
/**
|
|
114878
|
+
* Static version of the {@see toObject} method.
|
|
114879
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
114880
|
+
* the JSPB instance for transitional soy proto support:
|
|
114881
|
+
* http://goto/soy-param-migration
|
|
114882
|
+
* @param {!proto.clarifai.api.SingleArtifactVersionResponse} msg The msg instance to transform.
|
|
114883
|
+
* @return {!Object}
|
|
114884
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114885
|
+
*/
|
|
114886
|
+
proto.clarifai.api.SingleArtifactVersionResponse.toObject = function(includeInstance, msg) {
|
|
114887
|
+
var f, obj = {
|
|
114888
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
114889
|
+
artifactVersion: (f = msg.getArtifactVersion()) && proto_clarifai_api_resources_pb.ArtifactVersion.toObject(includeInstance, f)
|
|
114890
|
+
};
|
|
114891
|
+
|
|
114892
|
+
if (includeInstance) {
|
|
114893
|
+
obj.$jspbMessageInstance = msg;
|
|
114894
|
+
}
|
|
114895
|
+
return obj;
|
|
114896
|
+
};
|
|
114897
|
+
}
|
|
114898
|
+
|
|
114899
|
+
|
|
114900
|
+
/**
|
|
114901
|
+
* Deserializes binary data (in protobuf wire format).
|
|
114902
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
114903
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse}
|
|
114904
|
+
*/
|
|
114905
|
+
proto.clarifai.api.SingleArtifactVersionResponse.deserializeBinary = function(bytes) {
|
|
114906
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
114907
|
+
var msg = new proto.clarifai.api.SingleArtifactVersionResponse;
|
|
114908
|
+
return proto.clarifai.api.SingleArtifactVersionResponse.deserializeBinaryFromReader(msg, reader);
|
|
114909
|
+
};
|
|
114910
|
+
|
|
114911
|
+
|
|
114912
|
+
/**
|
|
114913
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
114914
|
+
* given reader into the given message object.
|
|
114915
|
+
* @param {!proto.clarifai.api.SingleArtifactVersionResponse} msg The message object to deserialize into.
|
|
114916
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
114917
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse}
|
|
114918
|
+
*/
|
|
114919
|
+
proto.clarifai.api.SingleArtifactVersionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
114920
|
+
while (reader.nextField()) {
|
|
114921
|
+
if (reader.isEndGroup()) {
|
|
114922
|
+
break;
|
|
114923
|
+
}
|
|
114924
|
+
var field = reader.getFieldNumber();
|
|
114925
|
+
switch (field) {
|
|
114926
|
+
case 1:
|
|
114927
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
114928
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
114929
|
+
msg.setStatus(value);
|
|
114930
|
+
break;
|
|
114931
|
+
case 2:
|
|
114932
|
+
var value = new proto_clarifai_api_resources_pb.ArtifactVersion;
|
|
114933
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.ArtifactVersion.deserializeBinaryFromReader);
|
|
114934
|
+
msg.setArtifactVersion(value);
|
|
114935
|
+
break;
|
|
114936
|
+
default:
|
|
114937
|
+
reader.skipField();
|
|
114938
|
+
break;
|
|
114939
|
+
}
|
|
114940
|
+
}
|
|
114941
|
+
return msg;
|
|
114942
|
+
};
|
|
114943
|
+
|
|
114944
|
+
|
|
114945
|
+
/**
|
|
114946
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
114947
|
+
* @return {!Uint8Array}
|
|
114948
|
+
*/
|
|
114949
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.serializeBinary = function() {
|
|
114950
|
+
var writer = new jspb.BinaryWriter();
|
|
114951
|
+
proto.clarifai.api.SingleArtifactVersionResponse.serializeBinaryToWriter(this, writer);
|
|
114952
|
+
return writer.getResultBuffer();
|
|
114953
|
+
};
|
|
114954
|
+
|
|
114955
|
+
|
|
114956
|
+
/**
|
|
114957
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
114958
|
+
* format), writing to the given BinaryWriter.
|
|
114959
|
+
* @param {!proto.clarifai.api.SingleArtifactVersionResponse} message
|
|
114960
|
+
* @param {!jspb.BinaryWriter} writer
|
|
114961
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
114962
|
+
*/
|
|
114963
|
+
proto.clarifai.api.SingleArtifactVersionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
114964
|
+
var f = undefined;
|
|
114965
|
+
f = message.getStatus();
|
|
114966
|
+
if (f != null) {
|
|
114967
|
+
writer.writeMessage(
|
|
114968
|
+
1,
|
|
114969
|
+
f,
|
|
114970
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
114971
|
+
);
|
|
114972
|
+
}
|
|
114973
|
+
f = message.getArtifactVersion();
|
|
114974
|
+
if (f != null) {
|
|
114975
|
+
writer.writeMessage(
|
|
114976
|
+
2,
|
|
114977
|
+
f,
|
|
114978
|
+
proto_clarifai_api_resources_pb.ArtifactVersion.serializeBinaryToWriter
|
|
114979
|
+
);
|
|
114980
|
+
}
|
|
114981
|
+
};
|
|
114982
|
+
|
|
114983
|
+
|
|
114984
|
+
/**
|
|
114985
|
+
* optional status.Status status = 1;
|
|
114986
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
114987
|
+
*/
|
|
114988
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.getStatus = function() {
|
|
114989
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
114990
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
114991
|
+
};
|
|
114992
|
+
|
|
114993
|
+
|
|
114994
|
+
/**
|
|
114995
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
114996
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
114997
|
+
*/
|
|
114998
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.setStatus = function(value) {
|
|
114999
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
115000
|
+
};
|
|
115001
|
+
|
|
115002
|
+
|
|
115003
|
+
/**
|
|
115004
|
+
* Clears the message field making it undefined.
|
|
115005
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
115006
|
+
*/
|
|
115007
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.clearStatus = function() {
|
|
115008
|
+
return this.setStatus(undefined);
|
|
115009
|
+
};
|
|
115010
|
+
|
|
115011
|
+
|
|
115012
|
+
/**
|
|
115013
|
+
* Returns whether this field is set.
|
|
115014
|
+
* @return {boolean}
|
|
115015
|
+
*/
|
|
115016
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.hasStatus = function() {
|
|
115017
|
+
return jspb.Message.getField(this, 1) != null;
|
|
115018
|
+
};
|
|
115019
|
+
|
|
115020
|
+
|
|
115021
|
+
/**
|
|
115022
|
+
* optional ArtifactVersion artifact_version = 2;
|
|
115023
|
+
* @return {?proto.clarifai.api.ArtifactVersion}
|
|
115024
|
+
*/
|
|
115025
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.getArtifactVersion = function() {
|
|
115026
|
+
return /** @type{?proto.clarifai.api.ArtifactVersion} */ (
|
|
115027
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ArtifactVersion, 2));
|
|
115028
|
+
};
|
|
115029
|
+
|
|
115030
|
+
|
|
115031
|
+
/**
|
|
115032
|
+
* @param {?proto.clarifai.api.ArtifactVersion|undefined} value
|
|
115033
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
115034
|
+
*/
|
|
115035
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.setArtifactVersion = function(value) {
|
|
115036
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
115037
|
+
};
|
|
115038
|
+
|
|
115039
|
+
|
|
115040
|
+
/**
|
|
115041
|
+
* Clears the message field making it undefined.
|
|
115042
|
+
* @return {!proto.clarifai.api.SingleArtifactVersionResponse} returns this
|
|
115043
|
+
*/
|
|
115044
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.clearArtifactVersion = function() {
|
|
115045
|
+
return this.setArtifactVersion(undefined);
|
|
115046
|
+
};
|
|
115047
|
+
|
|
115048
|
+
|
|
115049
|
+
/**
|
|
115050
|
+
* Returns whether this field is set.
|
|
115051
|
+
* @return {boolean}
|
|
115052
|
+
*/
|
|
115053
|
+
proto.clarifai.api.SingleArtifactVersionResponse.prototype.hasArtifactVersion = function() {
|
|
115054
|
+
return jspb.Message.getField(this, 2) != null;
|
|
115055
|
+
};
|
|
115056
|
+
|
|
115057
|
+
|
|
115058
|
+
|
|
115059
|
+
|
|
115060
|
+
|
|
115061
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
115062
|
+
/**
|
|
115063
|
+
* Creates an object representation of this proto.
|
|
115064
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
115065
|
+
* Optional fields that are not set will be set to undefined.
|
|
115066
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
115067
|
+
* For the list of reserved names please see:
|
|
115068
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
115069
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
115070
|
+
* JSPB instance for transitional soy proto support:
|
|
115071
|
+
* http://goto/soy-param-migration
|
|
115072
|
+
* @return {!Object}
|
|
115073
|
+
*/
|
|
115074
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
115075
|
+
return proto.clarifai.api.DeleteArtifactVersionRequest.toObject(opt_includeInstance, this);
|
|
115076
|
+
};
|
|
115077
|
+
|
|
115078
|
+
|
|
115079
|
+
/**
|
|
115080
|
+
* Static version of the {@see toObject} method.
|
|
115081
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
115082
|
+
* the JSPB instance for transitional soy proto support:
|
|
115083
|
+
* http://goto/soy-param-migration
|
|
115084
|
+
* @param {!proto.clarifai.api.DeleteArtifactVersionRequest} msg The msg instance to transform.
|
|
115085
|
+
* @return {!Object}
|
|
115086
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
115087
|
+
*/
|
|
115088
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.toObject = function(includeInstance, msg) {
|
|
115089
|
+
var f, obj = {
|
|
115090
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
115091
|
+
artifactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
115092
|
+
artifactVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
115093
|
+
};
|
|
115094
|
+
|
|
115095
|
+
if (includeInstance) {
|
|
115096
|
+
obj.$jspbMessageInstance = msg;
|
|
115097
|
+
}
|
|
115098
|
+
return obj;
|
|
115099
|
+
};
|
|
115100
|
+
}
|
|
115101
|
+
|
|
115102
|
+
|
|
115103
|
+
/**
|
|
115104
|
+
* Deserializes binary data (in protobuf wire format).
|
|
115105
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
115106
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest}
|
|
115107
|
+
*/
|
|
115108
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.deserializeBinary = function(bytes) {
|
|
115109
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
115110
|
+
var msg = new proto.clarifai.api.DeleteArtifactVersionRequest;
|
|
115111
|
+
return proto.clarifai.api.DeleteArtifactVersionRequest.deserializeBinaryFromReader(msg, reader);
|
|
115112
|
+
};
|
|
115113
|
+
|
|
115114
|
+
|
|
115115
|
+
/**
|
|
115116
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
115117
|
+
* given reader into the given message object.
|
|
115118
|
+
* @param {!proto.clarifai.api.DeleteArtifactVersionRequest} msg The message object to deserialize into.
|
|
115119
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
115120
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest}
|
|
115121
|
+
*/
|
|
115122
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
115123
|
+
while (reader.nextField()) {
|
|
115124
|
+
if (reader.isEndGroup()) {
|
|
115125
|
+
break;
|
|
115126
|
+
}
|
|
115127
|
+
var field = reader.getFieldNumber();
|
|
115128
|
+
switch (field) {
|
|
115129
|
+
case 1:
|
|
115130
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
115131
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
115132
|
+
msg.setUserAppId(value);
|
|
115133
|
+
break;
|
|
115134
|
+
case 2:
|
|
115135
|
+
var value = /** @type {string} */ (reader.readString());
|
|
115136
|
+
msg.setArtifactId(value);
|
|
115137
|
+
break;
|
|
115138
|
+
case 3:
|
|
115139
|
+
var value = /** @type {string} */ (reader.readString());
|
|
115140
|
+
msg.setArtifactVersionId(value);
|
|
115141
|
+
break;
|
|
115142
|
+
default:
|
|
115143
|
+
reader.skipField();
|
|
115144
|
+
break;
|
|
115145
|
+
}
|
|
115146
|
+
}
|
|
115147
|
+
return msg;
|
|
115148
|
+
};
|
|
115149
|
+
|
|
115150
|
+
|
|
115151
|
+
/**
|
|
115152
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
115153
|
+
* @return {!Uint8Array}
|
|
115154
|
+
*/
|
|
115155
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.serializeBinary = function() {
|
|
115156
|
+
var writer = new jspb.BinaryWriter();
|
|
115157
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.serializeBinaryToWriter(this, writer);
|
|
115158
|
+
return writer.getResultBuffer();
|
|
115159
|
+
};
|
|
115160
|
+
|
|
115161
|
+
|
|
115162
|
+
/**
|
|
115163
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
115164
|
+
* format), writing to the given BinaryWriter.
|
|
115165
|
+
* @param {!proto.clarifai.api.DeleteArtifactVersionRequest} message
|
|
115166
|
+
* @param {!jspb.BinaryWriter} writer
|
|
115167
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
115168
|
+
*/
|
|
115169
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
115170
|
+
var f = undefined;
|
|
115171
|
+
f = message.getUserAppId();
|
|
115172
|
+
if (f != null) {
|
|
115173
|
+
writer.writeMessage(
|
|
115174
|
+
1,
|
|
115175
|
+
f,
|
|
115176
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
115177
|
+
);
|
|
115178
|
+
}
|
|
115179
|
+
f = message.getArtifactId();
|
|
115180
|
+
if (f.length > 0) {
|
|
115181
|
+
writer.writeString(
|
|
115182
|
+
2,
|
|
115183
|
+
f
|
|
115184
|
+
);
|
|
115185
|
+
}
|
|
115186
|
+
f = message.getArtifactVersionId();
|
|
115187
|
+
if (f.length > 0) {
|
|
115188
|
+
writer.writeString(
|
|
115189
|
+
3,
|
|
115190
|
+
f
|
|
115191
|
+
);
|
|
115192
|
+
}
|
|
115193
|
+
};
|
|
115194
|
+
|
|
115195
|
+
|
|
115196
|
+
/**
|
|
115197
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
115198
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
115199
|
+
*/
|
|
115200
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.getUserAppId = function() {
|
|
115201
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
115202
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
115203
|
+
};
|
|
115204
|
+
|
|
115205
|
+
|
|
115206
|
+
/**
|
|
115207
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
115208
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
115209
|
+
*/
|
|
115210
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.setUserAppId = function(value) {
|
|
115211
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
115212
|
+
};
|
|
115213
|
+
|
|
115214
|
+
|
|
115215
|
+
/**
|
|
115216
|
+
* Clears the message field making it undefined.
|
|
115217
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
115218
|
+
*/
|
|
115219
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.clearUserAppId = function() {
|
|
115220
|
+
return this.setUserAppId(undefined);
|
|
115221
|
+
};
|
|
115222
|
+
|
|
115223
|
+
|
|
115224
|
+
/**
|
|
115225
|
+
* Returns whether this field is set.
|
|
115226
|
+
* @return {boolean}
|
|
115227
|
+
*/
|
|
115228
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.hasUserAppId = function() {
|
|
115229
|
+
return jspb.Message.getField(this, 1) != null;
|
|
115230
|
+
};
|
|
115231
|
+
|
|
115232
|
+
|
|
115233
|
+
/**
|
|
115234
|
+
* optional string artifact_id = 2;
|
|
115235
|
+
* @return {string}
|
|
115236
|
+
*/
|
|
115237
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.getArtifactId = function() {
|
|
115238
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
115239
|
+
};
|
|
115240
|
+
|
|
115241
|
+
|
|
115242
|
+
/**
|
|
115243
|
+
* @param {string} value
|
|
115244
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
115245
|
+
*/
|
|
115246
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.setArtifactId = function(value) {
|
|
115247
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
115248
|
+
};
|
|
115249
|
+
|
|
115250
|
+
|
|
115251
|
+
/**
|
|
115252
|
+
* optional string artifact_version_id = 3;
|
|
115253
|
+
* @return {string}
|
|
115254
|
+
*/
|
|
115255
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.getArtifactVersionId = function() {
|
|
115256
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
115257
|
+
};
|
|
115258
|
+
|
|
115259
|
+
|
|
115260
|
+
/**
|
|
115261
|
+
* @param {string} value
|
|
115262
|
+
* @return {!proto.clarifai.api.DeleteArtifactVersionRequest} returns this
|
|
115263
|
+
*/
|
|
115264
|
+
proto.clarifai.api.DeleteArtifactVersionRequest.prototype.setArtifactVersionId = function(value) {
|
|
115265
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
115266
|
+
};
|
|
115267
|
+
|
|
115268
|
+
|
|
111034
115269
|
/**
|
|
111035
115270
|
* @enum {number}
|
|
111036
115271
|
*/
|