3131 */
3232@ ApiModel (description = "Kafka topic partition" )
3333@ JsonPropertyOrder ({
34- Partition .JSON_PROPERTY_ID ,
34+ Partition .JSON_PROPERTY_PARTITION ,
3535 Partition .JSON_PROPERTY_REPLICAS ,
3636 Partition .JSON_PROPERTY_ISR ,
3737 Partition .JSON_PROPERTY_LEADER
3838})
3939@ JsonTypeName ("Partition" )
4040@ javax .annotation .Generated (value = "org.openapitools.codegen.languages.JavaClientCodegen" )
4141public class Partition {
42- public static final String JSON_PROPERTY_ID = "id " ;
43- private Integer id ;
42+ public static final String JSON_PROPERTY_PARTITION = "partition " ;
43+ private Integer partition ;
4444
4545 public static final String JSON_PROPERTY_REPLICAS = "replicas" ;
4646 private List <Object > replicas = null ;
@@ -52,29 +52,29 @@ public class Partition {
5252 private Object leader ;
5353
5454
55- public Partition id (Integer id ) {
55+ public Partition partition (Integer partition ) {
5656
57- this .id = id ;
57+ this .partition = partition ;
5858 return this ;
5959 }
6060
6161 /**
62- * Uniquie id for the partition
63- * @return id
62+ * The partition id, unique among partitions of the same topic
63+ * @return partition
6464 **/
65- @ ApiModelProperty (required = true , value = "Uniquie id for the partition " )
66- @ JsonProperty (JSON_PROPERTY_ID )
65+ @ ApiModelProperty (required = true , value = "The partition id, unique among partitions of the same topic " )
66+ @ JsonProperty (JSON_PROPERTY_PARTITION )
6767 @ JsonInclude (value = JsonInclude .Include .ALWAYS )
6868
69- public Integer getId () {
70- return id ;
69+ public Integer getPartition () {
70+ return partition ;
7171 }
7272
7373
74- @ JsonProperty (JSON_PROPERTY_ID )
74+ @ JsonProperty (JSON_PROPERTY_PARTITION )
7575 @ JsonInclude (value = JsonInclude .Include .ALWAYS )
76- public void setId (Integer id ) {
77- this .id = id ;
76+ public void setPartition (Integer partition ) {
77+ this .partition = partition ;
7878 }
7979
8080
@@ -128,11 +128,11 @@ public Partition addIsrItem(Object isrItem) {
128128 }
129129
130130 /**
131- * List isync- replicas for this partition.
131+ * List in-sync replicas for this partition.
132132 * @return isr
133133 **/
134134 @ javax .annotation .Nullable
135- @ ApiModelProperty (value = "List isync- replicas for this partition." )
135+ @ ApiModelProperty (value = "List in-sync replicas for this partition." )
136136 @ JsonProperty (JSON_PROPERTY_ISR )
137137 @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
138138
@@ -184,22 +184,22 @@ public boolean equals(Object o) {
184184 return false ;
185185 }
186186 Partition partition = (Partition ) o ;
187- return Objects .equals (this .id , partition .id ) &&
187+ return Objects .equals (this .partition , partition .partition ) &&
188188 Objects .equals (this .replicas , partition .replicas ) &&
189189 Objects .equals (this .isr , partition .isr ) &&
190190 Objects .equals (this .leader , partition .leader );
191191 }
192192
193193 @ Override
194194 public int hashCode () {
195- return Objects .hash (id , replicas , isr , leader );
195+ return Objects .hash (partition , replicas , isr , leader );
196196 }
197197
198198 @ Override
199199 public String toString () {
200200 StringBuilder sb = new StringBuilder ();
201201 sb .append ("class Partition {\n " );
202- sb .append (" id : " ).append (toIndentedString (id )).append ("\n " );
202+ sb .append (" partition : " ).append (toIndentedString (partition )).append ("\n " );
203203 sb .append (" replicas: " ).append (toIndentedString (replicas )).append ("\n " );
204204 sb .append (" isr: " ).append (toIndentedString (isr )).append ("\n " );
205205 sb .append (" leader: " ).append (toIndentedString (leader )).append ("\n " );
0 commit comments