1414
1515import java .util .Objects ;
1616import java .util .Locale ;
17+ import ai .reveng .model .FunctionSourceType ;
1718import com .google .gson .TypeAdapter ;
1819import com .google .gson .annotations .JsonAdapter ;
1920import com .google .gson .annotations .SerializedName ;
@@ -66,6 +67,11 @@ public class FunctionNameHistory {
6667 @ javax .annotation .Nonnull
6768 private String functionName ;
6869
70+ public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name" ;
71+ @ SerializedName (SERIALIZED_NAME_MANGLED_NAME )
72+ @ javax .annotation .Nonnull
73+ private String mangledName ;
74+
6975 public static final String SERIALIZED_NAME_IS_DEBUG = "is_debug" ;
7076 @ SerializedName (SERIALIZED_NAME_IS_DEBUG )
7177 @ javax .annotation .Nonnull
@@ -74,7 +80,7 @@ public class FunctionNameHistory {
7480 public static final String SERIALIZED_NAME_SOURCE_TYPE = "source_type" ;
7581 @ SerializedName (SERIALIZED_NAME_SOURCE_TYPE )
7682 @ javax .annotation .Nonnull
77- private String sourceType ;
83+ private FunctionSourceType sourceType ;
7884
7985 public static final String SERIALIZED_NAME_CREATED_AT = "created_at" ;
8086 @ SerializedName (SERIALIZED_NAME_CREATED_AT )
@@ -141,6 +147,25 @@ public void setFunctionName(@javax.annotation.Nonnull String functionName) {
141147 }
142148
143149
150+ public FunctionNameHistory mangledName (@ javax .annotation .Nonnull String mangledName ) {
151+ this .mangledName = mangledName ;
152+ return this ;
153+ }
154+
155+ /**
156+ * The mangled name of the function
157+ * @return mangledName
158+ */
159+ @ javax .annotation .Nonnull
160+ public String getMangledName () {
161+ return mangledName ;
162+ }
163+
164+ public void setMangledName (@ javax .annotation .Nonnull String mangledName ) {
165+ this .mangledName = mangledName ;
166+ }
167+
168+
144169 public FunctionNameHistory isDebug (@ javax .annotation .Nonnull Boolean isDebug ) {
145170 this .isDebug = isDebug ;
146171 return this ;
@@ -160,7 +185,7 @@ public void setIsDebug(@javax.annotation.Nonnull Boolean isDebug) {
160185 }
161186
162187
163- public FunctionNameHistory sourceType (@ javax .annotation .Nonnull String sourceType ) {
188+ public FunctionNameHistory sourceType (@ javax .annotation .Nonnull FunctionSourceType sourceType ) {
164189 this .sourceType = sourceType ;
165190 return this ;
166191 }
@@ -170,11 +195,11 @@ public FunctionNameHistory sourceType(@javax.annotation.Nonnull String sourceTyp
170195 * @return sourceType
171196 */
172197 @ javax .annotation .Nonnull
173- public String getSourceType () {
198+ public FunctionSourceType getSourceType () {
174199 return sourceType ;
175200 }
176201
177- public void setSourceType (@ javax .annotation .Nonnull String sourceType ) {
202+ public void setSourceType (@ javax .annotation .Nonnull FunctionSourceType sourceType ) {
178203 this .sourceType = sourceType ;
179204 }
180205
@@ -255,6 +280,7 @@ public boolean equals(Object o) {
255280 return Objects .equals (this .historyId , functionNameHistory .historyId ) &&
256281 Objects .equals (this .changeMadeBy , functionNameHistory .changeMadeBy ) &&
257282 Objects .equals (this .functionName , functionNameHistory .functionName ) &&
283+ Objects .equals (this .mangledName , functionNameHistory .mangledName ) &&
258284 Objects .equals (this .isDebug , functionNameHistory .isDebug ) &&
259285 Objects .equals (this .sourceType , functionNameHistory .sourceType ) &&
260286 Objects .equals (this .createdAt , functionNameHistory .createdAt )&&
@@ -263,7 +289,7 @@ public boolean equals(Object o) {
263289
264290 @ Override
265291 public int hashCode () {
266- return Objects .hash (historyId , changeMadeBy , functionName , isDebug , sourceType , createdAt , additionalProperties );
292+ return Objects .hash (historyId , changeMadeBy , functionName , mangledName , isDebug , sourceType , createdAt , additionalProperties );
267293 }
268294
269295 @ Override
@@ -273,6 +299,7 @@ public String toString() {
273299 sb .append (" historyId: " ).append (toIndentedString (historyId )).append ("\n " );
274300 sb .append (" changeMadeBy: " ).append (toIndentedString (changeMadeBy )).append ("\n " );
275301 sb .append (" functionName: " ).append (toIndentedString (functionName )).append ("\n " );
302+ sb .append (" mangledName: " ).append (toIndentedString (mangledName )).append ("\n " );
276303 sb .append (" isDebug: " ).append (toIndentedString (isDebug )).append ("\n " );
277304 sb .append (" sourceType: " ).append (toIndentedString (sourceType )).append ("\n " );
278305 sb .append (" createdAt: " ).append (toIndentedString (createdAt )).append ("\n " );
@@ -298,10 +325,10 @@ private String toIndentedString(Object o) {
298325
299326 static {
300327 // a set of all properties/fields (JSON key names)
301- openapiFields = new HashSet <String >(Arrays .asList ("history_id" , "change_made_by" , "function_name" , "is_debug" , "source_type" , "created_at" ));
328+ openapiFields = new HashSet <String >(Arrays .asList ("history_id" , "change_made_by" , "function_name" , "mangled_name" , " is_debug" , "source_type" , "created_at" ));
302329
303330 // a set of required properties/fields (JSON key names)
304- openapiRequiredFields = new HashSet <String >(Arrays .asList ("history_id" , "change_made_by" , "function_name" , "is_debug" , "source_type" , "created_at" ));
331+ openapiRequiredFields = new HashSet <String >(Arrays .asList ("history_id" , "change_made_by" , "function_name" , "mangled_name" , " is_debug" , "source_type" , "created_at" ));
305332 }
306333
307334 /**
@@ -330,9 +357,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
330357 if (!jsonObj .get ("function_name" ).isJsonPrimitive ()) {
331358 throw new IllegalArgumentException (String .format (Locale .ROOT , "Expected the field `function_name` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("function_name" ).toString ()));
332359 }
333- if (!jsonObj .get ("source_type " ).isJsonPrimitive ()) {
334- throw new IllegalArgumentException (String .format (Locale .ROOT , "Expected the field `source_type ` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("source_type " ).toString ()));
360+ if (!jsonObj .get ("mangled_name " ).isJsonPrimitive ()) {
361+ throw new IllegalArgumentException (String .format (Locale .ROOT , "Expected the field `mangled_name ` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("mangled_name " ).toString ()));
335362 }
363+ // validate the required field `source_type`
364+ FunctionSourceType .validateJsonElement (jsonObj .get ("source_type" ));
336365 if (!jsonObj .get ("created_at" ).isJsonPrimitive ()) {
337366 throw new IllegalArgumentException (String .format (Locale .ROOT , "Expected the field `created_at` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("created_at" ).toString ()));
338367 }
0 commit comments