clarifai-web-grpc 11.9.4 → 11.9.5
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.9.
|
|
1
|
+
11.9.5
|
|
@@ -167,6 +167,7 @@ goog.exportSymbol('proto.clarifai.api.InputEvaluationMetricValue', null, global)
|
|
|
167
167
|
goog.exportSymbol('proto.clarifai.api.InputIDConflictResolution', null, global);
|
|
168
168
|
goog.exportSymbol('proto.clarifai.api.InputIDs', null, global);
|
|
169
169
|
goog.exportSymbol('proto.clarifai.api.InputInfo', null, global);
|
|
170
|
+
goog.exportSymbol('proto.clarifai.api.InputSettings', null, global);
|
|
170
171
|
goog.exportSymbol('proto.clarifai.api.InputsAddJob', null, global);
|
|
171
172
|
goog.exportSymbol('proto.clarifai.api.InputsAddJobProgress', null, global);
|
|
172
173
|
goog.exportSymbol('proto.clarifai.api.InputsDataSource', null, global);
|
|
@@ -1413,6 +1414,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1413
1414
|
*/
|
|
1414
1415
|
proto.clarifai.api.Input.displayName = 'proto.clarifai.api.Input';
|
|
1415
1416
|
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Generated by JsPbCodeGenerator.
|
|
1419
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1420
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1421
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1422
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1423
|
+
* valid.
|
|
1424
|
+
* @extends {jspb.Message}
|
|
1425
|
+
* @constructor
|
|
1426
|
+
*/
|
|
1427
|
+
proto.clarifai.api.InputSettings = function (opt_data) {
|
|
1428
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputSettings.repeatedFields_, null);
|
|
1429
|
+
};
|
|
1430
|
+
goog.inherits(proto.clarifai.api.InputSettings, jspb.Message);
|
|
1431
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1432
|
+
/**
|
|
1433
|
+
* @public
|
|
1434
|
+
* @override
|
|
1435
|
+
*/
|
|
1436
|
+
proto.clarifai.api.InputSettings.displayName = 'proto.clarifai.api.InputSettings';
|
|
1437
|
+
}
|
|
1416
1438
|
/**
|
|
1417
1439
|
* Generated by JsPbCodeGenerator.
|
|
1418
1440
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -17293,7 +17315,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
17293
17315
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17294
17316
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17295
17317
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
17296
|
-
datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
17318
|
+
datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
17319
|
+
settings: (f = msg.getSettings()) && proto.clarifai.api.InputSettings.toObject(includeInstance, f)
|
|
17297
17320
|
};
|
|
17298
17321
|
if (includeInstance) {
|
|
17299
17322
|
obj.$jspbMessageInstance = msg;
|
|
@@ -17353,6 +17376,11 @@ proto.clarifai.api.Input.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
17353
17376
|
var value = /** @type {string} */ (reader.readString());
|
|
17354
17377
|
msg.addDatasetIds(value);
|
|
17355
17378
|
break;
|
|
17379
|
+
case 8:
|
|
17380
|
+
var value = new proto.clarifai.api.InputSettings;
|
|
17381
|
+
reader.readMessage(value, proto.clarifai.api.InputSettings.deserializeBinaryFromReader);
|
|
17382
|
+
msg.setSettings(value);
|
|
17383
|
+
break;
|
|
17356
17384
|
default:
|
|
17357
17385
|
reader.skipField();
|
|
17358
17386
|
break;
|
|
@@ -17402,6 +17430,10 @@ proto.clarifai.api.Input.serializeBinaryToWriter = function (message, writer) {
|
|
|
17402
17430
|
if (f.length > 0) {
|
|
17403
17431
|
writer.writeRepeatedString(7, f);
|
|
17404
17432
|
}
|
|
17433
|
+
f = message.getSettings();
|
|
17434
|
+
if (f != null) {
|
|
17435
|
+
writer.writeMessage(8, f, proto.clarifai.api.InputSettings.serializeBinaryToWriter);
|
|
17436
|
+
}
|
|
17405
17437
|
};
|
|
17406
17438
|
/**
|
|
17407
17439
|
* optional string id = 1;
|
|
@@ -17558,6 +17590,246 @@ proto.clarifai.api.Input.prototype.addDatasetIds = function (value, opt_index) {
|
|
|
17558
17590
|
proto.clarifai.api.Input.prototype.clearDatasetIdsList = function () {
|
|
17559
17591
|
return this.setDatasetIdsList([]);
|
|
17560
17592
|
};
|
|
17593
|
+
/**
|
|
17594
|
+
* optional InputSettings settings = 8;
|
|
17595
|
+
* @return {?proto.clarifai.api.InputSettings}
|
|
17596
|
+
*/
|
|
17597
|
+
proto.clarifai.api.Input.prototype.getSettings = function () {
|
|
17598
|
+
return /** @type{?proto.clarifai.api.InputSettings} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.InputSettings, 8));
|
|
17599
|
+
};
|
|
17600
|
+
/**
|
|
17601
|
+
* @param {?proto.clarifai.api.InputSettings|undefined} value
|
|
17602
|
+
* @return {!proto.clarifai.api.Input} returns this
|
|
17603
|
+
*/
|
|
17604
|
+
proto.clarifai.api.Input.prototype.setSettings = function (value) {
|
|
17605
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
17606
|
+
};
|
|
17607
|
+
/**
|
|
17608
|
+
* Clears the message field making it undefined.
|
|
17609
|
+
* @return {!proto.clarifai.api.Input} returns this
|
|
17610
|
+
*/
|
|
17611
|
+
proto.clarifai.api.Input.prototype.clearSettings = function () {
|
|
17612
|
+
return this.setSettings(undefined);
|
|
17613
|
+
};
|
|
17614
|
+
/**
|
|
17615
|
+
* Returns whether this field is set.
|
|
17616
|
+
* @return {boolean}
|
|
17617
|
+
*/
|
|
17618
|
+
proto.clarifai.api.Input.prototype.hasSettings = function () {
|
|
17619
|
+
return jspb.Message.getField(this, 8) != null;
|
|
17620
|
+
};
|
|
17621
|
+
/**
|
|
17622
|
+
* List of repeated fields within this message type.
|
|
17623
|
+
* @private {!Array<number>}
|
|
17624
|
+
* @const
|
|
17625
|
+
*/
|
|
17626
|
+
proto.clarifai.api.InputSettings.repeatedFields_ = [4];
|
|
17627
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17628
|
+
/**
|
|
17629
|
+
* Creates an object representation of this proto.
|
|
17630
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17631
|
+
* Optional fields that are not set will be set to undefined.
|
|
17632
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17633
|
+
* For the list of reserved names please see:
|
|
17634
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17635
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17636
|
+
* JSPB instance for transitional soy proto support:
|
|
17637
|
+
* http://goto/soy-param-migration
|
|
17638
|
+
* @return {!Object}
|
|
17639
|
+
*/
|
|
17640
|
+
proto.clarifai.api.InputSettings.prototype.toObject = function (opt_includeInstance) {
|
|
17641
|
+
return proto.clarifai.api.InputSettings.toObject(opt_includeInstance, this);
|
|
17642
|
+
};
|
|
17643
|
+
/**
|
|
17644
|
+
* Static version of the {@see toObject} method.
|
|
17645
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17646
|
+
* the JSPB instance for transitional soy proto support:
|
|
17647
|
+
* http://goto/soy-param-migration
|
|
17648
|
+
* @param {!proto.clarifai.api.InputSettings} msg The msg instance to transform.
|
|
17649
|
+
* @return {!Object}
|
|
17650
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17651
|
+
*/
|
|
17652
|
+
proto.clarifai.api.InputSettings.toObject = function (includeInstance, msg) {
|
|
17653
|
+
var f, obj = {
|
|
17654
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
17655
|
+
sampleRateMs: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
17656
|
+
sampleRateFrame: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
17657
|
+
pinnedConceptIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
17658
|
+
};
|
|
17659
|
+
if (includeInstance) {
|
|
17660
|
+
obj.$jspbMessageInstance = msg;
|
|
17661
|
+
}
|
|
17662
|
+
return obj;
|
|
17663
|
+
};
|
|
17664
|
+
}
|
|
17665
|
+
/**
|
|
17666
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17667
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
17668
|
+
* @return {!proto.clarifai.api.InputSettings}
|
|
17669
|
+
*/
|
|
17670
|
+
proto.clarifai.api.InputSettings.deserializeBinary = function (bytes) {
|
|
17671
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17672
|
+
var msg = new proto.clarifai.api.InputSettings;
|
|
17673
|
+
return proto.clarifai.api.InputSettings.deserializeBinaryFromReader(msg, reader);
|
|
17674
|
+
};
|
|
17675
|
+
/**
|
|
17676
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17677
|
+
* given reader into the given message object.
|
|
17678
|
+
* @param {!proto.clarifai.api.InputSettings} msg The message object to deserialize into.
|
|
17679
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17680
|
+
* @return {!proto.clarifai.api.InputSettings}
|
|
17681
|
+
*/
|
|
17682
|
+
proto.clarifai.api.InputSettings.deserializeBinaryFromReader = function (msg, reader) {
|
|
17683
|
+
while (reader.nextField()) {
|
|
17684
|
+
if (reader.isEndGroup()) {
|
|
17685
|
+
break;
|
|
17686
|
+
}
|
|
17687
|
+
var field = reader.getFieldNumber();
|
|
17688
|
+
switch (field) {
|
|
17689
|
+
case 1:
|
|
17690
|
+
var value = new proto.clarifai.api.Worker;
|
|
17691
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
17692
|
+
msg.setWorker(value);
|
|
17693
|
+
break;
|
|
17694
|
+
case 2:
|
|
17695
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
17696
|
+
msg.setSampleRateMs(value);
|
|
17697
|
+
break;
|
|
17698
|
+
case 3:
|
|
17699
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
17700
|
+
msg.setSampleRateFrame(value);
|
|
17701
|
+
break;
|
|
17702
|
+
case 4:
|
|
17703
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17704
|
+
msg.addPinnedConceptIds(value);
|
|
17705
|
+
break;
|
|
17706
|
+
default:
|
|
17707
|
+
reader.skipField();
|
|
17708
|
+
break;
|
|
17709
|
+
}
|
|
17710
|
+
}
|
|
17711
|
+
return msg;
|
|
17712
|
+
};
|
|
17713
|
+
/**
|
|
17714
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17715
|
+
* @return {!Uint8Array}
|
|
17716
|
+
*/
|
|
17717
|
+
proto.clarifai.api.InputSettings.prototype.serializeBinary = function () {
|
|
17718
|
+
var writer = new jspb.BinaryWriter();
|
|
17719
|
+
proto.clarifai.api.InputSettings.serializeBinaryToWriter(this, writer);
|
|
17720
|
+
return writer.getResultBuffer();
|
|
17721
|
+
};
|
|
17722
|
+
/**
|
|
17723
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17724
|
+
* format), writing to the given BinaryWriter.
|
|
17725
|
+
* @param {!proto.clarifai.api.InputSettings} message
|
|
17726
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17727
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17728
|
+
*/
|
|
17729
|
+
proto.clarifai.api.InputSettings.serializeBinaryToWriter = function (message, writer) {
|
|
17730
|
+
var f = undefined;
|
|
17731
|
+
f = message.getWorker();
|
|
17732
|
+
if (f != null) {
|
|
17733
|
+
writer.writeMessage(1, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
17734
|
+
}
|
|
17735
|
+
f = message.getSampleRateMs();
|
|
17736
|
+
if (f !== 0) {
|
|
17737
|
+
writer.writeUint32(2, f);
|
|
17738
|
+
}
|
|
17739
|
+
f = message.getSampleRateFrame();
|
|
17740
|
+
if (f !== 0) {
|
|
17741
|
+
writer.writeUint32(3, f);
|
|
17742
|
+
}
|
|
17743
|
+
f = message.getPinnedConceptIdsList();
|
|
17744
|
+
if (f.length > 0) {
|
|
17745
|
+
writer.writeRepeatedString(4, f);
|
|
17746
|
+
}
|
|
17747
|
+
};
|
|
17748
|
+
/**
|
|
17749
|
+
* optional Worker worker = 1;
|
|
17750
|
+
* @return {?proto.clarifai.api.Worker}
|
|
17751
|
+
*/
|
|
17752
|
+
proto.clarifai.api.InputSettings.prototype.getWorker = function () {
|
|
17753
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 1));
|
|
17754
|
+
};
|
|
17755
|
+
/**
|
|
17756
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
17757
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17758
|
+
*/
|
|
17759
|
+
proto.clarifai.api.InputSettings.prototype.setWorker = function (value) {
|
|
17760
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
17761
|
+
};
|
|
17762
|
+
/**
|
|
17763
|
+
* Clears the message field making it undefined.
|
|
17764
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17765
|
+
*/
|
|
17766
|
+
proto.clarifai.api.InputSettings.prototype.clearWorker = function () {
|
|
17767
|
+
return this.setWorker(undefined);
|
|
17768
|
+
};
|
|
17769
|
+
/**
|
|
17770
|
+
* Returns whether this field is set.
|
|
17771
|
+
* @return {boolean}
|
|
17772
|
+
*/
|
|
17773
|
+
proto.clarifai.api.InputSettings.prototype.hasWorker = function () {
|
|
17774
|
+
return jspb.Message.getField(this, 1) != null;
|
|
17775
|
+
};
|
|
17776
|
+
/**
|
|
17777
|
+
* optional uint32 sample_rate_ms = 2;
|
|
17778
|
+
* @return {number}
|
|
17779
|
+
*/
|
|
17780
|
+
proto.clarifai.api.InputSettings.prototype.getSampleRateMs = function () {
|
|
17781
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
17782
|
+
};
|
|
17783
|
+
/**
|
|
17784
|
+
* @param {number} value
|
|
17785
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17786
|
+
*/
|
|
17787
|
+
proto.clarifai.api.InputSettings.prototype.setSampleRateMs = function (value) {
|
|
17788
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
17789
|
+
};
|
|
17790
|
+
/**
|
|
17791
|
+
* optional uint32 sample_rate_frame = 3;
|
|
17792
|
+
* @return {number}
|
|
17793
|
+
*/
|
|
17794
|
+
proto.clarifai.api.InputSettings.prototype.getSampleRateFrame = function () {
|
|
17795
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
17796
|
+
};
|
|
17797
|
+
/**
|
|
17798
|
+
* @param {number} value
|
|
17799
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17800
|
+
*/
|
|
17801
|
+
proto.clarifai.api.InputSettings.prototype.setSampleRateFrame = function (value) {
|
|
17802
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
17803
|
+
};
|
|
17804
|
+
/**
|
|
17805
|
+
* repeated string pinned_concept_ids = 4;
|
|
17806
|
+
* @return {!Array<string>}
|
|
17807
|
+
*/
|
|
17808
|
+
proto.clarifai.api.InputSettings.prototype.getPinnedConceptIdsList = function () {
|
|
17809
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
17810
|
+
};
|
|
17811
|
+
/**
|
|
17812
|
+
* @param {!Array<string>} value
|
|
17813
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17814
|
+
*/
|
|
17815
|
+
proto.clarifai.api.InputSettings.prototype.setPinnedConceptIdsList = function (value) {
|
|
17816
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
17817
|
+
};
|
|
17818
|
+
/**
|
|
17819
|
+
* @param {string} value
|
|
17820
|
+
* @param {number=} opt_index
|
|
17821
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17822
|
+
*/
|
|
17823
|
+
proto.clarifai.api.InputSettings.prototype.addPinnedConceptIds = function (value, opt_index) {
|
|
17824
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
17825
|
+
};
|
|
17826
|
+
/**
|
|
17827
|
+
* Clears the list making it empty but non-null.
|
|
17828
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17829
|
+
*/
|
|
17830
|
+
proto.clarifai.api.InputSettings.prototype.clearPinnedConceptIdsList = function () {
|
|
17831
|
+
return this.setPinnedConceptIdsList([]);
|
|
17832
|
+
};
|
|
17561
17833
|
/**
|
|
17562
17834
|
* List of repeated fields within this message type.
|
|
17563
17835
|
* @private {!Array<number>}
|
|
@@ -167,6 +167,7 @@ goog.exportSymbol('proto.clarifai.api.InputEvaluationMetricValue', null, global)
|
|
|
167
167
|
goog.exportSymbol('proto.clarifai.api.InputIDConflictResolution', null, global);
|
|
168
168
|
goog.exportSymbol('proto.clarifai.api.InputIDs', null, global);
|
|
169
169
|
goog.exportSymbol('proto.clarifai.api.InputInfo', null, global);
|
|
170
|
+
goog.exportSymbol('proto.clarifai.api.InputSettings', null, global);
|
|
170
171
|
goog.exportSymbol('proto.clarifai.api.InputsAddJob', null, global);
|
|
171
172
|
goog.exportSymbol('proto.clarifai.api.InputsAddJobProgress', null, global);
|
|
172
173
|
goog.exportSymbol('proto.clarifai.api.InputsDataSource', null, global);
|
|
@@ -1413,6 +1414,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1413
1414
|
*/
|
|
1414
1415
|
proto.clarifai.api.Input.displayName = 'proto.clarifai.api.Input';
|
|
1415
1416
|
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Generated by JsPbCodeGenerator.
|
|
1419
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1420
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1421
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1422
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1423
|
+
* valid.
|
|
1424
|
+
* @extends {jspb.Message}
|
|
1425
|
+
* @constructor
|
|
1426
|
+
*/
|
|
1427
|
+
proto.clarifai.api.InputSettings = function (opt_data) {
|
|
1428
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputSettings.repeatedFields_, null);
|
|
1429
|
+
};
|
|
1430
|
+
goog.inherits(proto.clarifai.api.InputSettings, jspb.Message);
|
|
1431
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1432
|
+
/**
|
|
1433
|
+
* @public
|
|
1434
|
+
* @override
|
|
1435
|
+
*/
|
|
1436
|
+
proto.clarifai.api.InputSettings.displayName = 'proto.clarifai.api.InputSettings';
|
|
1437
|
+
}
|
|
1416
1438
|
/**
|
|
1417
1439
|
* Generated by JsPbCodeGenerator.
|
|
1418
1440
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -17293,7 +17315,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
17293
17315
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17294
17316
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17295
17317
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
17296
|
-
datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
17318
|
+
datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
17319
|
+
settings: (f = msg.getSettings()) && proto.clarifai.api.InputSettings.toObject(includeInstance, f)
|
|
17297
17320
|
};
|
|
17298
17321
|
if (includeInstance) {
|
|
17299
17322
|
obj.$jspbMessageInstance = msg;
|
|
@@ -17353,6 +17376,11 @@ proto.clarifai.api.Input.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
17353
17376
|
var value = /** @type {string} */ (reader.readString());
|
|
17354
17377
|
msg.addDatasetIds(value);
|
|
17355
17378
|
break;
|
|
17379
|
+
case 8:
|
|
17380
|
+
var value = new proto.clarifai.api.InputSettings;
|
|
17381
|
+
reader.readMessage(value, proto.clarifai.api.InputSettings.deserializeBinaryFromReader);
|
|
17382
|
+
msg.setSettings(value);
|
|
17383
|
+
break;
|
|
17356
17384
|
default:
|
|
17357
17385
|
reader.skipField();
|
|
17358
17386
|
break;
|
|
@@ -17402,6 +17430,10 @@ proto.clarifai.api.Input.serializeBinaryToWriter = function (message, writer) {
|
|
|
17402
17430
|
if (f.length > 0) {
|
|
17403
17431
|
writer.writeRepeatedString(7, f);
|
|
17404
17432
|
}
|
|
17433
|
+
f = message.getSettings();
|
|
17434
|
+
if (f != null) {
|
|
17435
|
+
writer.writeMessage(8, f, proto.clarifai.api.InputSettings.serializeBinaryToWriter);
|
|
17436
|
+
}
|
|
17405
17437
|
};
|
|
17406
17438
|
/**
|
|
17407
17439
|
* optional string id = 1;
|
|
@@ -17558,6 +17590,246 @@ proto.clarifai.api.Input.prototype.addDatasetIds = function (value, opt_index) {
|
|
|
17558
17590
|
proto.clarifai.api.Input.prototype.clearDatasetIdsList = function () {
|
|
17559
17591
|
return this.setDatasetIdsList([]);
|
|
17560
17592
|
};
|
|
17593
|
+
/**
|
|
17594
|
+
* optional InputSettings settings = 8;
|
|
17595
|
+
* @return {?proto.clarifai.api.InputSettings}
|
|
17596
|
+
*/
|
|
17597
|
+
proto.clarifai.api.Input.prototype.getSettings = function () {
|
|
17598
|
+
return /** @type{?proto.clarifai.api.InputSettings} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.InputSettings, 8));
|
|
17599
|
+
};
|
|
17600
|
+
/**
|
|
17601
|
+
* @param {?proto.clarifai.api.InputSettings|undefined} value
|
|
17602
|
+
* @return {!proto.clarifai.api.Input} returns this
|
|
17603
|
+
*/
|
|
17604
|
+
proto.clarifai.api.Input.prototype.setSettings = function (value) {
|
|
17605
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
17606
|
+
};
|
|
17607
|
+
/**
|
|
17608
|
+
* Clears the message field making it undefined.
|
|
17609
|
+
* @return {!proto.clarifai.api.Input} returns this
|
|
17610
|
+
*/
|
|
17611
|
+
proto.clarifai.api.Input.prototype.clearSettings = function () {
|
|
17612
|
+
return this.setSettings(undefined);
|
|
17613
|
+
};
|
|
17614
|
+
/**
|
|
17615
|
+
* Returns whether this field is set.
|
|
17616
|
+
* @return {boolean}
|
|
17617
|
+
*/
|
|
17618
|
+
proto.clarifai.api.Input.prototype.hasSettings = function () {
|
|
17619
|
+
return jspb.Message.getField(this, 8) != null;
|
|
17620
|
+
};
|
|
17621
|
+
/**
|
|
17622
|
+
* List of repeated fields within this message type.
|
|
17623
|
+
* @private {!Array<number>}
|
|
17624
|
+
* @const
|
|
17625
|
+
*/
|
|
17626
|
+
proto.clarifai.api.InputSettings.repeatedFields_ = [4];
|
|
17627
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17628
|
+
/**
|
|
17629
|
+
* Creates an object representation of this proto.
|
|
17630
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17631
|
+
* Optional fields that are not set will be set to undefined.
|
|
17632
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17633
|
+
* For the list of reserved names please see:
|
|
17634
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17635
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17636
|
+
* JSPB instance for transitional soy proto support:
|
|
17637
|
+
* http://goto/soy-param-migration
|
|
17638
|
+
* @return {!Object}
|
|
17639
|
+
*/
|
|
17640
|
+
proto.clarifai.api.InputSettings.prototype.toObject = function (opt_includeInstance) {
|
|
17641
|
+
return proto.clarifai.api.InputSettings.toObject(opt_includeInstance, this);
|
|
17642
|
+
};
|
|
17643
|
+
/**
|
|
17644
|
+
* Static version of the {@see toObject} method.
|
|
17645
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17646
|
+
* the JSPB instance for transitional soy proto support:
|
|
17647
|
+
* http://goto/soy-param-migration
|
|
17648
|
+
* @param {!proto.clarifai.api.InputSettings} msg The msg instance to transform.
|
|
17649
|
+
* @return {!Object}
|
|
17650
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17651
|
+
*/
|
|
17652
|
+
proto.clarifai.api.InputSettings.toObject = function (includeInstance, msg) {
|
|
17653
|
+
var f, obj = {
|
|
17654
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
17655
|
+
sampleRateMs: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
17656
|
+
sampleRateFrame: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
17657
|
+
pinnedConceptIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
17658
|
+
};
|
|
17659
|
+
if (includeInstance) {
|
|
17660
|
+
obj.$jspbMessageInstance = msg;
|
|
17661
|
+
}
|
|
17662
|
+
return obj;
|
|
17663
|
+
};
|
|
17664
|
+
}
|
|
17665
|
+
/**
|
|
17666
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17667
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
17668
|
+
* @return {!proto.clarifai.api.InputSettings}
|
|
17669
|
+
*/
|
|
17670
|
+
proto.clarifai.api.InputSettings.deserializeBinary = function (bytes) {
|
|
17671
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17672
|
+
var msg = new proto.clarifai.api.InputSettings;
|
|
17673
|
+
return proto.clarifai.api.InputSettings.deserializeBinaryFromReader(msg, reader);
|
|
17674
|
+
};
|
|
17675
|
+
/**
|
|
17676
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17677
|
+
* given reader into the given message object.
|
|
17678
|
+
* @param {!proto.clarifai.api.InputSettings} msg The message object to deserialize into.
|
|
17679
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17680
|
+
* @return {!proto.clarifai.api.InputSettings}
|
|
17681
|
+
*/
|
|
17682
|
+
proto.clarifai.api.InputSettings.deserializeBinaryFromReader = function (msg, reader) {
|
|
17683
|
+
while (reader.nextField()) {
|
|
17684
|
+
if (reader.isEndGroup()) {
|
|
17685
|
+
break;
|
|
17686
|
+
}
|
|
17687
|
+
var field = reader.getFieldNumber();
|
|
17688
|
+
switch (field) {
|
|
17689
|
+
case 1:
|
|
17690
|
+
var value = new proto.clarifai.api.Worker;
|
|
17691
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
17692
|
+
msg.setWorker(value);
|
|
17693
|
+
break;
|
|
17694
|
+
case 2:
|
|
17695
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
17696
|
+
msg.setSampleRateMs(value);
|
|
17697
|
+
break;
|
|
17698
|
+
case 3:
|
|
17699
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
17700
|
+
msg.setSampleRateFrame(value);
|
|
17701
|
+
break;
|
|
17702
|
+
case 4:
|
|
17703
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17704
|
+
msg.addPinnedConceptIds(value);
|
|
17705
|
+
break;
|
|
17706
|
+
default:
|
|
17707
|
+
reader.skipField();
|
|
17708
|
+
break;
|
|
17709
|
+
}
|
|
17710
|
+
}
|
|
17711
|
+
return msg;
|
|
17712
|
+
};
|
|
17713
|
+
/**
|
|
17714
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17715
|
+
* @return {!Uint8Array}
|
|
17716
|
+
*/
|
|
17717
|
+
proto.clarifai.api.InputSettings.prototype.serializeBinary = function () {
|
|
17718
|
+
var writer = new jspb.BinaryWriter();
|
|
17719
|
+
proto.clarifai.api.InputSettings.serializeBinaryToWriter(this, writer);
|
|
17720
|
+
return writer.getResultBuffer();
|
|
17721
|
+
};
|
|
17722
|
+
/**
|
|
17723
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17724
|
+
* format), writing to the given BinaryWriter.
|
|
17725
|
+
* @param {!proto.clarifai.api.InputSettings} message
|
|
17726
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17727
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17728
|
+
*/
|
|
17729
|
+
proto.clarifai.api.InputSettings.serializeBinaryToWriter = function (message, writer) {
|
|
17730
|
+
var f = undefined;
|
|
17731
|
+
f = message.getWorker();
|
|
17732
|
+
if (f != null) {
|
|
17733
|
+
writer.writeMessage(1, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
17734
|
+
}
|
|
17735
|
+
f = message.getSampleRateMs();
|
|
17736
|
+
if (f !== 0) {
|
|
17737
|
+
writer.writeUint32(2, f);
|
|
17738
|
+
}
|
|
17739
|
+
f = message.getSampleRateFrame();
|
|
17740
|
+
if (f !== 0) {
|
|
17741
|
+
writer.writeUint32(3, f);
|
|
17742
|
+
}
|
|
17743
|
+
f = message.getPinnedConceptIdsList();
|
|
17744
|
+
if (f.length > 0) {
|
|
17745
|
+
writer.writeRepeatedString(4, f);
|
|
17746
|
+
}
|
|
17747
|
+
};
|
|
17748
|
+
/**
|
|
17749
|
+
* optional Worker worker = 1;
|
|
17750
|
+
* @return {?proto.clarifai.api.Worker}
|
|
17751
|
+
*/
|
|
17752
|
+
proto.clarifai.api.InputSettings.prototype.getWorker = function () {
|
|
17753
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 1));
|
|
17754
|
+
};
|
|
17755
|
+
/**
|
|
17756
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
17757
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17758
|
+
*/
|
|
17759
|
+
proto.clarifai.api.InputSettings.prototype.setWorker = function (value) {
|
|
17760
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
17761
|
+
};
|
|
17762
|
+
/**
|
|
17763
|
+
* Clears the message field making it undefined.
|
|
17764
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17765
|
+
*/
|
|
17766
|
+
proto.clarifai.api.InputSettings.prototype.clearWorker = function () {
|
|
17767
|
+
return this.setWorker(undefined);
|
|
17768
|
+
};
|
|
17769
|
+
/**
|
|
17770
|
+
* Returns whether this field is set.
|
|
17771
|
+
* @return {boolean}
|
|
17772
|
+
*/
|
|
17773
|
+
proto.clarifai.api.InputSettings.prototype.hasWorker = function () {
|
|
17774
|
+
return jspb.Message.getField(this, 1) != null;
|
|
17775
|
+
};
|
|
17776
|
+
/**
|
|
17777
|
+
* optional uint32 sample_rate_ms = 2;
|
|
17778
|
+
* @return {number}
|
|
17779
|
+
*/
|
|
17780
|
+
proto.clarifai.api.InputSettings.prototype.getSampleRateMs = function () {
|
|
17781
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
17782
|
+
};
|
|
17783
|
+
/**
|
|
17784
|
+
* @param {number} value
|
|
17785
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17786
|
+
*/
|
|
17787
|
+
proto.clarifai.api.InputSettings.prototype.setSampleRateMs = function (value) {
|
|
17788
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
17789
|
+
};
|
|
17790
|
+
/**
|
|
17791
|
+
* optional uint32 sample_rate_frame = 3;
|
|
17792
|
+
* @return {number}
|
|
17793
|
+
*/
|
|
17794
|
+
proto.clarifai.api.InputSettings.prototype.getSampleRateFrame = function () {
|
|
17795
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
17796
|
+
};
|
|
17797
|
+
/**
|
|
17798
|
+
* @param {number} value
|
|
17799
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17800
|
+
*/
|
|
17801
|
+
proto.clarifai.api.InputSettings.prototype.setSampleRateFrame = function (value) {
|
|
17802
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
17803
|
+
};
|
|
17804
|
+
/**
|
|
17805
|
+
* repeated string pinned_concept_ids = 4;
|
|
17806
|
+
* @return {!Array<string>}
|
|
17807
|
+
*/
|
|
17808
|
+
proto.clarifai.api.InputSettings.prototype.getPinnedConceptIdsList = function () {
|
|
17809
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
17810
|
+
};
|
|
17811
|
+
/**
|
|
17812
|
+
* @param {!Array<string>} value
|
|
17813
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17814
|
+
*/
|
|
17815
|
+
proto.clarifai.api.InputSettings.prototype.setPinnedConceptIdsList = function (value) {
|
|
17816
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
17817
|
+
};
|
|
17818
|
+
/**
|
|
17819
|
+
* @param {string} value
|
|
17820
|
+
* @param {number=} opt_index
|
|
17821
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17822
|
+
*/
|
|
17823
|
+
proto.clarifai.api.InputSettings.prototype.addPinnedConceptIds = function (value, opt_index) {
|
|
17824
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
17825
|
+
};
|
|
17826
|
+
/**
|
|
17827
|
+
* Clears the list making it empty but non-null.
|
|
17828
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
17829
|
+
*/
|
|
17830
|
+
proto.clarifai.api.InputSettings.prototype.clearPinnedConceptIdsList = function () {
|
|
17831
|
+
return this.setPinnedConceptIdsList([]);
|
|
17832
|
+
};
|
|
17561
17833
|
/**
|
|
17562
17834
|
* List of repeated fields within this message type.
|
|
17563
17835
|
* @private {!Array<number>}
|
package/package.json
CHANGED
|
@@ -1923,6 +1923,11 @@ export class Input extends jspb.Message {
|
|
|
1923
1923
|
clearDatasetIdsList(): Input;
|
|
1924
1924
|
addDatasetIds(value: string, index?: number): Input;
|
|
1925
1925
|
|
|
1926
|
+
getSettings(): InputSettings | undefined;
|
|
1927
|
+
setSettings(value?: InputSettings): Input;
|
|
1928
|
+
hasSettings(): boolean;
|
|
1929
|
+
clearSettings(): Input;
|
|
1930
|
+
|
|
1926
1931
|
serializeBinary(): Uint8Array;
|
|
1927
1932
|
toObject(includeInstance?: boolean): Input.AsObject;
|
|
1928
1933
|
static toObject(includeInstance: boolean, msg: Input): Input.AsObject;
|
|
@@ -1939,6 +1944,41 @@ export namespace Input {
|
|
|
1939
1944
|
modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1940
1945
|
status?: proto_clarifai_api_status_status_pb.Status.AsObject,
|
|
1941
1946
|
datasetIdsList: Array<string>,
|
|
1947
|
+
settings?: InputSettings.AsObject,
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
export class InputSettings extends jspb.Message {
|
|
1952
|
+
getWorker(): Worker | undefined;
|
|
1953
|
+
setWorker(value?: Worker): InputSettings;
|
|
1954
|
+
hasWorker(): boolean;
|
|
1955
|
+
clearWorker(): InputSettings;
|
|
1956
|
+
|
|
1957
|
+
getSampleRateMs(): number;
|
|
1958
|
+
setSampleRateMs(value: number): InputSettings;
|
|
1959
|
+
|
|
1960
|
+
getSampleRateFrame(): number;
|
|
1961
|
+
setSampleRateFrame(value: number): InputSettings;
|
|
1962
|
+
|
|
1963
|
+
getPinnedConceptIdsList(): Array<string>;
|
|
1964
|
+
setPinnedConceptIdsList(value: Array<string>): InputSettings;
|
|
1965
|
+
clearPinnedConceptIdsList(): InputSettings;
|
|
1966
|
+
addPinnedConceptIds(value: string, index?: number): InputSettings;
|
|
1967
|
+
|
|
1968
|
+
serializeBinary(): Uint8Array;
|
|
1969
|
+
toObject(includeInstance?: boolean): InputSettings.AsObject;
|
|
1970
|
+
static toObject(includeInstance: boolean, msg: InputSettings): InputSettings.AsObject;
|
|
1971
|
+
static serializeBinaryToWriter(message: InputSettings, writer: jspb.BinaryWriter): void;
|
|
1972
|
+
static deserializeBinary(bytes: Uint8Array): InputSettings;
|
|
1973
|
+
static deserializeBinaryFromReader(message: InputSettings, reader: jspb.BinaryReader): InputSettings;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
export namespace InputSettings {
|
|
1977
|
+
export type AsObject = {
|
|
1978
|
+
worker?: Worker.AsObject,
|
|
1979
|
+
sampleRateMs: number,
|
|
1980
|
+
sampleRateFrame: number,
|
|
1981
|
+
pinnedConceptIdsList: Array<string>,
|
|
1942
1982
|
}
|
|
1943
1983
|
}
|
|
1944
1984
|
|
|
@@ -169,6 +169,7 @@ goog.exportSymbol('proto.clarifai.api.InputEvaluationMetricValue', null, global)
|
|
|
169
169
|
goog.exportSymbol('proto.clarifai.api.InputIDConflictResolution', null, global);
|
|
170
170
|
goog.exportSymbol('proto.clarifai.api.InputIDs', null, global);
|
|
171
171
|
goog.exportSymbol('proto.clarifai.api.InputInfo', null, global);
|
|
172
|
+
goog.exportSymbol('proto.clarifai.api.InputSettings', null, global);
|
|
172
173
|
goog.exportSymbol('proto.clarifai.api.InputsAddJob', null, global);
|
|
173
174
|
goog.exportSymbol('proto.clarifai.api.InputsAddJobProgress', null, global);
|
|
174
175
|
goog.exportSymbol('proto.clarifai.api.InputsDataSource', null, global);
|
|
@@ -1415,6 +1416,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1415
1416
|
*/
|
|
1416
1417
|
proto.clarifai.api.Input.displayName = 'proto.clarifai.api.Input';
|
|
1417
1418
|
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Generated by JsPbCodeGenerator.
|
|
1421
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1422
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1423
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1424
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1425
|
+
* valid.
|
|
1426
|
+
* @extends {jspb.Message}
|
|
1427
|
+
* @constructor
|
|
1428
|
+
*/
|
|
1429
|
+
proto.clarifai.api.InputSettings = function(opt_data) {
|
|
1430
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputSettings.repeatedFields_, null);
|
|
1431
|
+
};
|
|
1432
|
+
goog.inherits(proto.clarifai.api.InputSettings, jspb.Message);
|
|
1433
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1434
|
+
/**
|
|
1435
|
+
* @public
|
|
1436
|
+
* @override
|
|
1437
|
+
*/
|
|
1438
|
+
proto.clarifai.api.InputSettings.displayName = 'proto.clarifai.api.InputSettings';
|
|
1439
|
+
}
|
|
1418
1440
|
/**
|
|
1419
1441
|
* Generated by JsPbCodeGenerator.
|
|
1420
1442
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -20414,7 +20436,8 @@ proto.clarifai.api.Input.toObject = function(includeInstance, msg) {
|
|
|
20414
20436
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
20415
20437
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
20416
20438
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
20417
|
-
datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
20439
|
+
datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
20440
|
+
settings: (f = msg.getSettings()) && proto.clarifai.api.InputSettings.toObject(includeInstance, f)
|
|
20418
20441
|
};
|
|
20419
20442
|
|
|
20420
20443
|
if (includeInstance) {
|
|
@@ -20479,6 +20502,11 @@ proto.clarifai.api.Input.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
20479
20502
|
var value = /** @type {string} */ (reader.readString());
|
|
20480
20503
|
msg.addDatasetIds(value);
|
|
20481
20504
|
break;
|
|
20505
|
+
case 8:
|
|
20506
|
+
var value = new proto.clarifai.api.InputSettings;
|
|
20507
|
+
reader.readMessage(value,proto.clarifai.api.InputSettings.deserializeBinaryFromReader);
|
|
20508
|
+
msg.setSettings(value);
|
|
20509
|
+
break;
|
|
20482
20510
|
default:
|
|
20483
20511
|
reader.skipField();
|
|
20484
20512
|
break;
|
|
@@ -20554,6 +20582,14 @@ proto.clarifai.api.Input.serializeBinaryToWriter = function(message, writer) {
|
|
|
20554
20582
|
f
|
|
20555
20583
|
);
|
|
20556
20584
|
}
|
|
20585
|
+
f = message.getSettings();
|
|
20586
|
+
if (f != null) {
|
|
20587
|
+
writer.writeMessage(
|
|
20588
|
+
8,
|
|
20589
|
+
f,
|
|
20590
|
+
proto.clarifai.api.InputSettings.serializeBinaryToWriter
|
|
20591
|
+
);
|
|
20592
|
+
}
|
|
20557
20593
|
};
|
|
20558
20594
|
|
|
20559
20595
|
|
|
@@ -20760,6 +20796,310 @@ proto.clarifai.api.Input.prototype.clearDatasetIdsList = function() {
|
|
|
20760
20796
|
};
|
|
20761
20797
|
|
|
20762
20798
|
|
|
20799
|
+
/**
|
|
20800
|
+
* optional InputSettings settings = 8;
|
|
20801
|
+
* @return {?proto.clarifai.api.InputSettings}
|
|
20802
|
+
*/
|
|
20803
|
+
proto.clarifai.api.Input.prototype.getSettings = function() {
|
|
20804
|
+
return /** @type{?proto.clarifai.api.InputSettings} */ (
|
|
20805
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.InputSettings, 8));
|
|
20806
|
+
};
|
|
20807
|
+
|
|
20808
|
+
|
|
20809
|
+
/**
|
|
20810
|
+
* @param {?proto.clarifai.api.InputSettings|undefined} value
|
|
20811
|
+
* @return {!proto.clarifai.api.Input} returns this
|
|
20812
|
+
*/
|
|
20813
|
+
proto.clarifai.api.Input.prototype.setSettings = function(value) {
|
|
20814
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
20815
|
+
};
|
|
20816
|
+
|
|
20817
|
+
|
|
20818
|
+
/**
|
|
20819
|
+
* Clears the message field making it undefined.
|
|
20820
|
+
* @return {!proto.clarifai.api.Input} returns this
|
|
20821
|
+
*/
|
|
20822
|
+
proto.clarifai.api.Input.prototype.clearSettings = function() {
|
|
20823
|
+
return this.setSettings(undefined);
|
|
20824
|
+
};
|
|
20825
|
+
|
|
20826
|
+
|
|
20827
|
+
/**
|
|
20828
|
+
* Returns whether this field is set.
|
|
20829
|
+
* @return {boolean}
|
|
20830
|
+
*/
|
|
20831
|
+
proto.clarifai.api.Input.prototype.hasSettings = function() {
|
|
20832
|
+
return jspb.Message.getField(this, 8) != null;
|
|
20833
|
+
};
|
|
20834
|
+
|
|
20835
|
+
|
|
20836
|
+
|
|
20837
|
+
/**
|
|
20838
|
+
* List of repeated fields within this message type.
|
|
20839
|
+
* @private {!Array<number>}
|
|
20840
|
+
* @const
|
|
20841
|
+
*/
|
|
20842
|
+
proto.clarifai.api.InputSettings.repeatedFields_ = [4];
|
|
20843
|
+
|
|
20844
|
+
|
|
20845
|
+
|
|
20846
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
20847
|
+
/**
|
|
20848
|
+
* Creates an object representation of this proto.
|
|
20849
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
20850
|
+
* Optional fields that are not set will be set to undefined.
|
|
20851
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
20852
|
+
* For the list of reserved names please see:
|
|
20853
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
20854
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
20855
|
+
* JSPB instance for transitional soy proto support:
|
|
20856
|
+
* http://goto/soy-param-migration
|
|
20857
|
+
* @return {!Object}
|
|
20858
|
+
*/
|
|
20859
|
+
proto.clarifai.api.InputSettings.prototype.toObject = function(opt_includeInstance) {
|
|
20860
|
+
return proto.clarifai.api.InputSettings.toObject(opt_includeInstance, this);
|
|
20861
|
+
};
|
|
20862
|
+
|
|
20863
|
+
|
|
20864
|
+
/**
|
|
20865
|
+
* Static version of the {@see toObject} method.
|
|
20866
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
20867
|
+
* the JSPB instance for transitional soy proto support:
|
|
20868
|
+
* http://goto/soy-param-migration
|
|
20869
|
+
* @param {!proto.clarifai.api.InputSettings} msg The msg instance to transform.
|
|
20870
|
+
* @return {!Object}
|
|
20871
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20872
|
+
*/
|
|
20873
|
+
proto.clarifai.api.InputSettings.toObject = function(includeInstance, msg) {
|
|
20874
|
+
var f, obj = {
|
|
20875
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
20876
|
+
sampleRateMs: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
20877
|
+
sampleRateFrame: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
20878
|
+
pinnedConceptIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
20879
|
+
};
|
|
20880
|
+
|
|
20881
|
+
if (includeInstance) {
|
|
20882
|
+
obj.$jspbMessageInstance = msg;
|
|
20883
|
+
}
|
|
20884
|
+
return obj;
|
|
20885
|
+
};
|
|
20886
|
+
}
|
|
20887
|
+
|
|
20888
|
+
|
|
20889
|
+
/**
|
|
20890
|
+
* Deserializes binary data (in protobuf wire format).
|
|
20891
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
20892
|
+
* @return {!proto.clarifai.api.InputSettings}
|
|
20893
|
+
*/
|
|
20894
|
+
proto.clarifai.api.InputSettings.deserializeBinary = function(bytes) {
|
|
20895
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
20896
|
+
var msg = new proto.clarifai.api.InputSettings;
|
|
20897
|
+
return proto.clarifai.api.InputSettings.deserializeBinaryFromReader(msg, reader);
|
|
20898
|
+
};
|
|
20899
|
+
|
|
20900
|
+
|
|
20901
|
+
/**
|
|
20902
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
20903
|
+
* given reader into the given message object.
|
|
20904
|
+
* @param {!proto.clarifai.api.InputSettings} msg The message object to deserialize into.
|
|
20905
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
20906
|
+
* @return {!proto.clarifai.api.InputSettings}
|
|
20907
|
+
*/
|
|
20908
|
+
proto.clarifai.api.InputSettings.deserializeBinaryFromReader = function(msg, reader) {
|
|
20909
|
+
while (reader.nextField()) {
|
|
20910
|
+
if (reader.isEndGroup()) {
|
|
20911
|
+
break;
|
|
20912
|
+
}
|
|
20913
|
+
var field = reader.getFieldNumber();
|
|
20914
|
+
switch (field) {
|
|
20915
|
+
case 1:
|
|
20916
|
+
var value = new proto.clarifai.api.Worker;
|
|
20917
|
+
reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
20918
|
+
msg.setWorker(value);
|
|
20919
|
+
break;
|
|
20920
|
+
case 2:
|
|
20921
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
20922
|
+
msg.setSampleRateMs(value);
|
|
20923
|
+
break;
|
|
20924
|
+
case 3:
|
|
20925
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
20926
|
+
msg.setSampleRateFrame(value);
|
|
20927
|
+
break;
|
|
20928
|
+
case 4:
|
|
20929
|
+
var value = /** @type {string} */ (reader.readString());
|
|
20930
|
+
msg.addPinnedConceptIds(value);
|
|
20931
|
+
break;
|
|
20932
|
+
default:
|
|
20933
|
+
reader.skipField();
|
|
20934
|
+
break;
|
|
20935
|
+
}
|
|
20936
|
+
}
|
|
20937
|
+
return msg;
|
|
20938
|
+
};
|
|
20939
|
+
|
|
20940
|
+
|
|
20941
|
+
/**
|
|
20942
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
20943
|
+
* @return {!Uint8Array}
|
|
20944
|
+
*/
|
|
20945
|
+
proto.clarifai.api.InputSettings.prototype.serializeBinary = function() {
|
|
20946
|
+
var writer = new jspb.BinaryWriter();
|
|
20947
|
+
proto.clarifai.api.InputSettings.serializeBinaryToWriter(this, writer);
|
|
20948
|
+
return writer.getResultBuffer();
|
|
20949
|
+
};
|
|
20950
|
+
|
|
20951
|
+
|
|
20952
|
+
/**
|
|
20953
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
20954
|
+
* format), writing to the given BinaryWriter.
|
|
20955
|
+
* @param {!proto.clarifai.api.InputSettings} message
|
|
20956
|
+
* @param {!jspb.BinaryWriter} writer
|
|
20957
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20958
|
+
*/
|
|
20959
|
+
proto.clarifai.api.InputSettings.serializeBinaryToWriter = function(message, writer) {
|
|
20960
|
+
var f = undefined;
|
|
20961
|
+
f = message.getWorker();
|
|
20962
|
+
if (f != null) {
|
|
20963
|
+
writer.writeMessage(
|
|
20964
|
+
1,
|
|
20965
|
+
f,
|
|
20966
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter
|
|
20967
|
+
);
|
|
20968
|
+
}
|
|
20969
|
+
f = message.getSampleRateMs();
|
|
20970
|
+
if (f !== 0) {
|
|
20971
|
+
writer.writeUint32(
|
|
20972
|
+
2,
|
|
20973
|
+
f
|
|
20974
|
+
);
|
|
20975
|
+
}
|
|
20976
|
+
f = message.getSampleRateFrame();
|
|
20977
|
+
if (f !== 0) {
|
|
20978
|
+
writer.writeUint32(
|
|
20979
|
+
3,
|
|
20980
|
+
f
|
|
20981
|
+
);
|
|
20982
|
+
}
|
|
20983
|
+
f = message.getPinnedConceptIdsList();
|
|
20984
|
+
if (f.length > 0) {
|
|
20985
|
+
writer.writeRepeatedString(
|
|
20986
|
+
4,
|
|
20987
|
+
f
|
|
20988
|
+
);
|
|
20989
|
+
}
|
|
20990
|
+
};
|
|
20991
|
+
|
|
20992
|
+
|
|
20993
|
+
/**
|
|
20994
|
+
* optional Worker worker = 1;
|
|
20995
|
+
* @return {?proto.clarifai.api.Worker}
|
|
20996
|
+
*/
|
|
20997
|
+
proto.clarifai.api.InputSettings.prototype.getWorker = function() {
|
|
20998
|
+
return /** @type{?proto.clarifai.api.Worker} */ (
|
|
20999
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 1));
|
|
21000
|
+
};
|
|
21001
|
+
|
|
21002
|
+
|
|
21003
|
+
/**
|
|
21004
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
21005
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
21006
|
+
*/
|
|
21007
|
+
proto.clarifai.api.InputSettings.prototype.setWorker = function(value) {
|
|
21008
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
21009
|
+
};
|
|
21010
|
+
|
|
21011
|
+
|
|
21012
|
+
/**
|
|
21013
|
+
* Clears the message field making it undefined.
|
|
21014
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
21015
|
+
*/
|
|
21016
|
+
proto.clarifai.api.InputSettings.prototype.clearWorker = function() {
|
|
21017
|
+
return this.setWorker(undefined);
|
|
21018
|
+
};
|
|
21019
|
+
|
|
21020
|
+
|
|
21021
|
+
/**
|
|
21022
|
+
* Returns whether this field is set.
|
|
21023
|
+
* @return {boolean}
|
|
21024
|
+
*/
|
|
21025
|
+
proto.clarifai.api.InputSettings.prototype.hasWorker = function() {
|
|
21026
|
+
return jspb.Message.getField(this, 1) != null;
|
|
21027
|
+
};
|
|
21028
|
+
|
|
21029
|
+
|
|
21030
|
+
/**
|
|
21031
|
+
* optional uint32 sample_rate_ms = 2;
|
|
21032
|
+
* @return {number}
|
|
21033
|
+
*/
|
|
21034
|
+
proto.clarifai.api.InputSettings.prototype.getSampleRateMs = function() {
|
|
21035
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
21036
|
+
};
|
|
21037
|
+
|
|
21038
|
+
|
|
21039
|
+
/**
|
|
21040
|
+
* @param {number} value
|
|
21041
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
21042
|
+
*/
|
|
21043
|
+
proto.clarifai.api.InputSettings.prototype.setSampleRateMs = function(value) {
|
|
21044
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
21045
|
+
};
|
|
21046
|
+
|
|
21047
|
+
|
|
21048
|
+
/**
|
|
21049
|
+
* optional uint32 sample_rate_frame = 3;
|
|
21050
|
+
* @return {number}
|
|
21051
|
+
*/
|
|
21052
|
+
proto.clarifai.api.InputSettings.prototype.getSampleRateFrame = function() {
|
|
21053
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
21054
|
+
};
|
|
21055
|
+
|
|
21056
|
+
|
|
21057
|
+
/**
|
|
21058
|
+
* @param {number} value
|
|
21059
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
21060
|
+
*/
|
|
21061
|
+
proto.clarifai.api.InputSettings.prototype.setSampleRateFrame = function(value) {
|
|
21062
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
21063
|
+
};
|
|
21064
|
+
|
|
21065
|
+
|
|
21066
|
+
/**
|
|
21067
|
+
* repeated string pinned_concept_ids = 4;
|
|
21068
|
+
* @return {!Array<string>}
|
|
21069
|
+
*/
|
|
21070
|
+
proto.clarifai.api.InputSettings.prototype.getPinnedConceptIdsList = function() {
|
|
21071
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
21072
|
+
};
|
|
21073
|
+
|
|
21074
|
+
|
|
21075
|
+
/**
|
|
21076
|
+
* @param {!Array<string>} value
|
|
21077
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
21078
|
+
*/
|
|
21079
|
+
proto.clarifai.api.InputSettings.prototype.setPinnedConceptIdsList = function(value) {
|
|
21080
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
21081
|
+
};
|
|
21082
|
+
|
|
21083
|
+
|
|
21084
|
+
/**
|
|
21085
|
+
* @param {string} value
|
|
21086
|
+
* @param {number=} opt_index
|
|
21087
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
21088
|
+
*/
|
|
21089
|
+
proto.clarifai.api.InputSettings.prototype.addPinnedConceptIds = function(value, opt_index) {
|
|
21090
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
21091
|
+
};
|
|
21092
|
+
|
|
21093
|
+
|
|
21094
|
+
/**
|
|
21095
|
+
* Clears the list making it empty but non-null.
|
|
21096
|
+
* @return {!proto.clarifai.api.InputSettings} returns this
|
|
21097
|
+
*/
|
|
21098
|
+
proto.clarifai.api.InputSettings.prototype.clearPinnedConceptIdsList = function() {
|
|
21099
|
+
return this.setPinnedConceptIdsList([]);
|
|
21100
|
+
};
|
|
21101
|
+
|
|
21102
|
+
|
|
20763
21103
|
|
|
20764
21104
|
/**
|
|
20765
21105
|
* List of repeated fields within this message type.
|