clarifai-web-grpc 10.8.4 → 10.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -192,7 +192,7 @@ goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global);
192
192
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationSearchMetricsResponse', null, global);
193
193
  goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global);
194
194
  goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
195
- goog.exportSymbol('proto.clarifai.api.MultiAuditLogSearchResponse', null, global);
195
+ goog.exportSymbol('proto.clarifai.api.MultiAuditLogEntryResponse', null, global);
196
196
  goog.exportSymbol('proto.clarifai.api.MultiBulkOperationsResponse', null, global);
197
197
  goog.exportSymbol('proto.clarifai.api.MultiCollaborationsResponse', null, global);
198
198
  goog.exportSymbol('proto.clarifai.api.MultiCollaboratorsResponse', null, global);
@@ -348,8 +348,6 @@ goog.exportSymbol('proto.clarifai.api.PostUploadsRequest', null, global);
348
348
  goog.exportSymbol('proto.clarifai.api.PostValidatePasswordRequest', null, global);
349
349
  goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsRequest', null, global);
350
350
  goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsResponse', null, global);
351
- goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsSimilarityRequest', null, global);
352
- goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsSimilarityResponse', null, global);
353
351
  goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsPublishRequest', null, global);
354
352
  goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsUnPublishRequest', null, global);
355
353
  goog.exportSymbol('proto.clarifai.api.PostWorkflowsRequest', null, global);
@@ -5030,48 +5028,6 @@ if (goog.DEBUG && !COMPILED) {
5030
5028
  */
5031
5029
  proto.clarifai.api.PostWorkflowResultsResponse.displayName = 'proto.clarifai.api.PostWorkflowResultsResponse';
5032
5030
  }
5033
- /**
5034
- * Generated by JsPbCodeGenerator.
5035
- * @param {Array=} opt_data Optional initial data array, typically from a
5036
- * server response, or constructed directly in Javascript. The array is used
5037
- * in place and becomes part of the constructed object. It is not cloned.
5038
- * If no data is provided, the constructed object will be empty, but still
5039
- * valid.
5040
- * @extends {jspb.Message}
5041
- * @constructor
5042
- */
5043
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest = function (opt_data) {
5044
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsSimilarityRequest.repeatedFields_, null);
5045
- };
5046
- goog.inherits(proto.clarifai.api.PostWorkflowResultsSimilarityRequest, jspb.Message);
5047
- if (goog.DEBUG && !COMPILED) {
5048
- /**
5049
- * @public
5050
- * @override
5051
- */
5052
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.displayName = 'proto.clarifai.api.PostWorkflowResultsSimilarityRequest';
5053
- }
5054
- /**
5055
- * Generated by JsPbCodeGenerator.
5056
- * @param {Array=} opt_data Optional initial data array, typically from a
5057
- * server response, or constructed directly in Javascript. The array is used
5058
- * in place and becomes part of the constructed object. It is not cloned.
5059
- * If no data is provided, the constructed object will be empty, but still
5060
- * valid.
5061
- * @extends {jspb.Message}
5062
- * @constructor
5063
- */
5064
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse = function (opt_data) {
5065
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsSimilarityResponse.repeatedFields_, null);
5066
- };
5067
- goog.inherits(proto.clarifai.api.PostWorkflowResultsSimilarityResponse, jspb.Message);
5068
- if (goog.DEBUG && !COMPILED) {
5069
- /**
5070
- * @public
5071
- * @override
5072
- */
5073
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.displayName = 'proto.clarifai.api.PostWorkflowResultsSimilarityResponse';
5074
- }
5075
5031
  /**
5076
5032
  * Generated by JsPbCodeGenerator.
5077
5033
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7854,16 +7810,16 @@ if (goog.DEBUG && !COMPILED) {
7854
7810
  * @extends {jspb.Message}
7855
7811
  * @constructor
7856
7812
  */
7857
- proto.clarifai.api.MultiAuditLogSearchResponse = function (opt_data) {
7858
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAuditLogSearchResponse.repeatedFields_, null);
7813
+ proto.clarifai.api.MultiAuditLogEntryResponse = function (opt_data) {
7814
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAuditLogEntryResponse.repeatedFields_, null);
7859
7815
  };
