Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("code", "results"));
openapiFields = new HashSet<String>(Arrays.asList("code", "transactionId", "results"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("code"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("code", "transactionId"));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.Arrays;
import java.util.HashSet;
import java.util.Objects;
import java.util.UUID;

/** FaceSDKResult */
@javax.annotation.Generated(
Expand All @@ -32,6 +33,12 @@ public class FaceSDKResult {
@javax.annotation.Nonnull
private FaceSDKResultCode code;

public static final String SERIALIZED_NAME_TRANSACTION_ID = "transactionId";

@SerializedName(SERIALIZED_NAME_TRANSACTION_ID)
@javax.annotation.Nonnull
private UUID transactionId;

public FaceSDKResult() {}

public FaceSDKResult code(@javax.annotation.Nonnull FaceSDKResultCode code) {
Expand All @@ -53,6 +60,25 @@ public void setCode(@javax.annotation.Nonnull FaceSDKResultCode code) {
this.code = code;
}

public FaceSDKResult transactionId(@javax.annotation.Nonnull UUID transactionId) {
this.transactionId = transactionId;
return this;
}

/**
* Transaction identifier
*
* @return transactionId
*/
@javax.annotation.Nonnull
public UUID getTransactionId() {
return transactionId;
}

public void setTransactionId(@javax.annotation.Nonnull UUID transactionId) {
this.transactionId = transactionId;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -62,19 +88,21 @@ public boolean equals(Object o) {
return false;
}
FaceSDKResult faceSDKResult = (FaceSDKResult) o;
return Objects.equals(this.code, faceSDKResult.code);
return Objects.equals(this.code, faceSDKResult.code)
&& Objects.equals(this.transactionId, faceSDKResult.transactionId);
}

@Override
public int hashCode() {
return Objects.hash(code);
return Objects.hash(code, transactionId);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FaceSDKResult {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n");
sb.append("}");
return sb.toString();
}
Expand All @@ -94,10 +122,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("code"));
openapiFields = new HashSet<String>(Arrays.asList("code", "transactionId"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("code"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("code", "transactionId"));
}

/**
Expand All @@ -119,6 +147,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
JsonObject jsonObj = jsonElement.getAsJsonObject();
// validate the required field `code`
FaceSDKResultCode.validateJsonElement(jsonObj.get("code"));
if (!jsonObj.get("transactionId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
"Expected the field `transactionId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("transactionId").toString()));
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,11 @@ private String toIndentedString(Object o) {
// a set of all properties/fields (JSON key names)
openapiFields =
new HashSet<String>(
Arrays.asList("code", "results", "elapsedTime", "metadata", "detections"));
Arrays.asList(
"code", "transactionId", "results", "elapsedTime", "metadata", "detections"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("code"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("code", "transactionId"));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,12 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("code", "detections", "results", "metadata"));
openapiFields =
new HashSet<String>(
Arrays.asList("code", "transactionId", "detections", "results", "metadata"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("code"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("code", "transactionId"));
}

/**
Expand Down
Loading