clarifai-web-grpc 11.0.0 → 11.0.1
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 +89 -1808
- package/dist/esm/proto/clarifai/api/resources_pb.js +89 -1808
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +21 -276
- package/proto/clarifai/api/resources_pb.js +115 -2260
|
@@ -56,8 +56,6 @@ goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
|
|
|
56
56
|
goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
|
|
57
57
|
goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
58
58
|
goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
|
|
59
|
-
goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationSpec', null, global);
|
|
60
|
-
goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStatus', null, global);
|
|
61
59
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
62
60
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
63
61
|
goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
|
|
@@ -210,10 +208,6 @@ goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
|
|
|
210
208
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
211
209
|
goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
|
|
212
210
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
213
|
-
goog.exportSymbol('proto.clarifai.api.OrchestrationSpec', null, global);
|
|
214
|
-
goog.exportSymbol('proto.clarifai.api.OrchestrationSpec.OrchestrationCase', null, global);
|
|
215
|
-
goog.exportSymbol('proto.clarifai.api.OrchestrationStatus', null, global);
|
|
216
|
-
goog.exportSymbol('proto.clarifai.api.OrchestrationStatus.StatusDetailsCase', null, global);
|
|
217
211
|
goog.exportSymbol('proto.clarifai.api.Output', null, global);
|
|
218
212
|
goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
|
|
219
213
|
goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
|
|
@@ -223,9 +217,6 @@ goog.exportSymbol('proto.clarifai.api.Part', null, global);
|
|
|
223
217
|
goog.exportSymbol('proto.clarifai.api.Password', null, global);
|
|
224
218
|
goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
|
|
225
219
|
goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
|
|
226
|
-
goog.exportSymbol('proto.clarifai.api.Pipeline', null, global);
|
|
227
|
-
goog.exportSymbol('proto.clarifai.api.PipelineRun', null, global);
|
|
228
|
-
goog.exportSymbol('proto.clarifai.api.PipelineVersion', null, global);
|
|
229
220
|
goog.exportSymbol('proto.clarifai.api.Point', null, global);
|
|
230
221
|
goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
|
|
231
222
|
goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
|
|
@@ -4981,153 +4972,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4981
4972
|
*/
|
|
4982
4973
|
proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
|
|
4983
4974
|
}
|
|
4984
|
-
/**
|
|
4985
|
-
* Generated by JsPbCodeGenerator.
|
|
4986
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4987
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
4988
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
4989
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
4990
|
-
* valid.
|
|
4991
|
-
* @extends {jspb.Message}
|
|
4992
|
-
* @constructor
|
|
4993
|
-
*/
|
|
4994
|
-
proto.clarifai.api.ArgoOrchestrationSpec = function (opt_data) {
|
|
4995
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4996
|
-
};
|
|
4997
|
-
goog.inherits(proto.clarifai.api.ArgoOrchestrationSpec, jspb.Message);
|
|
4998
|
-
if (goog.DEBUG && !COMPILED) {
|
|
4999
|
-
/**
|
|
5000
|
-
* @public
|
|
5001
|
-
* @override
|
|
5002
|
-
*/
|
|
5003
|
-
proto.clarifai.api.ArgoOrchestrationSpec.displayName = 'proto.clarifai.api.ArgoOrchestrationSpec';
|
|
5004
|
-
}
|
|
5005
|
-
/**
|
|
5006
|
-
* Generated by JsPbCodeGenerator.
|
|
5007
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5008
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5009
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5010
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5011
|
-
* valid.
|
|
5012
|
-
* @extends {jspb.Message}
|
|
5013
|
-
* @constructor
|
|
5014
|
-
*/
|
|
5015
|
-
proto.clarifai.api.OrchestrationSpec = function (opt_data) {
|
|
5016
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationSpec.oneofGroups_);
|
|
5017
|
-
};
|
|
5018
|
-
goog.inherits(proto.clarifai.api.OrchestrationSpec, jspb.Message);
|
|
5019
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5020
|
-
/**
|
|
5021
|
-
* @public
|
|
5022
|
-
* @override
|
|
5023
|
-
*/
|
|
5024
|
-
proto.clarifai.api.OrchestrationSpec.displayName = 'proto.clarifai.api.OrchestrationSpec';
|
|
5025
|
-
}
|
|
5026
|
-
/**
|
|
5027
|
-
* Generated by JsPbCodeGenerator.
|
|
5028
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5029
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5030
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5031
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5032
|
-
* valid.
|
|
5033
|
-
* @extends {jspb.Message}
|
|
5034
|
-
* @constructor
|
|
5035
|
-
*/
|
|
5036
|
-
proto.clarifai.api.Pipeline = function (opt_data) {
|
|
5037
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5038
|
-
};
|
|
5039
|
-
goog.inherits(proto.clarifai.api.Pipeline, jspb.Message);
|
|
5040
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5041
|
-
/**
|
|
5042
|
-
* @public
|
|
5043
|
-
* @override
|
|
5044
|
-
*/
|
|
5045
|
-
proto.clarifai.api.Pipeline.displayName = 'proto.clarifai.api.Pipeline';
|
|
5046
|
-
}
|
|
5047
|
-
/**
|
|
5048
|
-
* Generated by JsPbCodeGenerator.
|
|
5049
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5050
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5051
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5052
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5053
|
-
* valid.
|
|
5054
|
-
* @extends {jspb.Message}
|
|
5055
|
-
* @constructor
|
|
5056
|
-
*/
|
|
5057
|
-
proto.clarifai.api.PipelineVersion = function (opt_data) {
|
|
5058
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5059
|
-
};
|
|
5060
|
-
goog.inherits(proto.clarifai.api.PipelineVersion, jspb.Message);
|
|
5061
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5062
|
-
/**
|
|
5063
|
-
* @public
|
|
5064
|
-
* @override
|
|
5065
|
-
*/
|
|
5066
|
-
proto.clarifai.api.PipelineVersion.displayName = 'proto.clarifai.api.PipelineVersion';
|
|
5067
|
-
}
|
|
5068
|
-
/**
|
|
5069
|
-
* Generated by JsPbCodeGenerator.
|
|
5070
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5071
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5072
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5073
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5074
|
-
* valid.
|
|
5075
|
-
* @extends {jspb.Message}
|
|
5076
|
-
* @constructor
|
|
5077
|
-
*/
|
|
5078
|
-
proto.clarifai.api.OrchestrationStatus = function (opt_data) {
|
|
5079
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationStatus.oneofGroups_);
|
|
5080
|
-
};
|
|
5081
|
-
goog.inherits(proto.clarifai.api.OrchestrationStatus, jspb.Message);
|
|
5082
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5083
|
-
/**
|
|
5084
|
-
* @public
|
|
5085
|
-
* @override
|
|
5086
|
-
*/
|
|
5087
|
-
proto.clarifai.api.OrchestrationStatus.displayName = 'proto.clarifai.api.OrchestrationStatus';
|
|
5088
|
-
}
|
|
5089
|
-
/**
|
|
5090
|
-
* Generated by JsPbCodeGenerator.
|
|
5091
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5092
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5093
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5094
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5095
|
-
* valid.
|
|
5096
|
-
* @extends {jspb.Message}
|
|
5097
|
-
* @constructor
|
|
5098
|
-
*/
|
|
5099
|
-
proto.clarifai.api.ArgoOrchestrationStatus = function (opt_data) {
|
|
5100
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5101
|
-
};
|
|
5102
|
-
goog.inherits(proto.clarifai.api.ArgoOrchestrationStatus, jspb.Message);
|
|
5103
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5104
|
-
/**
|
|
5105
|
-
* @public
|
|
5106
|
-
* @override
|
|
5107
|
-
*/
|
|
5108
|
-
proto.clarifai.api.ArgoOrchestrationStatus.displayName = 'proto.clarifai.api.ArgoOrchestrationStatus';
|
|
5109
|
-
}
|
|
5110
|
-
/**
|
|
5111
|
-
* Generated by JsPbCodeGenerator.
|
|
5112
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5113
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5114
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5115
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5116
|
-
* valid.
|
|
5117
|
-
* @extends {jspb.Message}
|
|
5118
|
-
* @constructor
|
|
5119
|
-
*/
|
|
5120
|
-
proto.clarifai.api.PipelineRun = function (opt_data) {
|
|
5121
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PipelineRun.repeatedFields_, null);
|
|
5122
|
-
};
|
|
5123
|
-
goog.inherits(proto.clarifai.api.PipelineRun, jspb.Message);
|
|
5124
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5125
|
-
/**
|
|
5126
|
-
* @public
|
|
5127
|
-
* @override
|
|
5128
|
-
*/
|
|
5129
|
-
proto.clarifai.api.PipelineRun.displayName = 'proto.clarifai.api.PipelineRun';
|
|
5130
|
-
}
|
|
5131
4975
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5132
4976
|
/**
|
|
5133
4977
|
* Creates an object representation of this proto.
|
|
@@ -57378,7 +57222,7 @@ proto.clarifai.api.ProcessingInfo.prototype.setProcessingId = function (value) {
|
|
|
57378
57222
|
* @private {!Array<!Array<number>>}
|
|
57379
57223
|
* @const
|
|
57380
57224
|
*/
|
|
57381
|
-
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8]];
|
|
57225
|
+
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]];
|
|
57382
57226
|
/**
|
|
57383
57227
|
* @enum {number}
|
|
57384
57228
|
*/
|
|
@@ -57391,7 +57235,9 @@ proto.clarifai.api.AuditLogTarget.TargetCase = {
|
|
|
57391
57235
|
MODULE: 5,
|
|
57392
57236
|
MODULE_VERSION: 6,
|
|
57393
57237
|
WORKFLOW: 7,
|
|
57394
|
-
WORKFLOW_VERSION: 8
|
|
57238
|
+
WORKFLOW_VERSION: 8,
|
|
57239
|
+
MODEL: 9,
|
|
57240
|
+
MODEL_VERSION: 10
|
|
57395
57241
|
};
|
|
57396
57242
|
/**
|
|
57397
57243
|
* @return {proto.clarifai.api.AuditLogTarget.TargetCase}
|
|
@@ -57433,7 +57279,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
57433
57279
|
module: (f = msg.getModule()) && proto.clarifai.api.Module.toObject(includeInstance, f),
|
|
57434
57280
|
moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f),
|
|
57435
57281
|
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
57436
|
-
workflowVersion: (f = msg.getWorkflowVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f)
|
|
57282
|
+
workflowVersion: (f = msg.getWorkflowVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f),
|
|
57283
|
+
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
57284
|
+
modelVersion: (f = msg.getModelVersion()) && proto.clarifai.api.ModelVersion.toObject(includeInstance, f)
|
|
57437
57285
|
};
|
|
57438
57286
|
if (includeInstance) {
|
|
57439
57287
|
obj.$jspbMessageInstance = msg;
|
|
@@ -57505,6 +57353,16 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function (msg, r
|
|
|
57505
57353
|
reader.readMessage(value, proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader);
|
|
57506
57354
|
msg.setWorkflowVersion(value);
|
|
57507
57355
|
break;
|
|
57356
|
+
case 9:
|
|
57357
|
+
var value = new proto.clarifai.api.Model;
|
|
57358
|
+
reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
57359
|
+
msg.setModel(value);
|
|
57360
|
+
break;
|
|
57361
|
+
case 10:
|
|
57362
|
+
var value = new proto.clarifai.api.ModelVersion;
|
|
57363
|
+
reader.readMessage(value, proto.clarifai.api.ModelVersion.deserializeBinaryFromReader);
|
|
57364
|
+
msg.setModelVersion(value);
|
|
57365
|
+
break;
|
|
57508
57366
|
default:
|
|
57509
57367
|
reader.skipField();
|
|
57510
57368
|
break;
|
|
@@ -57562,6 +57420,14 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function (message, w
|
|
|
57562
57420
|
if (f != null) {
|
|
57563
57421
|
writer.writeMessage(8, f, proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter);
|
|
57564
57422
|
}
|
|
57423
|
+
f = message.getModel();
|
|
57424
|
+
if (f != null) {
|
|
57425
|
+
writer.writeMessage(9, f, proto.clarifai.api.Model.serializeBinaryToWriter);
|
|
57426
|
+
}
|
|
57427
|
+
f = message.getModelVersion();
|
|
57428
|
+
if (f != null) {
|
|
57429
|
+
writer.writeMessage(10, f, proto.clarifai.api.ModelVersion.serializeBinaryToWriter);
|
|
57430
|
+
}
|
|
57565
57431
|
};
|
|
57566
57432
|
/**
|
|
57567
57433
|
* optional User user = 1;
|
|
@@ -57787,6 +57653,62 @@ proto.clarifai.api.AuditLogTarget.prototype.clearWorkflowVersion = function () {
|
|
|
57787
57653
|
proto.clarifai.api.AuditLogTarget.prototype.hasWorkflowVersion = function () {
|
|
57788
57654
|
return jspb.Message.getField(this, 8) != null;
|
|
57789
57655
|
};
|
|
57656
|
+
/**
|
|
57657
|
+
* optional Model model = 9;
|
|
57658
|
+
* @return {?proto.clarifai.api.Model}
|
|
57659
|
+
*/
|
|
57660
|
+
proto.clarifai.api.AuditLogTarget.prototype.getModel = function () {
|
|
57661
|
+
return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
|
|
57662
|
+
};
|
|
57663
|
+
/**
|
|
57664
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
57665
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
57666
|
+
*/
|
|
57667
|
+
proto.clarifai.api.AuditLogTarget.prototype.setModel = function (value) {
|
|
57668
|
+
return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
57669
|
+
};
|
|
57670
|
+
/**
|
|
57671
|
+
* Clears the message field making it undefined.
|
|
57672
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
57673
|
+
*/
|
|
57674
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearModel = function () {
|
|
57675
|
+
return this.setModel(undefined);
|
|
57676
|
+
};
|
|
57677
|
+
/**
|
|
57678
|
+
* Returns whether this field is set.
|
|
57679
|
+
* @return {boolean}
|
|
57680
|
+
*/
|
|
57681
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasModel = function () {
|
|
57682
|
+
return jspb.Message.getField(this, 9) != null;
|
|
57683
|
+
};
|
|
57684
|
+
/**
|
|
57685
|
+
* optional ModelVersion model_version = 10;
|
|
57686
|
+
* @return {?proto.clarifai.api.ModelVersion}
|
|
57687
|
+
*/
|
|
57688
|
+
proto.clarifai.api.AuditLogTarget.prototype.getModelVersion = function () {
|
|
57689
|
+
return /** @type{?proto.clarifai.api.ModelVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ModelVersion, 10));
|
|
57690
|
+
};
|
|
57691
|
+
/**
|
|
57692
|
+
* @param {?proto.clarifai.api.ModelVersion|undefined} value
|
|
57693
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
57694
|
+
*/
|
|
57695
|
+
proto.clarifai.api.AuditLogTarget.prototype.setModelVersion = function (value) {
|
|
57696
|
+
return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
57697
|
+
};
|
|
57698
|
+
/**
|
|
57699
|
+
* Clears the message field making it undefined.
|
|
57700
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
57701
|
+
*/
|
|
57702
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearModelVersion = function () {
|
|
57703
|
+
return this.setModelVersion(undefined);
|
|
57704
|
+
};
|
|
57705
|
+
/**
|
|
57706
|
+
* Returns whether this field is set.
|
|
57707
|
+
* @return {boolean}
|
|
57708
|
+
*/
|
|
57709
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasModelVersion = function () {
|
|
57710
|
+
return jspb.Message.getField(this, 10) != null;
|
|
57711
|
+
};
|
|
57790
57712
|
/**
|
|
57791
57713
|
* List of repeated fields within this message type.
|
|
57792
57714
|
* @private {!Array<number>}
|
|
@@ -59392,1654 +59314,6 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.getRunnerId = function () {
|
|
|
59392
59314
|
proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function (value) {
|
|
59393
59315
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
59394
59316
|
};
|
|
59395
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59396
|
-
/**
|
|
59397
|
-
* Creates an object representation of this proto.
|
|
59398
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
59399
|
-
* Optional fields that are not set will be set to undefined.
|
|
59400
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
59401
|
-
* For the list of reserved names please see:
|
|
59402
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
59403
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
59404
|
-
* JSPB instance for transitional soy proto support:
|
|
59405
|
-
* http://goto/soy-param-migration
|
|
59406
|
-
* @return {!Object}
|
|
59407
|
-
*/
|
|
59408
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
|
|
59409
|
-
return proto.clarifai.api.ArgoOrchestrationSpec.toObject(opt_includeInstance, this);
|
|
59410
|
-
};
|
|
59411
|
-
/**
|
|
59412
|
-
* Static version of the {@see toObject} method.
|
|
59413
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
59414
|
-
* the JSPB instance for transitional soy proto support:
|
|
59415
|
-
* http://goto/soy-param-migration
|
|
59416
|
-
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The msg instance to transform.
|
|
59417
|
-
* @return {!Object}
|
|
59418
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59419
|
-
*/
|
|
59420
|
-
proto.clarifai.api.ArgoOrchestrationSpec.toObject = function (includeInstance, msg) {
|
|
59421
|
-
var f, obj = {
|
|
59422
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
59423
|
-
apiVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
59424
|
-
specJson: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
59425
|
-
};
|
|
59426
|
-
if (includeInstance) {
|
|
59427
|
-
obj.$jspbMessageInstance = msg;
|
|
59428
|
-
}
|
|
59429
|
-
return obj;
|
|
59430
|
-
};
|
|
59431
|
-
}
|
|
59432
|
-
/**
|
|
59433
|
-
* Deserializes binary data (in protobuf wire format).
|
|
59434
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
59435
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationSpec}
|
|
59436
|
-
*/
|
|
59437
|
-
proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinary = function (bytes) {
|
|
59438
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
59439
|
-
var msg = new proto.clarifai.api.ArgoOrchestrationSpec;
|
|
59440
|
-
return proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader(msg, reader);
|
|
59441
|
-
};
|
|
59442
|
-
/**
|
|
59443
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
59444
|
-
* given reader into the given message object.
|
|
59445
|
-
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The message object to deserialize into.
|
|
59446
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
59447
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationSpec}
|
|
59448
|
-
*/
|
|
59449
|
-
proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
|
|
59450
|
-
while (reader.nextField()) {
|
|
59451
|
-
if (reader.isEndGroup()) {
|
|
59452
|
-
break;
|
|
59453
|
-
}
|
|
59454
|
-
var field = reader.getFieldNumber();
|
|
59455
|
-
switch (field) {
|
|
59456
|
-
case 1:
|
|
59457
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59458
|
-
msg.setId(value);
|
|
59459
|
-
break;
|
|
59460
|
-
case 2:
|
|
59461
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59462
|
-
msg.setApiVersion(value);
|
|
59463
|
-
break;
|
|
59464
|
-
case 3:
|
|
59465
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59466
|
-
msg.setSpecJson(value);
|
|
59467
|
-
break;
|
|
59468
|
-
default:
|
|
59469
|
-
reader.skipField();
|
|
59470
|
-
break;
|
|
59471
|
-
}
|
|
59472
|
-
}
|
|
59473
|
-
return msg;
|
|
59474
|
-
};
|
|
59475
|
-
/**
|
|
59476
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
59477
|
-
* @return {!Uint8Array}
|
|
59478
|
-
*/
|
|
59479
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.serializeBinary = function () {
|
|
59480
|
-
var writer = new jspb.BinaryWriter();
|
|
59481
|
-
proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter(this, writer);
|
|
59482
|
-
return writer.getResultBuffer();
|
|
59483
|
-
};
|
|
59484
|
-
/**
|
|
59485
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
59486
|
-
* format), writing to the given BinaryWriter.
|
|
59487
|
-
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} message
|
|
59488
|
-
* @param {!jspb.BinaryWriter} writer
|
|
59489
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59490
|
-
*/
|
|
59491
|
-
proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
|
|
59492
|
-
var f = undefined;
|
|
59493
|
-
f = message.getId();
|
|
59494
|
-
if (f.length > 0) {
|
|
59495
|
-
writer.writeString(1, f);
|
|
59496
|
-
}
|
|
59497
|
-
f = message.getApiVersion();
|
|
59498
|
-
if (f.length > 0) {
|
|
59499
|
-
writer.writeString(2, f);
|
|
59500
|
-
}
|
|
59501
|
-
f = message.getSpecJson();
|
|
59502
|
-
if (f.length > 0) {
|
|
59503
|
-
writer.writeString(3, f);
|
|
59504
|
-
}
|
|
59505
|
-
};
|
|
59506
|
-
/**
|
|
59507
|
-
* optional string id = 1;
|
|
59508
|
-
* @return {string}
|
|
59509
|
-
*/
|
|
59510
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.getId = function () {
|
|
59511
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
59512
|
-
};
|
|
59513
|
-
/**
|
|
59514
|
-
* @param {string} value
|
|
59515
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
|
|
59516
|
-
*/
|
|
59517
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.setId = function (value) {
|
|
59518
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
59519
|
-
};
|
|
59520
|
-
/**
|
|
59521
|
-
* optional string api_version = 2;
|
|
59522
|
-
* @return {string}
|
|
59523
|
-
*/
|
|
59524
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.getApiVersion = function () {
|
|
59525
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
59526
|
-
};
|
|
59527
|
-
/**
|
|
59528
|
-
* @param {string} value
|
|
59529
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
|
|
59530
|
-
*/
|
|
59531
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.setApiVersion = function (value) {
|
|
59532
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
59533
|
-
};
|
|
59534
|
-
/**
|
|
59535
|
-
* optional string spec_json = 3;
|
|
59536
|
-
* @return {string}
|
|
59537
|
-
*/
|
|
59538
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.getSpecJson = function () {
|
|
59539
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
59540
|
-
};
|
|
59541
|
-
/**
|
|
59542
|
-
* @param {string} value
|
|
59543
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
|
|
59544
|
-
*/
|
|
59545
|
-
proto.clarifai.api.ArgoOrchestrationSpec.prototype.setSpecJson = function (value) {
|
|
59546
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
59547
|
-
};
|
|
59548
|
-
/**
|
|
59549
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
59550
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
59551
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
59552
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
59553
|
-
* @private {!Array<!Array<number>>}
|
|
59554
|
-
* @const
|
|
59555
|
-
*/
|
|
59556
|
-
proto.clarifai.api.OrchestrationSpec.oneofGroups_ = [[1]];
|
|
59557
|
-
/**
|
|
59558
|
-
* @enum {number}
|
|
59559
|
-
*/
|
|
59560
|
-
proto.clarifai.api.OrchestrationSpec.OrchestrationCase = {
|
|
59561
|
-
ORCHESTRATION_NOT_SET: 0,
|
|
59562
|
-
ARGO_ORCHESTRATION_SPEC: 1
|
|
59563
|
-
};
|
|
59564
|
-
/**
|
|
59565
|
-
* @return {proto.clarifai.api.OrchestrationSpec.OrchestrationCase}
|
|
59566
|
-
*/
|
|
59567
|
-
proto.clarifai.api.OrchestrationSpec.prototype.getOrchestrationCase = function () {
|
|
59568
|
-
return /** @type {proto.clarifai.api.OrchestrationSpec.OrchestrationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0]));
|
|
59569
|
-
};
|
|
59570
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59571
|
-
/**
|
|
59572
|
-
* Creates an object representation of this proto.
|
|
59573
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
59574
|
-
* Optional fields that are not set will be set to undefined.
|
|
59575
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
59576
|
-
* For the list of reserved names please see:
|
|
59577
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
59578
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
59579
|
-
* JSPB instance for transitional soy proto support:
|
|
59580
|
-
* http://goto/soy-param-migration
|
|
59581
|
-
* @return {!Object}
|
|
59582
|
-
*/
|
|
59583
|
-
proto.clarifai.api.OrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
|
|
59584
|
-
return proto.clarifai.api.OrchestrationSpec.toObject(opt_includeInstance, this);
|
|
59585
|
-
};
|
|
59586
|
-
/**
|
|
59587
|
-
* Static version of the {@see toObject} method.
|
|
59588
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
59589
|
-
* the JSPB instance for transitional soy proto support:
|
|
59590
|
-
* http://goto/soy-param-migration
|
|
59591
|
-
* @param {!proto.clarifai.api.OrchestrationSpec} msg The msg instance to transform.
|
|
59592
|
-
* @return {!Object}
|
|
59593
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59594
|
-
*/
|
|
59595
|
-
proto.clarifai.api.OrchestrationSpec.toObject = function (includeInstance, msg) {
|
|
59596
|
-
var f, obj = {
|
|
59597
|
-
argoOrchestrationSpec: (f = msg.getArgoOrchestrationSpec()) && proto.clarifai.api.ArgoOrchestrationSpec.toObject(includeInstance, f)
|
|
59598
|
-
};
|
|
59599
|
-
if (includeInstance) {
|
|
59600
|
-
obj.$jspbMessageInstance = msg;
|
|
59601
|
-
}
|
|
59602
|
-
return obj;
|
|
59603
|
-
};
|
|
59604
|
-
}
|
|
59605
|
-
/**
|
|
59606
|
-
* Deserializes binary data (in protobuf wire format).
|
|
59607
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
59608
|
-
* @return {!proto.clarifai.api.OrchestrationSpec}
|
|
59609
|
-
*/
|
|
59610
|
-
proto.clarifai.api.OrchestrationSpec.deserializeBinary = function (bytes) {
|
|
59611
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
59612
|
-
var msg = new proto.clarifai.api.OrchestrationSpec;
|
|
59613
|
-
return proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader(msg, reader);
|
|
59614
|
-
};
|
|
59615
|
-
/**
|
|
59616
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
59617
|
-
* given reader into the given message object.
|
|
59618
|
-
* @param {!proto.clarifai.api.OrchestrationSpec} msg The message object to deserialize into.
|
|
59619
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
59620
|
-
* @return {!proto.clarifai.api.OrchestrationSpec}
|
|
59621
|
-
*/
|
|
59622
|
-
proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
|
|
59623
|
-
while (reader.nextField()) {
|
|
59624
|
-
if (reader.isEndGroup()) {
|
|
59625
|
-
break;
|
|
59626
|
-
}
|
|
59627
|
-
var field = reader.getFieldNumber();
|
|
59628
|
-
switch (field) {
|
|
59629
|
-
case 1:
|
|
59630
|
-
var value = new proto.clarifai.api.ArgoOrchestrationSpec;
|
|
59631
|
-
reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader);
|
|
59632
|
-
msg.setArgoOrchestrationSpec(value);
|
|
59633
|
-
break;
|
|
59634
|
-
default:
|
|
59635
|
-
reader.skipField();
|
|
59636
|
-
break;
|
|
59637
|
-
}
|
|
59638
|
-
}
|
|
59639
|
-
return msg;
|
|
59640
|
-
};
|
|
59641
|
-
/**
|
|
59642
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
59643
|
-
* @return {!Uint8Array}
|
|
59644
|
-
*/
|
|
59645
|
-
proto.clarifai.api.OrchestrationSpec.prototype.serializeBinary = function () {
|
|
59646
|
-
var writer = new jspb.BinaryWriter();
|
|
59647
|
-
proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter(this, writer);
|
|
59648
|
-
return writer.getResultBuffer();
|
|
59649
|
-
};
|
|
59650
|
-
/**
|
|
59651
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
59652
|
-
* format), writing to the given BinaryWriter.
|
|
59653
|
-
* @param {!proto.clarifai.api.OrchestrationSpec} message
|
|
59654
|
-
* @param {!jspb.BinaryWriter} writer
|
|
59655
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59656
|
-
*/
|
|
59657
|
-
proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
|
|
59658
|
-
var f = undefined;
|
|
59659
|
-
f = message.getArgoOrchestrationSpec();
|
|
59660
|
-
if (f != null) {
|
|
59661
|
-
writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter);
|
|
59662
|
-
}
|
|
59663
|
-
};
|
|
59664
|
-
/**
|
|
59665
|
-
* optional ArgoOrchestrationSpec argo_orchestration_spec = 1;
|
|
59666
|
-
* @return {?proto.clarifai.api.ArgoOrchestrationSpec}
|
|
59667
|
-
*/
|
|
59668
|
-
proto.clarifai.api.OrchestrationSpec.prototype.getArgoOrchestrationSpec = function () {
|
|
59669
|
-
return /** @type{?proto.clarifai.api.ArgoOrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationSpec, 1));
|
|
59670
|
-
};
|
|
59671
|
-
/**
|
|
59672
|
-
* @param {?proto.clarifai.api.ArgoOrchestrationSpec|undefined} value
|
|
59673
|
-
* @return {!proto.clarifai.api.OrchestrationSpec} returns this
|
|
59674
|
-
*/
|
|
59675
|
-
proto.clarifai.api.OrchestrationSpec.prototype.setArgoOrchestrationSpec = function (value) {
|
|
59676
|
-
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0], value);
|
|
59677
|
-
};
|
|
59678
|
-
/**
|
|
59679
|
-
* Clears the message field making it undefined.
|
|
59680
|
-
* @return {!proto.clarifai.api.OrchestrationSpec} returns this
|
|
59681
|
-
*/
|
|
59682
|
-
proto.clarifai.api.OrchestrationSpec.prototype.clearArgoOrchestrationSpec = function () {
|
|
59683
|
-
return this.setArgoOrchestrationSpec(undefined);
|
|
59684
|
-
};
|
|
59685
|
-
/**
|
|
59686
|
-
* Returns whether this field is set.
|
|
59687
|
-
* @return {boolean}
|
|
59688
|
-
*/
|
|
59689
|
-
proto.clarifai.api.OrchestrationSpec.prototype.hasArgoOrchestrationSpec = function () {
|
|
59690
|
-
return jspb.Message.getField(this, 1) != null;
|
|
59691
|
-
};
|
|
59692
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59693
|
-
/**
|
|
59694
|
-
* Creates an object representation of this proto.
|
|
59695
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
59696
|
-
* Optional fields that are not set will be set to undefined.
|
|
59697
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
59698
|
-
* For the list of reserved names please see:
|
|
59699
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
59700
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
59701
|
-
* JSPB instance for transitional soy proto support:
|
|
59702
|
-
* http://goto/soy-param-migration
|
|
59703
|
-
* @return {!Object}
|
|
59704
|
-
*/
|
|
59705
|
-
proto.clarifai.api.Pipeline.prototype.toObject = function (opt_includeInstance) {
|
|
59706
|
-
return proto.clarifai.api.Pipeline.toObject(opt_includeInstance, this);
|
|
59707
|
-
};
|
|
59708
|
-
/**
|
|
59709
|
-
* Static version of the {@see toObject} method.
|
|
59710
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
59711
|
-
* the JSPB instance for transitional soy proto support:
|
|
59712
|
-
* http://goto/soy-param-migration
|
|
59713
|
-
* @param {!proto.clarifai.api.Pipeline} msg The msg instance to transform.
|
|
59714
|
-
* @return {!Object}
|
|
59715
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59716
|
-
*/
|
|
59717
|
-
proto.clarifai.api.Pipeline.toObject = function (includeInstance, msg) {
|
|
59718
|
-
var f, obj = {
|
|
59719
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
59720
|
-
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
59721
|
-
appId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
59722
|
-
orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
|
|
59723
|
-
pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
|
|
59724
|
-
description: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
59725
|
-
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
59726
|
-
notes: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
59727
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
59728
|
-
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
59729
|
-
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
59730
|
-
};
|
|
59731
|
-
if (includeInstance) {
|
|
59732
|
-
obj.$jspbMessageInstance = msg;
|
|
59733
|
-
}
|
|
59734
|
-
return obj;
|
|
59735
|
-
};
|
|
59736
|
-
}
|
|
59737
|
-
/**
|
|
59738
|
-
* Deserializes binary data (in protobuf wire format).
|
|
59739
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
59740
|
-
* @return {!proto.clarifai.api.Pipeline}
|
|
59741
|
-
*/
|
|
59742
|
-
proto.clarifai.api.Pipeline.deserializeBinary = function (bytes) {
|
|
59743
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
59744
|
-
var msg = new proto.clarifai.api.Pipeline;
|
|
59745
|
-
return proto.clarifai.api.Pipeline.deserializeBinaryFromReader(msg, reader);
|
|
59746
|
-
};
|
|
59747
|
-
/**
|
|
59748
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
59749
|
-
* given reader into the given message object.
|
|
59750
|
-
* @param {!proto.clarifai.api.Pipeline} msg The message object to deserialize into.
|
|
59751
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
59752
|
-
* @return {!proto.clarifai.api.Pipeline}
|
|
59753
|
-
*/
|
|
59754
|
-
proto.clarifai.api.Pipeline.deserializeBinaryFromReader = function (msg, reader) {
|
|
59755
|
-
while (reader.nextField()) {
|
|
59756
|
-
if (reader.isEndGroup()) {
|
|
59757
|
-
break;
|
|
59758
|
-
}
|
|
59759
|
-
var field = reader.getFieldNumber();
|
|
59760
|
-
switch (field) {
|
|
59761
|
-
case 1:
|
|
59762
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59763
|
-
msg.setId(value);
|
|
59764
|
-
break;
|
|
59765
|
-
case 2:
|
|
59766
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59767
|
-
msg.setUserId(value);
|
|
59768
|
-
break;
|
|
59769
|
-
case 3:
|
|
59770
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59771
|
-
msg.setAppId(value);
|
|
59772
|
-
break;
|
|
59773
|
-
case 4:
|
|
59774
|
-
var value = new proto.clarifai.api.OrchestrationSpec;
|
|
59775
|
-
reader.readMessage(value, proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
|
|
59776
|
-
msg.setOrchestrationSpec(value);
|
|
59777
|
-
break;
|
|
59778
|
-
case 5:
|
|
59779
|
-
var value = new proto.clarifai.api.PipelineVersion;
|
|
59780
|
-
reader.readMessage(value, proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
|
|
59781
|
-
msg.setPipelineVersion(value);
|
|
59782
|
-
break;
|
|
59783
|
-
case 6:
|
|
59784
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59785
|
-
msg.setDescription(value);
|
|
59786
|
-
break;
|
|
59787
|
-
case 7:
|
|
59788
|
-
var value = new proto.clarifai.api.Visibility;
|
|
59789
|
-
reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
59790
|
-
msg.setVisibility(value);
|
|
59791
|
-
break;
|
|
59792
|
-
case 8:
|
|
59793
|
-
var value = /** @type {string} */ (reader.readString());
|
|
59794
|
-
msg.setNotes(value);
|
|
59795
|
-
break;
|
|
59796
|
-
case 9:
|
|
59797
|
-
var value = new google_protobuf_struct_pb.Struct;
|
|
59798
|
-
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
59799
|
-
msg.setMetadata(value);
|
|
59800
|
-
break;
|
|
59801
|
-
case 10:
|
|
59802
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
59803
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
59804
|
-
msg.setCreatedAt(value);
|
|
59805
|
-
break;
|
|
59806
|
-
case 11:
|
|
59807
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
59808
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
59809
|
-
msg.setModifiedAt(value);
|
|
59810
|
-
break;
|
|
59811
|
-
default:
|
|
59812
|
-
reader.skipField();
|
|
59813
|
-
break;
|
|
59814
|
-
}
|
|
59815
|
-
}
|
|
59816
|
-
return msg;
|
|
59817
|
-
};
|
|
59818
|
-
/**
|
|
59819
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
59820
|
-
* @return {!Uint8Array}
|
|
59821
|
-
*/
|
|
59822
|
-
proto.clarifai.api.Pipeline.prototype.serializeBinary = function () {
|
|
59823
|
-
var writer = new jspb.BinaryWriter();
|
|
59824
|
-
proto.clarifai.api.Pipeline.serializeBinaryToWriter(this, writer);
|
|
59825
|
-
return writer.getResultBuffer();
|
|
59826
|
-
};
|
|
59827
|
-
/**
|
|
59828
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
59829
|
-
* format), writing to the given BinaryWriter.
|
|
59830
|
-
* @param {!proto.clarifai.api.Pipeline} message
|
|
59831
|
-
* @param {!jspb.BinaryWriter} writer
|
|
59832
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
59833
|
-
*/
|
|
59834
|
-
proto.clarifai.api.Pipeline.serializeBinaryToWriter = function (message, writer) {
|
|
59835
|
-
var f = undefined;
|
|
59836
|
-
f = message.getId();
|
|
59837
|
-
if (f.length > 0) {
|
|
59838
|
-
writer.writeString(1, f);
|
|
59839
|
-
}
|
|
59840
|
-
f = message.getUserId();
|
|
59841
|
-
if (f.length > 0) {
|
|
59842
|
-
writer.writeString(2, f);
|
|
59843
|
-
}
|
|
59844
|
-
f = message.getAppId();
|
|
59845
|
-
if (f.length > 0) {
|
|
59846
|
-
writer.writeString(3, f);
|
|
59847
|
-
}
|
|
59848
|
-
f = message.getOrchestrationSpec();
|
|
59849
|
-
if (f != null) {
|
|
59850
|
-
writer.writeMessage(4, f, proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter);
|
|
59851
|
-
}
|
|
59852
|
-
f = message.getPipelineVersion();
|
|
59853
|
-
if (f != null) {
|
|
59854
|
-
writer.writeMessage(5, f, proto.clarifai.api.PipelineVersion.serializeBinaryToWriter);
|
|
59855
|
-
}
|
|
59856
|
-
f = message.getDescription();
|
|
59857
|
-
if (f.length > 0) {
|
|
59858
|
-
writer.writeString(6, f);
|
|
59859
|
-
}
|
|
59860
|
-
f = message.getVisibility();
|
|
59861
|
-
if (f != null) {
|
|
59862
|
-
writer.writeMessage(7, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
|
|
59863
|
-
}
|
|
59864
|
-
f = message.getNotes();
|
|
59865
|
-
if (f.length > 0) {
|
|
59866
|
-
writer.writeString(8, f);
|
|
59867
|
-
}
|
|
59868
|
-
f = message.getMetadata();
|
|
59869
|
-
if (f != null) {
|
|
59870
|
-
writer.writeMessage(9, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
59871
|
-
}
|
|
59872
|
-
f = message.getCreatedAt();
|
|
59873
|
-
if (f != null) {
|
|
59874
|
-
writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
59875
|
-
}
|
|
59876
|
-
f = message.getModifiedAt();
|
|
59877
|
-
if (f != null) {
|
|
59878
|
-
writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
59879
|
-
}
|
|
59880
|
-
};
|
|
59881
|
-
/**
|
|
59882
|
-
* optional string id = 1;
|
|
59883
|
-
* @return {string}
|
|
59884
|
-
*/
|
|
59885
|
-
proto.clarifai.api.Pipeline.prototype.getId = function () {
|
|
59886
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
59887
|
-
};
|
|
59888
|
-
/**
|
|
59889
|
-
* @param {string} value
|
|
59890
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59891
|
-
*/
|
|
59892
|
-
proto.clarifai.api.Pipeline.prototype.setId = function (value) {
|
|
59893
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
59894
|
-
};
|
|
59895
|
-
/**
|
|
59896
|
-
* optional string user_id = 2;
|
|
59897
|
-
* @return {string}
|
|
59898
|
-
*/
|
|
59899
|
-
proto.clarifai.api.Pipeline.prototype.getUserId = function () {
|
|
59900
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
59901
|
-
};
|
|
59902
|
-
/**
|
|
59903
|
-
* @param {string} value
|
|
59904
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59905
|
-
*/
|
|
59906
|
-
proto.clarifai.api.Pipeline.prototype.setUserId = function (value) {
|
|
59907
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
59908
|
-
};
|
|
59909
|
-
/**
|
|
59910
|
-
* optional string app_id = 3;
|
|
59911
|
-
* @return {string}
|
|
59912
|
-
*/
|
|
59913
|
-
proto.clarifai.api.Pipeline.prototype.getAppId = function () {
|
|
59914
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
59915
|
-
};
|
|
59916
|
-
/**
|
|
59917
|
-
* @param {string} value
|
|
59918
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59919
|
-
*/
|
|
59920
|
-
proto.clarifai.api.Pipeline.prototype.setAppId = function (value) {
|
|
59921
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
59922
|
-
};
|
|
59923
|
-
/**
|
|
59924
|
-
* optional OrchestrationSpec orchestration_spec = 4;
|
|
59925
|
-
* @return {?proto.clarifai.api.OrchestrationSpec}
|
|
59926
|
-
*/
|
|
59927
|
-
proto.clarifai.api.Pipeline.prototype.getOrchestrationSpec = function () {
|
|
59928
|
-
return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
|
|
59929
|
-
};
|
|
59930
|
-
/**
|
|
59931
|
-
* @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
|
|
59932
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59933
|
-
*/
|
|
59934
|
-
proto.clarifai.api.Pipeline.prototype.setOrchestrationSpec = function (value) {
|
|
59935
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
59936
|
-
};
|
|
59937
|
-
/**
|
|
59938
|
-
* Clears the message field making it undefined.
|
|
59939
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59940
|
-
*/
|
|
59941
|
-
proto.clarifai.api.Pipeline.prototype.clearOrchestrationSpec = function () {
|
|
59942
|
-
return this.setOrchestrationSpec(undefined);
|
|
59943
|
-
};
|
|
59944
|
-
/**
|
|
59945
|
-
* Returns whether this field is set.
|
|
59946
|
-
* @return {boolean}
|
|
59947
|
-
*/
|
|
59948
|
-
proto.clarifai.api.Pipeline.prototype.hasOrchestrationSpec = function () {
|
|
59949
|
-
return jspb.Message.getField(this, 4) != null;
|
|
59950
|
-
};
|
|
59951
|
-
/**
|
|
59952
|
-
* optional PipelineVersion pipeline_version = 5;
|
|
59953
|
-
* @return {?proto.clarifai.api.PipelineVersion}
|
|
59954
|
-
*/
|
|
59955
|
-
proto.clarifai.api.Pipeline.prototype.getPipelineVersion = function () {
|
|
59956
|
-
return /** @type{?proto.clarifai.api.PipelineVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 5));
|
|
59957
|
-
};
|
|
59958
|
-
/**
|
|
59959
|
-
* @param {?proto.clarifai.api.PipelineVersion|undefined} value
|
|
59960
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59961
|
-
*/
|
|
59962
|
-
proto.clarifai.api.Pipeline.prototype.setPipelineVersion = function (value) {
|
|
59963
|
-
return jspb.Message.setWrapperField(this, 5, value);
|
|
59964
|
-
};
|
|
59965
|
-
/**
|
|
59966
|
-
* Clears the message field making it undefined.
|
|
59967
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59968
|
-
*/
|
|
59969
|
-
proto.clarifai.api.Pipeline.prototype.clearPipelineVersion = function () {
|
|
59970
|
-
return this.setPipelineVersion(undefined);
|
|
59971
|
-
};
|
|
59972
|
-
/**
|
|
59973
|
-
* Returns whether this field is set.
|
|
59974
|
-
* @return {boolean}
|
|
59975
|
-
*/
|
|
59976
|
-
proto.clarifai.api.Pipeline.prototype.hasPipelineVersion = function () {
|
|
59977
|
-
return jspb.Message.getField(this, 5) != null;
|
|
59978
|
-
};
|
|
59979
|
-
/**
|
|
59980
|
-
* optional string description = 6;
|
|
59981
|
-
* @return {string}
|
|
59982
|
-
*/
|
|
59983
|
-
proto.clarifai.api.Pipeline.prototype.getDescription = function () {
|
|
59984
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
59985
|
-
};
|
|
59986
|
-
/**
|
|
59987
|
-
* @param {string} value
|
|
59988
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
59989
|
-
*/
|
|
59990
|
-
proto.clarifai.api.Pipeline.prototype.setDescription = function (value) {
|
|
59991
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
59992
|
-
};
|
|
59993
|
-
/**
|
|
59994
|
-
* optional Visibility visibility = 7;
|
|
59995
|
-
* @return {?proto.clarifai.api.Visibility}
|
|
59996
|
-
*/
|
|
59997
|
-
proto.clarifai.api.Pipeline.prototype.getVisibility = function () {
|
|
59998
|
-
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
|
|
59999
|
-
};
|
|
60000
|
-
/**
|
|
60001
|
-
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
60002
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60003
|
-
*/
|
|
60004
|
-
proto.clarifai.api.Pipeline.prototype.setVisibility = function (value) {
|
|
60005
|
-
return jspb.Message.setWrapperField(this, 7, value);
|
|
60006
|
-
};
|
|
60007
|
-
/**
|
|
60008
|
-
* Clears the message field making it undefined.
|
|
60009
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60010
|
-
*/
|
|
60011
|
-
proto.clarifai.api.Pipeline.prototype.clearVisibility = function () {
|
|
60012
|
-
return this.setVisibility(undefined);
|
|
60013
|
-
};
|
|
60014
|
-
/**
|
|
60015
|
-
* Returns whether this field is set.
|
|
60016
|
-
* @return {boolean}
|
|
60017
|
-
*/
|
|
60018
|
-
proto.clarifai.api.Pipeline.prototype.hasVisibility = function () {
|
|
60019
|
-
return jspb.Message.getField(this, 7) != null;
|
|
60020
|
-
};
|
|
60021
|
-
/**
|
|
60022
|
-
* optional string notes = 8;
|
|
60023
|
-
* @return {string}
|
|
60024
|
-
*/
|
|
60025
|
-
proto.clarifai.api.Pipeline.prototype.getNotes = function () {
|
|
60026
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
60027
|
-
};
|
|
60028
|
-
/**
|
|
60029
|
-
* @param {string} value
|
|
60030
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60031
|
-
*/
|
|
60032
|
-
proto.clarifai.api.Pipeline.prototype.setNotes = function (value) {
|
|
60033
|
-
return jspb.Message.setProto3StringField(this, 8, value);
|
|
60034
|
-
};
|
|
60035
|
-
/**
|
|
60036
|
-
* optional google.protobuf.Struct metadata = 9;
|
|
60037
|
-
* @return {?proto.google.protobuf.Struct}
|
|
60038
|
-
*/
|
|
60039
|
-
proto.clarifai.api.Pipeline.prototype.getMetadata = function () {
|
|
60040
|
-
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
|
|
60041
|
-
};
|
|
60042
|
-
/**
|
|
60043
|
-
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
60044
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60045
|
-
*/
|
|
60046
|
-
proto.clarifai.api.Pipeline.prototype.setMetadata = function (value) {
|
|
60047
|
-
return jspb.Message.setWrapperField(this, 9, value);
|
|
60048
|
-
};
|
|
60049
|
-
/**
|
|
60050
|
-
* Clears the message field making it undefined.
|
|
60051
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60052
|
-
*/
|
|
60053
|
-
proto.clarifai.api.Pipeline.prototype.clearMetadata = function () {
|
|
60054
|
-
return this.setMetadata(undefined);
|
|
60055
|
-
};
|
|
60056
|
-
/**
|
|
60057
|
-
* Returns whether this field is set.
|
|
60058
|
-
* @return {boolean}
|
|
60059
|
-
*/
|
|
60060
|
-
proto.clarifai.api.Pipeline.prototype.hasMetadata = function () {
|
|
60061
|
-
return jspb.Message.getField(this, 9) != null;
|
|
60062
|
-
};
|
|
60063
|
-
/**
|
|
60064
|
-
* optional google.protobuf.Timestamp created_at = 10;
|
|
60065
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
60066
|
-
*/
|
|
60067
|
-
proto.clarifai.api.Pipeline.prototype.getCreatedAt = function () {
|
|
60068
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
|
|
60069
|
-
};
|
|
60070
|
-
/**
|
|
60071
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
60072
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60073
|
-
*/
|
|
60074
|
-
proto.clarifai.api.Pipeline.prototype.setCreatedAt = function (value) {
|
|
60075
|
-
return jspb.Message.setWrapperField(this, 10, value);
|
|
60076
|
-
};
|
|
60077
|
-
/**
|
|
60078
|
-
* Clears the message field making it undefined.
|
|
60079
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60080
|
-
*/
|
|
60081
|
-
proto.clarifai.api.Pipeline.prototype.clearCreatedAt = function () {
|
|
60082
|
-
return this.setCreatedAt(undefined);
|
|
60083
|
-
};
|
|
60084
|
-
/**
|
|
60085
|
-
* Returns whether this field is set.
|
|
60086
|
-
* @return {boolean}
|
|
60087
|
-
*/
|
|
60088
|
-
proto.clarifai.api.Pipeline.prototype.hasCreatedAt = function () {
|
|
60089
|
-
return jspb.Message.getField(this, 10) != null;
|
|
60090
|
-
};
|
|
60091
|
-
/**
|
|
60092
|
-
* optional google.protobuf.Timestamp modified_at = 11;
|
|
60093
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
60094
|
-
*/
|
|
60095
|
-
proto.clarifai.api.Pipeline.prototype.getModifiedAt = function () {
|
|
60096
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
|
|
60097
|
-
};
|
|
60098
|
-
/**
|
|
60099
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
60100
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60101
|
-
*/
|
|
60102
|
-
proto.clarifai.api.Pipeline.prototype.setModifiedAt = function (value) {
|
|
60103
|
-
return jspb.Message.setWrapperField(this, 11, value);
|
|
60104
|
-
};
|
|
60105
|
-
/**
|
|
60106
|
-
* Clears the message field making it undefined.
|
|
60107
|
-
* @return {!proto.clarifai.api.Pipeline} returns this
|
|
60108
|
-
*/
|
|
60109
|
-
proto.clarifai.api.Pipeline.prototype.clearModifiedAt = function () {
|
|
60110
|
-
return this.setModifiedAt(undefined);
|
|
60111
|
-
};
|
|
60112
|
-
/**
|
|
60113
|
-
* Returns whether this field is set.
|
|
60114
|
-
* @return {boolean}
|
|
60115
|
-
*/
|
|
60116
|
-
proto.clarifai.api.Pipeline.prototype.hasModifiedAt = function () {
|
|
60117
|
-
return jspb.Message.getField(this, 11) != null;
|
|
60118
|
-
};
|
|
60119
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60120
|
-
/**
|
|
60121
|
-
* Creates an object representation of this proto.
|
|
60122
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60123
|
-
* Optional fields that are not set will be set to undefined.
|
|
60124
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60125
|
-
* For the list of reserved names please see:
|
|
60126
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60127
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60128
|
-
* JSPB instance for transitional soy proto support:
|
|
60129
|
-
* http://goto/soy-param-migration
|
|
60130
|
-
* @return {!Object}
|
|
60131
|
-
*/
|
|
60132
|
-
proto.clarifai.api.PipelineVersion.prototype.toObject = function (opt_includeInstance) {
|
|
60133
|
-
return proto.clarifai.api.PipelineVersion.toObject(opt_includeInstance, this);
|
|
60134
|
-
};
|
|
60135
|
-
/**
|
|
60136
|
-
* Static version of the {@see toObject} method.
|
|
60137
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60138
|
-
* the JSPB instance for transitional soy proto support:
|
|
60139
|
-
* http://goto/soy-param-migration
|
|
60140
|
-
* @param {!proto.clarifai.api.PipelineVersion} msg The msg instance to transform.
|
|
60141
|
-
* @return {!Object}
|
|
60142
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60143
|
-
*/
|
|
60144
|
-
proto.clarifai.api.PipelineVersion.toObject = function (includeInstance, msg) {
|
|
60145
|
-
var f, obj = {
|
|
60146
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
60147
|
-
appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
60148
|
-
userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
60149
|
-
orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
|
|
60150
|
-
pipelineId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
60151
|
-
description: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
60152
|
-
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
60153
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
60154
|
-
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
60155
|
-
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
60156
|
-
};
|
|
60157
|
-
if (includeInstance) {
|
|
60158
|
-
obj.$jspbMessageInstance = msg;
|
|
60159
|
-
}
|
|
60160
|
-
return obj;
|
|
60161
|
-
};
|
|
60162
|
-
}
|
|
60163
|
-
/**
|
|
60164
|
-
* Deserializes binary data (in protobuf wire format).
|
|
60165
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60166
|
-
* @return {!proto.clarifai.api.PipelineVersion}
|
|
60167
|
-
*/
|
|
60168
|
-
proto.clarifai.api.PipelineVersion.deserializeBinary = function (bytes) {
|
|
60169
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
60170
|
-
var msg = new proto.clarifai.api.PipelineVersion;
|
|
60171
|
-
return proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader(msg, reader);
|
|
60172
|
-
};
|
|
60173
|
-
/**
|
|
60174
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
60175
|
-
* given reader into the given message object.
|
|
60176
|
-
* @param {!proto.clarifai.api.PipelineVersion} msg The message object to deserialize into.
|
|
60177
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60178
|
-
* @return {!proto.clarifai.api.PipelineVersion}
|
|
60179
|
-
*/
|
|
60180
|
-
proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader = function (msg, reader) {
|
|
60181
|
-
while (reader.nextField()) {
|
|
60182
|
-
if (reader.isEndGroup()) {
|
|
60183
|
-
break;
|
|
60184
|
-
}
|
|
60185
|
-
var field = reader.getFieldNumber();
|
|
60186
|
-
switch (field) {
|
|
60187
|
-
case 1:
|
|
60188
|
-
var value = /** @type {string} */ (reader.readString());
|
|
60189
|
-
msg.setId(value);
|
|
60190
|
-
break;
|
|
60191
|
-
case 2:
|
|
60192
|
-
var value = /** @type {string} */ (reader.readString());
|
|
60193
|
-
msg.setAppId(value);
|
|
60194
|
-
break;
|
|
60195
|
-
case 3:
|
|
60196
|
-
var value = /** @type {string} */ (reader.readString());
|
|
60197
|
-
msg.setUserId(value);
|
|
60198
|
-
break;
|
|
60199
|
-
case 4:
|
|
60200
|
-
var value = new proto.clarifai.api.OrchestrationSpec;
|
|
60201
|
-
reader.readMessage(value, proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
|
|
60202
|
-
msg.setOrchestrationSpec(value);
|
|
60203
|
-
break;
|
|
60204
|
-
case 5:
|
|
60205
|
-
var value = /** @type {string} */ (reader.readString());
|
|
60206
|
-
msg.setPipelineId(value);
|
|
60207
|
-
break;
|
|
60208
|
-
case 6:
|
|
60209
|
-
var value = /** @type {string} */ (reader.readString());
|
|
60210
|
-
msg.setDescription(value);
|
|
60211
|
-
break;
|
|
60212
|
-
case 7:
|
|
60213
|
-
var value = new proto.clarifai.api.Visibility;
|
|
60214
|
-
reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
60215
|
-
msg.setVisibility(value);
|
|
60216
|
-
break;
|
|
60217
|
-
case 8:
|
|
60218
|
-
var value = new google_protobuf_struct_pb.Struct;
|
|
60219
|
-
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
60220
|
-
msg.setMetadata(value);
|
|
60221
|
-
break;
|
|
60222
|
-
case 9:
|
|
60223
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
60224
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
60225
|
-
msg.setCreatedAt(value);
|
|
60226
|
-
break;
|
|
60227
|
-
case 10:
|
|
60228
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
60229
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
60230
|
-
msg.setModifiedAt(value);
|
|
60231
|
-
break;
|
|
60232
|
-
default:
|
|
60233
|
-
reader.skipField();
|
|
60234
|
-
break;
|
|
60235
|
-
}
|
|
60236
|
-
}
|
|
60237
|
-
return msg;
|
|
60238
|
-
};
|
|
60239
|
-
/**
|
|
60240
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
60241
|
-
* @return {!Uint8Array}
|
|
60242
|
-
*/
|
|
60243
|
-
proto.clarifai.api.PipelineVersion.prototype.serializeBinary = function () {
|
|
60244
|
-
var writer = new jspb.BinaryWriter();
|
|
60245
|
-
proto.clarifai.api.PipelineVersion.serializeBinaryToWriter(this, writer);
|
|
60246
|
-
return writer.getResultBuffer();
|
|
60247
|
-
};
|
|
60248
|
-
/**
|
|
60249
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
60250
|
-
* format), writing to the given BinaryWriter.
|
|
60251
|
-
* @param {!proto.clarifai.api.PipelineVersion} message
|
|
60252
|
-
* @param {!jspb.BinaryWriter} writer
|
|
60253
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60254
|
-
*/
|
|
60255
|
-
proto.clarifai.api.PipelineVersion.serializeBinaryToWriter = function (message, writer) {
|
|
60256
|
-
var f = undefined;
|
|
60257
|
-
f = message.getId();
|
|
60258
|
-
if (f.length > 0) {
|
|
60259
|
-
writer.writeString(1, f);
|
|
60260
|
-
}
|
|
60261
|
-
f = message.getAppId();
|
|
60262
|
-
if (f.length > 0) {
|
|
60263
|
-
writer.writeString(2, f);
|
|
60264
|
-
}
|
|
60265
|
-
f = message.getUserId();
|
|
60266
|
-
if (f.length > 0) {
|
|
60267
|
-
writer.writeString(3, f);
|
|
60268
|
-
}
|
|
60269
|
-
f = message.getOrchestrationSpec();
|
|
60270
|
-
if (f != null) {
|
|
60271
|
-
writer.writeMessage(4, f, proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter);
|
|
60272
|
-
}
|
|
60273
|
-
f = message.getPipelineId();
|
|
60274
|
-
if (f.length > 0) {
|
|
60275
|
-
writer.writeString(5, f);
|
|
60276
|
-
}
|
|
60277
|
-
f = message.getDescription();
|
|
60278
|
-
if (f.length > 0) {
|
|
60279
|
-
writer.writeString(6, f);
|
|
60280
|
-
}
|
|
60281
|
-
f = message.getVisibility();
|
|
60282
|
-
if (f != null) {
|
|
60283
|
-
writer.writeMessage(7, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
|
|
60284
|
-
}
|
|
60285
|
-
f = message.getMetadata();
|
|
60286
|
-
if (f != null) {
|
|
60287
|
-
writer.writeMessage(8, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
60288
|
-
}
|
|
60289
|
-
f = message.getCreatedAt();
|
|
60290
|
-
if (f != null) {
|
|
60291
|
-
writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
60292
|
-
}
|
|
60293
|
-
f = message.getModifiedAt();
|
|
60294
|
-
if (f != null) {
|
|
60295
|
-
writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
60296
|
-
}
|
|
60297
|
-
};
|
|
60298
|
-
/**
|
|
60299
|
-
* optional string id = 1;
|
|
60300
|
-
* @return {string}
|
|
60301
|
-
*/
|
|
60302
|
-
proto.clarifai.api.PipelineVersion.prototype.getId = function () {
|
|
60303
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60304
|
-
};
|
|
60305
|
-
/**
|
|
60306
|
-
* @param {string} value
|
|
60307
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60308
|
-
*/
|
|
60309
|
-
proto.clarifai.api.PipelineVersion.prototype.setId = function (value) {
|
|
60310
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
60311
|
-
};
|
|
60312
|
-
/**
|
|
60313
|
-
* optional string app_id = 2;
|
|
60314
|
-
* @return {string}
|
|
60315
|
-
*/
|
|
60316
|
-
proto.clarifai.api.PipelineVersion.prototype.getAppId = function () {
|
|
60317
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
60318
|
-
};
|
|
60319
|
-
/**
|
|
60320
|
-
* @param {string} value
|
|
60321
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60322
|
-
*/
|
|
60323
|
-
proto.clarifai.api.PipelineVersion.prototype.setAppId = function (value) {
|
|
60324
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
60325
|
-
};
|
|
60326
|
-
/**
|
|
60327
|
-
* optional string user_id = 3;
|
|
60328
|
-
* @return {string}
|
|
60329
|
-
*/
|
|
60330
|
-
proto.clarifai.api.PipelineVersion.prototype.getUserId = function () {
|
|
60331
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
60332
|
-
};
|
|
60333
|
-
/**
|
|
60334
|
-
* @param {string} value
|
|
60335
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60336
|
-
*/
|
|
60337
|
-
proto.clarifai.api.PipelineVersion.prototype.setUserId = function (value) {
|
|
60338
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
60339
|
-
};
|
|
60340
|
-
/**
|
|
60341
|
-
* optional OrchestrationSpec orchestration_spec = 4;
|
|
60342
|
-
* @return {?proto.clarifai.api.OrchestrationSpec}
|
|
60343
|
-
*/
|
|
60344
|
-
proto.clarifai.api.PipelineVersion.prototype.getOrchestrationSpec = function () {
|
|
60345
|
-
return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
|
|
60346
|
-
};
|
|
60347
|
-
/**
|
|
60348
|
-
* @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
|
|
60349
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60350
|
-
*/
|
|
60351
|
-
proto.clarifai.api.PipelineVersion.prototype.setOrchestrationSpec = function (value) {
|
|
60352
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
60353
|
-
};
|
|
60354
|
-
/**
|
|
60355
|
-
* Clears the message field making it undefined.
|
|
60356
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60357
|
-
*/
|
|
60358
|
-
proto.clarifai.api.PipelineVersion.prototype.clearOrchestrationSpec = function () {
|
|
60359
|
-
return this.setOrchestrationSpec(undefined);
|
|
60360
|
-
};
|
|
60361
|
-
/**
|
|
60362
|
-
* Returns whether this field is set.
|
|
60363
|
-
* @return {boolean}
|
|
60364
|
-
*/
|
|
60365
|
-
proto.clarifai.api.PipelineVersion.prototype.hasOrchestrationSpec = function () {
|
|
60366
|
-
return jspb.Message.getField(this, 4) != null;
|
|
60367
|
-
};
|
|
60368
|
-
/**
|
|
60369
|
-
* optional string pipeline_id = 5;
|
|
60370
|
-
* @return {string}
|
|
60371
|
-
*/
|
|
60372
|
-
proto.clarifai.api.PipelineVersion.prototype.getPipelineId = function () {
|
|
60373
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
60374
|
-
};
|
|
60375
|
-
/**
|
|
60376
|
-
* @param {string} value
|
|
60377
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60378
|
-
*/
|
|
60379
|
-
proto.clarifai.api.PipelineVersion.prototype.setPipelineId = function (value) {
|
|
60380
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
60381
|
-
};
|
|
60382
|
-
/**
|
|
60383
|
-
* optional string description = 6;
|
|
60384
|
-
* @return {string}
|
|
60385
|
-
*/
|
|
60386
|
-
proto.clarifai.api.PipelineVersion.prototype.getDescription = function () {
|
|
60387
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
60388
|
-
};
|
|
60389
|
-
/**
|
|
60390
|
-
* @param {string} value
|
|
60391
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60392
|
-
*/
|
|
60393
|
-
proto.clarifai.api.PipelineVersion.prototype.setDescription = function (value) {
|
|
60394
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
60395
|
-
};
|
|
60396
|
-
/**
|
|
60397
|
-
* optional Visibility visibility = 7;
|
|
60398
|
-
* @return {?proto.clarifai.api.Visibility}
|
|
60399
|
-
*/
|
|
60400
|
-
proto.clarifai.api.PipelineVersion.prototype.getVisibility = function () {
|
|
60401
|
-
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
|
|
60402
|
-
};
|
|
60403
|
-
/**
|
|
60404
|
-
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
60405
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60406
|
-
*/
|
|
60407
|
-
proto.clarifai.api.PipelineVersion.prototype.setVisibility = function (value) {
|
|
60408
|
-
return jspb.Message.setWrapperField(this, 7, value);
|
|
60409
|
-
};
|
|
60410
|
-
/**
|
|
60411
|
-
* Clears the message field making it undefined.
|
|
60412
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60413
|
-
*/
|
|
60414
|
-
proto.clarifai.api.PipelineVersion.prototype.clearVisibility = function () {
|
|
60415
|
-
return this.setVisibility(undefined);
|
|
60416
|
-
};
|
|
60417
|
-
/**
|
|
60418
|
-
* Returns whether this field is set.
|
|
60419
|
-
* @return {boolean}
|
|
60420
|
-
*/
|
|
60421
|
-
proto.clarifai.api.PipelineVersion.prototype.hasVisibility = function () {
|
|
60422
|
-
return jspb.Message.getField(this, 7) != null;
|
|
60423
|
-
};
|
|
60424
|
-
/**
|
|
60425
|
-
* optional google.protobuf.Struct metadata = 8;
|
|
60426
|
-
* @return {?proto.google.protobuf.Struct}
|
|
60427
|
-
*/
|
|
60428
|
-
proto.clarifai.api.PipelineVersion.prototype.getMetadata = function () {
|
|
60429
|
-
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
|
|
60430
|
-
};
|
|
60431
|
-
/**
|
|
60432
|
-
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
60433
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60434
|
-
*/
|
|
60435
|
-
proto.clarifai.api.PipelineVersion.prototype.setMetadata = function (value) {
|
|
60436
|
-
return jspb.Message.setWrapperField(this, 8, value);
|
|
60437
|
-
};
|
|
60438
|
-
/**
|
|
60439
|
-
* Clears the message field making it undefined.
|
|
60440
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60441
|
-
*/
|
|
60442
|
-
proto.clarifai.api.PipelineVersion.prototype.clearMetadata = function () {
|
|
60443
|
-
return this.setMetadata(undefined);
|
|
60444
|
-
};
|
|
60445
|
-
/**
|
|
60446
|
-
* Returns whether this field is set.
|
|
60447
|
-
* @return {boolean}
|
|
60448
|
-
*/
|
|
60449
|
-
proto.clarifai.api.PipelineVersion.prototype.hasMetadata = function () {
|
|
60450
|
-
return jspb.Message.getField(this, 8) != null;
|
|
60451
|
-
};
|
|
60452
|
-
/**
|
|
60453
|
-
* optional google.protobuf.Timestamp created_at = 9;
|
|
60454
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
60455
|
-
*/
|
|
60456
|
-
proto.clarifai.api.PipelineVersion.prototype.getCreatedAt = function () {
|
|
60457
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
60458
|
-
};
|
|
60459
|
-
/**
|
|
60460
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
60461
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60462
|
-
*/
|
|
60463
|
-
proto.clarifai.api.PipelineVersion.prototype.setCreatedAt = function (value) {
|
|
60464
|
-
return jspb.Message.setWrapperField(this, 9, value);
|
|
60465
|
-
};
|
|
60466
|
-
/**
|
|
60467
|
-
* Clears the message field making it undefined.
|
|
60468
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60469
|
-
*/
|
|
60470
|
-
proto.clarifai.api.PipelineVersion.prototype.clearCreatedAt = function () {
|
|
60471
|
-
return this.setCreatedAt(undefined);
|
|
60472
|
-
};
|
|
60473
|
-
/**
|
|
60474
|
-
* Returns whether this field is set.
|
|
60475
|
-
* @return {boolean}
|
|
60476
|
-
*/
|
|
60477
|
-
proto.clarifai.api.PipelineVersion.prototype.hasCreatedAt = function () {
|
|
60478
|
-
return jspb.Message.getField(this, 9) != null;
|
|
60479
|
-
};
|
|
60480
|
-
/**
|
|
60481
|
-
* optional google.protobuf.Timestamp modified_at = 10;
|
|
60482
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
60483
|
-
*/
|
|
60484
|
-
proto.clarifai.api.PipelineVersion.prototype.getModifiedAt = function () {
|
|
60485
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
|
|
60486
|
-
};
|
|
60487
|
-
/**
|
|
60488
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
60489
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60490
|
-
*/
|
|
60491
|
-
proto.clarifai.api.PipelineVersion.prototype.setModifiedAt = function (value) {
|
|
60492
|
-
return jspb.Message.setWrapperField(this, 10, value);
|
|
60493
|
-
};
|
|
60494
|
-
/**
|
|
60495
|
-
* Clears the message field making it undefined.
|
|
60496
|
-
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
60497
|
-
*/
|
|
60498
|
-
proto.clarifai.api.PipelineVersion.prototype.clearModifiedAt = function () {
|
|
60499
|
-
return this.setModifiedAt(undefined);
|
|
60500
|
-
};
|
|
60501
|
-
/**
|
|
60502
|
-
* Returns whether this field is set.
|
|
60503
|
-
* @return {boolean}
|
|
60504
|
-
*/
|
|
60505
|
-
proto.clarifai.api.PipelineVersion.prototype.hasModifiedAt = function () {
|
|
60506
|
-
return jspb.Message.getField(this, 10) != null;
|
|
60507
|
-
};
|
|
60508
|
-
/**
|
|
60509
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
60510
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
60511
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
60512
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
60513
|
-
* @private {!Array<!Array<number>>}
|
|
60514
|
-
* @const
|
|
60515
|
-
*/
|
|
60516
|
-
proto.clarifai.api.OrchestrationStatus.oneofGroups_ = [[1]];
|
|
60517
|
-
/**
|
|
60518
|
-
* @enum {number}
|
|
60519
|
-
*/
|
|
60520
|
-
proto.clarifai.api.OrchestrationStatus.StatusDetailsCase = {
|
|
60521
|
-
STATUS_DETAILS_NOT_SET: 0,
|
|
60522
|
-
ARGO_STATUS: 1
|
|
60523
|
-
};
|
|
60524
|
-
/**
|
|
60525
|
-
* @return {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase}
|
|
60526
|
-
*/
|
|
60527
|
-
proto.clarifai.api.OrchestrationStatus.prototype.getStatusDetailsCase = function () {
|
|
60528
|
-
return /** @type {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0]));
|
|
60529
|
-
};
|
|
60530
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60531
|
-
/**
|
|
60532
|
-
* Creates an object representation of this proto.
|
|
60533
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60534
|
-
* Optional fields that are not set will be set to undefined.
|
|
60535
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60536
|
-
* For the list of reserved names please see:
|
|
60537
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60538
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60539
|
-
* JSPB instance for transitional soy proto support:
|
|
60540
|
-
* http://goto/soy-param-migration
|
|
60541
|
-
* @return {!Object}
|
|
60542
|
-
*/
|
|
60543
|
-
proto.clarifai.api.OrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
|
|
60544
|
-
return proto.clarifai.api.OrchestrationStatus.toObject(opt_includeInstance, this);
|
|
60545
|
-
};
|
|
60546
|
-
/**
|
|
60547
|
-
* Static version of the {@see toObject} method.
|
|
60548
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60549
|
-
* the JSPB instance for transitional soy proto support:
|
|
60550
|
-
* http://goto/soy-param-migration
|
|
60551
|
-
* @param {!proto.clarifai.api.OrchestrationStatus} msg The msg instance to transform.
|
|
60552
|
-
* @return {!Object}
|
|
60553
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60554
|
-
*/
|
|
60555
|
-
proto.clarifai.api.OrchestrationStatus.toObject = function (includeInstance, msg) {
|
|
60556
|
-
var f, obj = {
|
|
60557
|
-
argoStatus: (f = msg.getArgoStatus()) && proto.clarifai.api.ArgoOrchestrationStatus.toObject(includeInstance, f),
|
|
60558
|
-
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
60559
|
-
};
|
|
60560
|
-
if (includeInstance) {
|
|
60561
|
-
obj.$jspbMessageInstance = msg;
|
|
60562
|
-
}
|
|
60563
|
-
return obj;
|
|
60564
|
-
};
|
|
60565
|
-
}
|
|
60566
|
-
/**
|
|
60567
|
-
* Deserializes binary data (in protobuf wire format).
|
|
60568
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60569
|
-
* @return {!proto.clarifai.api.OrchestrationStatus}
|
|
60570
|
-
*/
|
|
60571
|
-
proto.clarifai.api.OrchestrationStatus.deserializeBinary = function (bytes) {
|
|
60572
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
60573
|
-
var msg = new proto.clarifai.api.OrchestrationStatus;
|
|
60574
|
-
return proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader(msg, reader);
|
|
60575
|
-
};
|
|
60576
|
-
/**
|
|
60577
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
60578
|
-
* given reader into the given message object.
|
|
60579
|
-
* @param {!proto.clarifai.api.OrchestrationStatus} msg The message object to deserialize into.
|
|
60580
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60581
|
-
* @return {!proto.clarifai.api.OrchestrationStatus}
|
|
60582
|
-
*/
|
|
60583
|
-
proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
|
|
60584
|
-
while (reader.nextField()) {
|
|
60585
|
-
if (reader.isEndGroup()) {
|
|
60586
|
-
break;
|
|
60587
|
-
}
|
|
60588
|
-
var field = reader.getFieldNumber();
|
|
60589
|
-
switch (field) {
|
|
60590
|
-
case 1:
|
|
60591
|
-
var value = new proto.clarifai.api.ArgoOrchestrationStatus;
|
|
60592
|
-
reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader);
|
|
60593
|
-
msg.setArgoStatus(value);
|
|
60594
|
-
break;
|
|
60595
|
-
case 2:
|
|
60596
|
-
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
60597
|
-
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
60598
|
-
msg.setStatus(value);
|
|
60599
|
-
break;
|
|
60600
|
-
default:
|
|
60601
|
-
reader.skipField();
|
|
60602
|
-
break;
|
|
60603
|
-
}
|
|
60604
|
-
}
|
|
60605
|
-
return msg;
|
|
60606
|
-
};
|
|
60607
|
-
/**
|
|
60608
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
60609
|
-
* @return {!Uint8Array}
|
|
60610
|
-
*/
|
|
60611
|
-
proto.clarifai.api.OrchestrationStatus.prototype.serializeBinary = function () {
|
|
60612
|
-
var writer = new jspb.BinaryWriter();
|
|
60613
|
-
proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter(this, writer);
|
|
60614
|
-
return writer.getResultBuffer();
|
|
60615
|
-
};
|
|
60616
|
-
/**
|
|
60617
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
60618
|
-
* format), writing to the given BinaryWriter.
|
|
60619
|
-
* @param {!proto.clarifai.api.OrchestrationStatus} message
|
|
60620
|
-
* @param {!jspb.BinaryWriter} writer
|
|
60621
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60622
|
-
*/
|
|
60623
|
-
proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
|
|
60624
|
-
var f = undefined;
|
|
60625
|
-
f = message.getArgoStatus();
|
|
60626
|
-
if (f != null) {
|
|
60627
|
-
writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter);
|
|
60628
|
-
}
|
|
60629
|
-
f = message.getStatus();
|
|
60630
|
-
if (f != null) {
|
|
60631
|
-
writer.writeMessage(2, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
60632
|
-
}
|
|
60633
|
-
};
|
|
60634
|
-
/**
|
|
60635
|
-
* optional ArgoOrchestrationStatus argo_status = 1;
|
|
60636
|
-
* @return {?proto.clarifai.api.ArgoOrchestrationStatus}
|
|
60637
|
-
*/
|
|
60638
|
-
proto.clarifai.api.OrchestrationStatus.prototype.getArgoStatus = function () {
|
|
60639
|
-
return /** @type{?proto.clarifai.api.ArgoOrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationStatus, 1));
|
|
60640
|
-
};
|
|
60641
|
-
/**
|
|
60642
|
-
* @param {?proto.clarifai.api.ArgoOrchestrationStatus|undefined} value
|
|
60643
|
-
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
60644
|
-
*/
|
|
60645
|
-
proto.clarifai.api.OrchestrationStatus.prototype.setArgoStatus = function (value) {
|
|
60646
|
-
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0], value);
|
|
60647
|
-
};
|
|
60648
|
-
/**
|
|
60649
|
-
* Clears the message field making it undefined.
|
|
60650
|
-
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
60651
|
-
*/
|
|
60652
|
-
proto.clarifai.api.OrchestrationStatus.prototype.clearArgoStatus = function () {
|
|
60653
|
-
return this.setArgoStatus(undefined);
|
|
60654
|
-
};
|
|
60655
|
-
/**
|
|
60656
|
-
* Returns whether this field is set.
|
|
60657
|
-
* @return {boolean}
|
|
60658
|
-
*/
|
|
60659
|
-
proto.clarifai.api.OrchestrationStatus.prototype.hasArgoStatus = function () {
|
|
60660
|
-
return jspb.Message.getField(this, 1) != null;
|
|
60661
|
-
};
|
|
60662
|
-
/**
|
|
60663
|
-
* optional status.Status status = 2;
|
|
60664
|
-
* @return {?proto.clarifai.api.status.Status}
|
|
60665
|
-
*/
|
|
60666
|
-
proto.clarifai.api.OrchestrationStatus.prototype.getStatus = function () {
|
|
60667
|
-
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
|
|
60668
|
-
};
|
|
60669
|
-
/**
|
|
60670
|
-
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
60671
|
-
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
60672
|
-
*/
|
|
60673
|
-
proto.clarifai.api.OrchestrationStatus.prototype.setStatus = function (value) {
|
|
60674
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
60675
|
-
};
|
|
60676
|
-
/**
|
|
60677
|
-
* Clears the message field making it undefined.
|
|
60678
|
-
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
60679
|
-
*/
|
|
60680
|
-
proto.clarifai.api.OrchestrationStatus.prototype.clearStatus = function () {
|
|
60681
|
-
return this.setStatus(undefined);
|
|
60682
|
-
};
|
|
60683
|
-
/**
|
|
60684
|
-
* Returns whether this field is set.
|
|
60685
|
-
* @return {boolean}
|
|
60686
|
-
*/
|
|
60687
|
-
proto.clarifai.api.OrchestrationStatus.prototype.hasStatus = function () {
|
|
60688
|
-
return jspb.Message.getField(this, 2) != null;
|
|
60689
|
-
};
|
|
60690
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60691
|
-
/**
|
|
60692
|
-
* Creates an object representation of this proto.
|
|
60693
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60694
|
-
* Optional fields that are not set will be set to undefined.
|
|
60695
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60696
|
-
* For the list of reserved names please see:
|
|
60697
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60698
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60699
|
-
* JSPB instance for transitional soy proto support:
|
|
60700
|
-
* http://goto/soy-param-migration
|
|
60701
|
-
* @return {!Object}
|
|
60702
|
-
*/
|
|
60703
|
-
proto.clarifai.api.ArgoOrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
|
|
60704
|
-
return proto.clarifai.api.ArgoOrchestrationStatus.toObject(opt_includeInstance, this);
|
|
60705
|
-
};
|
|
60706
|
-
/**
|
|
60707
|
-
* Static version of the {@see toObject} method.
|
|
60708
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60709
|
-
* the JSPB instance for transitional soy proto support:
|
|
60710
|
-
* http://goto/soy-param-migration
|
|
60711
|
-
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The msg instance to transform.
|
|
60712
|
-
* @return {!Object}
|
|
60713
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60714
|
-
*/
|
|
60715
|
-
proto.clarifai.api.ArgoOrchestrationStatus.toObject = function (includeInstance, msg) {
|
|
60716
|
-
var f, obj = {
|
|
60717
|
-
status: msg.getStatus_asB64()
|
|
60718
|
-
};
|
|
60719
|
-
if (includeInstance) {
|
|
60720
|
-
obj.$jspbMessageInstance = msg;
|
|
60721
|
-
}
|
|
60722
|
-
return obj;
|
|
60723
|
-
};
|
|
60724
|
-
}
|
|
60725
|
-
/**
|
|
60726
|
-
* Deserializes binary data (in protobuf wire format).
|
|
60727
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60728
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationStatus}
|
|
60729
|
-
*/
|
|
60730
|
-
proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinary = function (bytes) {
|
|
60731
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
60732
|
-
var msg = new proto.clarifai.api.ArgoOrchestrationStatus;
|
|
60733
|
-
return proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader(msg, reader);
|
|
60734
|
-
};
|
|
60735
|
-
/**
|
|
60736
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
60737
|
-
* given reader into the given message object.
|
|
60738
|
-
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The message object to deserialize into.
|
|
60739
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60740
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationStatus}
|
|
60741
|
-
*/
|
|
60742
|
-
proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
|
|
60743
|
-
while (reader.nextField()) {
|
|
60744
|
-
if (reader.isEndGroup()) {
|
|
60745
|
-
break;
|
|
60746
|
-
}
|
|
60747
|
-
var field = reader.getFieldNumber();
|
|
60748
|
-
switch (field) {
|
|
60749
|
-
case 1:
|
|
60750
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
60751
|
-
msg.setStatus(value);
|
|
60752
|
-
break;
|
|
60753
|
-
default:
|
|
60754
|
-
reader.skipField();
|
|
60755
|
-
break;
|
|
60756
|
-
}
|
|
60757
|
-
}
|
|
60758
|
-
return msg;
|
|
60759
|
-
};
|
|
60760
|
-
/**
|
|
60761
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
60762
|
-
* @return {!Uint8Array}
|
|
60763
|
-
*/
|
|
60764
|
-
proto.clarifai.api.ArgoOrchestrationStatus.prototype.serializeBinary = function () {
|
|
60765
|
-
var writer = new jspb.BinaryWriter();
|
|
60766
|
-
proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter(this, writer);
|
|
60767
|
-
return writer.getResultBuffer();
|
|
60768
|
-
};
|
|
60769
|
-
/**
|
|
60770
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
60771
|
-
* format), writing to the given BinaryWriter.
|
|
60772
|
-
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} message
|
|
60773
|
-
* @param {!jspb.BinaryWriter} writer
|
|
60774
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60775
|
-
*/
|
|
60776
|
-
proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
|
|
60777
|
-
var f = undefined;
|
|
60778
|
-
f = message.getStatus_asU8();
|
|
60779
|
-
if (f.length > 0) {
|
|
60780
|
-
writer.writeBytes(1, f);
|
|
60781
|
-
}
|
|
60782
|
-
};
|
|
60783
|
-
/**
|
|
60784
|
-
* optional bytes status = 1;
|
|
60785
|
-
* @return {string}
|
|
60786
|
-
*/
|
|
60787
|
-
proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus = function () {
|
|
60788
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60789
|
-
};
|
|
60790
|
-
/**
|
|
60791
|
-
* optional bytes status = 1;
|
|
60792
|
-
* This is a type-conversion wrapper around `getStatus()`
|
|
60793
|
-
* @return {string}
|
|
60794
|
-
*/
|
|
60795
|
-
proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus_asB64 = function () {
|
|
60796
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getStatus()));
|
|
60797
|
-
};
|
|
60798
|
-
/**
|
|
60799
|
-
* optional bytes status = 1;
|
|
60800
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
60801
|
-
* @see http://caniuse.com/Uint8Array
|
|
60802
|
-
* This is a type-conversion wrapper around `getStatus()`
|
|
60803
|
-
* @return {!Uint8Array}
|
|
60804
|
-
*/
|
|
60805
|
-
proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus_asU8 = function () {
|
|
60806
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getStatus()));
|
|
60807
|
-
};
|
|
60808
|
-
/**
|
|
60809
|
-
* @param {!(string|Uint8Array)} value
|
|
60810
|
-
* @return {!proto.clarifai.api.ArgoOrchestrationStatus} returns this
|
|
60811
|
-
*/
|
|
60812
|
-
proto.clarifai.api.ArgoOrchestrationStatus.prototype.setStatus = function (value) {
|
|
60813
|
-
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
60814
|
-
};
|
|
60815
|
-
/**
|
|
60816
|
-
* List of repeated fields within this message type.
|
|
60817
|
-
* @private {!Array<number>}
|
|
60818
|
-
* @const
|
|
60819
|
-
*/
|
|
60820
|
-
proto.clarifai.api.PipelineRun.repeatedFields_ = [3];
|
|
60821
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60822
|
-
/**
|
|
60823
|
-
* Creates an object representation of this proto.
|
|
60824
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60825
|
-
* Optional fields that are not set will be set to undefined.
|
|
60826
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60827
|
-
* For the list of reserved names please see:
|
|
60828
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60829
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60830
|
-
* JSPB instance for transitional soy proto support:
|
|
60831
|
-
* http://goto/soy-param-migration
|
|
60832
|
-
* @return {!Object}
|
|
60833
|
-
*/
|
|
60834
|
-
proto.clarifai.api.PipelineRun.prototype.toObject = function (opt_includeInstance) {
|
|
60835
|
-
return proto.clarifai.api.PipelineRun.toObject(opt_includeInstance, this);
|
|
60836
|
-
};
|
|
60837
|
-
/**
|
|
60838
|
-
* Static version of the {@see toObject} method.
|
|
60839
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60840
|
-
* the JSPB instance for transitional soy proto support:
|
|
60841
|
-
* http://goto/soy-param-migration
|
|
60842
|
-
* @param {!proto.clarifai.api.PipelineRun} msg The msg instance to transform.
|
|
60843
|
-
* @return {!Object}
|
|
60844
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60845
|
-
*/
|
|
60846
|
-
proto.clarifai.api.PipelineRun.toObject = function (includeInstance, msg) {
|
|
60847
|
-
var f, obj = {
|
|
60848
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
60849
|
-
pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
|
|
60850
|
-
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
60851
|
-
orchestrationStatus: (f = msg.getOrchestrationStatus()) && proto.clarifai.api.OrchestrationStatus.toObject(includeInstance, f)
|
|
60852
|
-
};
|
|
60853
|
-
if (includeInstance) {
|
|
60854
|
-
obj.$jspbMessageInstance = msg;
|
|
60855
|
-
}
|
|
60856
|
-
return obj;
|
|
60857
|
-
};
|
|
60858
|
-
}
|
|
60859
|
-
/**
|
|
60860
|
-
* Deserializes binary data (in protobuf wire format).
|
|
60861
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60862
|
-
* @return {!proto.clarifai.api.PipelineRun}
|
|
60863
|
-
*/
|
|
60864
|
-
proto.clarifai.api.PipelineRun.deserializeBinary = function (bytes) {
|
|
60865
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
60866
|
-
var msg = new proto.clarifai.api.PipelineRun;
|
|
60867
|
-
return proto.clarifai.api.PipelineRun.deserializeBinaryFromReader(msg, reader);
|
|
60868
|
-
};
|
|
60869
|
-
/**
|
|
60870
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
60871
|
-
* given reader into the given message object.
|
|
60872
|
-
* @param {!proto.clarifai.api.PipelineRun} msg The message object to deserialize into.
|
|
60873
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60874
|
-
* @return {!proto.clarifai.api.PipelineRun}
|
|
60875
|
-
*/
|
|
60876
|
-
proto.clarifai.api.PipelineRun.deserializeBinaryFromReader = function (msg, reader) {
|
|
60877
|
-
while (reader.nextField()) {
|
|
60878
|
-
if (reader.isEndGroup()) {
|
|
60879
|
-
break;
|
|
60880
|
-
}
|
|
60881
|
-
var field = reader.getFieldNumber();
|
|
60882
|
-
switch (field) {
|
|
60883
|
-
case 1:
|
|
60884
|
-
var value = /** @type {string} */ (reader.readString());
|
|
60885
|
-
msg.setId(value);
|
|
60886
|
-
break;
|
|
60887
|
-
case 2:
|
|
60888
|
-
var value = new proto.clarifai.api.PipelineVersion;
|
|
60889
|
-
reader.readMessage(value, proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
|
|
60890
|
-
msg.setPipelineVersion(value);
|
|
60891
|
-
break;
|
|
60892
|
-
case 3:
|
|
60893
|
-
var value = new proto.clarifai.api.Nodepool;
|
|
60894
|
-
reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
60895
|
-
msg.addNodepools(value);
|
|
60896
|
-
break;
|
|
60897
|
-
case 4:
|
|
60898
|
-
var value = new proto.clarifai.api.OrchestrationStatus;
|
|
60899
|
-
reader.readMessage(value, proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader);
|
|
60900
|
-
msg.setOrchestrationStatus(value);
|
|
60901
|
-
break;
|
|
60902
|
-
default:
|
|
60903
|
-
reader.skipField();
|
|
60904
|
-
break;
|
|
60905
|
-
}
|
|
60906
|
-
}
|
|
60907
|
-
return msg;
|
|
60908
|
-
};
|
|
60909
|
-
/**
|
|
60910
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
60911
|
-
* @return {!Uint8Array}
|
|
60912
|
-
*/
|
|
60913
|
-
proto.clarifai.api.PipelineRun.prototype.serializeBinary = function () {
|
|
60914
|
-
var writer = new jspb.BinaryWriter();
|
|
60915
|
-
proto.clarifai.api.PipelineRun.serializeBinaryToWriter(this, writer);
|
|
60916
|
-
return writer.getResultBuffer();
|
|
60917
|
-
};
|
|
60918
|
-
/**
|
|
60919
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
60920
|
-
* format), writing to the given BinaryWriter.
|
|
60921
|
-
* @param {!proto.clarifai.api.PipelineRun} message
|
|
60922
|
-
* @param {!jspb.BinaryWriter} writer
|
|
60923
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60924
|
-
*/
|
|
60925
|
-
proto.clarifai.api.PipelineRun.serializeBinaryToWriter = function (message, writer) {
|
|
60926
|
-
var f = undefined;
|
|
60927
|
-
f = message.getId();
|
|
60928
|
-
if (f.length > 0) {
|
|
60929
|
-
writer.writeString(1, f);
|
|
60930
|
-
}
|
|
60931
|
-
f = message.getPipelineVersion();
|
|
60932
|
-
if (f != null) {
|
|
60933
|
-
writer.writeMessage(2, f, proto.clarifai.api.PipelineVersion.serializeBinaryToWriter);
|
|
60934
|
-
}
|
|
60935
|
-
f = message.getNodepoolsList();
|
|
60936
|
-
if (f.length > 0) {
|
|
60937
|
-
writer.writeRepeatedMessage(3, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
|
|
60938
|
-
}
|
|
60939
|
-
f = message.getOrchestrationStatus();
|
|
60940
|
-
if (f != null) {
|
|
60941
|
-
writer.writeMessage(4, f, proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter);
|
|
60942
|
-
}
|
|
60943
|
-
};
|
|
60944
|
-
/**
|
|
60945
|
-
* optional string id = 1;
|
|
60946
|
-
* @return {string}
|
|
60947
|
-
*/
|
|
60948
|
-
proto.clarifai.api.PipelineRun.prototype.getId = function () {
|
|
60949
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60950
|
-
};
|
|
60951
|
-
/**
|
|
60952
|
-
* @param {string} value
|
|
60953
|
-
* @return {!proto.clarifai.api.PipelineRun} returns this
|
|
60954
|
-
*/
|
|
60955
|
-
proto.clarifai.api.PipelineRun.prototype.setId = function (value) {
|
|
60956
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
60957
|
-
};
|
|
60958
|
-
/**
|
|
60959
|
-
* optional PipelineVersion pipeline_version = 2;
|
|
60960
|
-
* @return {?proto.clarifai.api.PipelineVersion}
|
|
60961
|
-
*/
|
|
60962
|
-
proto.clarifai.api.PipelineRun.prototype.getPipelineVersion = function () {
|
|
60963
|
-
return /** @type{?proto.clarifai.api.PipelineVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 2));
|
|
60964
|
-
};
|
|
60965
|
-
/**
|
|
60966
|
-
* @param {?proto.clarifai.api.PipelineVersion|undefined} value
|
|
60967
|
-
* @return {!proto.clarifai.api.PipelineRun} returns this
|
|
60968
|
-
*/
|
|
60969
|
-
proto.clarifai.api.PipelineRun.prototype.setPipelineVersion = function (value) {
|
|
60970
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
60971
|
-
};
|
|
60972
|
-
/**
|
|
60973
|
-
* Clears the message field making it undefined.
|
|
60974
|
-
* @return {!proto.clarifai.api.PipelineRun} returns this
|
|
60975
|
-
*/
|
|
60976
|
-
proto.clarifai.api.PipelineRun.prototype.clearPipelineVersion = function () {
|
|
60977
|
-
return this.setPipelineVersion(undefined);
|
|
60978
|
-
};
|
|
60979
|
-
/**
|
|
60980
|
-
* Returns whether this field is set.
|
|
60981
|
-
* @return {boolean}
|
|
60982
|
-
*/
|
|
60983
|
-
proto.clarifai.api.PipelineRun.prototype.hasPipelineVersion = function () {
|
|
60984
|
-
return jspb.Message.getField(this, 2) != null;
|
|
60985
|
-
};
|
|
60986
|
-
/**
|
|
60987
|
-
* repeated Nodepool nodepools = 3;
|
|
60988
|
-
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
60989
|
-
*/
|
|
60990
|
-
proto.clarifai.api.PipelineRun.prototype.getNodepoolsList = function () {
|
|
60991
|
-
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 3));
|
|
60992
|
-
};
|
|
60993
|
-
/**
|
|
60994
|
-
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
60995
|
-
* @return {!proto.clarifai.api.PipelineRun} returns this
|
|
60996
|
-
*/
|
|
60997
|
-
proto.clarifai.api.PipelineRun.prototype.setNodepoolsList = function (value) {
|
|
60998
|
-
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
60999
|
-
};
|
|
61000
|
-
/**
|
|
61001
|
-
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
61002
|
-
* @param {number=} opt_index
|
|
61003
|
-
* @return {!proto.clarifai.api.Nodepool}
|
|
61004
|
-
*/
|
|
61005
|
-
proto.clarifai.api.PipelineRun.prototype.addNodepools = function (opt_value, opt_index) {
|
|
61006
|
-
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
61007
|
-
};
|
|
61008
|
-
/**
|
|
61009
|
-
* Clears the list making it empty but non-null.
|
|
61010
|
-
* @return {!proto.clarifai.api.PipelineRun} returns this
|
|
61011
|
-
*/
|
|
61012
|
-
proto.clarifai.api.PipelineRun.prototype.clearNodepoolsList = function () {
|
|
61013
|
-
return this.setNodepoolsList([]);
|
|
61014
|
-
};
|
|
61015
|
-
/**
|
|
61016
|
-
* optional OrchestrationStatus orchestration_status = 4;
|
|
61017
|
-
* @return {?proto.clarifai.api.OrchestrationStatus}
|
|
61018
|
-
*/
|
|
61019
|
-
proto.clarifai.api.PipelineRun.prototype.getOrchestrationStatus = function () {
|
|
61020
|
-
return /** @type{?proto.clarifai.api.OrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationStatus, 4));
|
|
61021
|
-
};
|
|
61022
|
-
/**
|
|
61023
|
-
* @param {?proto.clarifai.api.OrchestrationStatus|undefined} value
|
|
61024
|
-
* @return {!proto.clarifai.api.PipelineRun} returns this
|
|
61025
|
-
*/
|
|
61026
|
-
proto.clarifai.api.PipelineRun.prototype.setOrchestrationStatus = function (value) {
|
|
61027
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
61028
|
-
};
|
|
61029
|
-
/**
|
|
61030
|
-
* Clears the message field making it undefined.
|
|
61031
|
-
* @return {!proto.clarifai.api.PipelineRun} returns this
|
|
61032
|
-
*/
|
|
61033
|
-
proto.clarifai.api.PipelineRun.prototype.clearOrchestrationStatus = function () {
|
|
61034
|
-
return this.setOrchestrationStatus(undefined);
|
|
61035
|
-
};
|
|
61036
|
-
/**
|
|
61037
|
-
* Returns whether this field is set.
|
|
61038
|
-
* @return {boolean}
|
|
61039
|
-
*/
|
|
61040
|
-
proto.clarifai.api.PipelineRun.prototype.hasOrchestrationStatus = function () {
|
|
61041
|
-
return jspb.Message.getField(this, 4) != null;
|
|
61042
|
-
};
|
|
61043
59317
|
/**
|
|
61044
59318
|
* @enum {number}
|
|
61045
59319
|
*/
|
|
@@ -61250,6 +59524,12 @@ proto.clarifai.api.EventType = {
|
|
|
61250
59524
|
MODULE_VERSION_CREATE: 203,
|
|
61251
59525
|
MODULE_VERSION_UPDATE: 204,
|
|
61252
59526
|
MODULE_VERSION_DELETE: 205,
|
|
59527
|
+
MODEL_CREATE: 300,
|
|
59528
|
+
MODEL_UPDATE: 301,
|
|
59529
|
+
MODEL_DELETE: 302,
|
|
59530
|
+
MODEL_VERSION_CREATE: 303,
|
|
59531
|
+
MODEL_VERSION_UPDATE: 304,
|
|
59532
|
+
MODEL_VERSION_DELETE: 305,
|
|
61253
59533
|
WORKFLOW_CREATE: 400,
|
|
61254
59534
|
WORKFLOW_UPDATE: 401,
|
|
61255
59535
|
WORKFLOW_DELETE: 402,
|
|
@@ -61261,6 +59541,7 @@ proto.clarifai.api.EventType = {
|
|
|
61261
59541
|
APPLICATION_DELETE: 602,
|
|
61262
59542
|
COLLABORATOR_ADD: 700,
|
|
61263
59543
|
COLLABORATOR_UPDATE: 701,
|
|
61264
|
-
COLLABORATOR_REMOVE: 702
|
|
59544
|
+
COLLABORATOR_REMOVE: 702,
|
|
59545
|
+
USER_UPDATE: 800
|
|
61265
59546
|
};
|
|
61266
59547
|
goog.object.extend(exports, proto.clarifai.api);
|