7860
- goog.inherits(proto.clarifai.api.MultiAuditLogSearchResponse, jspb.Message);
7816
+ goog.inherits(proto.clarifai.api.MultiAuditLogEntryResponse, jspb.Message);
7861
7817
  if (goog.DEBUG && !COMPILED) {
7862
7818
  /**
7863
7819
  * @public
7864
7820
  * @override
7865
7821
  */
7866
- proto.clarifai.api.MultiAuditLogSearchResponse.displayName = 'proto.clarifai.api.MultiAuditLogSearchResponse';
7822
+ proto.clarifai.api.MultiAuditLogEntryResponse.displayName = 'proto.clarifai.api.MultiAuditLogEntryResponse';
7867
7823
  }
7868
7824
  /**
7869
7825
  * Generated by JsPbCodeGenerator.
@@ -50856,471 +50812,6 @@ proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearWorkflowState = fu
50856
50812
  proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasWorkflowState = function () {
50857
50813
  return jspb.Message.getField(this, 4) != null;
50858
50814
  };
50859
- /**
50860
- * List of repeated fields within this message type.
50861
- * @private {!Array<number>}
50862
- * @const
50863
- */
50864
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.repeatedFields_ = [4, 5];
50865
- if (jspb.Message.GENERATE_TO_OBJECT) {
50866
- /**
50867
- * Creates an object representation of this proto.
50868
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
50869
- * Optional fields that are not set will be set to undefined.
50870
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50871
- * For the list of reserved names please see:
50872
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50873
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50874
- * JSPB instance for transitional soy proto support:
50875
- * http://goto/soy-param-migration
50876
- * @return {!Object}
50877
- */
50878
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.toObject = function (opt_includeInstance) {
50879
- return proto.clarifai.api.PostWorkflowResultsSimilarityRequest.toObject(opt_includeInstance, this);
50880
- };
50881
- /**
50882
- * Static version of the {@see toObject} method.
50883
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50884
- * the JSPB instance for transitional soy proto support:
50885
- * http://goto/soy-param-migration
50886
- * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} msg The msg instance to transform.
50887
- * @return {!Object}
50888
- * @suppress {unusedLocalVariables} f is only used for nested messages
50889
- */
50890
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.toObject = function (includeInstance, msg) {
50891
- var f, obj = {
50892
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
50893
- workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""),
50894
- versionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
50895
- modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
50896
- probeInputsList: jspb.Message.toObjectList(msg.getProbeInputsList(), proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
50897
- poolInputsList: jspb.Message.toObjectList(msg.getPoolInputsList(), proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
50898
- favorClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
50899
- };
50900
- if (includeInstance) {
50901
- obj.$jspbMessageInstance = msg;
50902
- }
50903
- return obj;
50904
- };
50905
- }
50906
- /**
50907
- * Deserializes binary data (in protobuf wire format).
50908
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
50909
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest}
50910
- */
50911
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinary = function (bytes) {
50912
- var reader = new jspb.BinaryReader(bytes);
50913
- var msg = new proto.clarifai.api.PostWorkflowResultsSimilarityRequest;
50914
- return proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromReader(msg, reader);
50915
- };
50916
- /**
50917
- * Deserializes binary data (in protobuf wire format) from the
50918
- * given reader into the given message object.
50919
- * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} msg The message object to deserialize into.
50920
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50921
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest}
50922
- */
50923
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromReader = function (msg, reader) {
50924
- while (reader.nextField()) {
50925
- if (reader.isEndGroup()) {
50926
- break;
50927
- }
50928
- var field = reader.getFieldNumber();
50929
- switch (field) {
50930
- case 1:
50931
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
50932
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
50933
- msg.setUserAppId(value);
50934
- break;
50935
- case 2:
50936
- var value = /** @type {string} */ (reader.readString());
50937
- msg.setWorkflowId(value);
50938
- break;
50939
- case 7:
50940
- var value = /** @type {string} */ (reader.readString());
50941
- msg.setVersionId(value);
50942
- break;
50943
- case 3:
50944
- var value = /** @type {string} */ (reader.readString());
50945
- msg.setModelVersionId(value);
50946
- break;
50947
- case 4:
50948
- var value = new proto_clarifai_api_resources_pb.Input;
50949
- reader.readMessage(value, proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader);
50950
- msg.addProbeInputs(value);
50951
- break;
50952
- case 5:
50953
- var value = new proto_clarifai_api_resources_pb.Input;
50954
- reader.readMessage(value, proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader);
50955
- msg.addPoolInputs(value);
50956
- break;
50957
- case 6:
50958
- var value = /** @type {boolean} */ (reader.readBool());
50959
- msg.setFavorClarifaiWorkflows(value);
50960
- break;
50961
- default:
50962
- reader.skipField();
50963
- break;
50964
- }
50965
- }
50966
- return msg;
50967
- };
50968
- /**
50969
- * Serializes the message to binary data (in protobuf wire format).
50970
- * @return {!Uint8Array}
50971
- */
50972
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.serializeBinary = function () {
50973
- var writer = new jspb.BinaryWriter();
50974
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter(this, writer);
50975
- return writer.getResultBuffer();
50976
- };
50977
- /**
50978
- * Serializes the given message to binary data (in protobuf wire
50979
- * format), writing to the given BinaryWriter.
50980
- * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} message
50981
- * @param {!jspb.BinaryWriter} writer
50982
- * @suppress {unusedLocalVariables} f is only used for nested messages
50983
- */
50984
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter = function (message, writer) {
50985
- var f = undefined;
50986
- f = message.getUserAppId();
50987
- if (f != null) {
50988
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
50989
- }
50990
- f = message.getWorkflowId();
50991
- if (f.length > 0) {
50992
- writer.writeString(2, f);
50993
- }
50994
- f = message.getVersionId();
50995
- if (f.length > 0) {
50996
- writer.writeString(7, f);
50997
- }
50998
- f = message.getModelVersionId();
50999
- if (f.length > 0) {
51000
- writer.writeString(3, f);
51001
- }
51002
- f = message.getProbeInputsList();
51003
- if (f.length > 0) {
51004
- writer.writeRepeatedMessage(4, f, proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter);
51005
- }
51006
- f = message.getPoolInputsList();
51007
- if (f.length > 0) {
51008
- writer.writeRepeatedMessage(5, f, proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter);
51009
- }
51010
- f = message.getFavorClarifaiWorkflows();
51011
- if (f) {
51012
- writer.writeBool(6, f);
51013
- }
51014
- };
51015
- /**
51016
- * optional UserAppIDSet user_app_id = 1;
51017
- * @return {?proto.clarifai.api.UserAppIDSet}
51018
- */
51019
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getUserAppId = function () {
51020
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
51021
- };
51022
- /**
51023
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
51024
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51025
- */
51026
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setUserAppId = function (value) {
51027
- return jspb.Message.setWrapperField(this, 1, value);
51028
- };
51029
- /**
51030
- * Clears the message field making it undefined.
51031
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51032
- */
51033
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearUserAppId = function () {
51034
- return this.setUserAppId(undefined);
51035
- };
51036
- /**
51037
- * Returns whether this field is set.
51038
- * @return {boolean}
51039
- */
51040
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.hasUserAppId = function () {
51041
- return jspb.Message.getField(this, 1) != null;
51042
- };
51043
- /**
51044
- * optional string workflow_id = 2;
51045
- * @return {string}
51046
- */
51047
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getWorkflowId = function () {
51048
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
51049
- };
51050
- /**
51051
- * @param {string} value
51052
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51053
- */
51054
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setWorkflowId = function (value) {
51055
- return jspb.Message.setProto3StringField(this, 2, value);
51056
- };
51057
- /**
51058
- * optional string version_id = 7;
51059
- * @return {string}
51060
- */
51061
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getVersionId = function () {
51062
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
51063
- };
51064
- /**
51065
- * @param {string} value
51066
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51067
- */
51068
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setVersionId = function (value) {
51069
- return jspb.Message.setProto3StringField(this, 7, value);
51070
- };
51071
- /**
51072
- * optional string model_version_id = 3;
51073
- * @return {string}
51074
- */
51075
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getModelVersionId = function () {
51076
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
51077
- };
51078
- /**
51079
- * @param {string} value
51080
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51081
- */
51082
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setModelVersionId = function (value) {
51083
- return jspb.Message.setProto3StringField(this, 3, value);
51084
- };
51085
- /**
51086
- * repeated Input probe_inputs = 4;
51087
- * @return {!Array<!proto.clarifai.api.Input>}
51088
- */
51089
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getProbeInputsList = function () {
51090
- return /** @type{!Array<!proto.clarifai.api.Input>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 4));
51091
- };
51092
- /**
51093
- * @param {!Array<!proto.clarifai.api.Input>} value
51094
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51095
- */
51096
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setProbeInputsList = function (value) {
51097
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
51098
- };
51099
- /**
51100
- * @param {!proto.clarifai.api.Input=} opt_value
51101
- * @param {number=} opt_index
51102
- * @return {!proto.clarifai.api.Input}
51103
- */
51104
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.addProbeInputs = function (opt_value, opt_index) {
51105
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Input, opt_index);
51106
- };
51107
- /**
51108
- * Clears the list making it empty but non-null.
51109
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51110
- */
51111
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearProbeInputsList = function () {
51112
- return this.setProbeInputsList([]);
51113
- };
51114
- /**
51115
- * repeated Input pool_inputs = 5;
51116
- * @return {!Array<!proto.clarifai.api.Input>}
51117
- */
51118
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getPoolInputsList = function () {
51119
- return /** @type{!Array<!proto.clarifai.api.Input>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 5));
51120
- };
51121
- /**
51122
- * @param {!Array<!proto.clarifai.api.Input>} value
51123
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51124
- */
51125
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setPoolInputsList = function (value) {
51126
- return jspb.Message.setRepeatedWrapperField(this, 5, value);
51127
- };
51128
- /**
51129
- * @param {!proto.clarifai.api.Input=} opt_value
51130
- * @param {number=} opt_index
51131
- * @return {!proto.clarifai.api.Input}
51132
- */
51133
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.addPoolInputs = function (opt_value, opt_index) {
51134
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Input, opt_index);
51135
- };
51136
- /**
51137
- * Clears the list making it empty but non-null.
51138
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51139
- */
51140
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearPoolInputsList = function () {
51141
- return this.setPoolInputsList([]);
51142
- };
51143
- /**
51144
- * optional bool favor_clarifai_workflows = 6;
51145
- * @return {boolean}
51146
- */
51147
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getFavorClarifaiWorkflows = function () {
51148
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
51149
- };
51150
- /**
51151
- * @param {boolean} value
51152
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this
51153
- */
51154
- proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setFavorClarifaiWorkflows = function (value) {
51155
- return jspb.Message.setProto3BooleanField(this, 6, value);
51156
- };
51157
- /**
51158
- * List of repeated fields within this message type.
51159
- * @private {!Array<number>}
51160
- * @const
51161
- */
51162
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.repeatedFields_ = [2];
51163
- if (jspb.Message.GENERATE_TO_OBJECT) {
51164
- /**
51165
- * Creates an object representation of this proto.
51166
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
51167
- * Optional fields that are not set will be set to undefined.
51168
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
51169
- * For the list of reserved names please see:
51170
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
51171
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
51172
- * JSPB instance for transitional soy proto support:
51173
- * http://goto/soy-param-migration
51174
- * @return {!Object}
51175
- */
51176
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.toObject = function (opt_includeInstance) {
51177
- return proto.clarifai.api.PostWorkflowResultsSimilarityResponse.toObject(opt_includeInstance, this);
51178
- };
51179
- /**
51180
- * Static version of the {@see toObject} method.
51181
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
51182
- * the JSPB instance for transitional soy proto support:
51183
- * http://goto/soy-param-migration
51184
- * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} msg The msg instance to transform.
51185
- * @return {!Object}
51186
- * @suppress {unusedLocalVariables} f is only used for nested messages
51187
- */
51188
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.toObject = function (includeInstance, msg) {
51189
- var f, obj = {
51190
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
51191
- resultsList: jspb.Message.toObjectList(msg.getResultsList(), proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.toObject, includeInstance)
51192
- };
51193
- if (includeInstance) {
51194
- obj.$jspbMessageInstance = msg;
51195
- }
51196
- return obj;
51197
- };
51198
- }
51199
- /**
51200
- * Deserializes binary data (in protobuf wire format).
51201
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
51202
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse}
51203
- */
51204
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinary = function (bytes) {
51205
- var reader = new jspb.BinaryReader(bytes);
51206
- var msg = new proto.clarifai.api.PostWorkflowResultsSimilarityResponse;
51207
- return proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromReader(msg, reader);
51208
- };
51209
- /**
51210
- * Deserializes binary data (in protobuf wire format) from the
51211
- * given reader into the given message object.
51212
- * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} msg The message object to deserialize into.
51213
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
51214
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse}
51215
- */
51216
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromReader = function (msg, reader) {
51217
- while (reader.nextField()) {
51218
- if (reader.isEndGroup()) {
51219
- break;
51220
- }
51221
- var field = reader.getFieldNumber();
51222
- switch (field) {
51223
- case 1:
51224
- var value = new proto_clarifai_api_status_status_pb.Status;
51225
- reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
51226
- msg.setStatus(value);
51227
- break;
51228
- case 2:
51229
- var value = new proto_clarifai_api_resources_pb.WorkflowResultsSimilarity;
51230
- reader.readMessage(value, proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.deserializeBinaryFromReader);
51231
- msg.addResults(value);
51232
- break;
51233
- default:
51234
- reader.skipField();
51235
- break;
51236
- }
51237
- }
51238
- return msg;
51239
- };
51240
- /**
51241
- * Serializes the message to binary data (in protobuf wire format).
51242
- * @return {!Uint8Array}
51243
- */
51244
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.serializeBinary = function () {
51245
- var writer = new jspb.BinaryWriter();
51246
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.serializeBinaryToWriter(this, writer);
51247
- return writer.getResultBuffer();
51248
- };
51249
- /**
51250
- * Serializes the given message to binary data (in protobuf wire
51251
- * format), writing to the given BinaryWriter.
51252
- * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} message
51253
- * @param {!jspb.BinaryWriter} writer
51254
- * @suppress {unusedLocalVariables} f is only used for nested messages
51255
- */
51256
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.serializeBinaryToWriter = function (message, writer) {
51257
- var f = undefined;
51258
- f = message.getStatus();
51259
- if (f != null) {
51260
- writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
51261
- }
51262
- f = message.getResultsList();
51263
- if (f.length > 0) {
51264
- writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.serializeBinaryToWriter);
51265
- }
51266
- };
51267
- /**
51268
- * optional status.Status status = 1;
51269
- * @return {?proto.clarifai.api.status.Status}
51270
- */
51271
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.getStatus = function () {
51272
- return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
51273
- };
51274
- /**
51275
- * @param {?proto.clarifai.api.status.Status|undefined} value
51276
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this
51277
- */
51278
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.setStatus = function (value) {
51279
- return jspb.Message.setWrapperField(this, 1, value);
51280
- };
51281
- /**
51282
- * Clears the message field making it undefined.
51283
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this
51284
- */
51285
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.clearStatus = function () {
51286
- return this.setStatus(undefined);
51287
- };
51288
- /**
51289
- * Returns whether this field is set.
51290
- * @return {boolean}
51291
- */
51292
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.hasStatus = function () {
51293
- return jspb.Message.getField(this, 1) != null;
51294
- };
51295
- /**
51296
- * repeated WorkflowResultsSimilarity results = 2;
51297
- * @return {!Array<!proto.clarifai.api.WorkflowResultsSimilarity>}
51298
- */
51299
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.getResultsList = function () {
51300
- return /** @type{!Array<!proto.clarifai.api.WorkflowResultsSimilarity>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowResultsSimilarity, 2));
51301
- };
51302
- /**
51303
- * @param {!Array<!proto.clarifai.api.WorkflowResultsSimilarity>} value
51304
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this
51305
- */
51306
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.setResultsList = function (value) {
51307
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
51308
- };
51309
- /**
51310
- * @param {!proto.clarifai.api.WorkflowResultsSimilarity=} opt_value
51311
- * @param {number=} opt_index
51312
- * @return {!proto.clarifai.api.WorkflowResultsSimilarity}
51313
- */
51314
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.addResults = function (opt_value, opt_index) {
51315
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.WorkflowResultsSimilarity, opt_index);
51316
- };
51317
- /**
51318
- * Clears the list making it empty but non-null.
51319
- * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this
51320
- */
51321
- proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.clearResultsList = function () {
51322
- return this.setResultsList([]);
51323
- };
51324
50815
  if (jspb.Message.GENERATE_TO_OBJECT) {
51325
50816
  /**
51326
50817
  * Creates an object representation of this proto.
@@ -74702,7 +74193,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
74702
74193
  proto.clarifai.api.PostAuditLogSearchesRequest.toObject = function (includeInstance, msg) {
74703
74194
  var f, obj = {
74704
74195
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
74705
- auditLogQuery: (f = msg.getAuditLogQuery()) && proto_clarifai_api_resources_pb.AuditLogQuery.toObject(includeInstance, f),
74196
+ query: (f = msg.getQuery()) && proto_clarifai_api_resources_pb.AuditLogQuery.toObject(includeInstance, f),
74706
74197
  sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
74707
74198
  pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f)
74708
74199
  };
@@ -74744,7 +74235,7 @@ proto.clarifai.api.PostAuditLogSearchesRequest.deserializeBinaryFromReader = fun
74744
74235
  case 2:
74745
74236
  var value = new proto_clarifai_api_resources_pb.AuditLogQuery;
74746
74237
  reader.readMessage(value, proto_clarifai_api_resources_pb.AuditLogQuery.deserializeBinaryFromReader);
74747
- msg.setAuditLogQuery(value);
74238
+ msg.setQuery(value);
74748
74239
  break;
74749
74240
  case 3:
74750
74241
  var value = /** @type {boolean} */ (reader.readBool());
@@ -74784,7 +74275,7 @@ proto.clarifai.api.PostAuditLogSearchesRequest.serializeBinaryToWriter = functio
74784
74275
  if (f != null) {
74785
74276
  writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
74786
74277
  }
74787
- f = message.getAuditLogQuery();
74278
+ f = message.getQuery();
74788
74279
  if (f != null) {
74789
74280
  writer.writeMessage(2, f, proto_clarifai_api_resources_pb.AuditLogQuery.serializeBinaryToWriter);
74790
74281
  }
@@ -74826,31 +74317,31 @@ proto.clarifai.api.PostAuditLogSearchesRequest.prototype.hasUserAppId = function
74826
74317
  return jspb.Message.getField(this, 1) != null;
74827
74318
  };
