clarifai-web-grpc 11.10.8 → 11.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +793 -2
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +416 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +3437 -0
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +5 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +793 -2
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +416 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +3437 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +5 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +122 -0
- package/proto/clarifai/api/resources_pb.js +1017 -2
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +118 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +605 -0
- package/proto/clarifai/api/service_pb.d.ts +504 -0
- package/proto/clarifai/api/service_pb.js +4235 -0
- package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
- package/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +4 -0
- package/proto/clarifai/auth/scope/scope_pb.js +5 -1
|
@@ -63,6 +63,8 @@ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationSpec', null, global);
|
|
|
63
63
|
goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStatus', null, global);
|
|
64
64
|
goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStepSpec', null, global);
|
|
65
65
|
goog.exportSymbol('proto.clarifai.api.ArgoParameterOverride', null, global);
|
|
66
|
+
goog.exportSymbol('proto.clarifai.api.Artifact', null, global);
|
|
67
|
+
goog.exportSymbol('proto.clarifai.api.ArtifactVersion', null, global);
|
|
66
68
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
67
69
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
68
70
|
goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
|
|
@@ -5932,6 +5934,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5932
5934
|
*/
|
|
5933
5935
|
proto.clarifai.api.MetricTypeLabels.LabelWithValues.displayName = 'proto.clarifai.api.MetricTypeLabels.LabelWithValues';
|
|
5934
5936
|
}
|
|
5937
|
+
/**
|
|
5938
|
+
* Generated by JsPbCodeGenerator.
|
|
5939
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5940
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5941
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5942
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5943
|
+
* valid.
|
|
5944
|
+
* @extends {jspb.Message}
|
|
5945
|
+
* @constructor
|
|
5946
|
+
*/
|
|
5947
|
+
proto.clarifai.api.Artifact = function(opt_data) {
|
|
5948
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5949
|
+
};
|
|
5950
|
+
goog.inherits(proto.clarifai.api.Artifact, jspb.Message);
|
|
5951
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5952
|
+
/**
|
|
5953
|
+
* @public
|
|
5954
|
+
* @override
|
|
5955
|
+
*/
|
|
5956
|
+
proto.clarifai.api.Artifact.displayName = 'proto.clarifai.api.Artifact';
|
|
5957
|
+
}
|
|
5958
|
+
/**
|
|
5959
|
+
* Generated by JsPbCodeGenerator.
|
|
5960
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5961
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5962
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5963
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5964
|
+
* valid.
|
|
5965
|
+
* @extends {jspb.Message}
|
|
5966
|
+
* @constructor
|
|
5967
|
+
*/
|
|
5968
|
+
proto.clarifai.api.ArtifactVersion = function(opt_data) {
|
|
5969
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5970
|
+
};
|
|
5971
|
+
goog.inherits(proto.clarifai.api.ArtifactVersion, jspb.Message);
|
|
5972
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5973
|
+
/**
|
|
5974
|
+
* @public
|
|
5975
|
+
* @override
|
|
5976
|
+
*/
|
|
5977
|
+
proto.clarifai.api.ArtifactVersion.displayName = 'proto.clarifai.api.ArtifactVersion';
|
|
5978
|
+
}
|
|
5935
5979
|
|
|
5936
5980
|
|
|
5937
5981
|
|
|
@@ -35456,7 +35500,8 @@ proto.clarifai.api.BuildInfo.toObject = function(includeInstance, msg) {
|
|
|
35456
35500
|
var f, obj = {
|
|
35457
35501
|
dockerImageName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
35458
35502
|
dockerImageTag: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
35459
|
-
dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
35503
|
+
dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
35504
|
+
platform: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
35460
35505
|
};
|
|
35461
35506
|
|
|
35462
35507
|
if (includeInstance) {
|
|
@@ -35505,6 +35550,10 @@ proto.clarifai.api.BuildInfo.deserializeBinaryFromReader = function(msg, reader)
|
|
|
35505
35550
|
var value = /** @type {string} */ (reader.readString());
|
|
35506
35551
|
msg.setDockerImageDigest(value);
|
|
35507
35552
|
break;
|
|
35553
|
+
case 4:
|
|
35554
|
+
var value = /** @type {string} */ (reader.readString());
|
|
35555
|
+
msg.setPlatform(value);
|
|
35556
|
+
break;
|
|
35508
35557
|
default:
|
|
35509
35558
|
reader.skipField();
|
|
35510
35559
|
break;
|
|
@@ -35555,6 +35604,13 @@ proto.clarifai.api.BuildInfo.serializeBinaryToWriter = function(message, writer)
|
|
|
35555
35604
|
f
|
|
35556
35605
|
);
|
|
35557
35606
|
}
|
|
35607
|
+
f = message.getPlatform();
|
|
35608
|
+
if (f.length > 0) {
|
|
35609
|
+
writer.writeString(
|
|
35610
|
+
4,
|
|
35611
|
+
f
|
|
35612
|
+
);
|
|
35613
|
+
}
|
|
35558
35614
|
};
|
|
35559
35615
|
|
|
35560
35616
|
|
|
@@ -35612,6 +35668,24 @@ proto.clarifai.api.BuildInfo.prototype.setDockerImageDigest = function(value) {
|
|
|
35612
35668
|
};
|
|
35613
35669
|
|
|
35614
35670
|
|
|
35671
|
+
/**
|
|
35672
|
+
* optional string platform = 4;
|
|
35673
|
+
* @return {string}
|
|
35674
|
+
*/
|
|
35675
|
+
proto.clarifai.api.BuildInfo.prototype.getPlatform = function() {
|
|
35676
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
35677
|
+
};
|
|
35678
|
+
|
|
35679
|
+
|
|
35680
|
+
/**
|
|
35681
|
+
* @param {string} value
|
|
35682
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
35683
|
+
*/
|
|
35684
|
+
proto.clarifai.api.BuildInfo.prototype.setPlatform = function(value) {
|
|
35685
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
35686
|
+
};
|
|
35687
|
+
|
|
35688
|
+
|
|
35615
35689
|
|
|
35616
35690
|
|
|
35617
35691
|
|
|
@@ -72397,7 +72471,8 @@ proto.clarifai.api.InstanceType.toObject = function(includeInstance, msg) {
|
|
|
72397
72471
|
allowedCapacityTypes: (f = msg.getAllowedCapacityTypes()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
|
|
72398
72472
|
featureFlagGroup: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
72399
72473
|
specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(),
|
|
72400
|
-
proto.clarifai.api.SpecialHandling.toObject, includeInstance)
|
|
72474
|
+
proto.clarifai.api.SpecialHandling.toObject, includeInstance),
|
|
72475
|
+
architecture: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
72401
72476
|
};
|
|
72402
72477
|
|
|
72403
72478
|
if (includeInstance) {
|
|
@@ -72474,6 +72549,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function(msg, read
|
|
|
72474
72549
|
reader.readMessage(value,proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
|
|
72475
72550
|
msg.addSpecialHandling(value);
|
|
72476
72551
|
break;
|
|
72552
|
+
case 10:
|
|
72553
|
+
var value = /** @type {string} */ (reader.readString());
|
|
72554
|
+
msg.setArchitecture(value);
|
|
72555
|
+
break;
|
|
72477
72556
|
default:
|
|
72478
72557
|
reader.skipField();
|
|
72479
72558
|
break;
|
|
@@ -72570,6 +72649,13 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function(message, writ
|
|
|
72570
72649
|
proto.clarifai.api.SpecialHandling.serializeBinaryToWriter
|
|
72571
72650
|
);
|
|
72572
72651
|
}
|
|
72652
|
+
f = message.getArchitecture();
|
|
72653
|
+
if (f.length > 0) {
|
|
72654
|
+
writer.writeString(
|
|
72655
|
+
10,
|
|
72656
|
+
f
|
|
72657
|
+
);
|
|
72658
|
+
}
|
|
72573
72659
|
};
|
|
72574
72660
|
|
|
72575
72661
|
|
|
@@ -72812,6 +72898,24 @@ proto.clarifai.api.InstanceType.prototype.clearSpecialHandlingList = function()
|
|
|
72812
72898
|
};
|
|
72813
72899
|
|
|
72814
72900
|
|
|
72901
|
+
/**
|
|
72902
|
+
* optional string architecture = 10;
|
|
72903
|
+
* @return {string}
|
|
72904
|
+
*/
|
|
72905
|
+
proto.clarifai.api.InstanceType.prototype.getArchitecture = function() {
|
|
72906
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
72907
|
+
};
|
|
72908
|
+
|
|
72909
|
+
|
|
72910
|
+
/**
|
|
72911
|
+
* @param {string} value
|
|
72912
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
72913
|
+
*/
|
|
72914
|
+
proto.clarifai.api.InstanceType.prototype.setArchitecture = function(value) {
|
|
72915
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
72916
|
+
};
|
|
72917
|
+
|
|
72918
|
+
|
|
72815
72919
|
|
|
72816
72920
|
|
|
72817
72921
|
|
|
@@ -88913,6 +89017,917 @@ proto.clarifai.api.MetricTypeLabels.prototype.clearLabelsList = function() {
|
|
|
88913
89017
|
};
|
|
88914
89018
|
|
|
88915
89019
|
|
|
89020
|
+
|
|
89021
|
+
|
|
89022
|
+
|
|
89023
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
89024
|
+
/**
|
|
89025
|
+
* Creates an object representation of this proto.
|
|
89026
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
89027
|
+
* Optional fields that are not set will be set to undefined.
|
|
89028
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
89029
|
+
* For the list of reserved names please see:
|
|
89030
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
89031
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
89032
|
+
* JSPB instance for transitional soy proto support:
|
|
89033
|
+
* http://goto/soy-param-migration
|
|
89034
|
+
* @return {!Object}
|
|
89035
|
+
*/
|
|
89036
|
+
proto.clarifai.api.Artifact.prototype.toObject = function(opt_includeInstance) {
|
|
89037
|
+
return proto.clarifai.api.Artifact.toObject(opt_includeInstance, this);
|
|
89038
|
+
};
|
|
89039
|
+
|
|
89040
|
+
|
|
89041
|
+
/**
|
|
89042
|
+
* Static version of the {@see toObject} method.
|
|
89043
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
89044
|
+
* the JSPB instance for transitional soy proto support:
|
|
89045
|
+
* http://goto/soy-param-migration
|
|
89046
|
+
* @param {!proto.clarifai.api.Artifact} msg The msg instance to transform.
|
|
89047
|
+
* @return {!Object}
|
|
89048
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
89049
|
+
*/
|
|
89050
|
+
proto.clarifai.api.Artifact.toObject = function(includeInstance, msg) {
|
|
89051
|
+
var f, obj = {
|
|
89052
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
89053
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
89054
|
+
appId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
89055
|
+
artifactVersion: (f = msg.getArtifactVersion()) && proto.clarifai.api.ArtifactVersion.toObject(includeInstance, f),
|
|
89056
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
89057
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
89058
|
+
deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
89059
|
+
};
|
|
89060
|
+
|
|
89061
|
+
if (includeInstance) {
|
|
89062
|
+
obj.$jspbMessageInstance = msg;
|
|
89063
|
+
}
|
|
89064
|
+
return obj;
|
|
89065
|
+
};
|
|
89066
|
+
}
|
|
89067
|
+
|
|
89068
|
+
|
|
89069
|
+
/**
|
|
89070
|
+
* Deserializes binary data (in protobuf wire format).
|
|
89071
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
89072
|
+
* @return {!proto.clarifai.api.Artifact}
|
|
89073
|
+
*/
|
|
89074
|
+
proto.clarifai.api.Artifact.deserializeBinary = function(bytes) {
|
|
89075
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
89076
|
+
var msg = new proto.clarifai.api.Artifact;
|
|
89077
|
+
return proto.clarifai.api.Artifact.deserializeBinaryFromReader(msg, reader);
|
|
89078
|
+
};
|
|
89079
|
+
|
|
89080
|
+
|
|
89081
|
+
/**
|
|
89082
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
89083
|
+
* given reader into the given message object.
|
|
89084
|
+
* @param {!proto.clarifai.api.Artifact} msg The message object to deserialize into.
|
|
89085
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
89086
|
+
* @return {!proto.clarifai.api.Artifact}
|
|
89087
|
+
*/
|
|
89088
|
+
proto.clarifai.api.Artifact.deserializeBinaryFromReader = function(msg, reader) {
|
|
89089
|
+
while (reader.nextField()) {
|
|
89090
|
+
if (reader.isEndGroup()) {
|
|
89091
|
+
break;
|
|
89092
|
+
}
|
|
89093
|
+
var field = reader.getFieldNumber();
|
|
89094
|
+
switch (field) {
|
|
89095
|
+
case 1:
|
|
89096
|
+
var value = /** @type {string} */ (reader.readString());
|
|
89097
|
+
msg.setId(value);
|
|
89098
|
+
break;
|
|
89099
|
+
case 2:
|
|
89100
|
+
var value = /** @type {string} */ (reader.readString());
|
|
89101
|
+
msg.setUserId(value);
|
|
89102
|
+
break;
|
|
89103
|
+
case 3:
|
|
89104
|
+
var value = /** @type {string} */ (reader.readString());
|
|
89105
|
+
msg.setAppId(value);
|
|
89106
|
+
break;
|
|
89107
|
+
case 5:
|
|
89108
|
+
var value = new proto.clarifai.api.ArtifactVersion;
|
|
89109
|
+
reader.readMessage(value,proto.clarifai.api.ArtifactVersion.deserializeBinaryFromReader);
|
|
89110
|
+
msg.setArtifactVersion(value);
|
|
89111
|
+
break;
|
|
89112
|
+
case 6:
|
|
89113
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
89114
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
89115
|
+
msg.setCreatedAt(value);
|
|
89116
|
+
break;
|
|
89117
|
+
case 7:
|
|
89118
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
89119
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
89120
|
+
msg.setModifiedAt(value);
|
|
89121
|
+
break;
|
|
89122
|
+
case 8:
|
|
89123
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
89124
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
89125
|
+
msg.setDeletedAt(value);
|
|
89126
|
+
break;
|
|
89127
|
+
default:
|
|
89128
|
+
reader.skipField();
|
|
89129
|
+
break;
|
|
89130
|
+
}
|
|
89131
|
+
}
|
|
89132
|
+
return msg;
|
|
89133
|
+
};
|
|
89134
|
+
|
|
89135
|
+
|
|
89136
|
+
/**
|
|
89137
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
89138
|
+
* @return {!Uint8Array}
|
|
89139
|
+
*/
|
|
89140
|
+
proto.clarifai.api.Artifact.prototype.serializeBinary = function() {
|
|
89141
|
+
var writer = new jspb.BinaryWriter();
|
|
89142
|
+
proto.clarifai.api.Artifact.serializeBinaryToWriter(this, writer);
|
|
89143
|
+
return writer.getResultBuffer();
|
|
89144
|
+
};
|
|
89145
|
+
|
|
89146
|
+
|
|
89147
|
+
/**
|
|
89148
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
89149
|
+
* format), writing to the given BinaryWriter.
|
|
89150
|
+
* @param {!proto.clarifai.api.Artifact} message
|
|
89151
|
+
* @param {!jspb.BinaryWriter} writer
|
|
89152
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
89153
|
+
*/
|
|
89154
|
+
proto.clarifai.api.Artifact.serializeBinaryToWriter = function(message, writer) {
|
|
89155
|
+
var f = undefined;
|
|
89156
|
+
f = message.getId();
|
|
89157
|
+
if (f.length > 0) {
|
|
89158
|
+
writer.writeString(
|
|
89159
|
+
1,
|
|
89160
|
+
f
|
|
89161
|
+
);
|
|
89162
|
+
}
|
|
89163
|
+
f = message.getUserId();
|
|
89164
|
+
if (f.length > 0) {
|
|
89165
|
+
writer.writeString(
|
|
89166
|
+
2,
|
|
89167
|
+
f
|
|
89168
|
+
);
|
|
89169
|
+
}
|
|
89170
|
+
f = message.getAppId();
|
|
89171
|
+
if (f.length > 0) {
|
|
89172
|
+
writer.writeString(
|
|
89173
|
+
3,
|
|
89174
|
+
f
|
|
89175
|
+
);
|
|
89176
|
+
}
|
|
89177
|
+
f = message.getArtifactVersion();
|
|
89178
|
+
if (f != null) {
|
|
89179
|
+
writer.writeMessage(
|
|
89180
|
+
5,
|
|
89181
|
+
f,
|
|
89182
|
+
proto.clarifai.api.ArtifactVersion.serializeBinaryToWriter
|
|
89183
|
+
);
|
|
89184
|
+
}
|
|
89185
|
+
f = message.getCreatedAt();
|
|
89186
|
+
if (f != null) {
|
|
89187
|
+
writer.writeMessage(
|
|
89188
|
+
6,
|
|
89189
|
+
f,
|
|
89190
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
89191
|
+
);
|
|
89192
|
+
}
|
|
89193
|
+
f = message.getModifiedAt();
|
|
89194
|
+
if (f != null) {
|
|
89195
|
+
writer.writeMessage(
|
|
89196
|
+
7,
|
|
89197
|
+
f,
|
|
89198
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
89199
|
+
);
|
|
89200
|
+
}
|
|
89201
|
+
f = message.getDeletedAt();
|
|
89202
|
+
if (f != null) {
|
|
89203
|
+
writer.writeMessage(
|
|
89204
|
+
8,
|
|
89205
|
+
f,
|
|
89206
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
89207
|
+
);
|
|
89208
|
+
}
|
|
89209
|
+
};
|
|
89210
|
+
|
|
89211
|
+
|
|
89212
|
+
/**
|
|
89213
|
+
* optional string id = 1;
|
|
89214
|
+
* @return {string}
|
|
89215
|
+
*/
|
|
89216
|
+
proto.clarifai.api.Artifact.prototype.getId = function() {
|
|
89217
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
89218
|
+
};
|
|
89219
|
+
|
|
89220
|
+
|
|
89221
|
+
/**
|
|
89222
|
+
* @param {string} value
|
|
89223
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89224
|
+
*/
|
|
89225
|
+
proto.clarifai.api.Artifact.prototype.setId = function(value) {
|
|
89226
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
89227
|
+
};
|
|
89228
|
+
|
|
89229
|
+
|
|
89230
|
+
/**
|
|
89231
|
+
* optional string user_id = 2;
|
|
89232
|
+
* @return {string}
|
|
89233
|
+
*/
|
|
89234
|
+
proto.clarifai.api.Artifact.prototype.getUserId = function() {
|
|
89235
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
89236
|
+
};
|
|
89237
|
+
|
|
89238
|
+
|
|
89239
|
+
/**
|
|
89240
|
+
* @param {string} value
|
|
89241
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89242
|
+
*/
|
|
89243
|
+
proto.clarifai.api.Artifact.prototype.setUserId = function(value) {
|
|
89244
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
89245
|
+
};
|
|
89246
|
+
|
|
89247
|
+
|
|
89248
|
+
/**
|
|
89249
|
+
* optional string app_id = 3;
|
|
89250
|
+
* @return {string}
|
|
89251
|
+
*/
|
|
89252
|
+
proto.clarifai.api.Artifact.prototype.getAppId = function() {
|
|
89253
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
89254
|
+
};
|
|
89255
|
+
|
|
89256
|
+
|
|
89257
|
+
/**
|
|
89258
|
+
* @param {string} value
|
|
89259
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89260
|
+
*/
|
|
89261
|
+
proto.clarifai.api.Artifact.prototype.setAppId = function(value) {
|
|
89262
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
89263
|
+
};
|
|
89264
|
+
|
|
89265
|
+
|
|
89266
|
+
/**
|
|
89267
|
+
* optional ArtifactVersion artifact_version = 5;
|
|
89268
|
+
* @return {?proto.clarifai.api.ArtifactVersion}
|
|
89269
|
+
*/
|
|
89270
|
+
proto.clarifai.api.Artifact.prototype.getArtifactVersion = function() {
|
|
89271
|
+
return /** @type{?proto.clarifai.api.ArtifactVersion} */ (
|
|
89272
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ArtifactVersion, 5));
|
|
89273
|
+
};
|
|
89274
|
+
|
|
89275
|
+
|
|
89276
|
+
/**
|
|
89277
|
+
* @param {?proto.clarifai.api.ArtifactVersion|undefined} value
|
|
89278
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89279
|
+
*/
|
|
89280
|
+
proto.clarifai.api.Artifact.prototype.setArtifactVersion = function(value) {
|
|
89281
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
89282
|
+
};
|
|
89283
|
+
|
|
89284
|
+
|
|
89285
|
+
/**
|
|
89286
|
+
* Clears the message field making it undefined.
|
|
89287
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89288
|
+
*/
|
|
89289
|
+
proto.clarifai.api.Artifact.prototype.clearArtifactVersion = function() {
|
|
89290
|
+
return this.setArtifactVersion(undefined);
|
|
89291
|
+
};
|
|
89292
|
+
|
|
89293
|
+
|
|
89294
|
+
/**
|
|
89295
|
+
* Returns whether this field is set.
|
|
89296
|
+
* @return {boolean}
|
|
89297
|
+
*/
|
|
89298
|
+
proto.clarifai.api.Artifact.prototype.hasArtifactVersion = function() {
|
|
89299
|
+
return jspb.Message.getField(this, 5) != null;
|
|
89300
|
+
};
|
|
89301
|
+
|
|
89302
|
+
|
|
89303
|
+
/**
|
|
89304
|
+
* optional google.protobuf.Timestamp created_at = 6;
|
|
89305
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
89306
|
+
*/
|
|
89307
|
+
proto.clarifai.api.Artifact.prototype.getCreatedAt = function() {
|
|
89308
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
89309
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
89310
|
+
};
|
|
89311
|
+
|
|
89312
|
+
|
|
89313
|
+
/**
|
|
89314
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
89315
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89316
|
+
*/
|
|
89317
|
+
proto.clarifai.api.Artifact.prototype.setCreatedAt = function(value) {
|
|
89318
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
89319
|
+
};
|
|
89320
|
+
|
|
89321
|
+
|
|
89322
|
+
/**
|
|
89323
|
+
* Clears the message field making it undefined.
|
|
89324
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89325
|
+
*/
|
|
89326
|
+
proto.clarifai.api.Artifact.prototype.clearCreatedAt = function() {
|
|
89327
|
+
return this.setCreatedAt(undefined);
|
|
89328
|
+
};
|
|
89329
|
+
|
|
89330
|
+
|
|
89331
|
+
/**
|
|
89332
|
+
* Returns whether this field is set.
|
|
89333
|
+
* @return {boolean}
|
|
89334
|
+
*/
|
|
89335
|
+
proto.clarifai.api.Artifact.prototype.hasCreatedAt = function() {
|
|
89336
|
+
return jspb.Message.getField(this, 6) != null;
|
|
89337
|
+
};
|
|
89338
|
+
|
|
89339
|
+
|
|
89340
|
+
/**
|
|
89341
|
+
* optional google.protobuf.Timestamp modified_at = 7;
|
|
89342
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
89343
|
+
*/
|
|
89344
|
+
proto.clarifai.api.Artifact.prototype.getModifiedAt = function() {
|
|
89345
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
89346
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
89347
|
+
};
|
|
89348
|
+
|
|
89349
|
+
|
|
89350
|
+
/**
|
|
89351
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
89352
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89353
|
+
*/
|
|
89354
|
+
proto.clarifai.api.Artifact.prototype.setModifiedAt = function(value) {
|
|
89355
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
89356
|
+
};
|
|
89357
|
+
|
|
89358
|
+
|
|
89359
|
+
/**
|
|
89360
|
+
* Clears the message field making it undefined.
|
|
89361
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89362
|
+
*/
|
|
89363
|
+
proto.clarifai.api.Artifact.prototype.clearModifiedAt = function() {
|
|
89364
|
+
return this.setModifiedAt(undefined);
|
|
89365
|
+
};
|
|
89366
|
+
|
|
89367
|
+
|
|
89368
|
+
/**
|
|
89369
|
+
* Returns whether this field is set.
|
|
89370
|
+
* @return {boolean}
|
|
89371
|
+
*/
|
|
89372
|
+
proto.clarifai.api.Artifact.prototype.hasModifiedAt = function() {
|
|
89373
|
+
return jspb.Message.getField(this, 7) != null;
|
|
89374
|
+
};
|
|
89375
|
+
|
|
89376
|
+
|
|
89377
|
+
/**
|
|
89378
|
+
* optional google.protobuf.Timestamp deleted_at = 8;
|
|
89379
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
89380
|
+
*/
|
|
89381
|
+
proto.clarifai.api.Artifact.prototype.getDeletedAt = function() {
|
|
89382
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
89383
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
89384
|
+
};
|
|
89385
|
+
|
|
89386
|
+
|
|
89387
|
+
/**
|
|
89388
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
89389
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89390
|
+
*/
|
|
89391
|
+
proto.clarifai.api.Artifact.prototype.setDeletedAt = function(value) {
|
|
89392
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
89393
|
+
};
|
|
89394
|
+
|
|
89395
|
+
|
|
89396
|
+
/**
|
|
89397
|
+
* Clears the message field making it undefined.
|
|
89398
|
+
* @return {!proto.clarifai.api.Artifact} returns this
|
|
89399
|
+
*/
|
|
89400
|
+
proto.clarifai.api.Artifact.prototype.clearDeletedAt = function() {
|
|
89401
|
+
return this.setDeletedAt(undefined);
|
|
89402
|
+
};
|
|
89403
|
+
|
|
89404
|
+
|
|
89405
|
+
/**
|
|
89406
|
+
* Returns whether this field is set.
|
|
89407
|
+
* @return {boolean}
|
|
89408
|
+
*/
|
|
89409
|
+
proto.clarifai.api.Artifact.prototype.hasDeletedAt = function() {
|
|
89410
|
+
return jspb.Message.getField(this, 8) != null;
|
|
89411
|
+
};
|
|
89412
|
+
|
|
89413
|
+
|
|
89414
|
+
|
|
89415
|
+
|
|
89416
|
+
|
|
89417
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
89418
|
+
/**
|
|
89419
|
+
* Creates an object representation of this proto.
|
|
89420
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
89421
|
+
* Optional fields that are not set will be set to undefined.
|
|
89422
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
89423
|
+
* For the list of reserved names please see:
|
|
89424
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
89425
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
89426
|
+
* JSPB instance for transitional soy proto support:
|
|
89427
|
+
* http://goto/soy-param-migration
|
|
89428
|
+
* @return {!Object}
|
|
89429
|
+
*/
|
|
89430
|
+
proto.clarifai.api.ArtifactVersion.prototype.toObject = function(opt_includeInstance) {
|
|
89431
|
+
return proto.clarifai.api.ArtifactVersion.toObject(opt_includeInstance, this);
|
|
89432
|
+
};
|
|
89433
|
+
|
|
89434
|
+
|
|
89435
|
+
/**
|
|
89436
|
+
* Static version of the {@see toObject} method.
|
|
89437
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
89438
|
+
* the JSPB instance for transitional soy proto support:
|
|
89439
|
+
* http://goto/soy-param-migration
|
|
89440
|
+
* @param {!proto.clarifai.api.ArtifactVersion} msg The msg instance to transform.
|
|
89441
|
+
* @return {!Object}
|
|
89442
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
89443
|
+
*/
|
|
89444
|
+
proto.clarifai.api.ArtifactVersion.toObject = function(includeInstance, msg) {
|
|
89445
|
+
var f, obj = {
|
|
89446
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
89447
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
89448
|
+
artifact: (f = msg.getArtifact()) && proto.clarifai.api.Artifact.toObject(includeInstance, f),
|
|
89449
|
+
upload: (f = msg.getUpload()) && proto.clarifai.api.Upload.toObject(includeInstance, f),
|
|
89450
|
+
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
89451
|
+
expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
89452
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
89453
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
89454
|
+
deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
89455
|
+
};
|
|
89456
|
+
|
|
89457
|
+
if (includeInstance) {
|
|
89458
|
+
obj.$jspbMessageInstance = msg;
|
|
89459
|
+
}
|
|
89460
|
+
return obj;
|
|
89461
|
+
};
|
|
89462
|
+
}
|
|
89463
|
+
|
|
89464
|
+
|
|
89465
|
+
/**
|
|
89466
|
+
* Deserializes binary data (in protobuf wire format).
|
|
89467
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
89468
|
+
* @return {!proto.clarifai.api.ArtifactVersion}
|
|
89469
|
+
*/
|
|
89470
|
+
proto.clarifai.api.ArtifactVersion.deserializeBinary = function(bytes) {
|
|
89471
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
89472
|
+
var msg = new proto.clarifai.api.ArtifactVersion;
|
|
89473
|
+
return proto.clarifai.api.ArtifactVersion.deserializeBinaryFromReader(msg, reader);
|
|
89474
|
+
};
|
|
89475
|
+
|
|
89476
|
+
|
|
89477
|
+
/**
|
|
89478
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
89479
|
+
* given reader into the given message object.
|
|
89480
|
+
* @param {!proto.clarifai.api.ArtifactVersion} msg The message object to deserialize into.
|
|
89481
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
89482
|
+
* @return {!proto.clarifai.api.ArtifactVersion}
|
|
89483
|
+
*/
|
|
89484
|
+
proto.clarifai.api.ArtifactVersion.deserializeBinaryFromReader = function(msg, reader) {
|
|
89485
|
+
while (reader.nextField()) {
|
|
89486
|
+
if (reader.isEndGroup()) {
|
|
89487
|
+
break;
|
|
89488
|
+
}
|
|
89489
|
+
var field = reader.getFieldNumber();
|
|
89490
|
+
switch (field) {
|
|
89491
|
+
case 1:
|
|
89492
|
+
var value = /** @type {string} */ (reader.readString());
|
|
89493
|
+
msg.setId(value);
|
|
89494
|
+
break;
|
|
89495
|
+
case 2:
|
|
89496
|
+
var value = /** @type {string} */ (reader.readString());
|
|
89497
|
+
msg.setDescription(value);
|
|
89498
|
+
break;
|
|
89499
|
+
case 3:
|
|
89500
|
+
var value = new proto.clarifai.api.Artifact;
|
|
89501
|
+
reader.readMessage(value,proto.clarifai.api.Artifact.deserializeBinaryFromReader);
|
|
89502
|
+
msg.setArtifact(value);
|
|
89503
|
+
break;
|
|
89504
|
+
case 4:
|
|
89505
|
+
var value = new proto.clarifai.api.Upload;
|
|
89506
|
+
reader.readMessage(value,proto.clarifai.api.Upload.deserializeBinaryFromReader);
|
|
89507
|
+
msg.setUpload(value);
|
|
89508
|
+
break;
|
|
89509
|
+
case 5:
|
|
89510
|
+
var value = new proto.clarifai.api.Visibility;
|
|
89511
|
+
reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
89512
|
+
msg.setVisibility(value);
|
|
89513
|
+
break;
|
|
89514
|
+
case 6:
|
|
89515
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
89516
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
89517
|
+
msg.setExpiresAt(value);
|
|
89518
|
+
break;
|
|
89519
|
+
case 7:
|
|
89520
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
89521
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
89522
|
+
msg.setCreatedAt(value);
|
|
89523
|
+
break;
|
|
89524
|
+
case 8:
|
|
89525
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
89526
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
89527
|
+
msg.setModifiedAt(value);
|
|
89528
|
+
break;
|
|
89529
|
+
case 9:
|
|
89530
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
89531
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
89532
|
+
msg.setDeletedAt(value);
|
|
89533
|
+
break;
|
|
89534
|
+
default:
|
|
89535
|
+
reader.skipField();
|
|
89536
|
+
break;
|
|
89537
|
+
}
|
|
89538
|
+
}
|
|
89539
|
+
return msg;
|
|
89540
|
+
};
|
|
89541
|
+
|
|
89542
|
+
|
|
89543
|
+
/**
|
|
89544
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
89545
|
+
* @return {!Uint8Array}
|
|
89546
|
+
*/
|
|
89547
|
+
proto.clarifai.api.ArtifactVersion.prototype.serializeBinary = function() {
|
|
89548
|
+
var writer = new jspb.BinaryWriter();
|
|
89549
|
+
proto.clarifai.api.ArtifactVersion.serializeBinaryToWriter(this, writer);
|
|
89550
|
+
return writer.getResultBuffer();
|
|
89551
|
+
};
|
|
89552
|
+
|
|
89553
|
+
|
|
89554
|
+
/**
|
|
89555
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
89556
|
+
* format), writing to the given BinaryWriter.
|
|
89557
|
+
* @param {!proto.clarifai.api.ArtifactVersion} message
|
|
89558
|
+
* @param {!jspb.BinaryWriter} writer
|
|
89559
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
89560
|
+
*/
|
|
89561
|
+
proto.clarifai.api.ArtifactVersion.serializeBinaryToWriter = function(message, writer) {
|
|
89562
|
+
var f = undefined;
|
|
89563
|
+
f = message.getId();
|
|
89564
|
+
if (f.length > 0) {
|
|
89565
|
+
writer.writeString(
|
|
89566
|
+
1,
|
|
89567
|
+
f
|
|
89568
|
+
);
|
|
89569
|
+
}
|
|
89570
|
+
f = message.getDescription();
|
|
89571
|
+
if (f.length > 0) {
|
|
89572
|
+
writer.writeString(
|
|
89573
|
+
2,
|
|
89574
|
+
f
|
|
89575
|
+
);
|
|
89576
|
+
}
|
|
89577
|
+
f = message.getArtifact();
|
|
89578
|
+
if (f != null) {
|
|
89579
|
+
writer.writeMessage(
|
|
89580
|
+
3,
|
|
89581
|
+
f,
|
|
89582
|
+
proto.clarifai.api.Artifact.serializeBinaryToWriter
|
|
89583
|
+
);
|
|
89584
|
+
}
|
|
89585
|
+
f = message.getUpload();
|
|
89586
|
+
if (f != null) {
|
|
89587
|
+
writer.writeMessage(
|
|
89588
|
+
4,
|
|
89589
|
+
f,
|
|
89590
|
+
proto.clarifai.api.Upload.serializeBinaryToWriter
|
|
89591
|
+
);
|
|
89592
|
+
}
|
|
89593
|
+
f = message.getVisibility();
|
|
89594
|
+
if (f != null) {
|
|
89595
|
+
writer.writeMessage(
|
|
89596
|
+
5,
|
|
89597
|
+
f,
|
|
89598
|
+
proto.clarifai.api.Visibility.serializeBinaryToWriter
|
|
89599
|
+
);
|
|
89600
|
+
}
|
|
89601
|
+
f = message.getExpiresAt();
|
|
89602
|
+
if (f != null) {
|
|
89603
|
+
writer.writeMessage(
|
|
89604
|
+
6,
|
|
89605
|
+
f,
|
|
89606
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
89607
|
+
);
|
|
89608
|
+
}
|
|
89609
|
+
f = message.getCreatedAt();
|
|
89610
|
+
if (f != null) {
|
|
89611
|
+
writer.writeMessage(
|
|
89612
|
+
7,
|
|
89613
|
+
f,
|
|
89614
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
89615
|
+
);
|
|
89616
|
+
}
|
|
89617
|
+
f = message.getModifiedAt();
|
|
89618
|
+
if (f != null) {
|
|
89619
|
+
writer.writeMessage(
|
|
89620
|
+
8,
|
|
89621
|
+
f,
|
|
89622
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
89623
|
+
);
|
|
89624
|
+
}
|
|
89625
|
+
f = message.getDeletedAt();
|
|
89626
|
+
if (f != null) {
|
|
89627
|
+
writer.writeMessage(
|
|
89628
|
+
9,
|
|
89629
|
+
f,
|
|
89630
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
89631
|
+
);
|
|
89632
|
+
}
|
|
89633
|
+
};
|
|
89634
|
+
|
|
89635
|
+
|
|
89636
|
+
/**
|
|
89637
|
+
* optional string id = 1;
|
|
89638
|
+
* @return {string}
|
|
89639
|
+
*/
|
|
89640
|
+
proto.clarifai.api.ArtifactVersion.prototype.getId = function() {
|
|
89641
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
89642
|
+
};
|
|
89643
|
+
|
|
89644
|
+
|
|
89645
|
+
/**
|
|
89646
|
+
* @param {string} value
|
|
89647
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89648
|
+
*/
|
|
89649
|
+
proto.clarifai.api.ArtifactVersion.prototype.setId = function(value) {
|
|
89650
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
89651
|
+
};
|
|
89652
|
+
|
|
89653
|
+
|
|
89654
|
+
/**
|
|
89655
|
+
* optional string description = 2;
|
|
89656
|
+
* @return {string}
|
|
89657
|
+
*/
|
|
89658
|
+
proto.clarifai.api.ArtifactVersion.prototype.getDescription = function() {
|
|
89659
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
89660
|
+
};
|
|
89661
|
+
|
|
89662
|
+
|
|
89663
|
+
/**
|
|
89664
|
+
* @param {string} value
|
|
89665
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89666
|
+
*/
|
|
89667
|
+
proto.clarifai.api.ArtifactVersion.prototype.setDescription = function(value) {
|
|
89668
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
89669
|
+
};
|
|
89670
|
+
|
|
89671
|
+
|
|
89672
|
+
/**
|
|
89673
|
+
* optional Artifact artifact = 3;
|
|
89674
|
+
* @return {?proto.clarifai.api.Artifact}
|
|
89675
|
+
*/
|
|
89676
|
+
proto.clarifai.api.ArtifactVersion.prototype.getArtifact = function() {
|
|
89677
|
+
return /** @type{?proto.clarifai.api.Artifact} */ (
|
|
89678
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Artifact, 3));
|
|
89679
|
+
};
|
|
89680
|
+
|
|
89681
|
+
|
|
89682
|
+
/**
|
|
89683
|
+
* @param {?proto.clarifai.api.Artifact|undefined} value
|
|
89684
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89685
|
+
*/
|
|
89686
|
+
proto.clarifai.api.ArtifactVersion.prototype.setArtifact = function(value) {
|
|
89687
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
89688
|
+
};
|
|
89689
|
+
|
|
89690
|
+
|
|
89691
|
+
/**
|
|
89692
|
+
* Clears the message field making it undefined.
|
|
89693
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89694
|
+
*/
|
|
89695
|
+
proto.clarifai.api.ArtifactVersion.prototype.clearArtifact = function() {
|
|
89696
|
+
return this.setArtifact(undefined);
|
|
89697
|
+
};
|
|
89698
|
+
|
|
89699
|
+
|
|
89700
|
+
/**
|
|
89701
|
+
* Returns whether this field is set.
|
|
89702
|
+
* @return {boolean}
|
|
89703
|
+
*/
|
|
89704
|
+
proto.clarifai.api.ArtifactVersion.prototype.hasArtifact = function() {
|
|
89705
|
+
return jspb.Message.getField(this, 3) != null;
|
|
89706
|
+
};
|
|
89707
|
+
|
|
89708
|
+
|
|
89709
|
+
/**
|
|
89710
|
+
* optional Upload upload = 4;
|
|
89711
|
+
* @return {?proto.clarifai.api.Upload}
|
|
89712
|
+
*/
|
|
89713
|
+
proto.clarifai.api.ArtifactVersion.prototype.getUpload = function() {
|
|
89714
|
+
return /** @type{?proto.clarifai.api.Upload} */ (
|
|
89715
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Upload, 4));
|
|
89716
|
+
};
|
|
89717
|
+
|
|
89718
|
+
|
|
89719
|
+
/**
|
|
89720
|
+
* @param {?proto.clarifai.api.Upload|undefined} value
|
|
89721
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89722
|
+
*/
|
|
89723
|
+
proto.clarifai.api.ArtifactVersion.prototype.setUpload = function(value) {
|
|
89724
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
89725
|
+
};
|
|
89726
|
+
|
|
89727
|
+
|
|
89728
|
+
/**
|
|
89729
|
+
* Clears the message field making it undefined.
|
|
89730
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89731
|
+
*/
|
|
89732
|
+
proto.clarifai.api.ArtifactVersion.prototype.clearUpload = function() {
|
|
89733
|
+
return this.setUpload(undefined);
|
|
89734
|
+
};
|
|
89735
|
+
|
|
89736
|
+
|
|
89737
|
+
/**
|
|
89738
|
+
* Returns whether this field is set.
|
|
89739
|
+
* @return {boolean}
|
|
89740
|
+
*/
|
|
89741
|
+
proto.clarifai.api.ArtifactVersion.prototype.hasUpload = function() {
|
|
89742
|
+
return jspb.Message.getField(this, 4) != null;
|
|
89743
|
+
};
|
|
89744
|
+
|
|
89745
|
+
|
|
89746
|
+
/**
|
|
89747
|
+
* optional Visibility visibility = 5;
|
|
89748
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
89749
|
+
*/
|
|
89750
|
+
proto.clarifai.api.ArtifactVersion.prototype.getVisibility = function() {
|
|
89751
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (
|
|
89752
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 5));
|
|
89753
|
+
};
|
|
89754
|
+
|
|
89755
|
+
|
|
89756
|
+
/**
|
|
89757
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
89758
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89759
|
+
*/
|
|
89760
|
+
proto.clarifai.api.ArtifactVersion.prototype.setVisibility = function(value) {
|
|
89761
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
89762
|
+
};
|
|
89763
|
+
|
|
89764
|
+
|
|
89765
|
+
/**
|
|
89766
|
+
* Clears the message field making it undefined.
|
|
89767
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89768
|
+
*/
|
|
89769
|
+
proto.clarifai.api.ArtifactVersion.prototype.clearVisibility = function() {
|
|
89770
|
+
return this.setVisibility(undefined);
|
|
89771
|
+
};
|
|
89772
|
+
|
|
89773
|
+
|
|
89774
|
+
/**
|
|
89775
|
+
* Returns whether this field is set.
|
|
89776
|
+
* @return {boolean}
|
|
89777
|
+
*/
|
|
89778
|
+
proto.clarifai.api.ArtifactVersion.prototype.hasVisibility = function() {
|
|
89779
|
+
return jspb.Message.getField(this, 5) != null;
|
|
89780
|
+
};
|
|
89781
|
+
|
|
89782
|
+
|
|
89783
|
+
/**
|
|
89784
|
+
* optional google.protobuf.Timestamp expires_at = 6;
|
|
89785
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
89786
|
+
*/
|
|
89787
|
+
proto.clarifai.api.ArtifactVersion.prototype.getExpiresAt = function() {
|
|
89788
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
89789
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
89790
|
+
};
|
|
89791
|
+
|
|
89792
|
+
|
|
89793
|
+
/**
|
|
89794
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
89795
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89796
|
+
*/
|
|
89797
|
+
proto.clarifai.api.ArtifactVersion.prototype.setExpiresAt = function(value) {
|
|
89798
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
89799
|
+
};
|
|
89800
|
+
|
|
89801
|
+
|
|
89802
|
+
/**
|
|
89803
|
+
* Clears the message field making it undefined.
|
|
89804
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89805
|
+
*/
|
|
89806
|
+
proto.clarifai.api.ArtifactVersion.prototype.clearExpiresAt = function() {
|
|
89807
|
+
return this.setExpiresAt(undefined);
|
|
89808
|
+
};
|
|
89809
|
+
|
|
89810
|
+
|
|
89811
|
+
/**
|
|
89812
|
+
* Returns whether this field is set.
|
|
89813
|
+
* @return {boolean}
|
|
89814
|
+
*/
|
|
89815
|
+
proto.clarifai.api.ArtifactVersion.prototype.hasExpiresAt = function() {
|
|
89816
|
+
return jspb.Message.getField(this, 6) != null;
|
|
89817
|
+
};
|
|
89818
|
+
|
|
89819
|
+
|
|
89820
|
+
/**
|
|
89821
|
+
* optional google.protobuf.Timestamp created_at = 7;
|
|
89822
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
89823
|
+
*/
|
|
89824
|
+
proto.clarifai.api.ArtifactVersion.prototype.getCreatedAt = function() {
|
|
89825
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
89826
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
89827
|
+
};
|
|
89828
|
+
|
|
89829
|
+
|
|
89830
|
+
/**
|
|
89831
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
89832
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89833
|
+
*/
|
|
89834
|
+
proto.clarifai.api.ArtifactVersion.prototype.setCreatedAt = function(value) {
|
|
89835
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
89836
|
+
};
|
|
89837
|
+
|
|
89838
|
+
|
|
89839
|
+
/**
|
|
89840
|
+
* Clears the message field making it undefined.
|
|
89841
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89842
|
+
*/
|
|
89843
|
+
proto.clarifai.api.ArtifactVersion.prototype.clearCreatedAt = function() {
|
|
89844
|
+
return this.setCreatedAt(undefined);
|
|
89845
|
+
};
|
|
89846
|
+
|
|
89847
|
+
|
|
89848
|
+
/**
|
|
89849
|
+
* Returns whether this field is set.
|
|
89850
|
+
* @return {boolean}
|
|
89851
|
+
*/
|
|
89852
|
+
proto.clarifai.api.ArtifactVersion.prototype.hasCreatedAt = function() {
|
|
89853
|
+
return jspb.Message.getField(this, 7) != null;
|
|
89854
|
+
};
|
|
89855
|
+
|
|
89856
|
+
|
|
89857
|
+
/**
|
|
89858
|
+
* optional google.protobuf.Timestamp modified_at = 8;
|
|
89859
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
89860
|
+
*/
|
|
89861
|
+
proto.clarifai.api.ArtifactVersion.prototype.getModifiedAt = function() {
|
|
89862
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
89863
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
89864
|
+
};
|
|
89865
|
+
|
|
89866
|
+
|
|
89867
|
+
/**
|
|
89868
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
89869
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89870
|
+
*/
|
|
89871
|
+
proto.clarifai.api.ArtifactVersion.prototype.setModifiedAt = function(value) {
|
|
89872
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
89873
|
+
};
|
|
89874
|
+
|
|
89875
|
+
|
|
89876
|
+
/**
|
|
89877
|
+
* Clears the message field making it undefined.
|
|
89878
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89879
|
+
*/
|
|
89880
|
+
proto.clarifai.api.ArtifactVersion.prototype.clearModifiedAt = function() {
|
|
89881
|
+
return this.setModifiedAt(undefined);
|
|
89882
|
+
};
|
|
89883
|
+
|
|
89884
|
+
|
|
89885
|
+
/**
|
|
89886
|
+
* Returns whether this field is set.
|
|
89887
|
+
* @return {boolean}
|
|
89888
|
+
*/
|
|
89889
|
+
proto.clarifai.api.ArtifactVersion.prototype.hasModifiedAt = function() {
|
|
89890
|
+
return jspb.Message.getField(this, 8) != null;
|
|
89891
|
+
};
|
|
89892
|
+
|
|
89893
|
+
|
|
89894
|
+
/**
|
|
89895
|
+
* optional google.protobuf.Timestamp deleted_at = 9;
|
|
89896
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
89897
|
+
*/
|
|
89898
|
+
proto.clarifai.api.ArtifactVersion.prototype.getDeletedAt = function() {
|
|
89899
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
89900
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
89901
|
+
};
|
|
89902
|
+
|
|
89903
|
+
|
|
89904
|
+
/**
|
|
89905
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
89906
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89907
|
+
*/
|
|
89908
|
+
proto.clarifai.api.ArtifactVersion.prototype.setDeletedAt = function(value) {
|
|
89909
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
89910
|
+
};
|
|
89911
|
+
|
|
89912
|
+
|
|
89913
|
+
/**
|
|
89914
|
+
* Clears the message field making it undefined.
|
|
89915
|
+
* @return {!proto.clarifai.api.ArtifactVersion} returns this
|
|
89916
|
+
*/
|
|
89917
|
+
proto.clarifai.api.ArtifactVersion.prototype.clearDeletedAt = function() {
|
|
89918
|
+
return this.setDeletedAt(undefined);
|
|
89919
|
+
};
|
|
89920
|
+
|
|
89921
|
+
|
|
89922
|
+
/**
|
|
89923
|
+
* Returns whether this field is set.
|
|
89924
|
+
* @return {boolean}
|
|
89925
|
+
*/
|
|
89926
|
+
proto.clarifai.api.ArtifactVersion.prototype.hasDeletedAt = function() {
|
|
89927
|
+
return jspb.Message.getField(this, 9) != null;
|
|
89928
|
+
};
|
|
89929
|
+
|
|
89930
|
+
|
|
88916
89931
|
/**
|
|
88917
89932
|
* @enum {number}
|
|
88918
89933
|
*/
|