@@ -23,15 +23,6 @@ public final class CreateLivenessSessionContent implements JsonSerializable<Crea
2323 @ Generated
2424 private final LivenessOperationMode livenessOperationMode ;
2525
26- /*
27- * Whether or not to allow a '200 - Success' response body to be sent to the client, which may be undesirable for
28- * security reasons. Default is false, clients will receive a '204 - NoContent' empty body response. Regardless of
29- * selection, calling Session GetResult will always contain a response body enabling business logic to be
30- * implemented.
31- */
32- @ Generated
33- private Boolean sendResultsToClient ;
34-
3526 /*
3627 * Whether or not to allow client to set their own 'deviceCorrelationId' via the Vision SDK. Default is false, and
3728 * 'deviceCorrelationId' must be set in this request body.
@@ -72,34 +63,6 @@ public LivenessOperationMode getLivenessOperationMode() {
7263 return this .livenessOperationMode ;
7364 }
7465
75- /**
76- * Get the sendResultsToClient property: Whether or not to allow a '200 - Success' response body to be sent to the
77- * client, which may be undesirable for security reasons. Default is false, clients will receive a '204 - NoContent'
78- * empty body response. Regardless of selection, calling Session GetResult will always contain a response body
79- * enabling business logic to be implemented.
80- *
81- * @return the sendResultsToClient value.
82- */
83- @ Generated
84- public Boolean isSendResultsToClient () {
85- return this .sendResultsToClient ;
86- }
87-
88- /**
89- * Set the sendResultsToClient property: Whether or not to allow a '200 - Success' response body to be sent to the
90- * client, which may be undesirable for security reasons. Default is false, clients will receive a '204 - NoContent'
91- * empty body response. Regardless of selection, calling Session GetResult will always contain a response body
92- * enabling business logic to be implemented.
93- *
94- * @param sendResultsToClient the sendResultsToClient value to set.
95- * @return the CreateLivenessSessionContent object itself.
96- */
97- @ Generated
98- public CreateLivenessSessionContent setSendResultsToClient (Boolean sendResultsToClient ) {
99- this .sendResultsToClient = sendResultsToClient ;
100- return this ;
101- }
102-
10366 /**
10467 * Get the deviceCorrelationIdSetInClient property: Whether or not to allow client to set their own
10568 * 'deviceCorrelationId' via the Vision SDK. Default is false, and 'deviceCorrelationId' must be set in this request
@@ -185,11 +148,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
185148 jsonWriter .writeStartObject ();
186149 jsonWriter .writeStringField ("livenessOperationMode" ,
187150 this .livenessOperationMode == null ? null : this .livenessOperationMode .toString ());
188- jsonWriter .writeBooleanField ("sendResultsToClient" , this .sendResultsToClient );
189151 jsonWriter .writeBooleanField ("deviceCorrelationIdSetInClient" , this .deviceCorrelationIdSetInClient );
190152 jsonWriter .writeBooleanField ("enableSessionImage" , this .enableSessionImage );
191- jsonWriter .writeStringField ("livenessSingleModalModel " ,
192- this .livenessSingleModalModel == null ? null : this .livenessSingleModalModel .toString ());
153+ jsonWriter .writeStringField ("livenessModelVersion " ,
154+ this .livenessModelVersion == null ? null : this .livenessModelVersion .toString ());
193155 jsonWriter .writeStringField ("deviceCorrelationId" , this .deviceCorrelationId );
194156 jsonWriter .writeNumberField ("authTokenTimeToLiveInSeconds" , this .authTokenTimeToLiveInSeconds );
195157 return jsonWriter .writeEndObject ();
@@ -208,25 +170,22 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
208170 public static CreateLivenessSessionContent fromJson (JsonReader jsonReader ) throws IOException {
209171 return jsonReader .readObject (reader -> {
210172 LivenessOperationMode livenessOperationMode = null ;
211- Boolean sendResultsToClient = null ;
212173 Boolean deviceCorrelationIdSetInClient = null ;
213174 Boolean enableSessionImage = null ;
214- LivenessModel livenessSingleModalModel = null ;
175+ LivenessModel livenessModelVersion = null ;
215176 String deviceCorrelationId = null ;
216177 Integer authTokenTimeToLiveInSeconds = null ;
217178 while (reader .nextToken () != JsonToken .END_OBJECT ) {
218179 String fieldName = reader .getFieldName ();
219180 reader .nextToken ();
220181 if ("livenessOperationMode" .equals (fieldName )) {
221182 livenessOperationMode = LivenessOperationMode .fromString (reader .getString ());
222- } else if ("sendResultsToClient" .equals (fieldName )) {
223- sendResultsToClient = reader .getNullable (JsonReader ::getBoolean );
224183 } else if ("deviceCorrelationIdSetInClient" .equals (fieldName )) {
225184 deviceCorrelationIdSetInClient = reader .getNullable (JsonReader ::getBoolean );
226185 } else if ("enableSessionImage" .equals (fieldName )) {
227186 enableSessionImage = reader .getNullable (JsonReader ::getBoolean );
228- } else if ("livenessSingleModalModel " .equals (fieldName )) {
229- livenessSingleModalModel = LivenessModel .fromString (reader .getString ());
187+ } else if ("livenessModelVersion " .equals (fieldName )) {
188+ livenessModelVersion = LivenessModel .fromString (reader .getString ());
230189 } else if ("deviceCorrelationId" .equals (fieldName )) {
231190 deviceCorrelationId = reader .getString ();
232191 } else if ("authTokenTimeToLiveInSeconds" .equals (fieldName )) {
@@ -237,10 +196,9 @@ public static CreateLivenessSessionContent fromJson(JsonReader jsonReader) throw
237196 }
238197 CreateLivenessSessionContent deserializedCreateLivenessSessionContent
239198 = new CreateLivenessSessionContent (livenessOperationMode );
240- deserializedCreateLivenessSessionContent .sendResultsToClient = sendResultsToClient ;
241199 deserializedCreateLivenessSessionContent .deviceCorrelationIdSetInClient = deviceCorrelationIdSetInClient ;
242200 deserializedCreateLivenessSessionContent .enableSessionImage = enableSessionImage ;
243- deserializedCreateLivenessSessionContent .livenessSingleModalModel = livenessSingleModalModel ;
201+ deserializedCreateLivenessSessionContent .livenessModelVersion = livenessModelVersion ;
244202 deserializedCreateLivenessSessionContent .deviceCorrelationId = deviceCorrelationId ;
245203 deserializedCreateLivenessSessionContent .authTokenTimeToLiveInSeconds = authTokenTimeToLiveInSeconds ;
246204 return deserializedCreateLivenessSessionContent ;
@@ -253,13 +211,6 @@ public static CreateLivenessSessionContent fromJson(JsonReader jsonReader) throw
253211 @ Generated
254212 private Boolean enableSessionImage ;
255213
256- /*
257- * The model version used for liveness classification. This is an optional parameter, and if this is not specified,
258- * then the latest supported model version will be chosen
259- */
260- @ Generated
261- private LivenessModel livenessSingleModalModel ;
262-
263214 /**
264215 * Get the enableSessionImage property: Whether or not store the session image.
265216 *
@@ -282,27 +233,34 @@ public CreateLivenessSessionContent setEnableSessionImage(Boolean enableSessionI
282233 return this ;
283234 }
284235
236+ /*
237+ * The model version used for liveness classification. This is an optional parameter, and if this is not specified,
238+ * then the latest supported model version will be chosen
239+ */
240+ @ Generated
241+ private LivenessModel livenessModelVersion ;
242+
285243 /**
286- * Get the livenessSingleModalModel property: The model version used for liveness classification. This is an
287- * optional parameter, and if this is not specified, then the latest supported model version will be chosen.
244+ * Get the livenessModelVersion property: The model version used for liveness classification. This is an optional
245+ * parameter, and if this is not specified, then the latest supported model version will be chosen.
288246 *
289- * @return the livenessSingleModalModel value.
247+ * @return the livenessModelVersion value.
290248 */
291249 @ Generated
292- public LivenessModel getLivenessSingleModalModel () {
293- return this .livenessSingleModalModel ;
250+ public LivenessModel getLivenessModelVersion () {
251+ return this .livenessModelVersion ;
294252 }
295253
296254 /**
297- * Set the livenessSingleModalModel property: The model version used for liveness classification. This is an
298- * optional parameter, and if this is not specified, then the latest supported model version will be chosen.
255+ * Set the livenessModelVersion property: The model version used for liveness classification. This is an optional
256+ * parameter, and if this is not specified, then the latest supported model version will be chosen.
299257 *
300- * @param livenessSingleModalModel the livenessSingleModalModel value to set.
258+ * @param livenessModelVersion the livenessModelVersion value to set.
301259 * @return the CreateLivenessSessionContent object itself.
302260 */
303261 @ Generated
304- public CreateLivenessSessionContent setLivenessSingleModalModel (LivenessModel livenessSingleModalModel ) {
305- this .livenessSingleModalModel = livenessSingleModalModel ;
262+ public CreateLivenessSessionContent setLivenessModelVersion (LivenessModel livenessModelVersion ) {
263+ this .livenessModelVersion = livenessModelVersion ;
306264 return this ;
307265 }
308266}
0 commit comments