74828
74319
  /**
74829
- * optional AuditLogQuery audit_log_query = 2;
74320
+ * optional AuditLogQuery query = 2;
74830
74321
  * @return {?proto.clarifai.api.AuditLogQuery}
74831
74322
  */
74832
- proto.clarifai.api.PostAuditLogSearchesRequest.prototype.getAuditLogQuery = function () {
74323
+ proto.clarifai.api.PostAuditLogSearchesRequest.prototype.getQuery = function () {
74833
74324
  return /** @type{?proto.clarifai.api.AuditLogQuery} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.AuditLogQuery, 2));
74834
74325
  };
74835
74326
  /**
74836
74327
  * @param {?proto.clarifai.api.AuditLogQuery|undefined} value
74837
74328
  * @return {!proto.clarifai.api.PostAuditLogSearchesRequest} returns this
74838
74329
  */
74839
- proto.clarifai.api.PostAuditLogSearchesRequest.prototype.setAuditLogQuery = function (value) {
74330
+ proto.clarifai.api.PostAuditLogSearchesRequest.prototype.setQuery = function (value) {
74840
74331
  return jspb.Message.setWrapperField(this, 2, value);
74841
74332
  };
74842
74333
  /**
74843
74334
  * Clears the message field making it undefined.
74844
74335
  * @return {!proto.clarifai.api.PostAuditLogSearchesRequest} returns this
74845
74336
  */
74846
- proto.clarifai.api.PostAuditLogSearchesRequest.prototype.clearAuditLogQuery = function () {
74847
- return this.setAuditLogQuery(undefined);
74337
+ proto.clarifai.api.PostAuditLogSearchesRequest.prototype.clearQuery = function () {
74338
+ return this.setQuery(undefined);
74848
74339
  };
74849
74340
  /**
74850
74341
  * Returns whether this field is set.
74851
74342
  * @return {boolean}
74852
74343
  */
74853
- proto.clarifai.api.PostAuditLogSearchesRequest.prototype.hasAuditLogQuery = function () {
74344
+ proto.clarifai.api.PostAuditLogSearchesRequest.prototype.hasQuery = function () {
74854
74345
  return jspb.Message.getField(this, 2) != null;
74855
74346
  };
74856
74347
  /**
@@ -74900,7 +74391,7 @@ proto.clarifai.api.PostAuditLogSearchesRequest.prototype.hasPagination = functio
74900
74391
  * @private {!Array<number>}
74901
74392
  * @const
74902
74393
  */
74903
- proto.clarifai.api.MultiAuditLogSearchResponse.repeatedFields_ = [2];
74394
+ proto.clarifai.api.MultiAuditLogEntryResponse.repeatedFields_ = [2];
74904
74395
  if (jspb.Message.GENERATE_TO_OBJECT) {
74905
74396
  /**
74906
74397
  * Creates an object representation of this proto.
@@ -74914,19 +74405,19 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
74914
74405
  * http://goto/soy-param-migration
74915
74406
  * @return {!Object}
74916
74407
  */
74917
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.toObject = function (opt_includeInstance) {
74918
- return proto.clarifai.api.MultiAuditLogSearchResponse.toObject(opt_includeInstance, this);
74408
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.toObject = function (opt_includeInstance) {
74409
+ return proto.clarifai.api.MultiAuditLogEntryResponse.toObject(opt_includeInstance, this);
74919
74410
  };
74920
74411
  /**
74921
74412
  * Static version of the {@see toObject} method.
74922
74413
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
74923
74414
  * the JSPB instance for transitional soy proto support:
74924
74415
  * http://goto/soy-param-migration
74925
- * @param {!proto.clarifai.api.MultiAuditLogSearchResponse} msg The msg instance to transform.
74416
+ * @param {!proto.clarifai.api.MultiAuditLogEntryResponse} msg The msg instance to transform.
74926
74417
  * @return {!Object}
74927
74418
  * @suppress {unusedLocalVariables} f is only used for nested messages
74928
74419
  */
74929
- proto.clarifai.api.MultiAuditLogSearchResponse.toObject = function (includeInstance, msg) {
74420
+ proto.clarifai.api.MultiAuditLogEntryResponse.toObject = function (includeInstance, msg) {
74930
74421
  var f, obj = {
74931
74422
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
74932
74423
  entriesList: jspb.Message.toObjectList(msg.getEntriesList(), proto_clarifai_api_resources_pb.AuditLogEntry.toObject, includeInstance)
@@ -74940,21 +74431,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
74940
74431
  /**
74941
74432
  * Deserializes binary data (in protobuf wire format).
74942
74433
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
74943
- * @return {!proto.clarifai.api.MultiAuditLogSearchResponse}
74434
+ * @return {!proto.clarifai.api.MultiAuditLogEntryResponse}
74944
74435
  */
74945
- proto.clarifai.api.MultiAuditLogSearchResponse.deserializeBinary = function (bytes) {
74436
+ proto.clarifai.api.MultiAuditLogEntryResponse.deserializeBinary = function (bytes) {
74946
74437
  var reader = new jspb.BinaryReader(bytes);
74947
- var msg = new proto.clarifai.api.MultiAuditLogSearchResponse;
74948
- return proto.clarifai.api.MultiAuditLogSearchResponse.deserializeBinaryFromReader(msg, reader);
74438
+ var msg = new proto.clarifai.api.MultiAuditLogEntryResponse;
74439
+ return proto.clarifai.api.MultiAuditLogEntryResponse.deserializeBinaryFromReader(msg, reader);
74949
74440
  };
74950
74441
  /**
74951
74442
  * Deserializes binary data (in protobuf wire format) from the
74952
74443
  * given reader into the given message object.
74953
- * @param {!proto.clarifai.api.MultiAuditLogSearchResponse} msg The message object to deserialize into.
74444
+ * @param {!proto.clarifai.api.MultiAuditLogEntryResponse} msg The message object to deserialize into.
74954
74445
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
74955
- * @return {!proto.clarifai.api.MultiAuditLogSearchResponse}
74446
+ * @return {!proto.clarifai.api.MultiAuditLogEntryResponse}
74956
74447
  */
74957
- proto.clarifai.api.MultiAuditLogSearchResponse.deserializeBinaryFromReader = function (msg, reader) {
74448
+ proto.clarifai.api.MultiAuditLogEntryResponse.deserializeBinaryFromReader = function (msg, reader) {
74958
74449
  while (reader.nextField()) {
74959
74450
  if (reader.isEndGroup()) {
74960
74451
  break;
@@ -74982,19 +74473,19 @@ proto.clarifai.api.MultiAuditLogSearchResponse.deserializeBinaryFromReader = fun
74982
74473
  * Serializes the message to binary data (in protobuf wire format).
74983
74474
  * @return {!Uint8Array}
74984
74475
  */
74985
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.serializeBinary = function () {
74476
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.serializeBinary = function () {
74986
74477
  var writer = new jspb.BinaryWriter();
74987
- proto.clarifai.api.MultiAuditLogSearchResponse.serializeBinaryToWriter(this, writer);
74478
+ proto.clarifai.api.MultiAuditLogEntryResponse.serializeBinaryToWriter(this, writer);
74988
74479
  return writer.getResultBuffer();
74989
74480
  };
74990
74481
  /**
74991
74482
  * Serializes the given message to binary data (in protobuf wire
74992
74483
  * format), writing to the given BinaryWriter.
74993
- * @param {!proto.clarifai.api.MultiAuditLogSearchResponse} message
74484
+ * @param {!proto.clarifai.api.MultiAuditLogEntryResponse} message
74994
74485
  * @param {!jspb.BinaryWriter} writer
74995
74486
  * @suppress {unusedLocalVariables} f is only used for nested messages
74996
74487
  */
74997
- proto.clarifai.api.MultiAuditLogSearchResponse.serializeBinaryToWriter = function (message, writer) {
74488
+ proto.clarifai.api.MultiAuditLogEntryResponse.serializeBinaryToWriter = function (message, writer) {
74998
74489
  var f = undefined;
74999
74490
  f = message.getStatus();
75000
74491
  if (f != null) {
@@ -75009,42 +74500,42 @@ proto.clarifai.api.MultiAuditLogSearchResponse.serializeBinaryToWriter = functio
75009
74500
  * optional status.Status status = 1;
75010
74501
  * @return {?proto.clarifai.api.status.Status}
75011
74502
  */
75012
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.getStatus = function () {
74503
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.getStatus = function () {
75013
74504
  return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
75014
74505
  };
75015
74506
  /**
75016
74507
  * @param {?proto.clarifai.api.status.Status|undefined} value
75017
- * @return {!proto.clarifai.api.MultiAuditLogSearchResponse} returns this
74508
+ * @return {!proto.clarifai.api.MultiAuditLogEntryResponse} returns this
75018
74509
  */
75019
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.setStatus = function (value) {
74510
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.setStatus = function (value) {
75020
74511
  return jspb.Message.setWrapperField(this, 1, value);
75021
74512
  };
75022
74513
  /**
75023
74514
  * Clears the message field making it undefined.
75024
- * @return {!proto.clarifai.api.MultiAuditLogSearchResponse} returns this
74515
+ * @return {!proto.clarifai.api.MultiAuditLogEntryResponse} returns this
75025
74516
  */
75026
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.clearStatus = function () {
74517
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.clearStatus = function () {
75027
74518
  return this.setStatus(undefined);
75028
74519
  };
75029
74520
  /**
75030
74521
  * Returns whether this field is set.
75031
74522
  * @return {boolean}
75032
74523
  */
75033
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.hasStatus = function () {
74524
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.hasStatus = function () {
75034
74525
  return jspb.Message.getField(this, 1) != null;
75035
74526
  };
75036
74527
  /**
75037
74528
  * repeated AuditLogEntry entries = 2;
75038
74529
  * @return {!Array<!proto.clarifai.api.AuditLogEntry>}
75039
74530
  */
75040
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.getEntriesList = function () {
74531
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.getEntriesList = function () {
75041
74532
  return /** @type{!Array<!proto.clarifai.api.AuditLogEntry>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AuditLogEntry, 2));
75042
74533
  };
75043
74534
  /**
75044
74535
  * @param {!Array<!proto.clarifai.api.AuditLogEntry>} value
75045
- * @return {!proto.clarifai.api.MultiAuditLogSearchResponse} returns this
74536
+ * @return {!proto.clarifai.api.MultiAuditLogEntryResponse} returns this
75046
74537
  */
75047
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.setEntriesList = function (value) {
74538
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.setEntriesList = function (value) {
75048
74539
  return jspb.Message.setRepeatedWrapperField(this, 2, value);
75049
74540
  };
75050
74541
  /**
@@ -75052,14 +74543,14 @@ proto.clarifai.api.MultiAuditLogSearchResponse.prototype.setEntriesList = functi
75052
74543
  * @param {number=} opt_index
75053
74544
  * @return {!proto.clarifai.api.AuditLogEntry}
75054
74545
  */
75055
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.addEntries = function (opt_value, opt_index) {
74546
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.addEntries = function (opt_value, opt_index) {
75056
74547
  return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AuditLogEntry, opt_index);
75057
74548
  };
75058
74549
  /**
75059
74550
  * Clears the list making it empty but non-null.
75060
- * @return {!proto.clarifai.api.MultiAuditLogSearchResponse} returns this
74551
+ * @return {!proto.clarifai.api.MultiAuditLogEntryResponse} returns this
75061
74552
  */
75062
- proto.clarifai.api.MultiAuditLogSearchResponse.prototype.clearEntriesList = function () {
74553
+ proto.clarifai.api.MultiAuditLogEntryResponse.prototype.clearEntriesList = function () {
75063
74554
  return this.setEntriesList([]);
75064
74555
  };
75065
74556
  /**