clarifai-web-grpc 10.7.1 → 10.8.0
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 +1052 -4
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +502 -1
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +3 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +1052 -4
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +502 -1
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +3 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +177 -2
- package/proto/clarifai/api/resources_pb.js +1321 -4
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +12 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +61 -0
- package/proto/clarifai/api/service_pb.d.ts +74 -0
- package/proto/clarifai/api/service_pb.js +629 -1
- package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -0
- package/proto/clarifai/auth/scope/scope_pb.js +3 -1
|
@@ -57,7 +57,10 @@ goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
|
57
57
|
goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
|
|
58
58
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
59
59
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
60
|
-
goog.exportSymbol('proto.clarifai.api.
|
|
60
|
+
goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
|
|
61
|
+
goog.exportSymbol('proto.clarifai.api.AuditLogQuery', null, global);
|
|
62
|
+
goog.exportSymbol('proto.clarifai.api.AuditLogTarget', null, global);
|
|
63
|
+
goog.exportSymbol('proto.clarifai.api.AuditLogTarget.TargetCase', null, global);
|
|
61
64
|
goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
|
|
62
65
|
goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
|
|
63
66
|
goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
|
|
@@ -124,6 +127,7 @@ goog.exportSymbol('proto.clarifai.api.EvalInfo', null, global);
|
|
|
124
127
|
goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global);
|
|
125
128
|
goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
|
|
126
129
|
goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
|
|
130
|
+
goog.exportSymbol('proto.clarifai.api.EventType', null, global);
|
|
127
131
|
goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
|
|
128
132
|
goog.exportSymbol('proto.clarifai.api.ExtendedMetrics', null, global);
|
|
129
133
|
goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global);
|
|
@@ -166,10 +170,12 @@ goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
|
|
|
166
170
|
goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
|
|
167
171
|
goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
|
|
168
172
|
goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
|
|
173
|
+
goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
|
|
169
174
|
goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
|
|
170
175
|
goog.exportSymbol('proto.clarifai.api.Mask', null, global);
|
|
171
176
|
goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
|
|
172
177
|
goog.exportSymbol('proto.clarifai.api.Model', null, global);
|
|
178
|
+
goog.exportSymbol('proto.clarifai.api.Model.Source', null, global);
|
|
173
179
|
goog.exportSymbol('proto.clarifai.api.ModelLayerInfo', null, global);
|
|
174
180
|
goog.exportSymbol('proto.clarifai.api.ModelPredictConfig', null, global);
|
|
175
181
|
goog.exportSymbol('proto.clarifai.api.ModelQuery', null, global);
|
|
@@ -232,6 +238,7 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
|
|
|
232
238
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
|
|
233
239
|
goog.exportSymbol('proto.clarifai.api.Task', null, global);
|
|
234
240
|
goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
|
|
241
|
+
goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
|
|
235
242
|
goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
|
|
236
243
|
goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
|
|
237
244
|
goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
@@ -4740,6 +4747,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4740
4747
|
*/
|
|
4741
4748
|
proto.clarifai.api.ProcessingInfo.displayName = 'proto.clarifai.api.ProcessingInfo';
|
|
4742
4749
|
}
|
|
4750
|
+
/**
|
|
4751
|
+
* Generated by JsPbCodeGenerator.
|
|
4752
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4753
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4754
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4755
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4756
|
+
* valid.
|
|
4757
|
+
* @extends {jspb.Message}
|
|
4758
|
+
* @constructor
|
|
4759
|
+
*/
|
|
4760
|
+
proto.clarifai.api.AuditLogTarget = function (opt_data) {
|
|
4761
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.AuditLogTarget.oneofGroups_);
|
|
4762
|
+
};
|
|
4763
|
+
goog.inherits(proto.clarifai.api.AuditLogTarget, jspb.Message);
|
|
4764
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4765
|
+
/**
|
|
4766
|
+
* @public
|
|
4767
|
+
* @override
|
|
4768
|
+
*/
|
|
4769
|
+
proto.clarifai.api.AuditLogTarget.displayName = 'proto.clarifai.api.AuditLogTarget';
|
|
4770
|
+
}
|
|
4771
|
+
/**
|
|
4772
|
+
* Generated by JsPbCodeGenerator.
|
|
4773
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4774
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4775
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4776
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4777
|
+
* valid.
|
|
4778
|
+
* @extends {jspb.Message}
|
|
4779
|
+
* @constructor
|
|
4780
|
+
*/
|
|
4781
|
+
proto.clarifai.api.AuditLogEntry = function (opt_data) {
|
|
4782
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.AuditLogEntry.repeatedFields_, null);
|
|
4783
|
+
};
|
|
4784
|
+
goog.inherits(proto.clarifai.api.AuditLogEntry, jspb.Message);
|
|
4785
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4786
|
+
/**
|
|
4787
|
+
* @public
|
|
4788
|
+
* @override
|
|
4789
|
+
*/
|
|
4790
|
+
proto.clarifai.api.AuditLogEntry.displayName = 'proto.clarifai.api.AuditLogEntry';
|
|
4791
|
+
}
|
|
4792
|
+
/**
|
|
4793
|
+
* Generated by JsPbCodeGenerator.
|
|
4794
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4795
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4796
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4797
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4798
|
+
* valid.
|
|
4799
|
+
* @extends {jspb.Message}
|
|
4800
|
+
* @constructor
|
|
4801
|
+
*/
|
|
4802
|
+
proto.clarifai.api.AuditLogQuery = function (opt_data) {
|
|
4803
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.AuditLogQuery.repeatedFields_, null);
|
|
4804
|
+
};
|
|
4805
|
+
goog.inherits(proto.clarifai.api.AuditLogQuery, jspb.Message);
|
|
4806
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4807
|
+
/**
|
|
4808
|
+
* @public
|
|
4809
|
+
* @override
|
|
4810
|
+
*/
|
|
4811
|
+
proto.clarifai.api.AuditLogQuery.displayName = 'proto.clarifai.api.AuditLogQuery';
|
|
4812
|
+
}
|
|
4743
4813
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4744
4814
|
/**
|
|
4745
4815
|
* Creates an object representation of this proto.
|
|
@@ -19813,7 +19883,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
19813
19883
|
starCount: jspb.Message.getFieldWithDefault(msg, 23, 0),
|
|
19814
19884
|
workflowRecommended: (f = msg.getWorkflowRecommended()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
|
|
19815
19885
|
bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
|
|
19816
|
-
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
19886
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
|
|
19887
|
+
licenseType: jspb.Message.getFieldWithDefault(msg, 35, 0),
|
|
19888
|
+
source: jspb.Message.getFieldWithDefault(msg, 36, 0),
|
|
19889
|
+
creator: jspb.Message.getFieldWithDefault(msg, 37, "")
|
|
19817
19890
|
};
|
|
19818
19891
|
if (includeInstance) {
|
|
19819
19892
|
obj.$jspbMessageInstance = msg;
|
|
@@ -19965,6 +20038,18 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
19965
20038
|
reader.readMessage(value, proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
19966
20039
|
msg.setImage(value);
|
|
19967
20040
|
break;
|
|
20041
|
+
case 35:
|
|
20042
|
+
var value = /** @type {!proto.clarifai.api.LicenseType} */ (reader.readEnum());
|
|
20043
|
+
msg.setLicenseType(value);
|
|
20044
|
+
break;
|
|
20045
|
+
case 36:
|
|
20046
|
+
var value = /** @type {!proto.clarifai.api.Model.Source} */ (reader.readEnum());
|
|
20047
|
+
msg.setSource(value);
|
|
20048
|
+
break;
|
|
20049
|
+
case 37:
|
|
20050
|
+
var value = /** @type {string} */ (reader.readString());
|
|
20051
|
+
msg.setCreator(value);
|
|
20052
|
+
break;
|
|
19968
20053
|
default:
|
|
19969
20054
|
reader.skipField();
|
|
19970
20055
|
break;
|
|
@@ -20098,6 +20183,26 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function (message, writer) {
|
|
|
20098
20183
|
if (f != null) {
|
|
20099
20184
|
writer.writeMessage(34, f, proto.clarifai.api.Image.serializeBinaryToWriter);
|
|
20100
20185
|
}
|
|
20186
|
+
f = message.getLicenseType();
|
|
20187
|
+
if (f !== 0.0) {
|
|
20188
|
+
writer.writeEnum(35, f);
|
|
20189
|
+
}
|
|
20190
|
+
f = message.getSource();
|
|
20191
|
+
if (f !== 0.0) {
|
|
20192
|
+
writer.writeEnum(36, f);
|
|
20193
|
+
}
|
|
20194
|
+
f = message.getCreator();
|
|
20195
|
+
if (f.length > 0) {
|
|
20196
|
+
writer.writeString(37, f);
|
|
20197
|
+
}
|
|
20198
|
+
};
|
|
20199
|
+
/**
|
|
20200
|
+
* @enum {number}
|
|
20201
|
+
*/
|
|
20202
|
+
proto.clarifai.api.Model.Source = {
|
|
20203
|
+
UNKNOWN_SOURCE: 0,
|
|
20204
|
+
HOSTED: 1,
|
|
20205
|
+
WRAPPED: 2
|
|
20101
20206
|
};
|
|
20102
20207
|
/**
|
|
20103
20208
|
* optional string id = 1;
|
|
@@ -20706,6 +20811,48 @@ proto.clarifai.api.Model.prototype.clearImage = function () {
|
|
|
20706
20811
|
proto.clarifai.api.Model.prototype.hasImage = function () {
|
|
20707
20812
|
return jspb.Message.getField(this, 34) != null;
|
|
20708
20813
|
};
|
|
20814
|
+
/**
|
|
20815
|
+
* optional LicenseType license_type = 35;
|
|
20816
|
+
* @return {!proto.clarifai.api.LicenseType}
|
|
20817
|
+
*/
|
|
20818
|
+
proto.clarifai.api.Model.prototype.getLicenseType = function () {
|
|
20819
|
+
return /** @type {!proto.clarifai.api.LicenseType} */ (jspb.Message.getFieldWithDefault(this, 35, 0));
|
|
20820
|
+
};
|
|
20821
|
+
/**
|
|
20822
|
+
* @param {!proto.clarifai.api.LicenseType} value
|
|
20823
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
20824
|
+
*/
|
|
20825
|
+
proto.clarifai.api.Model.prototype.setLicenseType = function (value) {
|
|
20826
|
+
return jspb.Message.setProto3EnumField(this, 35, value);
|
|
20827
|
+
};
|
|
20828
|
+
/**
|
|
20829
|
+
* optional Source source = 36;
|
|
20830
|
+
* @return {!proto.clarifai.api.Model.Source}
|
|
20831
|
+
*/
|
|
20832
|
+
proto.clarifai.api.Model.prototype.getSource = function () {
|
|
20833
|
+
return /** @type {!proto.clarifai.api.Model.Source} */ (jspb.Message.getFieldWithDefault(this, 36, 0));
|
|
20834
|
+
};
|
|
20835
|
+
/**
|
|
20836
|
+
* @param {!proto.clarifai.api.Model.Source} value
|
|
20837
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
20838
|
+
*/
|
|
20839
|
+
proto.clarifai.api.Model.prototype.setSource = function (value) {
|
|
20840
|
+
return jspb.Message.setProto3EnumField(this, 36, value);
|
|
20841
|
+
};
|
|
20842
|
+
/**
|
|
20843
|
+
* optional string creator = 37;
|
|
20844
|
+
* @return {string}
|
|
20845
|
+
*/
|
|
20846
|
+
proto.clarifai.api.Model.prototype.getCreator = function () {
|
|
20847
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
|
|
20848
|
+
};
|
|
20849
|
+
/**
|
|
20850
|
+
* @param {string} value
|
|
20851
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
20852
|
+
*/
|
|
20853
|
+
proto.clarifai.api.Model.prototype.setCreator = function (value) {
|
|
20854
|
+
return jspb.Message.setProto3StringField(this, 37, value);
|
|
20855
|
+
};
|
|
20709
20856
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
20710
20857
|
/**
|
|
20711
20858
|
* Creates an object representation of this proto.
|
|
@@ -38855,6 +39002,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
38855
39002
|
type: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
38856
39003
|
description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
38857
39004
|
worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f),
|
|
39005
|
+
workerType: jspb.Message.getFieldWithDefault(msg, 22, 0),
|
|
38858
39006
|
conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
38859
39007
|
inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f),
|
|
38860
39008
|
sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
@@ -38928,6 +39076,10 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
38928
39076
|
reader.readMessage(value, proto.clarifai.api.TaskWorker.deserializeBinaryFromReader);
|
|
38929
39077
|
msg.setWorker(value);
|
|
38930
39078
|
break;
|
|
39079
|
+
case 22:
|
|
39080
|
+
var value = /** @type {!proto.clarifai.api.Task.WorkerType} */ (reader.readEnum());
|
|
39081
|
+
msg.setWorkerType(value);
|
|
39082
|
+
break;
|
|
38931
39083
|
case 7:
|
|
38932
39084
|
var value = /** @type {string} */ (reader.readString());
|
|
38933
39085
|
msg.addConceptIds(value);
|
|
@@ -39045,6 +39197,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
|
|
|
39045
39197
|
if (f != null) {
|
|
39046
39198
|
writer.writeMessage(6, f, proto.clarifai.api.TaskWorker.serializeBinaryToWriter);
|
|
39047
39199
|
}
|
|
39200
|
+
f = message.getWorkerType();
|
|
39201
|
+
if (f !== 0.0) {
|
|
39202
|
+
writer.writeEnum(22, f);
|
|
39203
|
+
}
|
|
39048
39204
|
f = message.getConceptIdsList();
|
|
39049
39205
|
if (f.length > 0) {
|
|
39050
39206
|
writer.writeRepeatedString(7, f);
|
|
@@ -39106,6 +39262,14 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
|
|
|
39106
39262
|
writer.writeMessage(21, f, proto.clarifai.api.TaskMetrics.serializeBinaryToWriter);
|
|
39107
39263
|
}
|
|
39108
39264
|
};
|
|
39265
|
+
/**
|
|
39266
|
+
* @enum {number}
|
|
39267
|
+
*/
|
|
39268
|
+
proto.clarifai.api.Task.WorkerType = {
|
|
39269
|
+
WORKER_TYPE_NOT_SET: 0,
|
|
39270
|
+
WORKER_HUMAN: 1,
|
|
39271
|
+
WORKER_AUTO: 2
|
|
39272
|
+
};
|
|
39109
39273
|
/**
|
|
39110
39274
|
* @enum {number}
|
|
39111
39275
|
*/
|
|
@@ -39241,6 +39405,20 @@ proto.clarifai.api.Task.prototype.clearWorker = function () {
|
|
|
39241
39405
|
proto.clarifai.api.Task.prototype.hasWorker = function () {
|
|
39242
39406
|
return jspb.Message.getField(this, 6) != null;
|
|
39243
39407
|
};
|
|
39408
|
+
/**
|
|
39409
|
+
* optional WorkerType worker_type = 22;
|
|
39410
|
+
* @return {!proto.clarifai.api.Task.WorkerType}
|
|
39411
|
+
*/
|
|
39412
|
+
proto.clarifai.api.Task.prototype.getWorkerType = function () {
|
|
39413
|
+
return /** @type {!proto.clarifai.api.Task.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
|
|
39414
|
+
};
|
|
39415
|
+
/**
|
|
39416
|
+
* @param {!proto.clarifai.api.Task.WorkerType} value
|
|
39417
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
39418
|
+
*/
|
|
39419
|
+
proto.clarifai.api.Task.prototype.setWorkerType = function (value) {
|
|
39420
|
+
return jspb.Message.setProto3EnumField(this, 22, value);
|
|
39421
|
+
};
|
|
39244
39422
|
/**
|
|
39245
39423
|
* repeated string concept_ids = 7;
|
|
39246
39424
|
* @return {!Array<string>}
|
|
@@ -55619,6 +55797,867 @@ proto.clarifai.api.ProcessingInfo.prototype.clearStatus = function () {
|
|
|
55619
55797
|
proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function () {
|
|
55620
55798
|
return jspb.Message.getField(this, 2) != null;
|
|
55621
55799
|
};
|
|
55800
|
+
/**
|
|
55801
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
55802
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
55803
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
55804
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
55805
|
+
* @private {!Array<!Array<number>>}
|
|
55806
|
+
* @const
|
|
55807
|
+
*/
|
|
55808
|
+
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1]];
|
|
55809
|
+
/**
|
|
55810
|
+
* @enum {number}
|
|
55811
|
+
*/
|
|
55812
|
+
proto.clarifai.api.AuditLogTarget.TargetCase = {
|
|
55813
|
+
TARGET_NOT_SET: 0,
|
|
55814
|
+
MEMBER: 1
|
|
55815
|
+
};
|
|
55816
|
+
/**
|
|
55817
|
+
* @return {proto.clarifai.api.AuditLogTarget.TargetCase}
|
|
55818
|
+
*/
|
|
55819
|
+
proto.clarifai.api.AuditLogTarget.prototype.getTargetCase = function () {
|
|
55820
|
+
return /** @type {proto.clarifai.api.AuditLogTarget.TargetCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.AuditLogTarget.oneofGroups_[0]));
|
|
55821
|
+
};
|
|
55822
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55823
|
+
/**
|
|
55824
|
+
* Creates an object representation of this proto.
|
|
55825
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55826
|
+
* Optional fields that are not set will be set to undefined.
|
|
55827
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55828
|
+
* For the list of reserved names please see:
|
|
55829
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55830
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55831
|
+
* JSPB instance for transitional soy proto support:
|
|
55832
|
+
* http://goto/soy-param-migration
|
|
55833
|
+
* @return {!Object}
|
|
55834
|
+
*/
|
|
55835
|
+
proto.clarifai.api.AuditLogTarget.prototype.toObject = function (opt_includeInstance) {
|
|
55836
|
+
return proto.clarifai.api.AuditLogTarget.toObject(opt_includeInstance, this);
|
|
55837
|
+
};
|
|
55838
|
+
/**
|
|
55839
|
+
* Static version of the {@see toObject} method.
|
|
55840
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55841
|
+
* the JSPB instance for transitional soy proto support:
|
|
55842
|
+
* http://goto/soy-param-migration
|
|
55843
|
+
* @param {!proto.clarifai.api.AuditLogTarget} msg The msg instance to transform.
|
|
55844
|
+
* @return {!Object}
|
|
55845
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55846
|
+
*/
|
|
55847
|
+
proto.clarifai.api.AuditLogTarget.toObject = function (includeInstance, msg) {
|
|
55848
|
+
var f, obj = {
|
|
55849
|
+
member: (f = msg.getMember()) && proto.clarifai.api.User.toObject(includeInstance, f)
|
|
55850
|
+
};
|
|
55851
|
+
if (includeInstance) {
|
|
55852
|
+
obj.$jspbMessageInstance = msg;
|
|
55853
|
+
}
|
|
55854
|
+
return obj;
|
|
55855
|
+
};
|
|
55856
|
+
}
|
|
55857
|
+
/**
|
|
55858
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55859
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55860
|
+
* @return {!proto.clarifai.api.AuditLogTarget}
|
|
55861
|
+
*/
|
|
55862
|
+
proto.clarifai.api.AuditLogTarget.deserializeBinary = function (bytes) {
|
|
55863
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55864
|
+
var msg = new proto.clarifai.api.AuditLogTarget;
|
|
55865
|
+
return proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader(msg, reader);
|
|
55866
|
+
};
|
|
55867
|
+
/**
|
|
55868
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55869
|
+
* given reader into the given message object.
|
|
55870
|
+
* @param {!proto.clarifai.api.AuditLogTarget} msg The message object to deserialize into.
|
|
55871
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55872
|
+
* @return {!proto.clarifai.api.AuditLogTarget}
|
|
55873
|
+
*/
|
|
55874
|
+
proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function (msg, reader) {
|
|
55875
|
+
while (reader.nextField()) {
|
|
55876
|
+
if (reader.isEndGroup()) {
|
|
55877
|
+
break;
|
|
55878
|
+
}
|
|
55879
|
+
var field = reader.getFieldNumber();
|
|
55880
|
+
switch (field) {
|
|
55881
|
+
case 1:
|
|
55882
|
+
var value = new proto.clarifai.api.User;
|
|
55883
|
+
reader.readMessage(value, proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
55884
|
+
msg.setMember(value);
|
|
55885
|
+
break;
|
|
55886
|
+
default:
|
|
55887
|
+
reader.skipField();
|
|
55888
|
+
break;
|
|
55889
|
+
}
|
|
55890
|
+
}
|
|
55891
|
+
return msg;
|
|
55892
|
+
};
|
|
55893
|
+
/**
|
|
55894
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55895
|
+
* @return {!Uint8Array}
|
|
55896
|
+
*/
|
|
55897
|
+
proto.clarifai.api.AuditLogTarget.prototype.serializeBinary = function () {
|
|
55898
|
+
var writer = new jspb.BinaryWriter();
|
|
55899
|
+
proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter(this, writer);
|
|
55900
|
+
return writer.getResultBuffer();
|
|
55901
|
+
};
|
|
55902
|
+
/**
|
|
55903
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55904
|
+
* format), writing to the given BinaryWriter.
|
|
55905
|
+
* @param {!proto.clarifai.api.AuditLogTarget} message
|
|
55906
|
+
* @param {!jspb.BinaryWriter} writer
|
|
55907
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55908
|
+
*/
|
|
55909
|
+
proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function (message, writer) {
|
|
55910
|
+
var f = undefined;
|
|
55911
|
+
f = message.getMember();
|
|
55912
|
+
if (f != null) {
|
|
55913
|
+
writer.writeMessage(1, f, proto.clarifai.api.User.serializeBinaryToWriter);
|
|
55914
|
+
}
|
|
55915
|
+
};
|
|
55916
|
+
/**
|
|
55917
|
+
* optional User member = 1;
|
|
55918
|
+
* @return {?proto.clarifai.api.User}
|
|
55919
|
+
*/
|
|
55920
|
+
proto.clarifai.api.AuditLogTarget.prototype.getMember = function () {
|
|
55921
|
+
return /** @type{?proto.clarifai.api.User} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
|
|
55922
|
+
};
|
|
55923
|
+
/**
|
|
55924
|
+
* @param {?proto.clarifai.api.User|undefined} value
|
|
55925
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
55926
|
+
*/
|
|
55927
|
+
proto.clarifai.api.AuditLogTarget.prototype.setMember = function (value) {
|
|
55928
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
55929
|
+
};
|
|
55930
|
+
/**
|
|
55931
|
+
* Clears the message field making it undefined.
|
|
55932
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
55933
|
+
*/
|
|
55934
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearMember = function () {
|
|
55935
|
+
return this.setMember(undefined);
|
|
55936
|
+
};
|
|
55937
|
+
/**
|
|
55938
|
+
* Returns whether this field is set.
|
|
55939
|
+
* @return {boolean}
|
|
55940
|
+
*/
|
|
55941
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasMember = function () {
|
|
55942
|
+
return jspb.Message.getField(this, 1) != null;
|
|
55943
|
+
};
|
|
55944
|
+
/**
|
|
55945
|
+
* List of repeated fields within this message type.
|
|
55946
|
+
* @private {!Array<number>}
|
|
55947
|
+
* @const
|
|
55948
|
+
*/
|
|
55949
|
+
proto.clarifai.api.AuditLogEntry.repeatedFields_ = [5, 6];
|
|
55950
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55951
|
+
/**
|
|
55952
|
+
* Creates an object representation of this proto.
|
|
55953
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55954
|
+
* Optional fields that are not set will be set to undefined.
|
|
55955
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55956
|
+
* For the list of reserved names please see:
|
|
55957
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55958
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55959
|
+
* JSPB instance for transitional soy proto support:
|
|
55960
|
+
* http://goto/soy-param-migration
|
|
55961
|
+
* @return {!Object}
|
|
55962
|
+
*/
|
|
55963
|
+
proto.clarifai.api.AuditLogEntry.prototype.toObject = function (opt_includeInstance) {
|
|
55964
|
+
return proto.clarifai.api.AuditLogEntry.toObject(opt_includeInstance, this);
|
|
55965
|
+
};
|
|
55966
|
+
/**
|
|
55967
|
+
* Static version of the {@see toObject} method.
|
|
55968
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55969
|
+
* the JSPB instance for transitional soy proto support:
|
|
55970
|
+
* http://goto/soy-param-migration
|
|
55971
|
+
* @param {!proto.clarifai.api.AuditLogEntry} msg The msg instance to transform.
|
|
55972
|
+
* @return {!Object}
|
|
55973
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55974
|
+
*/
|
|
55975
|
+
proto.clarifai.api.AuditLogEntry.toObject = function (includeInstance, msg) {
|
|
55976
|
+
var f, obj = {
|
|
55977
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
55978
|
+
user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
|
|
55979
|
+
operation: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
55980
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
55981
|
+
targetsList: jspb.Message.toObjectList(msg.getTargetsList(), proto.clarifai.api.AuditLogTarget.toObject, includeInstance),
|
|
55982
|
+
detailsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
55983
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
55984
|
+
reqId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
55985
|
+
sourceIp: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
55986
|
+
};
|
|
55987
|
+
if (includeInstance) {
|
|
55988
|
+
obj.$jspbMessageInstance = msg;
|
|
55989
|
+
}
|
|
55990
|
+
return obj;
|
|
55991
|
+
};
|
|
55992
|
+
}
|
|
55993
|
+
/**
|
|
55994
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55995
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55996
|
+
* @return {!proto.clarifai.api.AuditLogEntry}
|
|
55997
|
+
*/
|
|
55998
|
+
proto.clarifai.api.AuditLogEntry.deserializeBinary = function (bytes) {
|
|
55999
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
56000
|
+
var msg = new proto.clarifai.api.AuditLogEntry;
|
|
56001
|
+
return proto.clarifai.api.AuditLogEntry.deserializeBinaryFromReader(msg, reader);
|
|
56002
|
+
};
|
|
56003
|
+
/**
|
|
56004
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
56005
|
+
* given reader into the given message object.
|
|
56006
|
+
* @param {!proto.clarifai.api.AuditLogEntry} msg The message object to deserialize into.
|
|
56007
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
56008
|
+
* @return {!proto.clarifai.api.AuditLogEntry}
|
|
56009
|
+
*/
|
|
56010
|
+
proto.clarifai.api.AuditLogEntry.deserializeBinaryFromReader = function (msg, reader) {
|
|
56011
|
+
while (reader.nextField()) {
|
|
56012
|
+
if (reader.isEndGroup()) {
|
|
56013
|
+
break;
|
|
56014
|
+
}
|
|
56015
|
+
var field = reader.getFieldNumber();
|
|
56016
|
+
switch (field) {
|
|
56017
|
+
case 1:
|
|
56018
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
56019
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
56020
|
+
msg.setTimestamp(value);
|
|
56021
|
+
break;
|
|
56022
|
+
case 2:
|
|
56023
|
+
var value = new proto.clarifai.api.User;
|
|
56024
|
+
reader.readMessage(value, proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
56025
|
+
msg.setUser(value);
|
|
56026
|
+
break;
|
|
56027
|
+
case 3:
|
|
56028
|
+
var value = /** @type {!proto.clarifai.api.EventType} */ (reader.readEnum());
|
|
56029
|
+
msg.setOperation(value);
|
|
56030
|
+
break;
|
|
56031
|
+
case 4:
|
|
56032
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56033
|
+
msg.setDescription(value);
|
|
56034
|
+
break;
|
|
56035
|
+
case 5:
|
|
56036
|
+
var value = new proto.clarifai.api.AuditLogTarget;
|
|
56037
|
+
reader.readMessage(value, proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader);
|
|
56038
|
+
msg.addTargets(value);
|
|
56039
|
+
break;
|
|
56040
|
+
case 6:
|
|
56041
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56042
|
+
msg.addDetails(value);
|
|
56043
|
+
break;
|
|
56044
|
+
case 7:
|
|
56045
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
56046
|
+
msg.setSuccess(value);
|
|
56047
|
+
break;
|
|
56048
|
+
case 8:
|
|
56049
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56050
|
+
msg.setReqId(value);
|
|
56051
|
+
break;
|
|
56052
|
+
case 9:
|
|
56053
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56054
|
+
msg.setSourceIp(value);
|
|
56055
|
+
break;
|
|
56056
|
+
default:
|
|
56057
|
+
reader.skipField();
|
|
56058
|
+
break;
|
|
56059
|
+
}
|
|
56060
|
+
}
|
|
56061
|
+
return msg;
|
|
56062
|
+
};
|
|
56063
|
+
/**
|
|
56064
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
56065
|
+
* @return {!Uint8Array}
|
|
56066
|
+
*/
|
|
56067
|
+
proto.clarifai.api.AuditLogEntry.prototype.serializeBinary = function () {
|
|
56068
|
+
var writer = new jspb.BinaryWriter();
|
|
56069
|
+
proto.clarifai.api.AuditLogEntry.serializeBinaryToWriter(this, writer);
|
|
56070
|
+
return writer.getResultBuffer();
|
|
56071
|
+
};
|
|
56072
|
+
/**
|
|
56073
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
56074
|
+
* format), writing to the given BinaryWriter.
|
|
56075
|
+
* @param {!proto.clarifai.api.AuditLogEntry} message
|
|
56076
|
+
* @param {!jspb.BinaryWriter} writer
|
|
56077
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56078
|
+
*/
|
|
56079
|
+
proto.clarifai.api.AuditLogEntry.serializeBinaryToWriter = function (message, writer) {
|
|
56080
|
+
var f = undefined;
|
|
56081
|
+
f = message.getTimestamp();
|
|
56082
|
+
if (f != null) {
|
|
56083
|
+
writer.writeMessage(1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
56084
|
+
}
|
|
56085
|
+
f = message.getUser();
|
|
56086
|
+
if (f != null) {
|
|
56087
|
+
writer.writeMessage(2, f, proto.clarifai.api.User.serializeBinaryToWriter);
|
|
56088
|
+
}
|
|
56089
|
+
f = message.getOperation();
|
|
56090
|
+
if (f !== 0.0) {
|
|
56091
|
+
writer.writeEnum(3, f);
|
|
56092
|
+
}
|
|
56093
|
+
f = message.getDescription();
|
|
56094
|
+
if (f.length > 0) {
|
|
56095
|
+
writer.writeString(4, f);
|
|
56096
|
+
}
|
|
56097
|
+
f = message.getTargetsList();
|
|
56098
|
+
if (f.length > 0) {
|
|
56099
|
+
writer.writeRepeatedMessage(5, f, proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter);
|
|
56100
|
+
}
|
|
56101
|
+
f = message.getDetailsList();
|
|
56102
|
+
if (f.length > 0) {
|
|
56103
|
+
writer.writeRepeatedString(6, f);
|
|
56104
|
+
}
|
|
56105
|
+
f = message.getSuccess();
|
|
56106
|
+
if (f) {
|
|
56107
|
+
writer.writeBool(7, f);
|
|
56108
|
+
}
|
|
56109
|
+
f = message.getReqId();
|
|
56110
|
+
if (f.length > 0) {
|
|
56111
|
+
writer.writeString(8, f);
|
|
56112
|
+
}
|
|
56113
|
+
f = message.getSourceIp();
|
|
56114
|
+
if (f.length > 0) {
|
|
56115
|
+
writer.writeString(9, f);
|
|
56116
|
+
}
|
|
56117
|
+
};
|
|
56118
|
+
/**
|
|
56119
|
+
* optional google.protobuf.Timestamp timestamp = 1;
|
|
56120
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
56121
|
+
*/
|
|
56122
|
+
proto.clarifai.api.AuditLogEntry.prototype.getTimestamp = function () {
|
|
56123
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
56124
|
+
};
|
|
56125
|
+
/**
|
|
56126
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
56127
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56128
|
+
*/
|
|
56129
|
+
proto.clarifai.api.AuditLogEntry.prototype.setTimestamp = function (value) {
|
|
56130
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
56131
|
+
};
|
|
56132
|
+
/**
|
|
56133
|
+
* Clears the message field making it undefined.
|
|
56134
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56135
|
+
*/
|
|
56136
|
+
proto.clarifai.api.AuditLogEntry.prototype.clearTimestamp = function () {
|
|
56137
|
+
return this.setTimestamp(undefined);
|
|
56138
|
+
};
|
|
56139
|
+
/**
|
|
56140
|
+
* Returns whether this field is set.
|
|
56141
|
+
* @return {boolean}
|
|
56142
|
+
*/
|
|
56143
|
+
proto.clarifai.api.AuditLogEntry.prototype.hasTimestamp = function () {
|
|
56144
|
+
return jspb.Message.getField(this, 1) != null;
|
|
56145
|
+
};
|
|
56146
|
+
/**
|
|
56147
|
+
* optional User user = 2;
|
|
56148
|
+
* @return {?proto.clarifai.api.User}
|
|
56149
|
+
*/
|
|
56150
|
+
proto.clarifai.api.AuditLogEntry.prototype.getUser = function () {
|
|
56151
|
+
return /** @type{?proto.clarifai.api.User} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.User, 2));
|
|
56152
|
+
};
|
|
56153
|
+
/**
|
|
56154
|
+
* @param {?proto.clarifai.api.User|undefined} value
|
|
56155
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56156
|
+
*/
|
|
56157
|
+
proto.clarifai.api.AuditLogEntry.prototype.setUser = function (value) {
|
|
56158
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
56159
|
+
};
|
|
56160
|
+
/**
|
|
56161
|
+
* Clears the message field making it undefined.
|
|
56162
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56163
|
+
*/
|
|
56164
|
+
proto.clarifai.api.AuditLogEntry.prototype.clearUser = function () {
|
|
56165
|
+
return this.setUser(undefined);
|
|
56166
|
+
};
|
|
56167
|
+
/**
|
|
56168
|
+
* Returns whether this field is set.
|
|
56169
|
+
* @return {boolean}
|
|
56170
|
+
*/
|
|
56171
|
+
proto.clarifai.api.AuditLogEntry.prototype.hasUser = function () {
|
|
56172
|
+
return jspb.Message.getField(this, 2) != null;
|
|
56173
|
+
};
|
|
56174
|
+
/**
|
|
56175
|
+
* optional EventType operation = 3;
|
|
56176
|
+
* @return {!proto.clarifai.api.EventType}
|
|
56177
|
+
*/
|
|
56178
|
+
proto.clarifai.api.AuditLogEntry.prototype.getOperation = function () {
|
|
56179
|
+
return /** @type {!proto.clarifai.api.EventType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
56180
|
+
};
|
|
56181
|
+
/**
|
|
56182
|
+
* @param {!proto.clarifai.api.EventType} value
|
|
56183
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56184
|
+
*/
|
|
56185
|
+
proto.clarifai.api.AuditLogEntry.prototype.setOperation = function (value) {
|
|
56186
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
56187
|
+
};
|
|
56188
|
+
/**
|
|
56189
|
+
* optional string description = 4;
|
|
56190
|
+
* @return {string}
|
|
56191
|
+
*/
|
|
56192
|
+
proto.clarifai.api.AuditLogEntry.prototype.getDescription = function () {
|
|
56193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
56194
|
+
};
|
|
56195
|
+
/**
|
|
56196
|
+
* @param {string} value
|
|
56197
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56198
|
+
*/
|
|
56199
|
+
proto.clarifai.api.AuditLogEntry.prototype.setDescription = function (value) {
|
|
56200
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
56201
|
+
};
|
|
56202
|
+
/**
|
|
56203
|
+
* repeated AuditLogTarget targets = 5;
|
|
56204
|
+
* @return {!Array<!proto.clarifai.api.AuditLogTarget>}
|
|
56205
|
+
*/
|
|
56206
|
+
proto.clarifai.api.AuditLogEntry.prototype.getTargetsList = function () {
|
|
56207
|
+
return /** @type{!Array<!proto.clarifai.api.AuditLogTarget>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.AuditLogTarget, 5));
|
|
56208
|
+
};
|
|
56209
|
+
/**
|
|
56210
|
+
* @param {!Array<!proto.clarifai.api.AuditLogTarget>} value
|
|
56211
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56212
|
+
*/
|
|
56213
|
+
proto.clarifai.api.AuditLogEntry.prototype.setTargetsList = function (value) {
|
|
56214
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
56215
|
+
};
|
|
56216
|
+
/**
|
|
56217
|
+
* @param {!proto.clarifai.api.AuditLogTarget=} opt_value
|
|
56218
|
+
* @param {number=} opt_index
|
|
56219
|
+
* @return {!proto.clarifai.api.AuditLogTarget}
|
|
56220
|
+
*/
|
|
56221
|
+
proto.clarifai.api.AuditLogEntry.prototype.addTargets = function (opt_value, opt_index) {
|
|
56222
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.AuditLogTarget, opt_index);
|
|
56223
|
+
};
|
|
56224
|
+
/**
|
|
56225
|
+
* Clears the list making it empty but non-null.
|
|
56226
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56227
|
+
*/
|
|
56228
|
+
proto.clarifai.api.AuditLogEntry.prototype.clearTargetsList = function () {
|
|
56229
|
+
return this.setTargetsList([]);
|
|
56230
|
+
};
|
|
56231
|
+
/**
|
|
56232
|
+
* repeated string details = 6;
|
|
56233
|
+
* @return {!Array<string>}
|
|
56234
|
+
*/
|
|
56235
|
+
proto.clarifai.api.AuditLogEntry.prototype.getDetailsList = function () {
|
|
56236
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
56237
|
+
};
|
|
56238
|
+
/**
|
|
56239
|
+
* @param {!Array<string>} value
|
|
56240
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56241
|
+
*/
|
|
56242
|
+
proto.clarifai.api.AuditLogEntry.prototype.setDetailsList = function (value) {
|
|
56243
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
56244
|
+
};
|
|
56245
|
+
/**
|
|
56246
|
+
* @param {string} value
|
|
56247
|
+
* @param {number=} opt_index
|
|
56248
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56249
|
+
*/
|
|
56250
|
+
proto.clarifai.api.AuditLogEntry.prototype.addDetails = function (value, opt_index) {
|
|
56251
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
56252
|
+
};
|
|
56253
|
+
/**
|
|
56254
|
+
* Clears the list making it empty but non-null.
|
|
56255
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56256
|
+
*/
|
|
56257
|
+
proto.clarifai.api.AuditLogEntry.prototype.clearDetailsList = function () {
|
|
56258
|
+
return this.setDetailsList([]);
|
|
56259
|
+
};
|
|
56260
|
+
/**
|
|
56261
|
+
* optional bool success = 7;
|
|
56262
|
+
* @return {boolean}
|
|
56263
|
+
*/
|
|
56264
|
+
proto.clarifai.api.AuditLogEntry.prototype.getSuccess = function () {
|
|
56265
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
56266
|
+
};
|
|
56267
|
+
/**
|
|
56268
|
+
* @param {boolean} value
|
|
56269
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56270
|
+
*/
|
|
56271
|
+
proto.clarifai.api.AuditLogEntry.prototype.setSuccess = function (value) {
|
|
56272
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
56273
|
+
};
|
|
56274
|
+
/**
|
|
56275
|
+
* optional string req_id = 8;
|
|
56276
|
+
* @return {string}
|
|
56277
|
+
*/
|
|
56278
|
+
proto.clarifai.api.AuditLogEntry.prototype.getReqId = function () {
|
|
56279
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
56280
|
+
};
|
|
56281
|
+
/**
|
|
56282
|
+
* @param {string} value
|
|
56283
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56284
|
+
*/
|
|
56285
|
+
proto.clarifai.api.AuditLogEntry.prototype.setReqId = function (value) {
|
|
56286
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
56287
|
+
};
|
|
56288
|
+
/**
|
|
56289
|
+
* optional string source_ip = 9;
|
|
56290
|
+
* @return {string}
|
|
56291
|
+
*/
|
|
56292
|
+
proto.clarifai.api.AuditLogEntry.prototype.getSourceIp = function () {
|
|
56293
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
56294
|
+
};
|
|
56295
|
+
/**
|
|
56296
|
+
* @param {string} value
|
|
56297
|
+
* @return {!proto.clarifai.api.AuditLogEntry} returns this
|
|
56298
|
+
*/
|
|
56299
|
+
proto.clarifai.api.AuditLogEntry.prototype.setSourceIp = function (value) {
|
|
56300
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
56301
|
+
};
|
|
56302
|
+
/**
|
|
56303
|
+
* List of repeated fields within this message type.
|
|
56304
|
+
* @private {!Array<number>}
|
|
56305
|
+
* @const
|
|
56306
|
+
*/
|
|
56307
|
+
proto.clarifai.api.AuditLogQuery.repeatedFields_ = [3, 4, 5, 7];
|
|
56308
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56309
|
+
/**
|
|
56310
|
+
* Creates an object representation of this proto.
|
|
56311
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
56312
|
+
* Optional fields that are not set will be set to undefined.
|
|
56313
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
56314
|
+
* For the list of reserved names please see:
|
|
56315
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
56316
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
56317
|
+
* JSPB instance for transitional soy proto support:
|
|
56318
|
+
* http://goto/soy-param-migration
|
|
56319
|
+
* @return {!Object}
|
|
56320
|
+
*/
|
|
56321
|
+
proto.clarifai.api.AuditLogQuery.prototype.toObject = function (opt_includeInstance) {
|
|
56322
|
+
return proto.clarifai.api.AuditLogQuery.toObject(opt_includeInstance, this);
|
|
56323
|
+
};
|
|
56324
|
+
/**
|
|
56325
|
+
* Static version of the {@see toObject} method.
|
|
56326
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
56327
|
+
* the JSPB instance for transitional soy proto support:
|
|
56328
|
+
* http://goto/soy-param-migration
|
|
56329
|
+
* @param {!proto.clarifai.api.AuditLogQuery} msg The msg instance to transform.
|
|
56330
|
+
* @return {!Object}
|
|
56331
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56332
|
+
*/
|
|
56333
|
+
proto.clarifai.api.AuditLogQuery.toObject = function (includeInstance, msg) {
|
|
56334
|
+
var f, obj = {
|
|
56335
|
+
timestampFrom: (f = msg.getTimestampFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
56336
|
+
timestampTo: (f = msg.getTimestampTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
56337
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
56338
|
+
operationsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
56339
|
+
targetsList: jspb.Message.toObjectList(msg.getTargetsList(), proto.clarifai.api.AuditLogTarget.toObject, includeInstance),
|
|
56340
|
+
success: (f = msg.getSuccess()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
|
|
56341
|
+
sourceIpsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
56342
|
+
};
|
|
56343
|
+
if (includeInstance) {
|
|
56344
|
+
obj.$jspbMessageInstance = msg;
|
|
56345
|
+
}
|
|
56346
|
+
return obj;
|
|
56347
|
+
};
|
|
56348
|
+
}
|
|
56349
|
+
/**
|
|
56350
|
+
* Deserializes binary data (in protobuf wire format).
|
|
56351
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
56352
|
+
* @return {!proto.clarifai.api.AuditLogQuery}
|
|
56353
|
+
*/
|
|
56354
|
+
proto.clarifai.api.AuditLogQuery.deserializeBinary = function (bytes) {
|
|
56355
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
56356
|
+
var msg = new proto.clarifai.api.AuditLogQuery;
|
|
56357
|
+
return proto.clarifai.api.AuditLogQuery.deserializeBinaryFromReader(msg, reader);
|
|
56358
|
+
};
|
|
56359
|
+
/**
|
|
56360
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
56361
|
+
* given reader into the given message object.
|
|
56362
|
+
* @param {!proto.clarifai.api.AuditLogQuery} msg The message object to deserialize into.
|
|
56363
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
56364
|
+
* @return {!proto.clarifai.api.AuditLogQuery}
|
|
56365
|
+
*/
|
|
56366
|
+
proto.clarifai.api.AuditLogQuery.deserializeBinaryFromReader = function (msg, reader) {
|
|
56367
|
+
while (reader.nextField()) {
|
|
56368
|
+
if (reader.isEndGroup()) {
|
|
56369
|
+
break;
|
|
56370
|
+
}
|
|
56371
|
+
var field = reader.getFieldNumber();
|
|
56372
|
+
switch (field) {
|
|
56373
|
+
case 1:
|
|
56374
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
56375
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
56376
|
+
msg.setTimestampFrom(value);
|
|
56377
|
+
break;
|
|
56378
|
+
case 2:
|
|
56379
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
56380
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
56381
|
+
msg.setTimestampTo(value);
|
|
56382
|
+
break;
|
|
56383
|
+
case 3:
|
|
56384
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56385
|
+
msg.addUserIds(value);
|
|
56386
|
+
break;
|
|
56387
|
+
case 4:
|
|
56388
|
+
var values = /** @type {!Array<!proto.clarifai.api.EventType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
56389
|
+
for (var i = 0; i < values.length; i++) {
|
|
56390
|
+
msg.addOperations(values[i]);
|
|
56391
|
+
}
|
|
56392
|
+
break;
|
|
56393
|
+
case 5:
|
|
56394
|
+
var value = new proto.clarifai.api.AuditLogTarget;
|
|
56395
|
+
reader.readMessage(value, proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader);
|
|
56396
|
+
msg.addTargets(value);
|
|
56397
|
+
break;
|
|
56398
|
+
case 6:
|
|
56399
|
+
var value = new google_protobuf_wrappers_pb.BoolValue;
|
|
56400
|
+
reader.readMessage(value, google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
|
|
56401
|
+
msg.setSuccess(value);
|
|
56402
|
+
break;
|
|
56403
|
+
case 7:
|
|
56404
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56405
|
+
msg.addSourceIps(value);
|
|
56406
|
+
break;
|
|
56407
|
+
default:
|
|
56408
|
+
reader.skipField();
|
|
56409
|
+
break;
|
|
56410
|
+
}
|
|
56411
|
+
}
|
|
56412
|
+
return msg;
|
|
56413
|
+
};
|
|
56414
|
+
/**
|
|
56415
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
56416
|
+
* @return {!Uint8Array}
|
|
56417
|
+
*/
|
|
56418
|
+
proto.clarifai.api.AuditLogQuery.prototype.serializeBinary = function () {
|
|
56419
|
+
var writer = new jspb.BinaryWriter();
|
|
56420
|
+
proto.clarifai.api.AuditLogQuery.serializeBinaryToWriter(this, writer);
|
|
56421
|
+
return writer.getResultBuffer();
|
|
56422
|
+
};
|
|
56423
|
+
/**
|
|
56424
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
56425
|
+
* format), writing to the given BinaryWriter.
|
|
56426
|
+
* @param {!proto.clarifai.api.AuditLogQuery} message
|
|
56427
|
+
* @param {!jspb.BinaryWriter} writer
|
|
56428
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56429
|
+
*/
|
|
56430
|
+
proto.clarifai.api.AuditLogQuery.serializeBinaryToWriter = function (message, writer) {
|
|
56431
|
+
var f = undefined;
|
|
56432
|
+
f = message.getTimestampFrom();
|
|
56433
|
+
if (f != null) {
|
|
56434
|
+
writer.writeMessage(1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
56435
|
+
}
|
|
56436
|
+
f = message.getTimestampTo();
|
|
56437
|
+
if (f != null) {
|
|
56438
|
+
writer.writeMessage(2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
56439
|
+
}
|
|
56440
|
+
f = message.getUserIdsList();
|
|
56441
|
+
if (f.length > 0) {
|
|
56442
|
+
writer.writeRepeatedString(3, f);
|
|
56443
|
+
}
|
|
56444
|
+
f = message.getOperationsList();
|
|
56445
|
+
if (f.length > 0) {
|
|
56446
|
+
writer.writePackedEnum(4, f);
|
|
56447
|
+
}
|
|
56448
|
+
f = message.getTargetsList();
|
|
56449
|
+
if (f.length > 0) {
|
|
56450
|
+
writer.writeRepeatedMessage(5, f, proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter);
|
|
56451
|
+
}
|
|
56452
|
+
f = message.getSuccess();
|
|
56453
|
+
if (f != null) {
|
|
56454
|
+
writer.writeMessage(6, f, google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter);
|
|
56455
|
+
}
|
|
56456
|
+
f = message.getSourceIpsList();
|
|
56457
|
+
if (f.length > 0) {
|
|
56458
|
+
writer.writeRepeatedString(7, f);
|
|
56459
|
+
}
|
|
56460
|
+
};
|
|
56461
|
+
/**
|
|
56462
|
+
* optional google.protobuf.Timestamp timestamp_from = 1;
|
|
56463
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
56464
|
+
*/
|
|
56465
|
+
proto.clarifai.api.AuditLogQuery.prototype.getTimestampFrom = function () {
|
|
56466
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
56467
|
+
};
|
|
56468
|
+
/**
|
|
56469
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
56470
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56471
|
+
*/
|
|
56472
|
+
proto.clarifai.api.AuditLogQuery.prototype.setTimestampFrom = function (value) {
|
|
56473
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
56474
|
+
};
|
|
56475
|
+
/**
|
|
56476
|
+
* Clears the message field making it undefined.
|
|
56477
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56478
|
+
*/
|
|
56479
|
+
proto.clarifai.api.AuditLogQuery.prototype.clearTimestampFrom = function () {
|
|
56480
|
+
return this.setTimestampFrom(undefined);
|
|
56481
|
+
};
|
|
56482
|
+
/**
|
|
56483
|
+
* Returns whether this field is set.
|
|
56484
|
+
* @return {boolean}
|
|
56485
|
+
*/
|
|
56486
|
+
proto.clarifai.api.AuditLogQuery.prototype.hasTimestampFrom = function () {
|
|
56487
|
+
return jspb.Message.getField(this, 1) != null;
|
|
56488
|
+
};
|
|
56489
|
+
/**
|
|
56490
|
+
* optional google.protobuf.Timestamp timestamp_to = 2;
|
|
56491
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
56492
|
+
*/
|
|
56493
|
+
proto.clarifai.api.AuditLogQuery.prototype.getTimestampTo = function () {
|
|
56494
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
56495
|
+
};
|
|
56496
|
+
/**
|
|
56497
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
56498
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56499
|
+
*/
|
|
56500
|
+
proto.clarifai.api.AuditLogQuery.prototype.setTimestampTo = function (value) {
|
|
56501
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
56502
|
+
};
|
|
56503
|
+
/**
|
|
56504
|
+
* Clears the message field making it undefined.
|
|
56505
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56506
|
+
*/
|
|
56507
|
+
proto.clarifai.api.AuditLogQuery.prototype.clearTimestampTo = function () {
|
|
56508
|
+
return this.setTimestampTo(undefined);
|
|
56509
|
+
};
|
|
56510
|
+
/**
|
|
56511
|
+
* Returns whether this field is set.
|
|
56512
|
+
* @return {boolean}
|
|
56513
|
+
*/
|
|
56514
|
+
proto.clarifai.api.AuditLogQuery.prototype.hasTimestampTo = function () {
|
|
56515
|
+
return jspb.Message.getField(this, 2) != null;
|
|
56516
|
+
};
|
|
56517
|
+
/**
|
|
56518
|
+
* repeated string user_ids = 3;
|
|
56519
|
+
* @return {!Array<string>}
|
|
56520
|
+
*/
|
|
56521
|
+
proto.clarifai.api.AuditLogQuery.prototype.getUserIdsList = function () {
|
|
56522
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
56523
|
+
};
|
|
56524
|
+
/**
|
|
56525
|
+
* @param {!Array<string>} value
|
|
56526
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56527
|
+
*/
|
|
56528
|
+
proto.clarifai.api.AuditLogQuery.prototype.setUserIdsList = function (value) {
|
|
56529
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
56530
|
+
};
|
|
56531
|
+
/**
|
|
56532
|
+
* @param {string} value
|
|
56533
|
+
* @param {number=} opt_index
|
|
56534
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56535
|
+
*/
|
|
56536
|
+
proto.clarifai.api.AuditLogQuery.prototype.addUserIds = function (value, opt_index) {
|
|
56537
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
56538
|
+
};
|
|
56539
|
+
/**
|
|
56540
|
+
* Clears the list making it empty but non-null.
|
|
56541
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56542
|
+
*/
|
|
56543
|
+
proto.clarifai.api.AuditLogQuery.prototype.clearUserIdsList = function () {
|
|
56544
|
+
return this.setUserIdsList([]);
|
|
56545
|
+
};
|
|
56546
|
+
/**
|
|
56547
|
+
* repeated EventType operations = 4;
|
|
56548
|
+
* @return {!Array<!proto.clarifai.api.EventType>}
|
|
56549
|
+
*/
|
|
56550
|
+
proto.clarifai.api.AuditLogQuery.prototype.getOperationsList = function () {
|
|
56551
|
+
return /** @type {!Array<!proto.clarifai.api.EventType>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
56552
|
+
};
|
|
56553
|
+
/**
|
|
56554
|
+
* @param {!Array<!proto.clarifai.api.EventType>} value
|
|
56555
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56556
|
+
*/
|
|
56557
|
+
proto.clarifai.api.AuditLogQuery.prototype.setOperationsList = function (value) {
|
|
56558
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
56559
|
+
};
|
|
56560
|
+
/**
|
|
56561
|
+
* @param {!proto.clarifai.api.EventType} value
|
|
56562
|
+
* @param {number=} opt_index
|
|
56563
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56564
|
+
*/
|
|
56565
|
+
proto.clarifai.api.AuditLogQuery.prototype.addOperations = function (value, opt_index) {
|
|
56566
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
56567
|
+
};
|
|
56568
|
+
/**
|
|
56569
|
+
* Clears the list making it empty but non-null.
|
|
56570
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56571
|
+
*/
|
|
56572
|
+
proto.clarifai.api.AuditLogQuery.prototype.clearOperationsList = function () {
|
|
56573
|
+
return this.setOperationsList([]);
|
|
56574
|
+
};
|
|
56575
|
+
/**
|
|
56576
|
+
* repeated AuditLogTarget targets = 5;
|
|
56577
|
+
* @return {!Array<!proto.clarifai.api.AuditLogTarget>}
|
|
56578
|
+
*/
|
|
56579
|
+
proto.clarifai.api.AuditLogQuery.prototype.getTargetsList = function () {
|
|
56580
|
+
return /** @type{!Array<!proto.clarifai.api.AuditLogTarget>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.AuditLogTarget, 5));
|
|
56581
|
+
};
|
|
56582
|
+
/**
|
|
56583
|
+
* @param {!Array<!proto.clarifai.api.AuditLogTarget>} value
|
|
56584
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56585
|
+
*/
|
|
56586
|
+
proto.clarifai.api.AuditLogQuery.prototype.setTargetsList = function (value) {
|
|
56587
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
56588
|
+
};
|
|
56589
|
+
/**
|
|
56590
|
+
* @param {!proto.clarifai.api.AuditLogTarget=} opt_value
|
|
56591
|
+
* @param {number=} opt_index
|
|
56592
|
+
* @return {!proto.clarifai.api.AuditLogTarget}
|
|
56593
|
+
*/
|
|
56594
|
+
proto.clarifai.api.AuditLogQuery.prototype.addTargets = function (opt_value, opt_index) {
|
|
56595
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.AuditLogTarget, opt_index);
|
|
56596
|
+
};
|
|
56597
|
+
/**
|
|
56598
|
+
* Clears the list making it empty but non-null.
|
|
56599
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56600
|
+
*/
|
|
56601
|
+
proto.clarifai.api.AuditLogQuery.prototype.clearTargetsList = function () {
|
|
56602
|
+
return this.setTargetsList([]);
|
|
56603
|
+
};
|
|
56604
|
+
/**
|
|
56605
|
+
* optional google.protobuf.BoolValue success = 6;
|
|
56606
|
+
* @return {?proto.google.protobuf.BoolValue}
|
|
56607
|
+
*/
|
|
56608
|
+
proto.clarifai.api.AuditLogQuery.prototype.getSuccess = function () {
|
|
56609
|
+
return /** @type{?proto.google.protobuf.BoolValue} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 6));
|
|
56610
|
+
};
|
|
56611
|
+
/**
|
|
56612
|
+
* @param {?proto.google.protobuf.BoolValue|undefined} value
|
|
56613
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56614
|
+
*/
|
|
56615
|
+
proto.clarifai.api.AuditLogQuery.prototype.setSuccess = function (value) {
|
|
56616
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
56617
|
+
};
|
|
56618
|
+
/**
|
|
56619
|
+
* Clears the message field making it undefined.
|
|
56620
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56621
|
+
*/
|
|
56622
|
+
proto.clarifai.api.AuditLogQuery.prototype.clearSuccess = function () {
|
|
56623
|
+
return this.setSuccess(undefined);
|
|
56624
|
+
};
|
|
56625
|
+
/**
|
|
56626
|
+
* Returns whether this field is set.
|
|
56627
|
+
* @return {boolean}
|
|
56628
|
+
*/
|
|
56629
|
+
proto.clarifai.api.AuditLogQuery.prototype.hasSuccess = function () {
|
|
56630
|
+
return jspb.Message.getField(this, 6) != null;
|
|
56631
|
+
};
|
|
56632
|
+
/**
|
|
56633
|
+
* repeated string source_ips = 7;
|
|
56634
|
+
* @return {!Array<string>}
|
|
56635
|
+
*/
|
|
56636
|
+
proto.clarifai.api.AuditLogQuery.prototype.getSourceIpsList = function () {
|
|
56637
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
56638
|
+
};
|
|
56639
|
+
/**
|
|
56640
|
+
* @param {!Array<string>} value
|
|
56641
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56642
|
+
*/
|
|
56643
|
+
proto.clarifai.api.AuditLogQuery.prototype.setSourceIpsList = function (value) {
|
|
56644
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
56645
|
+
};
|
|
56646
|
+
/**
|
|
56647
|
+
* @param {string} value
|
|
56648
|
+
* @param {number=} opt_index
|
|
56649
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56650
|
+
*/
|
|
56651
|
+
proto.clarifai.api.AuditLogQuery.prototype.addSourceIps = function (value, opt_index) {
|
|
56652
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
56653
|
+
};
|
|
56654
|
+
/**
|
|
56655
|
+
* Clears the list making it empty but non-null.
|
|
56656
|
+
* @return {!proto.clarifai.api.AuditLogQuery} returns this
|
|
56657
|
+
*/
|
|
56658
|
+
proto.clarifai.api.AuditLogQuery.prototype.clearSourceIpsList = function () {
|
|
56659
|
+
return this.setSourceIpsList([]);
|
|
56660
|
+
};
|
|
55622
56661
|
/**
|
|
55623
56662
|
* @enum {number}
|
|
55624
56663
|
*/
|
|
@@ -55678,6 +56717,15 @@ proto.clarifai.api.LicenseScope = {
|
|
|
55678
56717
|
TRAIN: 2,
|
|
55679
56718
|
SEARCH: 3
|
|
55680
56719
|
};
|
|
56720
|
+
/**
|
|
56721
|
+
* @enum {number}
|
|
56722
|
+
*/
|
|
56723
|
+
proto.clarifai.api.LicenseType = {
|
|
56724
|
+
UNKNOWN_LICENSE_TYPE: 0,
|
|
56725
|
+
FIRST_PARTY: 1,
|
|
56726
|
+
OPEN_SOURCE: 2,
|
|
56727
|
+
CLOSED_SOURCE: 3
|
|
56728
|
+
};
|
|
55681
56729
|
/**
|
|
55682
56730
|
* @enum {number}
|
|
55683
56731
|
*/
|
|
@@ -55798,8 +56846,8 @@ proto.clarifai.api.RunnerMethodType = {
|
|
|
55798
56846
|
/**
|
|
55799
56847
|
* @enum {number}
|
|
55800
56848
|
*/
|
|
55801
|
-
proto.clarifai.api.
|
|
55802
|
-
|
|
56849
|
+
proto.clarifai.api.EventType = {
|
|
56850
|
+
EVENT_TYPE_NOT_SET: 0,
|
|
55803
56851
|
APPLICATION_CREATE: 100
|
|
55804
56852
|
};
|
|
55805
56853
|
goog.object.extend(exports, proto.clarifai.api);
|