All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gel.models.participant.avro.VersionControl Maven / Gradle / Ivy

/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */
package org.gel.models.participant.avro;  
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class VersionControl extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
  public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"VersionControl\",\"namespace\":\"org.gel.models.participant.avro\",\"fields\":[{\"name\":\"GitVersionControl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"This is the version for the entire set of data models as referred to the Git release tag\",\"default\":\"1.3.0\"}]}");
  public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
  /** This is the version for the entire set of data models as referred to the Git release tag */
   private java.lang.String GitVersionControl;

  /**
   * 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 VersionControl() {}

  /**
   * All-args constructor.
   */
  public VersionControl(java.lang.String GitVersionControl) {
    this.GitVersionControl = GitVersionControl;
  }

  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 GitVersionControl;
    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: GitVersionControl = (java.lang.String)value$; break;
    default: throw new org.apache.avro.AvroRuntimeException("Bad index");
    }
  }

  /**
   * Gets the value of the 'GitVersionControl' field.
   * This is the version for the entire set of data models as referred to the Git release tag   */
  public java.lang.String getGitVersionControl() {
    return GitVersionControl;
  }

  /**
   * Sets the value of the 'GitVersionControl' field.
   * This is the version for the entire set of data models as referred to the Git release tag   * @param value the value to set.
   */
  public void setGitVersionControl(java.lang.String value) {
    this.GitVersionControl = value;
  }

  /** Creates a new VersionControl RecordBuilder */
  public static org.gel.models.participant.avro.VersionControl.Builder newBuilder() {
    return new org.gel.models.participant.avro.VersionControl.Builder();
  }
  
  /** Creates a new VersionControl RecordBuilder by copying an existing Builder */
  public static org.gel.models.participant.avro.VersionControl.Builder newBuilder(org.gel.models.participant.avro.VersionControl.Builder other) {
    return new org.gel.models.participant.avro.VersionControl.Builder(other);
  }
  
  /** Creates a new VersionControl RecordBuilder by copying an existing VersionControl instance */
  public static org.gel.models.participant.avro.VersionControl.Builder newBuilder(org.gel.models.participant.avro.VersionControl other) {
    return new org.gel.models.participant.avro.VersionControl.Builder(other);
  }
  
  /**
   * RecordBuilder for VersionControl instances.
   */
  public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
    implements org.apache.avro.data.RecordBuilder {

    private java.lang.String GitVersionControl;

    /** Creates a new Builder */
    private Builder() {
      super(org.gel.models.participant.avro.VersionControl.SCHEMA$);
    }
    
    /** Creates a Builder by copying an existing Builder */
    private Builder(org.gel.models.participant.avro.VersionControl.Builder other) {
      super(other);
      if (isValidValue(fields()[0], other.GitVersionControl)) {
        this.GitVersionControl = data().deepCopy(fields()[0].schema(), other.GitVersionControl);
        fieldSetFlags()[0] = true;
      }
    }
    
    /** Creates a Builder by copying an existing VersionControl instance */
    private Builder(org.gel.models.participant.avro.VersionControl other) {
            super(org.gel.models.participant.avro.VersionControl.SCHEMA$);
      if (isValidValue(fields()[0], other.GitVersionControl)) {
        this.GitVersionControl = data().deepCopy(fields()[0].schema(), other.GitVersionControl);
        fieldSetFlags()[0] = true;
      }
    }

    /** Gets the value of the 'GitVersionControl' field */
    public java.lang.String getGitVersionControl() {
      return GitVersionControl;
    }
    
    /** Sets the value of the 'GitVersionControl' field */
    public org.gel.models.participant.avro.VersionControl.Builder setGitVersionControl(java.lang.String value) {
      validate(fields()[0], value);
      this.GitVersionControl = value;
      fieldSetFlags()[0] = true;
      return this; 
    }
    
    /** Checks whether the 'GitVersionControl' field has been set */
    public boolean hasGitVersionControl() {
      return fieldSetFlags()[0];
    }
    
    /** Clears the value of the 'GitVersionControl' field */
    public org.gel.models.participant.avro.VersionControl.Builder clearGitVersionControl() {
      GitVersionControl = null;
      fieldSetFlags()[0] = false;
      return this;
    }

    @Override
    public VersionControl build() {
      try {
        VersionControl record = new VersionControl();
        record.GitVersionControl = fieldSetFlags()[0] ? this.GitVersionControl : (java.lang.String) defaultValue(fields()[0]);
        return record;
      } catch (Exception e) {
        throw new org.apache.avro.AvroRuntimeException(e);
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy