@@ -61,6 +61,69 @@ public class FunctionListItem {
6161 @ javax .annotation .Nonnull
6262 private String name ;
6363
64+ /**
65+ * The source (process) the function name came from
66+ */
67+ @ JsonAdapter (NameSourceTypeEnum .Adapter .class )
68+ public enum NameSourceTypeEnum {
69+ SYSTEM ("SYSTEM" ),
70+
71+ USER ("USER" ),
72+
73+ AUTO_UNSTRIP ("AUTO_UNSTRIP" ),
74+
75+ EXTERNAL ("EXTERNAL" ),
76+
77+ AI_UNSTRIP ("AI_UNSTRIP" );
78+
79+ private String value ;
80+
81+ NameSourceTypeEnum (String value ) {
82+ this .value = value ;
83+ }
84+
85+ public String getValue () {
86+ return value ;
87+ }
88+
89+ @ Override
90+ public String toString () {
91+ return String .valueOf (value );
92+ }
93+
94+ public static NameSourceTypeEnum fromValue (String value ) {
95+ for (NameSourceTypeEnum b : NameSourceTypeEnum .values ()) {
96+ if (b .value .equals (value )) {
97+ return b ;
98+ }
99+ }
100+ throw new IllegalArgumentException ("Unexpected value '" + value + "'" );
101+ }
102+
103+ public static class Adapter extends TypeAdapter <NameSourceTypeEnum > {
104+ @ Override
105+ public void write (final JsonWriter jsonWriter , final NameSourceTypeEnum enumeration ) throws IOException {
106+ jsonWriter .value (enumeration .getValue ());
107+ }
108+
109+ @ Override
110+ public NameSourceTypeEnum read (final JsonReader jsonReader ) throws IOException {
111+ String value = jsonReader .nextString ();
112+ return NameSourceTypeEnum .fromValue (value );
113+ }
114+ }
115+
116+ public static void validateJsonElement (JsonElement jsonElement ) throws IOException {
117+ String value = jsonElement .getAsString ();
118+ NameSourceTypeEnum .fromValue (value );
119+ }
120+ }
121+
122+ public static final String SERIALIZED_NAME_NAME_SOURCE_TYPE = "name_source_type" ;
123+ @ SerializedName (SERIALIZED_NAME_NAME_SOURCE_TYPE )
124+ @ javax .annotation .Nonnull
125+ private NameSourceTypeEnum nameSourceType ;
126+
64127 public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name" ;
65128 @ SerializedName (SERIALIZED_NAME_MANGLED_NAME )
66129 @ javax .annotation .Nonnull
@@ -122,6 +185,25 @@ public void setName(@javax.annotation.Nonnull String name) {
122185 }
123186
124187
188+ public FunctionListItem nameSourceType (@ javax .annotation .Nonnull NameSourceTypeEnum nameSourceType ) {
189+ this .nameSourceType = nameSourceType ;
190+ return this ;
191+ }
192+
193+ /**
194+ * The source (process) the function name came from
195+ * @return nameSourceType
196+ */
197+ @ javax .annotation .Nonnull
198+ public NameSourceTypeEnum getNameSourceType () {
199+ return nameSourceType ;
200+ }
201+
202+ public void setNameSourceType (@ javax .annotation .Nonnull NameSourceTypeEnum nameSourceType ) {
203+ this .nameSourceType = nameSourceType ;
204+ }
205+
206+
125207 public FunctionListItem mangledName (@ javax .annotation .Nonnull String mangledName ) {
126208 this .mangledName = mangledName ;
127209 return this ;
@@ -254,6 +336,7 @@ public boolean equals(Object o) {
254336 FunctionListItem functionListItem = (FunctionListItem ) o ;
255337 return Objects .equals (this .id , functionListItem .id ) &&
256338 Objects .equals (this .name , functionListItem .name ) &&
339+ Objects .equals (this .nameSourceType , functionListItem .nameSourceType ) &&
257340 Objects .equals (this .mangledName , functionListItem .mangledName ) &&
258341 Objects .equals (this .vaddr , functionListItem .vaddr ) &&
259342 Objects .equals (this .size , functionListItem .size ) &&
@@ -263,7 +346,7 @@ public boolean equals(Object o) {
263346
264347 @ Override
265348 public int hashCode () {
266- return Objects .hash (id , name , mangledName , vaddr , size , debug , additionalProperties );
349+ return Objects .hash (id , name , nameSourceType , mangledName , vaddr , size , debug , additionalProperties );
267350 }
268351
269352 @ Override
@@ -272,6 +355,7 @@ public String toString() {
272355 sb .append ("class FunctionListItem {\n " );
273356 sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
274357 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
358+ sb .append (" nameSourceType: " ).append (toIndentedString (nameSourceType )).append ("\n " );
275359 sb .append (" mangledName: " ).append (toIndentedString (mangledName )).append ("\n " );
276360 sb .append (" vaddr: " ).append (toIndentedString (vaddr )).append ("\n " );
277361 sb .append (" size: " ).append (toIndentedString (size )).append ("\n " );
@@ -298,10 +382,10 @@ private String toIndentedString(Object o) {
298382
299383 static {
300384 // a set of all properties/fields (JSON key names)
301- openapiFields = new HashSet <String >(Arrays .asList ("id" , "name" , "mangled_name" , "vaddr" , "size" , "debug" ));
385+ openapiFields = new HashSet <String >(Arrays .asList ("id" , "name" , "name_source_type" , " mangled_name" , "vaddr" , "size" , "debug" ));
302386
303387 // a set of required properties/fields (JSON key names)
304- openapiRequiredFields = new HashSet <String >(Arrays .asList ("id" , "name" , "mangled_name" , "vaddr" , "size" , "debug" ));
388+ openapiRequiredFields = new HashSet <String >(Arrays .asList ("id" , "name" , "name_source_type" , " mangled_name" , "vaddr" , "size" , "debug" ));
305389 }
306390
307391 /**
@@ -327,6 +411,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
327411 if (!jsonObj .get ("name" ).isJsonPrimitive ()) {
328412 throw new IllegalArgumentException (String .format (Locale .ROOT , "Expected the field `name` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("name" ).toString ()));
329413 }
414+ if (!jsonObj .get ("name_source_type" ).isJsonPrimitive ()) {
415+ throw new IllegalArgumentException (String .format (Locale .ROOT , "Expected the field `name_source_type` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("name_source_type" ).toString ()));
416+ }
417+ // validate the required field `name_source_type`
418+ NameSourceTypeEnum .validateJsonElement (jsonObj .get ("name_source_type" ));
330419 if (!jsonObj .get ("mangled_name" ).isJsonPrimitive ()) {
331420 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 ()));
332421 }
0 commit comments