001package org.anarres.qemu.qapi.api; 002 003import com.fasterxml.jackson.annotation.JsonIgnore; 004import com.fasterxml.jackson.annotation.JsonInclude; 005import com.fasterxml.jackson.annotation.JsonProperty; 006import com.fasterxml.jackson.annotation.JsonUnwrapped; 007import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 008import javax.annotation.CheckForNull; 009import javax.annotation.Nonnull; 010import org.anarres.qemu.qapi.common.*; 011 012/** 013 * Autogenerated class. 014 * 015 * <pre>QApiTypeDescriptor{name=ImageCheck, data={filename=str, format=str, check-errors=int, *image-end-offset=int, *corruptions=int, *leaks=int, *corruptions-fixed=int, *leaks-fixed=int, *total-clusters=int, *allocated-clusters=int, *fragmented-clusters=int, *compressed-clusters=int}, innerTypes=null}</pre> 016 */ 017// QApiTypeDescriptor{name=ImageCheck, data={filename=str, format=str, check-errors=int, *image-end-offset=int, *corruptions=int, *leaks=int, *corruptions-fixed=int, *leaks-fixed=int, *total-clusters=int, *allocated-clusters=int, *fragmented-clusters=int, *compressed-clusters=int}, innerTypes=null} 018@JsonInclude(JsonInclude.Include.NON_EMPTY) 019public class ImageCheck extends QApiType { 020 021 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 022 @JsonProperty("filename") 023 @Nonnull 024 public java.lang.String filename; 025 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 026 @JsonProperty("format") 027 @Nonnull 028 public java.lang.String format; 029 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 030 @JsonProperty("check-errors") 031 @Nonnull 032 public long checkErrors; 033 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 034 @JsonProperty("image-end-offset") 035 @CheckForNull 036 public java.lang.Long imageEndOffset; 037 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 038 @JsonProperty("corruptions") 039 @CheckForNull 040 public java.lang.Long corruptions; 041 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 042 @JsonProperty("leaks") 043 @CheckForNull 044 public java.lang.Long leaks; 045 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 046 @JsonProperty("corruptions-fixed") 047 @CheckForNull 048 public java.lang.Long corruptionsFixed; 049 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 050 @JsonProperty("leaks-fixed") 051 @CheckForNull 052 public java.lang.Long leaksFixed; 053 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 054 @JsonProperty("total-clusters") 055 @CheckForNull 056 public java.lang.Long totalClusters; 057 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 058 @JsonProperty("allocated-clusters") 059 @CheckForNull 060 public java.lang.Long allocatedClusters; 061 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 062 @JsonProperty("fragmented-clusters") 063 @CheckForNull 064 public java.lang.Long fragmentedClusters; 065 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 066 @JsonProperty("compressed-clusters") 067 @CheckForNull 068 public java.lang.Long compressedClusters; 069 070 @Nonnull 071 public ImageCheck withFilename(java.lang.String value) { 072 this.filename = value; 073 return this; 074 } 075 076 @Nonnull 077 public ImageCheck withFormat(java.lang.String value) { 078 this.format = value; 079 return this; 080 } 081 082 @Nonnull 083 public ImageCheck withCheckErrors(long value) { 084 this.checkErrors = value; 085 return this; 086 } 087 088 @Nonnull 089 public ImageCheck withImageEndOffset(java.lang.Long value) { 090 this.imageEndOffset = value; 091 return this; 092 } 093 094 @Nonnull 095 public ImageCheck withCorruptions(java.lang.Long value) { 096 this.corruptions = value; 097 return this; 098 } 099 100 @Nonnull 101 public ImageCheck withLeaks(java.lang.Long value) { 102 this.leaks = value; 103 return this; 104 } 105 106 @Nonnull 107 public ImageCheck withCorruptionsFixed(java.lang.Long value) { 108 this.corruptionsFixed = value; 109 return this; 110 } 111 112 @Nonnull 113 public ImageCheck withLeaksFixed(java.lang.Long value) { 114 this.leaksFixed = value; 115 return this; 116 } 117 118 @Nonnull 119 public ImageCheck withTotalClusters(java.lang.Long value) { 120 this.totalClusters = value; 121 return this; 122 } 123 124 @Nonnull 125 public ImageCheck withAllocatedClusters(java.lang.Long value) { 126 this.allocatedClusters = value; 127 return this; 128 } 129 130 @Nonnull 131 public ImageCheck withFragmentedClusters(java.lang.Long value) { 132 this.fragmentedClusters = value; 133 return this; 134 } 135 136 @Nonnull 137 public ImageCheck withCompressedClusters(java.lang.Long value) { 138 this.compressedClusters = value; 139 return this; 140 } 141 142 public ImageCheck() { 143 } 144 145 public ImageCheck(java.lang.String filename, java.lang.String format, long checkErrors, java.lang.Long imageEndOffset, java.lang.Long corruptions, java.lang.Long leaks, java.lang.Long corruptionsFixed, java.lang.Long leaksFixed, java.lang.Long totalClusters, java.lang.Long allocatedClusters, java.lang.Long fragmentedClusters, java.lang.Long compressedClusters) { 146 this.filename = filename; 147 this.format = format; 148 this.checkErrors = checkErrors; 149 this.imageEndOffset = imageEndOffset; 150 this.corruptions = corruptions; 151 this.leaks = leaks; 152 this.corruptionsFixed = corruptionsFixed; 153 this.leaksFixed = leaksFixed; 154 this.totalClusters = totalClusters; 155 this.allocatedClusters = allocatedClusters; 156 this.fragmentedClusters = fragmentedClusters; 157 this.compressedClusters = compressedClusters; 158 } 159 160 @JsonIgnore 161 @Override 162 public java.util.List<java.lang.String> getFieldNames() { 163 java.util.List<java.lang.String> names = super.getFieldNames(); 164 names.add("filename"); 165 names.add("format"); 166 names.add("check-errors"); 167 names.add("image-end-offset"); 168 names.add("corruptions"); 169 names.add("leaks"); 170 names.add("corruptions-fixed"); 171 names.add("leaks-fixed"); 172 names.add("total-clusters"); 173 names.add("allocated-clusters"); 174 names.add("fragmented-clusters"); 175 names.add("compressed-clusters"); 176 return names; 177 } 178 179 @Override 180 public Object getFieldByName(@Nonnull java.lang.String name) throws NoSuchFieldException { 181 if ("filename".equals(name)) 182 return filename; 183 if ("format".equals(name)) 184 return format; 185 if ("check-errors".equals(name)) 186 return checkErrors; 187 if ("image-end-offset".equals(name)) 188 return imageEndOffset; 189 if ("corruptions".equals(name)) 190 return corruptions; 191 if ("leaks".equals(name)) 192 return leaks; 193 if ("corruptions-fixed".equals(name)) 194 return corruptionsFixed; 195 if ("leaks-fixed".equals(name)) 196 return leaksFixed; 197 if ("total-clusters".equals(name)) 198 return totalClusters; 199 if ("allocated-clusters".equals(name)) 200 return allocatedClusters; 201 if ("fragmented-clusters".equals(name)) 202 return fragmentedClusters; 203 if ("compressed-clusters".equals(name)) 204 return compressedClusters; 205 return super.getFieldByName(name); 206 } 207}