org.apache.hadoop.mapreduce.jobhistory.JobQueueChange Maven / Gradle / Ivy
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory;
@SuppressWarnings("all")
@org.apache.hadoop.shaded.org.apache.avro.specific.AvroGenerated
public class JobQueueChange extends org.apache.hadoop.shaded.org.apache.avro.specific.SpecificRecordBase implements org.apache.hadoop.shaded.org.apache.avro.specific.SpecificRecord {
public static final org.apache.hadoop.shaded.org.apache.avro.Schema SCHEMA$ = new org.apache.hadoop.shaded.org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"JobQueueChange\",\"namespace\":\"org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory\",\"fields\":[{\"name\":\"jobid\",\"type\":\"string\"},{\"name\":\"jobQueueName\",\"type\":\"string\"}]}");
public static org.apache.hadoop.shaded.org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
@Deprecated public java.lang.CharSequence jobid;
@Deprecated public java.lang.CharSequence jobQueueName;
/**
* 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 JobQueueChange() {}
/**
* All-args constructor.
*/
public JobQueueChange(java.lang.CharSequence jobid, java.lang.CharSequence jobQueueName) {
this.jobid = jobid;
this.jobQueueName = jobQueueName;
}
public org.apache.hadoop.shaded.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 jobid;
case 1: return jobQueueName;
default: throw new org.apache.hadoop.shaded.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: jobid = (java.lang.CharSequence)value$; break;
case 1: jobQueueName = (java.lang.CharSequence)value$; break;
default: throw new org.apache.hadoop.shaded.org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'jobid' field.
*/
public java.lang.CharSequence getJobid() {
return jobid;
}
/**
* Sets the value of the 'jobid' field.
* @param value the value to set.
*/
public void setJobid(java.lang.CharSequence value) {
this.jobid = value;
}
/**
* Gets the value of the 'jobQueueName' field.
*/
public java.lang.CharSequence getJobQueueName() {
return jobQueueName;
}
/**
* Sets the value of the 'jobQueueName' field.
* @param value the value to set.
*/
public void setJobQueueName(java.lang.CharSequence value) {
this.jobQueueName = value;
}
/** Creates a new JobQueueChange RecordBuilder */
public static org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder newBuilder() {
return new org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder();
}
/** Creates a new JobQueueChange RecordBuilder by copying an existing Builder */
public static org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder other) {
return new org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder(other);
}
/** Creates a new JobQueueChange RecordBuilder by copying an existing JobQueueChange instance */
public static org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange other) {
return new org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder(other);
}
/**
* RecordBuilder for JobQueueChange instances.
*/
public static class Builder extends org.apache.hadoop.shaded.org.apache.avro.specific.SpecificRecordBuilderBase
implements org.apache.hadoop.shaded.org.apache.avro.data.RecordBuilder {
private java.lang.CharSequence jobid;
private java.lang.CharSequence jobQueueName;
/** Creates a new Builder */
private Builder() {
super(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder other) {
super(other);
if (isValidValue(fields()[0], other.jobid)) {
this.jobid = data().deepCopy(fields()[0].schema(), other.jobid);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.jobQueueName)) {
this.jobQueueName = data().deepCopy(fields()[1].schema(), other.jobQueueName);
fieldSetFlags()[1] = true;
}
}
/** Creates a Builder by copying an existing JobQueueChange instance */
private Builder(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange other) {
super(org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.SCHEMA$);
if (isValidValue(fields()[0], other.jobid)) {
this.jobid = data().deepCopy(fields()[0].schema(), other.jobid);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.jobQueueName)) {
this.jobQueueName = data().deepCopy(fields()[1].schema(), other.jobQueueName);
fieldSetFlags()[1] = true;
}
}
/** Gets the value of the 'jobid' field */
public java.lang.CharSequence getJobid() {
return jobid;
}
/** Sets the value of the 'jobid' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder setJobid(java.lang.CharSequence value) {
validate(fields()[0], value);
this.jobid = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'jobid' field has been set */
public boolean hasJobid() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'jobid' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder clearJobid() {
jobid = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'jobQueueName' field */
public java.lang.CharSequence getJobQueueName() {
return jobQueueName;
}
/** Sets the value of the 'jobQueueName' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder setJobQueueName(java.lang.CharSequence value) {
validate(fields()[1], value);
this.jobQueueName = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'jobQueueName' field has been set */
public boolean hasJobQueueName() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'jobQueueName' field */
public org.apache.hadoop.shaded.org.apache.hadoop.mapreduce.jobhistory.JobQueueChange.Builder clearJobQueueName() {
jobQueueName = null;
fieldSetFlags()[1] = false;
return this;
}
@Override
public JobQueueChange build() {
try {
JobQueueChange record = new JobQueueChange();
record.jobid = fieldSetFlags()[0] ? this.jobid : (java.lang.CharSequence) defaultValue(fields()[0]);
record.jobQueueName = fieldSetFlags()[1] ? this.jobQueueName : (java.lang.CharSequence) defaultValue(fields()[1]);
return record;
} catch (Exception e) {
throw new org.apache.hadoop.shaded.org.apache.avro.AvroRuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy