com.pinterest.doctorkafka.BrokerStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafkastats Show documentation
Show all versions of kafkastats Show documentation
Collectoring the kafka stats for DoctorKafka
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package com.pinterest.doctorkafka;
import org.apache.avro.specific.SpecificData;
import org.apache.avro.message.BinaryMessageEncoder;
import org.apache.avro.message.BinaryMessageDecoder;
import org.apache.avro.message.SchemaStore;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class BrokerStats extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
private static final long serialVersionUID = -3048369985050769667L;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BrokerStats\",\"namespace\":\"com.pinterest.doctorkafka\",\"fields\":[{\"name\":\"timestamp\",\"type\":\"long\",\"default\":0},{\"name\":\"id\",\"type\":\"int\",\"default\":-1},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"zkUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"kafkaVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"statsVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"hasFailure\",\"type\":\"boolean\",\"default\":true},{\"name\":\"failureReason\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"BrokerError\",\"symbols\":[\"DiskFailure\",\"JmxConnectionFailure\",\"JmxQueryFailure\",\"KafkaServerProperitiesFailure\",\"MissingKafkaProcess\",\"MultipleKafkaProcesses\",\"UnknownError\"]}],\"default\":null},{\"name\":\"availabilityZone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"instanceType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"amiId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"rackId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"logFilesPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"cpuUsage\",\"type\":\"double\",\"default\":0.0},{\"name\":\"freeDiskSpaceInBytes\",\"type\":\"long\",\"default\":-1},{\"name\":\"totalDiskSpaceInBytes\",\"type\":\"long\",\"default\":-1},{\"name\":\"leadersBytesIn1MinRate\",\"type\":\"long\",\"default\":0},{\"name\":\"leadersBytesOut1MinRate\",\"type\":\"long\",\"default\":0},{\"name\":\"leadersBytesIn5MinRate\",\"type\":\"long\",\"default\":0},{\"name\":\"leadersBytesOut5MinRate\",\"type\":\"long\",\"default\":0},{\"name\":\"leadersBytesIn15MinRate\",\"type\":\"long\",\"default\":0},{\"name\":\"leadersBytesOut15MinRate\",\"type\":\"long\",\"default\":0},{\"name\":\"sysBytesIn1MinRate\",\"type\":\"long\",\"default\":-1},{\"name\":\"sysBytesOut1MinRate\",\"type\":\"long\",\"default\":-1},{\"name\":\"numReplicas\",\"type\":\"int\",\"default\":0},{\"name\":\"numLeaders\",\"type\":\"int\",\"default\":0},{\"name\":\"topicsBytesIn1MinRate\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\",\"java-key-class\":\"java.lang.String\"}],\"default\":null},{\"name\":\"topicsBytesOut1MinRate\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\",\"java-key-class\":\"java.lang.String\"}],\"default\":null},{\"name\":\"topicsBytesIn5MinRate\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\",\"java-key-class\":\"java.lang.String\"}],\"default\":null},{\"name\":\"topicsBytesOut5MinRate\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\",\"java-key-class\":\"java.lang.String\"}],\"default\":null},{\"name\":\"topicsBytesIn15MinRate\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\",\"java-key-class\":\"java.lang.String\"}],\"default\":null},{\"name\":\"topicsBytesOut15MinRate\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\",\"java-key-class\":\"java.lang.String\"}],\"default\":null},{\"name\":\"leaderReplicaStats\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ReplicaStat\",\"fields\":[{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"topic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"partition\",\"type\":\"int\"},{\"name\":\"isLeader\",\"type\":\"boolean\"},{\"name\":\"inReassignment\",\"type\":\"boolean\"},{\"name\":\"underReplicated\",\"type\":\"boolean\"},{\"name\":\"bytesIn1MinMeanRate\",\"type\":\"long\"},{\"name\":\"bytesIn5MinMeanRate\",\"type\":\"long\"},{\"name\":\"bytesIn15MinMeanRate\",\"type\":\"long\"},{\"name\":\"bytesOut1MinMeanRate\",\"type\":\"long\"},{\"name\":\"bytesOut5MinMeanRate\",\"type\":\"long\"},{\"name\":\"bytesOut15MinMeanRate\",\"type\":\"long\"},{\"name\":\"startOffset\",\"type\":\"long\"},{\"name\":\"endOffset\",\"type\":\"long\"},{\"name\":\"cpuUsage\",\"type\":\"double\"},{\"name\":\"logSizeInBytes\",\"type\":\"long\"},{\"name\":\"numLogSegments\",\"type\":\"int\"}]}}],\"default\":null},{\"name\":\"leaderReplicas\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AvroTopicPartition\",\"fields\":[{\"name\":\"topic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"partition\",\"type\":\"int\"}]}}],\"default\":null},{\"name\":\"followerReplicas\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AvroTopicPartition\"}],\"default\":null},{\"name\":\"inReassignmentReplicas\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AvroTopicPartition\"}],\"default\":null}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private static SpecificData MODEL$ = new SpecificData();
private static final BinaryMessageEncoder ENCODER =
new BinaryMessageEncoder(MODEL$, SCHEMA$);
private static final BinaryMessageDecoder DECODER =
new BinaryMessageDecoder(MODEL$, SCHEMA$);
/**
* Return the BinaryMessageDecoder instance used by this class.
*/
public static BinaryMessageDecoder getDecoder() {
return DECODER;
}
/**
* Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
* @param resolver a {@link SchemaStore} used to find schemas by fingerprint
*/
public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
}
/** Serializes this BrokerStats to a ByteBuffer. */
public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
return ENCODER.encode(this);
}
/** Deserializes a BrokerStats from a ByteBuffer. */
public static BrokerStats fromByteBuffer(
java.nio.ByteBuffer b) throws java.io.IOException {
return DECODER.decode(b);
}
@Deprecated public long timestamp;
@Deprecated public int id;
@Deprecated public java.lang.String name;
@Deprecated public java.lang.String zkUrl;
@Deprecated public java.lang.String kafkaVersion;
@Deprecated public java.lang.String statsVersion;
@Deprecated public boolean hasFailure;
@Deprecated public com.pinterest.doctorkafka.BrokerError failureReason;
@Deprecated public java.lang.String availabilityZone;
@Deprecated public java.lang.String instanceType;
@Deprecated public java.lang.String amiId;
@Deprecated public java.lang.String rackId;
@Deprecated public java.lang.String logFilesPath;
@Deprecated public double cpuUsage;
@Deprecated public long freeDiskSpaceInBytes;
@Deprecated public long totalDiskSpaceInBytes;
@Deprecated public long leadersBytesIn1MinRate;
@Deprecated public long leadersBytesOut1MinRate;
@Deprecated public long leadersBytesIn5MinRate;
@Deprecated public long leadersBytesOut5MinRate;
@Deprecated public long leadersBytesIn15MinRate;
@Deprecated public long leadersBytesOut15MinRate;
@Deprecated public long sysBytesIn1MinRate;
@Deprecated public long sysBytesOut1MinRate;
@Deprecated public int numReplicas;
@Deprecated public int numLeaders;
@Deprecated public java.util.Map topicsBytesIn1MinRate;
@Deprecated public java.util.Map topicsBytesOut1MinRate;
@Deprecated public java.util.Map topicsBytesIn5MinRate;
@Deprecated public java.util.Map topicsBytesOut5MinRate;
@Deprecated public java.util.Map topicsBytesIn15MinRate;
@Deprecated public java.util.Map topicsBytesOut15MinRate;
@Deprecated public java.util.List leaderReplicaStats;
@Deprecated public java.util.List leaderReplicas;
@Deprecated public java.util.List followerReplicas;
@Deprecated public java.util.List inReassignmentReplicas;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use newBuilder()
.
*/
public BrokerStats() {}
/**
* All-args constructor.
* @param timestamp The new value for timestamp
* @param id The new value for id
* @param name The new value for name
* @param zkUrl The new value for zkUrl
* @param kafkaVersion The new value for kafkaVersion
* @param statsVersion The new value for statsVersion
* @param hasFailure The new value for hasFailure
* @param failureReason The new value for failureReason
* @param availabilityZone The new value for availabilityZone
* @param instanceType The new value for instanceType
* @param amiId The new value for amiId
* @param rackId The new value for rackId
* @param logFilesPath The new value for logFilesPath
* @param cpuUsage The new value for cpuUsage
* @param freeDiskSpaceInBytes The new value for freeDiskSpaceInBytes
* @param totalDiskSpaceInBytes The new value for totalDiskSpaceInBytes
* @param leadersBytesIn1MinRate The new value for leadersBytesIn1MinRate
* @param leadersBytesOut1MinRate The new value for leadersBytesOut1MinRate
* @param leadersBytesIn5MinRate The new value for leadersBytesIn5MinRate
* @param leadersBytesOut5MinRate The new value for leadersBytesOut5MinRate
* @param leadersBytesIn15MinRate The new value for leadersBytesIn15MinRate
* @param leadersBytesOut15MinRate The new value for leadersBytesOut15MinRate
* @param sysBytesIn1MinRate The new value for sysBytesIn1MinRate
* @param sysBytesOut1MinRate The new value for sysBytesOut1MinRate
* @param numReplicas The new value for numReplicas
* @param numLeaders The new value for numLeaders
* @param topicsBytesIn1MinRate The new value for topicsBytesIn1MinRate
* @param topicsBytesOut1MinRate The new value for topicsBytesOut1MinRate
* @param topicsBytesIn5MinRate The new value for topicsBytesIn5MinRate
* @param topicsBytesOut5MinRate The new value for topicsBytesOut5MinRate
* @param topicsBytesIn15MinRate The new value for topicsBytesIn15MinRate
* @param topicsBytesOut15MinRate The new value for topicsBytesOut15MinRate
* @param leaderReplicaStats The new value for leaderReplicaStats
* @param leaderReplicas The new value for leaderReplicas
* @param followerReplicas The new value for followerReplicas
* @param inReassignmentReplicas The new value for inReassignmentReplicas
*/
public BrokerStats(java.lang.Long timestamp, java.lang.Integer id, java.lang.String name, java.lang.String zkUrl, java.lang.String kafkaVersion, java.lang.String statsVersion, java.lang.Boolean hasFailure, com.pinterest.doctorkafka.BrokerError failureReason, java.lang.String availabilityZone, java.lang.String instanceType, java.lang.String amiId, java.lang.String rackId, java.lang.String logFilesPath, java.lang.Double cpuUsage, java.lang.Long freeDiskSpaceInBytes, java.lang.Long totalDiskSpaceInBytes, java.lang.Long leadersBytesIn1MinRate, java.lang.Long leadersBytesOut1MinRate, java.lang.Long leadersBytesIn5MinRate, java.lang.Long leadersBytesOut5MinRate, java.lang.Long leadersBytesIn15MinRate, java.lang.Long leadersBytesOut15MinRate, java.lang.Long sysBytesIn1MinRate, java.lang.Long sysBytesOut1MinRate, java.lang.Integer numReplicas, java.lang.Integer numLeaders, java.util.Map topicsBytesIn1MinRate, java.util.Map topicsBytesOut1MinRate, java.util.Map topicsBytesIn5MinRate, java.util.Map topicsBytesOut5MinRate, java.util.Map topicsBytesIn15MinRate, java.util.Map topicsBytesOut15MinRate, java.util.List leaderReplicaStats, java.util.List leaderReplicas, java.util.List followerReplicas, java.util.List inReassignmentReplicas) {
this.timestamp = timestamp;
this.id = id;
this.name = name;
this.zkUrl = zkUrl;
this.kafkaVersion = kafkaVersion;
this.statsVersion = statsVersion;
this.hasFailure = hasFailure;
this.failureReason = failureReason;
this.availabilityZone = availabilityZone;
this.instanceType = instanceType;
this.amiId = amiId;
this.rackId = rackId;
this.logFilesPath = logFilesPath;
this.cpuUsage = cpuUsage;
this.freeDiskSpaceInBytes = freeDiskSpaceInBytes;
this.totalDiskSpaceInBytes = totalDiskSpaceInBytes;
this.leadersBytesIn1MinRate = leadersBytesIn1MinRate;
this.leadersBytesOut1MinRate = leadersBytesOut1MinRate;
this.leadersBytesIn5MinRate = leadersBytesIn5MinRate;
this.leadersBytesOut5MinRate = leadersBytesOut5MinRate;
this.leadersBytesIn15MinRate = leadersBytesIn15MinRate;
this.leadersBytesOut15MinRate = leadersBytesOut15MinRate;
this.sysBytesIn1MinRate = sysBytesIn1MinRate;
this.sysBytesOut1MinRate = sysBytesOut1MinRate;
this.numReplicas = numReplicas;
this.numLeaders = numLeaders;
this.topicsBytesIn1MinRate = topicsBytesIn1MinRate;
this.topicsBytesOut1MinRate = topicsBytesOut1MinRate;
this.topicsBytesIn5MinRate = topicsBytesIn5MinRate;
this.topicsBytesOut5MinRate = topicsBytesOut5MinRate;
this.topicsBytesIn15MinRate = topicsBytesIn15MinRate;
this.topicsBytesOut15MinRate = topicsBytesOut15MinRate;
this.leaderReplicaStats = leaderReplicaStats;
this.leaderReplicas = leaderReplicas;
this.followerReplicas = followerReplicas;
this.inReassignmentReplicas = inReassignmentReplicas;
}
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return timestamp;
case 1: return id;
case 2: return name;
case 3: return zkUrl;
case 4: return kafkaVersion;
case 5: return statsVersion;
case 6: return hasFailure;
case 7: return failureReason;
case 8: return availabilityZone;
case 9: return instanceType;
case 10: return amiId;
case 11: return rackId;
case 12: return logFilesPath;
case 13: return cpuUsage;
case 14: return freeDiskSpaceInBytes;
case 15: return totalDiskSpaceInBytes;
case 16: return leadersBytesIn1MinRate;
case 17: return leadersBytesOut1MinRate;
case 18: return leadersBytesIn5MinRate;
case 19: return leadersBytesOut5MinRate;
case 20: return leadersBytesIn15MinRate;
case 21: return leadersBytesOut15MinRate;
case 22: return sysBytesIn1MinRate;
case 23: return sysBytesOut1MinRate;
case 24: return numReplicas;
case 25: return numLeaders;
case 26: return topicsBytesIn1MinRate;
case 27: return topicsBytesOut1MinRate;
case 28: return topicsBytesIn5MinRate;
case 29: return topicsBytesOut5MinRate;
case 30: return topicsBytesIn15MinRate;
case 31: return topicsBytesOut15MinRate;
case 32: return leaderReplicaStats;
case 33: return leaderReplicas;
case 34: return followerReplicas;
case 35: return inReassignmentReplicas;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: timestamp = (java.lang.Long)value$; break;
case 1: id = (java.lang.Integer)value$; break;
case 2: name = (java.lang.String)value$; break;
case 3: zkUrl = (java.lang.String)value$; break;
case 4: kafkaVersion = (java.lang.String)value$; break;
case 5: statsVersion = (java.lang.String)value$; break;
case 6: hasFailure = (java.lang.Boolean)value$; break;
case 7: failureReason = (com.pinterest.doctorkafka.BrokerError)value$; break;
case 8: availabilityZone = (java.lang.String)value$; break;
case 9: instanceType = (java.lang.String)value$; break;
case 10: amiId = (java.lang.String)value$; break;
case 11: rackId = (java.lang.String)value$; break;
case 12: logFilesPath = (java.lang.String)value$; break;
case 13: cpuUsage = (java.lang.Double)value$; break;
case 14: freeDiskSpaceInBytes = (java.lang.Long)value$; break;
case 15: totalDiskSpaceInBytes = (java.lang.Long)value$; break;
case 16: leadersBytesIn1MinRate = (java.lang.Long)value$; break;
case 17: leadersBytesOut1MinRate = (java.lang.Long)value$; break;
case 18: leadersBytesIn5MinRate = (java.lang.Long)value$; break;
case 19: leadersBytesOut5MinRate = (java.lang.Long)value$; break;
case 20: leadersBytesIn15MinRate = (java.lang.Long)value$; break;
case 21: leadersBytesOut15MinRate = (java.lang.Long)value$; break;
case 22: sysBytesIn1MinRate = (java.lang.Long)value$; break;
case 23: sysBytesOut1MinRate = (java.lang.Long)value$; break;
case 24: numReplicas = (java.lang.Integer)value$; break;
case 25: numLeaders = (java.lang.Integer)value$; break;
case 26: topicsBytesIn1MinRate = (java.util.Map)value$; break;
case 27: topicsBytesOut1MinRate = (java.util.Map)value$; break;
case 28: topicsBytesIn5MinRate = (java.util.Map)value$; break;
case 29: topicsBytesOut5MinRate = (java.util.Map)value$; break;
case 30: topicsBytesIn15MinRate = (java.util.Map)value$; break;
case 31: topicsBytesOut15MinRate = (java.util.Map)value$; break;
case 32: leaderReplicaStats = (java.util.List)value$; break;
case 33: leaderReplicas = (java.util.List)value$; break;
case 34: followerReplicas = (java.util.List)value$; break;
case 35: inReassignmentReplicas = (java.util.List)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'timestamp' field.
* @return The value of the 'timestamp' field.
*/
public java.lang.Long getTimestamp() {
return timestamp;
}
/**
* Sets the value of the 'timestamp' field.
* @param value the value to set.
*/
public void setTimestamp(java.lang.Long value) {
this.timestamp = value;
}
/**
* Gets the value of the 'id' field.
* @return The value of the 'id' field.
*/
public java.lang.Integer getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* @param value the value to set.
*/
public void setId(java.lang.Integer value) {
this.id = value;
}
/**
* Gets the value of the 'name' field.
* @return The value of the 'name' field.
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the value of the 'name' field.
* @param value the value to set.
*/
public void setName(java.lang.String value) {
this.name = value;
}
/**
* Gets the value of the 'zkUrl' field.
* @return The value of the 'zkUrl' field.
*/
public java.lang.String getZkUrl() {
return zkUrl;
}
/**
* Sets the value of the 'zkUrl' field.
* @param value the value to set.
*/
public void setZkUrl(java.lang.String value) {
this.zkUrl = value;
}
/**
* Gets the value of the 'kafkaVersion' field.
* @return The value of the 'kafkaVersion' field.
*/
public java.lang.String getKafkaVersion() {
return kafkaVersion;
}
/**
* Sets the value of the 'kafkaVersion' field.
* @param value the value to set.
*/
public void setKafkaVersion(java.lang.String value) {
this.kafkaVersion = value;
}
/**
* Gets the value of the 'statsVersion' field.
* @return The value of the 'statsVersion' field.
*/
public java.lang.String getStatsVersion() {
return statsVersion;
}
/**
* Sets the value of the 'statsVersion' field.
* @param value the value to set.
*/
public void setStatsVersion(java.lang.String value) {
this.statsVersion = value;
}
/**
* Gets the value of the 'hasFailure' field.
* @return The value of the 'hasFailure' field.
*/
public java.lang.Boolean getHasFailure() {
return hasFailure;
}
/**
* Sets the value of the 'hasFailure' field.
* @param value the value to set.
*/
public void setHasFailure(java.lang.Boolean value) {
this.hasFailure = value;
}
/**
* Gets the value of the 'failureReason' field.
* @return The value of the 'failureReason' field.
*/
public com.pinterest.doctorkafka.BrokerError getFailureReason() {
return failureReason;
}
/**
* Sets the value of the 'failureReason' field.
* @param value the value to set.
*/
public void setFailureReason(com.pinterest.doctorkafka.BrokerError value) {
this.failureReason = value;
}
/**
* Gets the value of the 'availabilityZone' field.
* @return The value of the 'availabilityZone' field.
*/
public java.lang.String getAvailabilityZone() {
return availabilityZone;
}
/**
* Sets the value of the 'availabilityZone' field.
* @param value the value to set.
*/
public void setAvailabilityZone(java.lang.String value) {
this.availabilityZone = value;
}
/**
* Gets the value of the 'instanceType' field.
* @return The value of the 'instanceType' field.
*/
public java.lang.String getInstanceType() {
return instanceType;
}
/**
* Sets the value of the 'instanceType' field.
* @param value the value to set.
*/
public void setInstanceType(java.lang.String value) {
this.instanceType = value;
}
/**
* Gets the value of the 'amiId' field.
* @return The value of the 'amiId' field.
*/
public java.lang.String getAmiId() {
return amiId;
}
/**
* Sets the value of the 'amiId' field.
* @param value the value to set.
*/
public void setAmiId(java.lang.String value) {
this.amiId = value;
}
/**
* Gets the value of the 'rackId' field.
* @return The value of the 'rackId' field.
*/
public java.lang.String getRackId() {
return rackId;
}
/**
* Sets the value of the 'rackId' field.
* @param value the value to set.
*/
public void setRackId(java.lang.String value) {
this.rackId = value;
}
/**
* Gets the value of the 'logFilesPath' field.
* @return The value of the 'logFilesPath' field.
*/
public java.lang.String getLogFilesPath() {
return logFilesPath;
}
/**
* Sets the value of the 'logFilesPath' field.
* @param value the value to set.
*/
public void setLogFilesPath(java.lang.String value) {
this.logFilesPath = value;
}
/**
* Gets the value of the 'cpuUsage' field.
* @return The value of the 'cpuUsage' field.
*/
public java.lang.Double getCpuUsage() {
return cpuUsage;
}
/**
* Sets the value of the 'cpuUsage' field.
* @param value the value to set.
*/
public void setCpuUsage(java.lang.Double value) {
this.cpuUsage = value;
}
/**
* Gets the value of the 'freeDiskSpaceInBytes' field.
* @return The value of the 'freeDiskSpaceInBytes' field.
*/
public java.lang.Long getFreeDiskSpaceInBytes() {
return freeDiskSpaceInBytes;
}
/**
* Sets the value of the 'freeDiskSpaceInBytes' field.
* @param value the value to set.
*/
public void setFreeDiskSpaceInBytes(java.lang.Long value) {
this.freeDiskSpaceInBytes = value;
}
/**
* Gets the value of the 'totalDiskSpaceInBytes' field.
* @return The value of the 'totalDiskSpaceInBytes' field.
*/
public java.lang.Long getTotalDiskSpaceInBytes() {
return totalDiskSpaceInBytes;
}
/**
* Sets the value of the 'totalDiskSpaceInBytes' field.
* @param value the value to set.
*/
public void setTotalDiskSpaceInBytes(java.lang.Long value) {
this.totalDiskSpaceInBytes = value;
}
/**
* Gets the value of the 'leadersBytesIn1MinRate' field.
* @return The value of the 'leadersBytesIn1MinRate' field.
*/
public java.lang.Long getLeadersBytesIn1MinRate() {
return leadersBytesIn1MinRate;
}
/**
* Sets the value of the 'leadersBytesIn1MinRate' field.
* @param value the value to set.
*/
public void setLeadersBytesIn1MinRate(java.lang.Long value) {
this.leadersBytesIn1MinRate = value;
}
/**
* Gets the value of the 'leadersBytesOut1MinRate' field.
* @return The value of the 'leadersBytesOut1MinRate' field.
*/
public java.lang.Long getLeadersBytesOut1MinRate() {
return leadersBytesOut1MinRate;
}
/**
* Sets the value of the 'leadersBytesOut1MinRate' field.
* @param value the value to set.
*/
public void setLeadersBytesOut1MinRate(java.lang.Long value) {
this.leadersBytesOut1MinRate = value;
}
/**
* Gets the value of the 'leadersBytesIn5MinRate' field.
* @return The value of the 'leadersBytesIn5MinRate' field.
*/
public java.lang.Long getLeadersBytesIn5MinRate() {
return leadersBytesIn5MinRate;
}
/**
* Sets the value of the 'leadersBytesIn5MinRate' field.
* @param value the value to set.
*/
public void setLeadersBytesIn5MinRate(java.lang.Long value) {
this.leadersBytesIn5MinRate = value;
}
/**
* Gets the value of the 'leadersBytesOut5MinRate' field.
* @return The value of the 'leadersBytesOut5MinRate' field.
*/
public java.lang.Long getLeadersBytesOut5MinRate() {
return leadersBytesOut5MinRate;
}
/**
* Sets the value of the 'leadersBytesOut5MinRate' field.
* @param value the value to set.
*/
public void setLeadersBytesOut5MinRate(java.lang.Long value) {
this.leadersBytesOut5MinRate = value;
}
/**
* Gets the value of the 'leadersBytesIn15MinRate' field.
* @return The value of the 'leadersBytesIn15MinRate' field.
*/
public java.lang.Long getLeadersBytesIn15MinRate() {
return leadersBytesIn15MinRate;
}
/**
* Sets the value of the 'leadersBytesIn15MinRate' field.
* @param value the value to set.
*/
public void setLeadersBytesIn15MinRate(java.lang.Long value) {
this.leadersBytesIn15MinRate = value;
}
/**
* Gets the value of the 'leadersBytesOut15MinRate' field.
* @return The value of the 'leadersBytesOut15MinRate' field.
*/
public java.lang.Long getLeadersBytesOut15MinRate() {
return leadersBytesOut15MinRate;
}
/**
* Sets the value of the 'leadersBytesOut15MinRate' field.
* @param value the value to set.
*/
public void setLeadersBytesOut15MinRate(java.lang.Long value) {
this.leadersBytesOut15MinRate = value;
}
/**
* Gets the value of the 'sysBytesIn1MinRate' field.
* @return The value of the 'sysBytesIn1MinRate' field.
*/
public java.lang.Long getSysBytesIn1MinRate() {
return sysBytesIn1MinRate;
}
/**
* Sets the value of the 'sysBytesIn1MinRate' field.
* @param value the value to set.
*/
public void setSysBytesIn1MinRate(java.lang.Long value) {
this.sysBytesIn1MinRate = value;
}
/**
* Gets the value of the 'sysBytesOut1MinRate' field.
* @return The value of the 'sysBytesOut1MinRate' field.
*/
public java.lang.Long getSysBytesOut1MinRate() {
return sysBytesOut1MinRate;
}
/**
* Sets the value of the 'sysBytesOut1MinRate' field.
* @param value the value to set.
*/
public void setSysBytesOut1MinRate(java.lang.Long value) {
this.sysBytesOut1MinRate = value;
}
/**
* Gets the value of the 'numReplicas' field.
* @return The value of the 'numReplicas' field.
*/
public java.lang.Integer getNumReplicas() {
return numReplicas;
}
/**
* Sets the value of the 'numReplicas' field.
* @param value the value to set.
*/
public void setNumReplicas(java.lang.Integer value) {
this.numReplicas = value;
}
/**
* Gets the value of the 'numLeaders' field.
* @return The value of the 'numLeaders' field.
*/
public java.lang.Integer getNumLeaders() {
return numLeaders;
}
/**
* Sets the value of the 'numLeaders' field.
* @param value the value to set.
*/
public void setNumLeaders(java.lang.Integer value) {
this.numLeaders = value;
}
/**
* Gets the value of the 'topicsBytesIn1MinRate' field.
* @return The value of the 'topicsBytesIn1MinRate' field.
*/
public java.util.Map getTopicsBytesIn1MinRate() {
return topicsBytesIn1MinRate;
}
/**
* Sets the value of the 'topicsBytesIn1MinRate' field.
* @param value the value to set.
*/
public void setTopicsBytesIn1MinRate(java.util.Map value) {
this.topicsBytesIn1MinRate = value;
}
/**
* Gets the value of the 'topicsBytesOut1MinRate' field.
* @return The value of the 'topicsBytesOut1MinRate' field.
*/
public java.util.Map getTopicsBytesOut1MinRate() {
return topicsBytesOut1MinRate;
}
/**
* Sets the value of the 'topicsBytesOut1MinRate' field.
* @param value the value to set.
*/
public void setTopicsBytesOut1MinRate(java.util.Map value) {
this.topicsBytesOut1MinRate = value;
}
/**
* Gets the value of the 'topicsBytesIn5MinRate' field.
* @return The value of the 'topicsBytesIn5MinRate' field.
*/
public java.util.Map getTopicsBytesIn5MinRate() {
return topicsBytesIn5MinRate;
}
/**
* Sets the value of the 'topicsBytesIn5MinRate' field.
* @param value the value to set.
*/
public void setTopicsBytesIn5MinRate(java.util.Map value) {
this.topicsBytesIn5MinRate = value;
}
/**
* Gets the value of the 'topicsBytesOut5MinRate' field.
* @return The value of the 'topicsBytesOut5MinRate' field.
*/
public java.util.Map getTopicsBytesOut5MinRate() {
return topicsBytesOut5MinRate;
}
/**
* Sets the value of the 'topicsBytesOut5MinRate' field.
* @param value the value to set.
*/
public void setTopicsBytesOut5MinRate(java.util.Map value) {
this.topicsBytesOut5MinRate = value;
}
/**
* Gets the value of the 'topicsBytesIn15MinRate' field.
* @return The value of the 'topicsBytesIn15MinRate' field.
*/
public java.util.Map getTopicsBytesIn15MinRate() {
return topicsBytesIn15MinRate;
}
/**
* Sets the value of the 'topicsBytesIn15MinRate' field.
* @param value the value to set.
*/
public void setTopicsBytesIn15MinRate(java.util.Map value) {
this.topicsBytesIn15MinRate = value;
}
/**
* Gets the value of the 'topicsBytesOut15MinRate' field.
* @return The value of the 'topicsBytesOut15MinRate' field.
*/
public java.util.Map getTopicsBytesOut15MinRate() {
return topicsBytesOut15MinRate;
}
/**
* Sets the value of the 'topicsBytesOut15MinRate' field.
* @param value the value to set.
*/
public void setTopicsBytesOut15MinRate(java.util.Map value) {
this.topicsBytesOut15MinRate = value;
}
/**
* Gets the value of the 'leaderReplicaStats' field.
* @return The value of the 'leaderReplicaStats' field.
*/
public java.util.List getLeaderReplicaStats() {
return leaderReplicaStats;
}
/**
* Sets the value of the 'leaderReplicaStats' field.
* @param value the value to set.
*/
public void setLeaderReplicaStats(java.util.List value) {
this.leaderReplicaStats = value;
}
/**
* Gets the value of the 'leaderReplicas' field.
* @return The value of the 'leaderReplicas' field.
*/
public java.util.List getLeaderReplicas() {
return leaderReplicas;
}
/**
* Sets the value of the 'leaderReplicas' field.
* @param value the value to set.
*/
public void setLeaderReplicas(java.util.List value) {
this.leaderReplicas = value;
}
/**
* Gets the value of the 'followerReplicas' field.
* @return The value of the 'followerReplicas' field.
*/
public java.util.List getFollowerReplicas() {
return followerReplicas;
}
/**
* Sets the value of the 'followerReplicas' field.
* @param value the value to set.
*/
public void setFollowerReplicas(java.util.List value) {
this.followerReplicas = value;
}
/**
* Gets the value of the 'inReassignmentReplicas' field.
* @return The value of the 'inReassignmentReplicas' field.
*/
public java.util.List getInReassignmentReplicas() {
return inReassignmentReplicas;
}
/**
* Sets the value of the 'inReassignmentReplicas' field.
* @param value the value to set.
*/
public void setInReassignmentReplicas(java.util.List value) {
this.inReassignmentReplicas = value;
}
/**
* Creates a new BrokerStats RecordBuilder.
* @return A new BrokerStats RecordBuilder
*/
public static com.pinterest.doctorkafka.BrokerStats.Builder newBuilder() {
return new com.pinterest.doctorkafka.BrokerStats.Builder();
}
/**
* Creates a new BrokerStats RecordBuilder by copying an existing Builder.
* @param other The existing builder to copy.
* @return A new BrokerStats RecordBuilder
*/
public static com.pinterest.doctorkafka.BrokerStats.Builder newBuilder(com.pinterest.doctorkafka.BrokerStats.Builder other) {
return new com.pinterest.doctorkafka.BrokerStats.Builder(other);
}
/**
* Creates a new BrokerStats RecordBuilder by copying an existing BrokerStats instance.
* @param other The existing instance to copy.
* @return A new BrokerStats RecordBuilder
*/
public static com.pinterest.doctorkafka.BrokerStats.Builder newBuilder(com.pinterest.doctorkafka.BrokerStats other) {
return new com.pinterest.doctorkafka.BrokerStats.Builder(other);
}
/**
* RecordBuilder for BrokerStats instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.avro.data.RecordBuilder {
private long timestamp;
private int id;
private java.lang.String name;
private java.lang.String zkUrl;
private java.lang.String kafkaVersion;
private java.lang.String statsVersion;
private boolean hasFailure;
private com.pinterest.doctorkafka.BrokerError failureReason;
private java.lang.String availabilityZone;
private java.lang.String instanceType;
private java.lang.String amiId;
private java.lang.String rackId;
private java.lang.String logFilesPath;
private double cpuUsage;
private long freeDiskSpaceInBytes;
private long totalDiskSpaceInBytes;
private long leadersBytesIn1MinRate;
private long leadersBytesOut1MinRate;
private long leadersBytesIn5MinRate;
private long leadersBytesOut5MinRate;
private long leadersBytesIn15MinRate;
private long leadersBytesOut15MinRate;
private long sysBytesIn1MinRate;
private long sysBytesOut1MinRate;
private int numReplicas;
private int numLeaders;
private java.util.Map topicsBytesIn1MinRate;
private java.util.Map topicsBytesOut1MinRate;
private java.util.Map topicsBytesIn5MinRate;
private java.util.Map topicsBytesOut5MinRate;
private java.util.Map topicsBytesIn15MinRate;
private java.util.Map topicsBytesOut15MinRate;
private java.util.List leaderReplicaStats;
private java.util.List leaderReplicas;
private java.util.List followerReplicas;
private java.util.List inReassignmentReplicas;
/** Creates a new Builder */
private Builder() {
super(SCHEMA$);
}
/**
* Creates a Builder by copying an existing Builder.
* @param other The existing Builder to copy.
*/
private Builder(com.pinterest.doctorkafka.BrokerStats.Builder other) {
super(other);
if (isValidValue(fields()[0], other.timestamp)) {
this.timestamp = data().deepCopy(fields()[0].schema(), other.timestamp);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.id)) {
this.id = data().deepCopy(fields()[1].schema(), other.id);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.name)) {
this.name = data().deepCopy(fields()[2].schema(), other.name);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.zkUrl)) {
this.zkUrl = data().deepCopy(fields()[3].schema(), other.zkUrl);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.kafkaVersion)) {
this.kafkaVersion = data().deepCopy(fields()[4].schema(), other.kafkaVersion);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.statsVersion)) {
this.statsVersion = data().deepCopy(fields()[5].schema(), other.statsVersion);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.hasFailure)) {
this.hasFailure = data().deepCopy(fields()[6].schema(), other.hasFailure);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.failureReason)) {
this.failureReason = data().deepCopy(fields()[7].schema(), other.failureReason);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.availabilityZone)) {
this.availabilityZone = data().deepCopy(fields()[8].schema(), other.availabilityZone);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.instanceType)) {
this.instanceType = data().deepCopy(fields()[9].schema(), other.instanceType);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.amiId)) {
this.amiId = data().deepCopy(fields()[10].schema(), other.amiId);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.rackId)) {
this.rackId = data().deepCopy(fields()[11].schema(), other.rackId);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.logFilesPath)) {
this.logFilesPath = data().deepCopy(fields()[12].schema(), other.logFilesPath);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.cpuUsage)) {
this.cpuUsage = data().deepCopy(fields()[13].schema(), other.cpuUsage);
fieldSetFlags()[13] = true;
}
if (isValidValue(fields()[14], other.freeDiskSpaceInBytes)) {
this.freeDiskSpaceInBytes = data().deepCopy(fields()[14].schema(), other.freeDiskSpaceInBytes);
fieldSetFlags()[14] = true;
}
if (isValidValue(fields()[15], other.totalDiskSpaceInBytes)) {
this.totalDiskSpaceInBytes = data().deepCopy(fields()[15].schema(), other.totalDiskSpaceInBytes);
fieldSetFlags()[15] = true;
}
if (isValidValue(fields()[16], other.leadersBytesIn1MinRate)) {
this.leadersBytesIn1MinRate = data().deepCopy(fields()[16].schema(), other.leadersBytesIn1MinRate);
fieldSetFlags()[16] = true;
}
if (isValidValue(fields()[17], other.leadersBytesOut1MinRate)) {
this.leadersBytesOut1MinRate = data().deepCopy(fields()[17].schema(), other.leadersBytesOut1MinRate);
fieldSetFlags()[17] = true;
}
if (isValidValue(fields()[18], other.leadersBytesIn5MinRate)) {
this.leadersBytesIn5MinRate = data().deepCopy(fields()[18].schema(), other.leadersBytesIn5MinRate);
fieldSetFlags()[18] = true;
}
if (isValidValue(fields()[19], other.leadersBytesOut5MinRate)) {
this.leadersBytesOut5MinRate = data().deepCopy(fields()[19].schema(), other.leadersBytesOut5MinRate);
fieldSetFlags()[19] = true;
}
if (isValidValue(fields()[20], other.leadersBytesIn15MinRate)) {
this.leadersBytesIn15MinRate = data().deepCopy(fields()[20].schema(), other.leadersBytesIn15MinRate);
fieldSetFlags()[20] = true;
}
if (isValidValue(fields()[21], other.leadersBytesOut15MinRate)) {
this.leadersBytesOut15MinRate = data().deepCopy(fields()[21].schema(), other.leadersBytesOut15MinRate);
fieldSetFlags()[21] = true;
}
if (isValidValue(fields()[22], other.sysBytesIn1MinRate)) {
this.sysBytesIn1MinRate = data().deepCopy(fields()[22].schema(), other.sysBytesIn1MinRate);
fieldSetFlags()[22] = true;
}
if (isValidValue(fields()[23], other.sysBytesOut1MinRate)) {
this.sysBytesOut1MinRate = data().deepCopy(fields()[23].schema(), other.sysBytesOut1MinRate);
fieldSetFlags()[23] = true;
}
if (isValidValue(fields()[24], other.numReplicas)) {
this.numReplicas = data().deepCopy(fields()[24].schema(), other.numReplicas);
fieldSetFlags()[24] = true;
}
if (isValidValue(fields()[25], other.numLeaders)) {
this.numLeaders = data().deepCopy(fields()[25].schema(), other.numLeaders);
fieldSetFlags()[25] = true;
}
if (isValidValue(fields()[26], other.topicsBytesIn1MinRate)) {
this.topicsBytesIn1MinRate = data().deepCopy(fields()[26].schema(), other.topicsBytesIn1MinRate);
fieldSetFlags()[26] = true;
}
if (isValidValue(fields()[27], other.topicsBytesOut1MinRate)) {
this.topicsBytesOut1MinRate = data().deepCopy(fields()[27].schema(), other.topicsBytesOut1MinRate);
fieldSetFlags()[27] = true;
}
if (isValidValue(fields()[28], other.topicsBytesIn5MinRate)) {
this.topicsBytesIn5MinRate = data().deepCopy(fields()[28].schema(), other.topicsBytesIn5MinRate);
fieldSetFlags()[28] = true;
}
if (isValidValue(fields()[29], other.topicsBytesOut5MinRate)) {
this.topicsBytesOut5MinRate = data().deepCopy(fields()[29].schema(), other.topicsBytesOut5MinRate);
fieldSetFlags()[29] = true;
}
if (isValidValue(fields()[30], other.topicsBytesIn15MinRate)) {
this.topicsBytesIn15MinRate = data().deepCopy(fields()[30].schema(), other.topicsBytesIn15MinRate);
fieldSetFlags()[30] = true;
}
if (isValidValue(fields()[31], other.topicsBytesOut15MinRate)) {
this.topicsBytesOut15MinRate = data().deepCopy(fields()[31].schema(), other.topicsBytesOut15MinRate);
fieldSetFlags()[31] = true;
}
if (isValidValue(fields()[32], other.leaderReplicaStats)) {
this.leaderReplicaStats = data().deepCopy(fields()[32].schema(), other.leaderReplicaStats);
fieldSetFlags()[32] = true;
}
if (isValidValue(fields()[33], other.leaderReplicas)) {
this.leaderReplicas = data().deepCopy(fields()[33].schema(), other.leaderReplicas);
fieldSetFlags()[33] = true;
}
if (isValidValue(fields()[34], other.followerReplicas)) {
this.followerReplicas = data().deepCopy(fields()[34].schema(), other.followerReplicas);
fieldSetFlags()[34] = true;
}
if (isValidValue(fields()[35], other.inReassignmentReplicas)) {
this.inReassignmentReplicas = data().deepCopy(fields()[35].schema(), other.inReassignmentReplicas);
fieldSetFlags()[35] = true;
}
}
/**
* Creates a Builder by copying an existing BrokerStats instance
* @param other The existing instance to copy.
*/
private Builder(com.pinterest.doctorkafka.BrokerStats other) {
super(SCHEMA$);
if (isValidValue(fields()[0], other.timestamp)) {
this.timestamp = data().deepCopy(fields()[0].schema(), other.timestamp);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.id)) {
this.id = data().deepCopy(fields()[1].schema(), other.id);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.name)) {
this.name = data().deepCopy(fields()[2].schema(), other.name);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.zkUrl)) {
this.zkUrl = data().deepCopy(fields()[3].schema(), other.zkUrl);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.kafkaVersion)) {
this.kafkaVersion = data().deepCopy(fields()[4].schema(), other.kafkaVersion);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.statsVersion)) {
this.statsVersion = data().deepCopy(fields()[5].schema(), other.statsVersion);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.hasFailure)) {
this.hasFailure = data().deepCopy(fields()[6].schema(), other.hasFailure);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.failureReason)) {
this.failureReason = data().deepCopy(fields()[7].schema(), other.failureReason);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.availabilityZone)) {
this.availabilityZone = data().deepCopy(fields()[8].schema(), other.availabilityZone);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.instanceType)) {
this.instanceType = data().deepCopy(fields()[9].schema(), other.instanceType);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.amiId)) {
this.amiId = data().deepCopy(fields()[10].schema(), other.amiId);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.rackId)) {
this.rackId = data().deepCopy(fields()[11].schema(), other.rackId);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.logFilesPath)) {
this.logFilesPath = data().deepCopy(fields()[12].schema(), other.logFilesPath);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.cpuUsage)) {
this.cpuUsage = data().deepCopy(fields()[13].schema(), other.cpuUsage);
fieldSetFlags()[13] = true;
}
if (isValidValue(fields()[14], other.freeDiskSpaceInBytes)) {
this.freeDiskSpaceInBytes = data().deepCopy(fields()[14].schema(), other.freeDiskSpaceInBytes);
fieldSetFlags()[14] = true;
}
if (isValidValue(fields()[15], other.totalDiskSpaceInBytes)) {
this.totalDiskSpaceInBytes = data().deepCopy(fields()[15].schema(), other.totalDiskSpaceInBytes);
fieldSetFlags()[15] = true;
}
if (isValidValue(fields()[16], other.leadersBytesIn1MinRate)) {
this.leadersBytesIn1MinRate = data().deepCopy(fields()[16].schema(), other.leadersBytesIn1MinRate);
fieldSetFlags()[16] = true;
}
if (isValidValue(fields()[17], other.leadersBytesOut1MinRate)) {
this.leadersBytesOut1MinRate = data().deepCopy(fields()[17].schema(), other.leadersBytesOut1MinRate);
fieldSetFlags()[17] = true;
}
if (isValidValue(fields()[18], other.leadersBytesIn5MinRate)) {
this.leadersBytesIn5MinRate = data().deepCopy(fields()[18].schema(), other.leadersBytesIn5MinRate);
fieldSetFlags()[18] = true;
}
if (isValidValue(fields()[19], other.leadersBytesOut5MinRate)) {
this.leadersBytesOut5MinRate = data().deepCopy(fields()[19].schema(), other.leadersBytesOut5MinRate);
fieldSetFlags()[19] = true;
}
if (isValidValue(fields()[20], other.leadersBytesIn15MinRate)) {
this.leadersBytesIn15MinRate = data().deepCopy(fields()[20].schema(), other.leadersBytesIn15MinRate);
fieldSetFlags()[20] = true;
}
if (isValidValue(fields()[21], other.leadersBytesOut15MinRate)) {
this.leadersBytesOut15MinRate = data().deepCopy(fields()[21].schema(), other.leadersBytesOut15MinRate);
fieldSetFlags()[21] = true;
}
if (isValidValue(fields()[22], other.sysBytesIn1MinRate)) {
this.sysBytesIn1MinRate = data().deepCopy(fields()[22].schema(), other.sysBytesIn1MinRate);
fieldSetFlags()[22] = true;
}
if (isValidValue(fields()[23], other.sysBytesOut1MinRate)) {
this.sysBytesOut1MinRate = data().deepCopy(fields()[23].schema(), other.sysBytesOut1MinRate);
fieldSetFlags()[23] = true;
}
if (isValidValue(fields()[24], other.numReplicas)) {
this.numReplicas = data().deepCopy(fields()[24].schema(), other.numReplicas);
fieldSetFlags()[24] = true;
}
if (isValidValue(fields()[25], other.numLeaders)) {
this.numLeaders = data().deepCopy(fields()[25].schema(), other.numLeaders);
fieldSetFlags()[25] = true;
}
if (isValidValue(fields()[26], other.topicsBytesIn1MinRate)) {
this.topicsBytesIn1MinRate = data().deepCopy(fields()[26].schema(), other.topicsBytesIn1MinRate);
fieldSetFlags()[26] = true;
}
if (isValidValue(fields()[27], other.topicsBytesOut1MinRate)) {
this.topicsBytesOut1MinRate = data().deepCopy(fields()[27].schema(), other.topicsBytesOut1MinRate);
fieldSetFlags()[27] = true;
}
if (isValidValue(fields()[28], other.topicsBytesIn5MinRate)) {
this.topicsBytesIn5MinRate = data().deepCopy(fields()[28].schema(), other.topicsBytesIn5MinRate);
fieldSetFlags()[28] = true;
}
if (isValidValue(fields()[29], other.topicsBytesOut5MinRate)) {
this.topicsBytesOut5MinRate = data().deepCopy(fields()[29].schema(), other.topicsBytesOut5MinRate);
fieldSetFlags()[29] = true;
}
if (isValidValue(fields()[30], other.topicsBytesIn15MinRate)) {
this.topicsBytesIn15MinRate = data().deepCopy(fields()[30].schema(), other.topicsBytesIn15MinRate);
fieldSetFlags()[30] = true;
}
if (isValidValue(fields()[31], other.topicsBytesOut15MinRate)) {
this.topicsBytesOut15MinRate = data().deepCopy(fields()[31].schema(), other.topicsBytesOut15MinRate);
fieldSetFlags()[31] = true;
}
if (isValidValue(fields()[32], other.leaderReplicaStats)) {
this.leaderReplicaStats = data().deepCopy(fields()[32].schema(), other.leaderReplicaStats);
fieldSetFlags()[32] = true;
}
if (isValidValue(fields()[33], other.leaderReplicas)) {
this.leaderReplicas = data().deepCopy(fields()[33].schema(), other.leaderReplicas);
fieldSetFlags()[33] = true;
}
if (isValidValue(fields()[34], other.followerReplicas)) {
this.followerReplicas = data().deepCopy(fields()[34].schema(), other.followerReplicas);
fieldSetFlags()[34] = true;
}
if (isValidValue(fields()[35], other.inReassignmentReplicas)) {
this.inReassignmentReplicas = data().deepCopy(fields()[35].schema(), other.inReassignmentReplicas);
fieldSetFlags()[35] = true;
}
}
/**
* Gets the value of the 'timestamp' field.
* @return The value.
*/
public java.lang.Long getTimestamp() {
return timestamp;
}
/**
* Sets the value of the 'timestamp' field.
* @param value The value of 'timestamp'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTimestamp(long value) {
validate(fields()[0], value);
this.timestamp = value;
fieldSetFlags()[0] = true;
return this;
}
/**
* Checks whether the 'timestamp' field has been set.
* @return True if the 'timestamp' field has been set, false otherwise.
*/
public boolean hasTimestamp() {
return fieldSetFlags()[0];
}
/**
* Clears the value of the 'timestamp' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTimestamp() {
fieldSetFlags()[0] = false;
return this;
}
/**
* Gets the value of the 'id' field.
* @return The value.
*/
public java.lang.Integer getId() {
return id;
}
/**
* Sets the value of the 'id' field.
* @param value The value of 'id'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setId(int value) {
validate(fields()[1], value);
this.id = value;
fieldSetFlags()[1] = true;
return this;
}
/**
* Checks whether the 'id' field has been set.
* @return True if the 'id' field has been set, false otherwise.
*/
public boolean hasId() {
return fieldSetFlags()[1];
}
/**
* Clears the value of the 'id' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearId() {
fieldSetFlags()[1] = false;
return this;
}
/**
* Gets the value of the 'name' field.
* @return The value.
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the value of the 'name' field.
* @param value The value of 'name'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setName(java.lang.String value) {
validate(fields()[2], value);
this.name = value;
fieldSetFlags()[2] = true;
return this;
}
/**
* Checks whether the 'name' field has been set.
* @return True if the 'name' field has been set, false otherwise.
*/
public boolean hasName() {
return fieldSetFlags()[2];
}
/**
* Clears the value of the 'name' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearName() {
name = null;
fieldSetFlags()[2] = false;
return this;
}
/**
* Gets the value of the 'zkUrl' field.
* @return The value.
*/
public java.lang.String getZkUrl() {
return zkUrl;
}
/**
* Sets the value of the 'zkUrl' field.
* @param value The value of 'zkUrl'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setZkUrl(java.lang.String value) {
validate(fields()[3], value);
this.zkUrl = value;
fieldSetFlags()[3] = true;
return this;
}
/**
* Checks whether the 'zkUrl' field has been set.
* @return True if the 'zkUrl' field has been set, false otherwise.
*/
public boolean hasZkUrl() {
return fieldSetFlags()[3];
}
/**
* Clears the value of the 'zkUrl' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearZkUrl() {
zkUrl = null;
fieldSetFlags()[3] = false;
return this;
}
/**
* Gets the value of the 'kafkaVersion' field.
* @return The value.
*/
public java.lang.String getKafkaVersion() {
return kafkaVersion;
}
/**
* Sets the value of the 'kafkaVersion' field.
* @param value The value of 'kafkaVersion'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setKafkaVersion(java.lang.String value) {
validate(fields()[4], value);
this.kafkaVersion = value;
fieldSetFlags()[4] = true;
return this;
}
/**
* Checks whether the 'kafkaVersion' field has been set.
* @return True if the 'kafkaVersion' field has been set, false otherwise.
*/
public boolean hasKafkaVersion() {
return fieldSetFlags()[4];
}
/**
* Clears the value of the 'kafkaVersion' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearKafkaVersion() {
kafkaVersion = null;
fieldSetFlags()[4] = false;
return this;
}
/**
* Gets the value of the 'statsVersion' field.
* @return The value.
*/
public java.lang.String getStatsVersion() {
return statsVersion;
}
/**
* Sets the value of the 'statsVersion' field.
* @param value The value of 'statsVersion'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setStatsVersion(java.lang.String value) {
validate(fields()[5], value);
this.statsVersion = value;
fieldSetFlags()[5] = true;
return this;
}
/**
* Checks whether the 'statsVersion' field has been set.
* @return True if the 'statsVersion' field has been set, false otherwise.
*/
public boolean hasStatsVersion() {
return fieldSetFlags()[5];
}
/**
* Clears the value of the 'statsVersion' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearStatsVersion() {
statsVersion = null;
fieldSetFlags()[5] = false;
return this;
}
/**
* Gets the value of the 'hasFailure' field.
* @return The value.
*/
public java.lang.Boolean getHasFailure() {
return hasFailure;
}
/**
* Sets the value of the 'hasFailure' field.
* @param value The value of 'hasFailure'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setHasFailure(boolean value) {
validate(fields()[6], value);
this.hasFailure = value;
fieldSetFlags()[6] = true;
return this;
}
/**
* Checks whether the 'hasFailure' field has been set.
* @return True if the 'hasFailure' field has been set, false otherwise.
*/
public boolean hasHasFailure() {
return fieldSetFlags()[6];
}
/**
* Clears the value of the 'hasFailure' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearHasFailure() {
fieldSetFlags()[6] = false;
return this;
}
/**
* Gets the value of the 'failureReason' field.
* @return The value.
*/
public com.pinterest.doctorkafka.BrokerError getFailureReason() {
return failureReason;
}
/**
* Sets the value of the 'failureReason' field.
* @param value The value of 'failureReason'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setFailureReason(com.pinterest.doctorkafka.BrokerError value) {
validate(fields()[7], value);
this.failureReason = value;
fieldSetFlags()[7] = true;
return this;
}
/**
* Checks whether the 'failureReason' field has been set.
* @return True if the 'failureReason' field has been set, false otherwise.
*/
public boolean hasFailureReason() {
return fieldSetFlags()[7];
}
/**
* Clears the value of the 'failureReason' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearFailureReason() {
failureReason = null;
fieldSetFlags()[7] = false;
return this;
}
/**
* Gets the value of the 'availabilityZone' field.
* @return The value.
*/
public java.lang.String getAvailabilityZone() {
return availabilityZone;
}
/**
* Sets the value of the 'availabilityZone' field.
* @param value The value of 'availabilityZone'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setAvailabilityZone(java.lang.String value) {
validate(fields()[8], value);
this.availabilityZone = value;
fieldSetFlags()[8] = true;
return this;
}
/**
* Checks whether the 'availabilityZone' field has been set.
* @return True if the 'availabilityZone' field has been set, false otherwise.
*/
public boolean hasAvailabilityZone() {
return fieldSetFlags()[8];
}
/**
* Clears the value of the 'availabilityZone' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearAvailabilityZone() {
availabilityZone = null;
fieldSetFlags()[8] = false;
return this;
}
/**
* Gets the value of the 'instanceType' field.
* @return The value.
*/
public java.lang.String getInstanceType() {
return instanceType;
}
/**
* Sets the value of the 'instanceType' field.
* @param value The value of 'instanceType'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setInstanceType(java.lang.String value) {
validate(fields()[9], value);
this.instanceType = value;
fieldSetFlags()[9] = true;
return this;
}
/**
* Checks whether the 'instanceType' field has been set.
* @return True if the 'instanceType' field has been set, false otherwise.
*/
public boolean hasInstanceType() {
return fieldSetFlags()[9];
}
/**
* Clears the value of the 'instanceType' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearInstanceType() {
instanceType = null;
fieldSetFlags()[9] = false;
return this;
}
/**
* Gets the value of the 'amiId' field.
* @return The value.
*/
public java.lang.String getAmiId() {
return amiId;
}
/**
* Sets the value of the 'amiId' field.
* @param value The value of 'amiId'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setAmiId(java.lang.String value) {
validate(fields()[10], value);
this.amiId = value;
fieldSetFlags()[10] = true;
return this;
}
/**
* Checks whether the 'amiId' field has been set.
* @return True if the 'amiId' field has been set, false otherwise.
*/
public boolean hasAmiId() {
return fieldSetFlags()[10];
}
/**
* Clears the value of the 'amiId' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearAmiId() {
amiId = null;
fieldSetFlags()[10] = false;
return this;
}
/**
* Gets the value of the 'rackId' field.
* @return The value.
*/
public java.lang.String getRackId() {
return rackId;
}
/**
* Sets the value of the 'rackId' field.
* @param value The value of 'rackId'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setRackId(java.lang.String value) {
validate(fields()[11], value);
this.rackId = value;
fieldSetFlags()[11] = true;
return this;
}
/**
* Checks whether the 'rackId' field has been set.
* @return True if the 'rackId' field has been set, false otherwise.
*/
public boolean hasRackId() {
return fieldSetFlags()[11];
}
/**
* Clears the value of the 'rackId' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearRackId() {
rackId = null;
fieldSetFlags()[11] = false;
return this;
}
/**
* Gets the value of the 'logFilesPath' field.
* @return The value.
*/
public java.lang.String getLogFilesPath() {
return logFilesPath;
}
/**
* Sets the value of the 'logFilesPath' field.
* @param value The value of 'logFilesPath'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLogFilesPath(java.lang.String value) {
validate(fields()[12], value);
this.logFilesPath = value;
fieldSetFlags()[12] = true;
return this;
}
/**
* Checks whether the 'logFilesPath' field has been set.
* @return True if the 'logFilesPath' field has been set, false otherwise.
*/
public boolean hasLogFilesPath() {
return fieldSetFlags()[12];
}
/**
* Clears the value of the 'logFilesPath' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLogFilesPath() {
logFilesPath = null;
fieldSetFlags()[12] = false;
return this;
}
/**
* Gets the value of the 'cpuUsage' field.
* @return The value.
*/
public java.lang.Double getCpuUsage() {
return cpuUsage;
}
/**
* Sets the value of the 'cpuUsage' field.
* @param value The value of 'cpuUsage'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setCpuUsage(double value) {
validate(fields()[13], value);
this.cpuUsage = value;
fieldSetFlags()[13] = true;
return this;
}
/**
* Checks whether the 'cpuUsage' field has been set.
* @return True if the 'cpuUsage' field has been set, false otherwise.
*/
public boolean hasCpuUsage() {
return fieldSetFlags()[13];
}
/**
* Clears the value of the 'cpuUsage' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearCpuUsage() {
fieldSetFlags()[13] = false;
return this;
}
/**
* Gets the value of the 'freeDiskSpaceInBytes' field.
* @return The value.
*/
public java.lang.Long getFreeDiskSpaceInBytes() {
return freeDiskSpaceInBytes;
}
/**
* Sets the value of the 'freeDiskSpaceInBytes' field.
* @param value The value of 'freeDiskSpaceInBytes'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setFreeDiskSpaceInBytes(long value) {
validate(fields()[14], value);
this.freeDiskSpaceInBytes = value;
fieldSetFlags()[14] = true;
return this;
}
/**
* Checks whether the 'freeDiskSpaceInBytes' field has been set.
* @return True if the 'freeDiskSpaceInBytes' field has been set, false otherwise.
*/
public boolean hasFreeDiskSpaceInBytes() {
return fieldSetFlags()[14];
}
/**
* Clears the value of the 'freeDiskSpaceInBytes' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearFreeDiskSpaceInBytes() {
fieldSetFlags()[14] = false;
return this;
}
/**
* Gets the value of the 'totalDiskSpaceInBytes' field.
* @return The value.
*/
public java.lang.Long getTotalDiskSpaceInBytes() {
return totalDiskSpaceInBytes;
}
/**
* Sets the value of the 'totalDiskSpaceInBytes' field.
* @param value The value of 'totalDiskSpaceInBytes'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTotalDiskSpaceInBytes(long value) {
validate(fields()[15], value);
this.totalDiskSpaceInBytes = value;
fieldSetFlags()[15] = true;
return this;
}
/**
* Checks whether the 'totalDiskSpaceInBytes' field has been set.
* @return True if the 'totalDiskSpaceInBytes' field has been set, false otherwise.
*/
public boolean hasTotalDiskSpaceInBytes() {
return fieldSetFlags()[15];
}
/**
* Clears the value of the 'totalDiskSpaceInBytes' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTotalDiskSpaceInBytes() {
fieldSetFlags()[15] = false;
return this;
}
/**
* Gets the value of the 'leadersBytesIn1MinRate' field.
* @return The value.
*/
public java.lang.Long getLeadersBytesIn1MinRate() {
return leadersBytesIn1MinRate;
}
/**
* Sets the value of the 'leadersBytesIn1MinRate' field.
* @param value The value of 'leadersBytesIn1MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeadersBytesIn1MinRate(long value) {
validate(fields()[16], value);
this.leadersBytesIn1MinRate = value;
fieldSetFlags()[16] = true;
return this;
}
/**
* Checks whether the 'leadersBytesIn1MinRate' field has been set.
* @return True if the 'leadersBytesIn1MinRate' field has been set, false otherwise.
*/
public boolean hasLeadersBytesIn1MinRate() {
return fieldSetFlags()[16];
}
/**
* Clears the value of the 'leadersBytesIn1MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeadersBytesIn1MinRate() {
fieldSetFlags()[16] = false;
return this;
}
/**
* Gets the value of the 'leadersBytesOut1MinRate' field.
* @return The value.
*/
public java.lang.Long getLeadersBytesOut1MinRate() {
return leadersBytesOut1MinRate;
}
/**
* Sets the value of the 'leadersBytesOut1MinRate' field.
* @param value The value of 'leadersBytesOut1MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeadersBytesOut1MinRate(long value) {
validate(fields()[17], value);
this.leadersBytesOut1MinRate = value;
fieldSetFlags()[17] = true;
return this;
}
/**
* Checks whether the 'leadersBytesOut1MinRate' field has been set.
* @return True if the 'leadersBytesOut1MinRate' field has been set, false otherwise.
*/
public boolean hasLeadersBytesOut1MinRate() {
return fieldSetFlags()[17];
}
/**
* Clears the value of the 'leadersBytesOut1MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeadersBytesOut1MinRate() {
fieldSetFlags()[17] = false;
return this;
}
/**
* Gets the value of the 'leadersBytesIn5MinRate' field.
* @return The value.
*/
public java.lang.Long getLeadersBytesIn5MinRate() {
return leadersBytesIn5MinRate;
}
/**
* Sets the value of the 'leadersBytesIn5MinRate' field.
* @param value The value of 'leadersBytesIn5MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeadersBytesIn5MinRate(long value) {
validate(fields()[18], value);
this.leadersBytesIn5MinRate = value;
fieldSetFlags()[18] = true;
return this;
}
/**
* Checks whether the 'leadersBytesIn5MinRate' field has been set.
* @return True if the 'leadersBytesIn5MinRate' field has been set, false otherwise.
*/
public boolean hasLeadersBytesIn5MinRate() {
return fieldSetFlags()[18];
}
/**
* Clears the value of the 'leadersBytesIn5MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeadersBytesIn5MinRate() {
fieldSetFlags()[18] = false;
return this;
}
/**
* Gets the value of the 'leadersBytesOut5MinRate' field.
* @return The value.
*/
public java.lang.Long getLeadersBytesOut5MinRate() {
return leadersBytesOut5MinRate;
}
/**
* Sets the value of the 'leadersBytesOut5MinRate' field.
* @param value The value of 'leadersBytesOut5MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeadersBytesOut5MinRate(long value) {
validate(fields()[19], value);
this.leadersBytesOut5MinRate = value;
fieldSetFlags()[19] = true;
return this;
}
/**
* Checks whether the 'leadersBytesOut5MinRate' field has been set.
* @return True if the 'leadersBytesOut5MinRate' field has been set, false otherwise.
*/
public boolean hasLeadersBytesOut5MinRate() {
return fieldSetFlags()[19];
}
/**
* Clears the value of the 'leadersBytesOut5MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeadersBytesOut5MinRate() {
fieldSetFlags()[19] = false;
return this;
}
/**
* Gets the value of the 'leadersBytesIn15MinRate' field.
* @return The value.
*/
public java.lang.Long getLeadersBytesIn15MinRate() {
return leadersBytesIn15MinRate;
}
/**
* Sets the value of the 'leadersBytesIn15MinRate' field.
* @param value The value of 'leadersBytesIn15MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeadersBytesIn15MinRate(long value) {
validate(fields()[20], value);
this.leadersBytesIn15MinRate = value;
fieldSetFlags()[20] = true;
return this;
}
/**
* Checks whether the 'leadersBytesIn15MinRate' field has been set.
* @return True if the 'leadersBytesIn15MinRate' field has been set, false otherwise.
*/
public boolean hasLeadersBytesIn15MinRate() {
return fieldSetFlags()[20];
}
/**
* Clears the value of the 'leadersBytesIn15MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeadersBytesIn15MinRate() {
fieldSetFlags()[20] = false;
return this;
}
/**
* Gets the value of the 'leadersBytesOut15MinRate' field.
* @return The value.
*/
public java.lang.Long getLeadersBytesOut15MinRate() {
return leadersBytesOut15MinRate;
}
/**
* Sets the value of the 'leadersBytesOut15MinRate' field.
* @param value The value of 'leadersBytesOut15MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeadersBytesOut15MinRate(long value) {
validate(fields()[21], value);
this.leadersBytesOut15MinRate = value;
fieldSetFlags()[21] = true;
return this;
}
/**
* Checks whether the 'leadersBytesOut15MinRate' field has been set.
* @return True if the 'leadersBytesOut15MinRate' field has been set, false otherwise.
*/
public boolean hasLeadersBytesOut15MinRate() {
return fieldSetFlags()[21];
}
/**
* Clears the value of the 'leadersBytesOut15MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeadersBytesOut15MinRate() {
fieldSetFlags()[21] = false;
return this;
}
/**
* Gets the value of the 'sysBytesIn1MinRate' field.
* @return The value.
*/
public java.lang.Long getSysBytesIn1MinRate() {
return sysBytesIn1MinRate;
}
/**
* Sets the value of the 'sysBytesIn1MinRate' field.
* @param value The value of 'sysBytesIn1MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setSysBytesIn1MinRate(long value) {
validate(fields()[22], value);
this.sysBytesIn1MinRate = value;
fieldSetFlags()[22] = true;
return this;
}
/**
* Checks whether the 'sysBytesIn1MinRate' field has been set.
* @return True if the 'sysBytesIn1MinRate' field has been set, false otherwise.
*/
public boolean hasSysBytesIn1MinRate() {
return fieldSetFlags()[22];
}
/**
* Clears the value of the 'sysBytesIn1MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearSysBytesIn1MinRate() {
fieldSetFlags()[22] = false;
return this;
}
/**
* Gets the value of the 'sysBytesOut1MinRate' field.
* @return The value.
*/
public java.lang.Long getSysBytesOut1MinRate() {
return sysBytesOut1MinRate;
}
/**
* Sets the value of the 'sysBytesOut1MinRate' field.
* @param value The value of 'sysBytesOut1MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setSysBytesOut1MinRate(long value) {
validate(fields()[23], value);
this.sysBytesOut1MinRate = value;
fieldSetFlags()[23] = true;
return this;
}
/**
* Checks whether the 'sysBytesOut1MinRate' field has been set.
* @return True if the 'sysBytesOut1MinRate' field has been set, false otherwise.
*/
public boolean hasSysBytesOut1MinRate() {
return fieldSetFlags()[23];
}
/**
* Clears the value of the 'sysBytesOut1MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearSysBytesOut1MinRate() {
fieldSetFlags()[23] = false;
return this;
}
/**
* Gets the value of the 'numReplicas' field.
* @return The value.
*/
public java.lang.Integer getNumReplicas() {
return numReplicas;
}
/**
* Sets the value of the 'numReplicas' field.
* @param value The value of 'numReplicas'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setNumReplicas(int value) {
validate(fields()[24], value);
this.numReplicas = value;
fieldSetFlags()[24] = true;
return this;
}
/**
* Checks whether the 'numReplicas' field has been set.
* @return True if the 'numReplicas' field has been set, false otherwise.
*/
public boolean hasNumReplicas() {
return fieldSetFlags()[24];
}
/**
* Clears the value of the 'numReplicas' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearNumReplicas() {
fieldSetFlags()[24] = false;
return this;
}
/**
* Gets the value of the 'numLeaders' field.
* @return The value.
*/
public java.lang.Integer getNumLeaders() {
return numLeaders;
}
/**
* Sets the value of the 'numLeaders' field.
* @param value The value of 'numLeaders'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setNumLeaders(int value) {
validate(fields()[25], value);
this.numLeaders = value;
fieldSetFlags()[25] = true;
return this;
}
/**
* Checks whether the 'numLeaders' field has been set.
* @return True if the 'numLeaders' field has been set, false otherwise.
*/
public boolean hasNumLeaders() {
return fieldSetFlags()[25];
}
/**
* Clears the value of the 'numLeaders' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearNumLeaders() {
fieldSetFlags()[25] = false;
return this;
}
/**
* Gets the value of the 'topicsBytesIn1MinRate' field.
* @return The value.
*/
public java.util.Map getTopicsBytesIn1MinRate() {
return topicsBytesIn1MinRate;
}
/**
* Sets the value of the 'topicsBytesIn1MinRate' field.
* @param value The value of 'topicsBytesIn1MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTopicsBytesIn1MinRate(java.util.Map value) {
validate(fields()[26], value);
this.topicsBytesIn1MinRate = value;
fieldSetFlags()[26] = true;
return this;
}
/**
* Checks whether the 'topicsBytesIn1MinRate' field has been set.
* @return True if the 'topicsBytesIn1MinRate' field has been set, false otherwise.
*/
public boolean hasTopicsBytesIn1MinRate() {
return fieldSetFlags()[26];
}
/**
* Clears the value of the 'topicsBytesIn1MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTopicsBytesIn1MinRate() {
topicsBytesIn1MinRate = null;
fieldSetFlags()[26] = false;
return this;
}
/**
* Gets the value of the 'topicsBytesOut1MinRate' field.
* @return The value.
*/
public java.util.Map getTopicsBytesOut1MinRate() {
return topicsBytesOut1MinRate;
}
/**
* Sets the value of the 'topicsBytesOut1MinRate' field.
* @param value The value of 'topicsBytesOut1MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTopicsBytesOut1MinRate(java.util.Map value) {
validate(fields()[27], value);
this.topicsBytesOut1MinRate = value;
fieldSetFlags()[27] = true;
return this;
}
/**
* Checks whether the 'topicsBytesOut1MinRate' field has been set.
* @return True if the 'topicsBytesOut1MinRate' field has been set, false otherwise.
*/
public boolean hasTopicsBytesOut1MinRate() {
return fieldSetFlags()[27];
}
/**
* Clears the value of the 'topicsBytesOut1MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTopicsBytesOut1MinRate() {
topicsBytesOut1MinRate = null;
fieldSetFlags()[27] = false;
return this;
}
/**
* Gets the value of the 'topicsBytesIn5MinRate' field.
* @return The value.
*/
public java.util.Map getTopicsBytesIn5MinRate() {
return topicsBytesIn5MinRate;
}
/**
* Sets the value of the 'topicsBytesIn5MinRate' field.
* @param value The value of 'topicsBytesIn5MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTopicsBytesIn5MinRate(java.util.Map value) {
validate(fields()[28], value);
this.topicsBytesIn5MinRate = value;
fieldSetFlags()[28] = true;
return this;
}
/**
* Checks whether the 'topicsBytesIn5MinRate' field has been set.
* @return True if the 'topicsBytesIn5MinRate' field has been set, false otherwise.
*/
public boolean hasTopicsBytesIn5MinRate() {
return fieldSetFlags()[28];
}
/**
* Clears the value of the 'topicsBytesIn5MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTopicsBytesIn5MinRate() {
topicsBytesIn5MinRate = null;
fieldSetFlags()[28] = false;
return this;
}
/**
* Gets the value of the 'topicsBytesOut5MinRate' field.
* @return The value.
*/
public java.util.Map getTopicsBytesOut5MinRate() {
return topicsBytesOut5MinRate;
}
/**
* Sets the value of the 'topicsBytesOut5MinRate' field.
* @param value The value of 'topicsBytesOut5MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTopicsBytesOut5MinRate(java.util.Map value) {
validate(fields()[29], value);
this.topicsBytesOut5MinRate = value;
fieldSetFlags()[29] = true;
return this;
}
/**
* Checks whether the 'topicsBytesOut5MinRate' field has been set.
* @return True if the 'topicsBytesOut5MinRate' field has been set, false otherwise.
*/
public boolean hasTopicsBytesOut5MinRate() {
return fieldSetFlags()[29];
}
/**
* Clears the value of the 'topicsBytesOut5MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTopicsBytesOut5MinRate() {
topicsBytesOut5MinRate = null;
fieldSetFlags()[29] = false;
return this;
}
/**
* Gets the value of the 'topicsBytesIn15MinRate' field.
* @return The value.
*/
public java.util.Map getTopicsBytesIn15MinRate() {
return topicsBytesIn15MinRate;
}
/**
* Sets the value of the 'topicsBytesIn15MinRate' field.
* @param value The value of 'topicsBytesIn15MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTopicsBytesIn15MinRate(java.util.Map value) {
validate(fields()[30], value);
this.topicsBytesIn15MinRate = value;
fieldSetFlags()[30] = true;
return this;
}
/**
* Checks whether the 'topicsBytesIn15MinRate' field has been set.
* @return True if the 'topicsBytesIn15MinRate' field has been set, false otherwise.
*/
public boolean hasTopicsBytesIn15MinRate() {
return fieldSetFlags()[30];
}
/**
* Clears the value of the 'topicsBytesIn15MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTopicsBytesIn15MinRate() {
topicsBytesIn15MinRate = null;
fieldSetFlags()[30] = false;
return this;
}
/**
* Gets the value of the 'topicsBytesOut15MinRate' field.
* @return The value.
*/
public java.util.Map getTopicsBytesOut15MinRate() {
return topicsBytesOut15MinRate;
}
/**
* Sets the value of the 'topicsBytesOut15MinRate' field.
* @param value The value of 'topicsBytesOut15MinRate'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setTopicsBytesOut15MinRate(java.util.Map value) {
validate(fields()[31], value);
this.topicsBytesOut15MinRate = value;
fieldSetFlags()[31] = true;
return this;
}
/**
* Checks whether the 'topicsBytesOut15MinRate' field has been set.
* @return True if the 'topicsBytesOut15MinRate' field has been set, false otherwise.
*/
public boolean hasTopicsBytesOut15MinRate() {
return fieldSetFlags()[31];
}
/**
* Clears the value of the 'topicsBytesOut15MinRate' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearTopicsBytesOut15MinRate() {
topicsBytesOut15MinRate = null;
fieldSetFlags()[31] = false;
return this;
}
/**
* Gets the value of the 'leaderReplicaStats' field.
* @return The value.
*/
public java.util.List getLeaderReplicaStats() {
return leaderReplicaStats;
}
/**
* Sets the value of the 'leaderReplicaStats' field.
* @param value The value of 'leaderReplicaStats'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeaderReplicaStats(java.util.List value) {
validate(fields()[32], value);
this.leaderReplicaStats = value;
fieldSetFlags()[32] = true;
return this;
}
/**
* Checks whether the 'leaderReplicaStats' field has been set.
* @return True if the 'leaderReplicaStats' field has been set, false otherwise.
*/
public boolean hasLeaderReplicaStats() {
return fieldSetFlags()[32];
}
/**
* Clears the value of the 'leaderReplicaStats' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeaderReplicaStats() {
leaderReplicaStats = null;
fieldSetFlags()[32] = false;
return this;
}
/**
* Gets the value of the 'leaderReplicas' field.
* @return The value.
*/
public java.util.List getLeaderReplicas() {
return leaderReplicas;
}
/**
* Sets the value of the 'leaderReplicas' field.
* @param value The value of 'leaderReplicas'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setLeaderReplicas(java.util.List value) {
validate(fields()[33], value);
this.leaderReplicas = value;
fieldSetFlags()[33] = true;
return this;
}
/**
* Checks whether the 'leaderReplicas' field has been set.
* @return True if the 'leaderReplicas' field has been set, false otherwise.
*/
public boolean hasLeaderReplicas() {
return fieldSetFlags()[33];
}
/**
* Clears the value of the 'leaderReplicas' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearLeaderReplicas() {
leaderReplicas = null;
fieldSetFlags()[33] = false;
return this;
}
/**
* Gets the value of the 'followerReplicas' field.
* @return The value.
*/
public java.util.List getFollowerReplicas() {
return followerReplicas;
}
/**
* Sets the value of the 'followerReplicas' field.
* @param value The value of 'followerReplicas'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setFollowerReplicas(java.util.List value) {
validate(fields()[34], value);
this.followerReplicas = value;
fieldSetFlags()[34] = true;
return this;
}
/**
* Checks whether the 'followerReplicas' field has been set.
* @return True if the 'followerReplicas' field has been set, false otherwise.
*/
public boolean hasFollowerReplicas() {
return fieldSetFlags()[34];
}
/**
* Clears the value of the 'followerReplicas' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearFollowerReplicas() {
followerReplicas = null;
fieldSetFlags()[34] = false;
return this;
}
/**
* Gets the value of the 'inReassignmentReplicas' field.
* @return The value.
*/
public java.util.List getInReassignmentReplicas() {
return inReassignmentReplicas;
}
/**
* Sets the value of the 'inReassignmentReplicas' field.
* @param value The value of 'inReassignmentReplicas'.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder setInReassignmentReplicas(java.util.List value) {
validate(fields()[35], value);
this.inReassignmentReplicas = value;
fieldSetFlags()[35] = true;
return this;
}
/**
* Checks whether the 'inReassignmentReplicas' field has been set.
* @return True if the 'inReassignmentReplicas' field has been set, false otherwise.
*/
public boolean hasInReassignmentReplicas() {
return fieldSetFlags()[35];
}
/**
* Clears the value of the 'inReassignmentReplicas' field.
* @return This builder.
*/
public com.pinterest.doctorkafka.BrokerStats.Builder clearInReassignmentReplicas() {
inReassignmentReplicas = null;
fieldSetFlags()[35] = false;
return this;
}
@Override
@SuppressWarnings("unchecked")
public BrokerStats build() {
try {
BrokerStats record = new BrokerStats();
record.timestamp = fieldSetFlags()[0] ? this.timestamp : (java.lang.Long) defaultValue(fields()[0]);
record.id = fieldSetFlags()[1] ? this.id : (java.lang.Integer) defaultValue(fields()[1]);
record.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]);
record.zkUrl = fieldSetFlags()[3] ? this.zkUrl : (java.lang.String) defaultValue(fields()[3]);
record.kafkaVersion = fieldSetFlags()[4] ? this.kafkaVersion : (java.lang.String) defaultValue(fields()[4]);
record.statsVersion = fieldSetFlags()[5] ? this.statsVersion : (java.lang.String) defaultValue(fields()[5]);
record.hasFailure = fieldSetFlags()[6] ? this.hasFailure : (java.lang.Boolean) defaultValue(fields()[6]);
record.failureReason = fieldSetFlags()[7] ? this.failureReason : (com.pinterest.doctorkafka.BrokerError) defaultValue(fields()[7]);
record.availabilityZone = fieldSetFlags()[8] ? this.availabilityZone : (java.lang.String) defaultValue(fields()[8]);
record.instanceType = fieldSetFlags()[9] ? this.instanceType : (java.lang.String) defaultValue(fields()[9]);
record.amiId = fieldSetFlags()[10] ? this.amiId : (java.lang.String) defaultValue(fields()[10]);
record.rackId = fieldSetFlags()[11] ? this.rackId : (java.lang.String) defaultValue(fields()[11]);
record.logFilesPath = fieldSetFlags()[12] ? this.logFilesPath : (java.lang.String) defaultValue(fields()[12]);
record.cpuUsage = fieldSetFlags()[13] ? this.cpuUsage : (java.lang.Double) defaultValue(fields()[13]);
record.freeDiskSpaceInBytes = fieldSetFlags()[14] ? this.freeDiskSpaceInBytes : (java.lang.Long) defaultValue(fields()[14]);
record.totalDiskSpaceInBytes = fieldSetFlags()[15] ? this.totalDiskSpaceInBytes : (java.lang.Long) defaultValue(fields()[15]);
record.leadersBytesIn1MinRate = fieldSetFlags()[16] ? this.leadersBytesIn1MinRate : (java.lang.Long) defaultValue(fields()[16]);
record.leadersBytesOut1MinRate = fieldSetFlags()[17] ? this.leadersBytesOut1MinRate : (java.lang.Long) defaultValue(fields()[17]);
record.leadersBytesIn5MinRate = fieldSetFlags()[18] ? this.leadersBytesIn5MinRate : (java.lang.Long) defaultValue(fields()[18]);
record.leadersBytesOut5MinRate = fieldSetFlags()[19] ? this.leadersBytesOut5MinRate : (java.lang.Long) defaultValue(fields()[19]);
record.leadersBytesIn15MinRate = fieldSetFlags()[20] ? this.leadersBytesIn15MinRate : (java.lang.Long) defaultValue(fields()[20]);
record.leadersBytesOut15MinRate = fieldSetFlags()[21] ? this.leadersBytesOut15MinRate : (java.lang.Long) defaultValue(fields()[21]);
record.sysBytesIn1MinRate = fieldSetFlags()[22] ? this.sysBytesIn1MinRate : (java.lang.Long) defaultValue(fields()[22]);
record.sysBytesOut1MinRate = fieldSetFlags()[23] ? this.sysBytesOut1MinRate : (java.lang.Long) defaultValue(fields()[23]);
record.numReplicas = fieldSetFlags()[24] ? this.numReplicas : (java.lang.Integer) defaultValue(fields()[24]);
record.numLeaders = fieldSetFlags()[25] ? this.numLeaders : (java.lang.Integer) defaultValue(fields()[25]);
record.topicsBytesIn1MinRate = fieldSetFlags()[26] ? this.topicsBytesIn1MinRate : (java.util.Map) defaultValue(fields()[26]);
record.topicsBytesOut1MinRate = fieldSetFlags()[27] ? this.topicsBytesOut1MinRate : (java.util.Map) defaultValue(fields()[27]);
record.topicsBytesIn5MinRate = fieldSetFlags()[28] ? this.topicsBytesIn5MinRate : (java.util.Map) defaultValue(fields()[28]);
record.topicsBytesOut5MinRate = fieldSetFlags()[29] ? this.topicsBytesOut5MinRate : (java.util.Map) defaultValue(fields()[29]);
record.topicsBytesIn15MinRate = fieldSetFlags()[30] ? this.topicsBytesIn15MinRate : (java.util.Map) defaultValue(fields()[30]);
record.topicsBytesOut15MinRate = fieldSetFlags()[31] ? this.topicsBytesOut15MinRate : (java.util.Map) defaultValue(fields()[31]);
record.leaderReplicaStats = fieldSetFlags()[32] ? this.leaderReplicaStats : (java.util.List) defaultValue(fields()[32]);
record.leaderReplicas = fieldSetFlags()[33] ? this.leaderReplicas : (java.util.List) defaultValue(fields()[33]);
record.followerReplicas = fieldSetFlags()[34] ? this.followerReplicas : (java.util.List) defaultValue(fields()[34]);
record.inReassignmentReplicas = fieldSetFlags()[35] ? this.inReassignmentReplicas : (java.util.List) defaultValue(fields()[35]);
return record;
} catch (java.lang.Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumWriter
WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
@Override public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException {
WRITER$.write(this, SpecificData.getEncoder(out));
}
@SuppressWarnings("unchecked")
private static final org.apache.avro.io.DatumReader
READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
@Override public void readExternal(java.io.ObjectInput in)
throws java.io.IOException {
READER$.read(this, SpecificData.getDecoder(in));
}
}