Skip to content

Commit 4838edc

Browse files
authored
Merge pull request #168 from RevEngAI/sdk-update-v3.93.2
🤖 Update SDK to version v3.93.2
2 parents 511297e + cc816c9 commit 4838edc

2 files changed

Lines changed: 30 additions & 3 deletions

File tree

docs/RenameInputBody.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**newMangledName** | **String** | New mangled function name | [optional] |
1111
|**newName** | **String** | New function name | |
12+
|**preserveAiDecompilation** | **Boolean** | Keep the cached AI decompilation, summary and inline comments. Set when the new name comes from the model's own prediction (e.g. Transfer Name) so existing AI output is not discarded and regenerated. | [optional] |
1213

1314

1415

src/main/java/ai/reveng/model/RenameInputBody.java

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ public class RenameInputBody {
5959
@javax.annotation.Nonnull
6060
private String newName;
6161

62+
public static final String SERIALIZED_NAME_PRESERVE_AI_DECOMPILATION = "preserve_ai_decompilation";
63+
@SerializedName(SERIALIZED_NAME_PRESERVE_AI_DECOMPILATION)
64+
@javax.annotation.Nullable
65+
private Boolean preserveAiDecompilation;
66+
6267
public RenameInputBody() {
6368
}
6469

@@ -100,6 +105,25 @@ public void setNewName(@javax.annotation.Nonnull String newName) {
100105
}
101106

102107

108+
public RenameInputBody preserveAiDecompilation(@javax.annotation.Nullable Boolean preserveAiDecompilation) {
109+
this.preserveAiDecompilation = preserveAiDecompilation;
110+
return this;
111+
}
112+
113+
/**
114+
* Keep the cached AI decompilation, summary and inline comments. Set when the new name comes from the model's own prediction (e.g. Transfer Name) so existing AI output is not discarded and regenerated.
115+
* @return preserveAiDecompilation
116+
*/
117+
@javax.annotation.Nullable
118+
public Boolean getPreserveAiDecompilation() {
119+
return preserveAiDecompilation;
120+
}
121+
122+
public void setPreserveAiDecompilation(@javax.annotation.Nullable Boolean preserveAiDecompilation) {
123+
this.preserveAiDecompilation = preserveAiDecompilation;
124+
}
125+
126+
103127

104128
@Override
105129
public boolean equals(Object o) {
@@ -111,12 +135,13 @@ public boolean equals(Object o) {
111135
}
112136
RenameInputBody renameInputBody = (RenameInputBody) o;
113137
return Objects.equals(this.newMangledName, renameInputBody.newMangledName) &&
114-
Objects.equals(this.newName, renameInputBody.newName);
138+
Objects.equals(this.newName, renameInputBody.newName) &&
139+
Objects.equals(this.preserveAiDecompilation, renameInputBody.preserveAiDecompilation);
115140
}
116141

117142
@Override
118143
public int hashCode() {
119-
return Objects.hash(newMangledName, newName);
144+
return Objects.hash(newMangledName, newName, preserveAiDecompilation);
120145
}
121146

122147
@Override
@@ -125,6 +150,7 @@ public String toString() {
125150
sb.append("class RenameInputBody {\n");
126151
sb.append(" newMangledName: ").append(toIndentedString(newMangledName)).append("\n");
127152
sb.append(" newName: ").append(toIndentedString(newName)).append("\n");
153+
sb.append(" preserveAiDecompilation: ").append(toIndentedString(preserveAiDecompilation)).append("\n");
128154
sb.append("}");
129155
return sb.toString();
130156
}
@@ -143,7 +169,7 @@ private String toIndentedString(Object o) {
143169

144170
static {
145171
// a set of all properties/fields (JSON key names)
146-
openapiFields = new HashSet<String>(Arrays.asList("new_mangled_name", "new_name"));
172+
openapiFields = new HashSet<String>(Arrays.asList("new_mangled_name", "new_name", "preserve_ai_decompilation"));
147173

148174
// a set of required properties/fields (JSON key names)
149175
openapiRequiredFields = new HashSet<String>(Arrays.asList("new_name"));

0 commit comments

Comments
 (0)