@@ -23,15 +23,6 @@ public final class CreateLivenessSessionContent implements JsonSerializable<Crea
23
23
@ Generated
24
24
private final LivenessOperationMode livenessOperationMode ;
25
25
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
-
35
26
/*
36
27
* Whether or not to allow client to set their own 'deviceCorrelationId' via the Vision SDK. Default is false, and
37
28
* 'deviceCorrelationId' must be set in this request body.
@@ -72,34 +63,6 @@ public LivenessOperationMode getLivenessOperationMode() {
72
63
return this .livenessOperationMode ;
73
64
}
74
65
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
-
103
66
/**
104
67
* Get the deviceCorrelationIdSetInClient property: Whether or not to allow client to set their own
105
68
* '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 {
185
148
jsonWriter .writeStartObject ();
186
149
jsonWriter .writeStringField ("livenessOperationMode" ,
187
150
this .livenessOperationMode == null ? null : this .livenessOperationMode .toString ());
188
- jsonWriter .writeBooleanField ("sendResultsToClient" , this .sendResultsToClient );
189
151
jsonWriter .writeBooleanField ("deviceCorrelationIdSetInClient" , this .deviceCorrelationIdSetInClient );
190
152
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 ());
193
155
jsonWriter .writeStringField ("deviceCorrelationId" , this .deviceCorrelationId );
194
156
jsonWriter .writeNumberField ("authTokenTimeToLiveInSeconds" , this .authTokenTimeToLiveInSeconds );
195
157
return jsonWriter .writeEndObject ();
@@ -208,25 +170,22 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
208
170
public static CreateLivenessSessionContent fromJson (JsonReader jsonReader ) throws IOException {
209
171
return jsonReader .readObject (reader -> {
210
172
LivenessOperationMode livenessOperationMode = null ;
211
- Boolean sendResultsToClient = null ;
212
173
Boolean deviceCorrelationIdSetInClient = null ;
213
174
Boolean enableSessionImage = null ;
214
- LivenessModel livenessSingleModalModel = null ;
175
+ LivenessModel livenessModelVersion = null ;
215
176
String deviceCorrelationId = null ;
216
177
Integer authTokenTimeToLiveInSeconds = null ;
217
178
while (reader .nextToken () != JsonToken .END_OBJECT ) {
218
179
String fieldName = reader .getFieldName ();
219
180
reader .nextToken ();
220
181
if ("livenessOperationMode" .equals (fieldName )) {
221
182
livenessOperationMode = LivenessOperationMode .fromString (reader .getString ());
222
- } else if ("sendResultsToClient" .equals (fieldName )) {
223
- sendResultsToClient = reader .getNullable (JsonReader ::getBoolean );
224
183
} else if ("deviceCorrelationIdSetInClient" .equals (fieldName )) {
225
184
deviceCorrelationIdSetInClient = reader .getNullable (JsonReader ::getBoolean );
226
185
} else if ("enableSessionImage" .equals (fieldName )) {
227
186
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 ());
230
189
} else if ("deviceCorrelationId" .equals (fieldName )) {
231
190
deviceCorrelationId = reader .getString ();
232
191
} else if ("authTokenTimeToLiveInSeconds" .equals (fieldName )) {
@@ -237,10 +196,9 @@ public static CreateLivenessSessionContent fromJson(JsonReader jsonReader) throw
237
196
}
238
197
CreateLivenessSessionContent deserializedCreateLivenessSessionContent
239
198
= new CreateLivenessSessionContent (livenessOperationMode );
240
- deserializedCreateLivenessSessionContent .sendResultsToClient = sendResultsToClient ;
241
199
deserializedCreateLivenessSessionContent .deviceCorrelationIdSetInClient = deviceCorrelationIdSetInClient ;
242
200
deserializedCreateLivenessSessionContent .enableSessionImage = enableSessionImage ;
243
- deserializedCreateLivenessSessionContent .livenessSingleModalModel = livenessSingleModalModel ;
201
+ deserializedCreateLivenessSessionContent .livenessModelVersion = livenessModelVersion ;
244
202
deserializedCreateLivenessSessionContent .deviceCorrelationId = deviceCorrelationId ;
245
203
deserializedCreateLivenessSessionContent .authTokenTimeToLiveInSeconds = authTokenTimeToLiveInSeconds ;
246
204
return deserializedCreateLivenessSessionContent ;
@@ -253,13 +211,6 @@ public static CreateLivenessSessionContent fromJson(JsonReader jsonReader) throw
253
211
@ Generated
254
212
private Boolean enableSessionImage ;
255
213
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
-
263
214
/**
264
215
* Get the enableSessionImage property: Whether or not store the session image.
265
216
*
@@ -282,27 +233,34 @@ public CreateLivenessSessionContent setEnableSessionImage(Boolean enableSessionI
282
233
return this ;
283
234
}
284
235
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
+
285
243
/**
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.
288
246
*
289
- * @return the livenessSingleModalModel value.
247
+ * @return the livenessModelVersion value.
290
248
*/
291
249
@ Generated
292
- public LivenessModel getLivenessSingleModalModel () {
293
- return this .livenessSingleModalModel ;
250
+ public LivenessModel getLivenessModelVersion () {
251
+ return this .livenessModelVersion ;
294
252
}
295
253
296
254
/**
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.
299
257
*
300
- * @param livenessSingleModalModel the livenessSingleModalModel value to set.
258
+ * @param livenessModelVersion the livenessModelVersion value to set.
301
259
* @return the CreateLivenessSessionContent object itself.
302
260
*/
303
261
@ Generated
304
- public CreateLivenessSessionContent setLivenessSingleModalModel (LivenessModel livenessSingleModalModel ) {
305
- this .livenessSingleModalModel = livenessSingleModalModel ;
262
+ public CreateLivenessSessionContent setLivenessModelVersion (LivenessModel livenessModelVersion ) {
263
+ this .livenessModelVersion = livenessModelVersion ;
306
264
return this ;
307
265
}
308
266
}
0 commit comments