+++ /dev/null
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package gr.grnet.aquarium.message.avro.gen;
-@SuppressWarnings("all")
-public class _WorkingAgreementHistory 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\":\"_WorkingAgreementHistory\",\"namespace\":\"gr.grnet.aquarium.message.avro.gen\",\"fields\":[{\"name\":\"agreements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"_UserAgreement\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"relatedIMEventID\",\"type\":[\"string\",\"null\"]},{\"name\":\"validFromMillis\",\"type\":\"long\"},{\"name\":\"validToMillis\",\"type\":\"long\"},{\"name\":\"role\",\"type\":\"string\"},{\"name\":\"fullPriceTableRef\",\"type\":[{\"type\":\"record\",\"name\":\"_FullPriceTable\",\"fields\":[{\"name\":\"perResource\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"_SelectorValue\",\"fields\":[{\"name\":\"selectorValue\",\"type\":[{\"type\":\"record\",\"name\":\"_EffectivePriceTable\",\"fields\":[{\"name\":\"priceOverrides\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"_EffectiveUnitPrice\",\"fields\":[{\"name\":\"unitPrice\",\"type\":\"double\"},{\"name\":\"when\",\"type\":[{\"type\":\"record\",\"name\":\"_CronSpecTuple\",\"fields\":[{\"name\":\"a\",\"type\":\"string\"},{\"name\":\"b\",\"type\":\"string\"}]},\"null\"]}]}}}]},{\"type\":\"map\",\"values\":\"_SelectorValue\"}]}]}}}}]},\"null\"]}]}}}]}");
- @Deprecated public java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement> agreements;
- 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 agreements;
- 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: agreements = (java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement>)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'agreements' field.
- */
- public java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement> getAgreements() {
- return agreements;
- }
-
- /**
- * Sets the value of the 'agreements' field.
- * @param value the value to set.
- */
- public void setAgreements(java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement> value) {
- this.agreements = value;
- }
-
- /** Creates a new _WorkingAgreementHistory RecordBuilder */
- public static gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder newBuilder() {
- return new gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder();
- }
-
- /** Creates a new _WorkingAgreementHistory RecordBuilder by copying an existing Builder */
- public static gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder newBuilder(gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder other) {
- return new gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder(other);
- }
-
- /** Creates a new _WorkingAgreementHistory RecordBuilder by copying an existing _WorkingAgreementHistory instance */
- public static gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder newBuilder(gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory other) {
- return new gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder(other);
- }
-
- /**
- * RecordBuilder for _WorkingAgreementHistory instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<_WorkingAgreementHistory>
- implements org.apache.avro.data.RecordBuilder<_WorkingAgreementHistory> {
-
- private java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement> agreements;
-
- /** Creates a new Builder */
- private Builder() {
- super(gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder other) {
- super(other);
- }
-
- /** Creates a Builder by copying an existing _WorkingAgreementHistory instance */
- private Builder(gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory other) {
- super(gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.SCHEMA$);
- if (isValidValue(fields()[0], other.agreements)) {
- this.agreements = (java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement>) data().deepCopy(fields()[0].schema(), other.agreements);
- fieldSetFlags()[0] = true;
- }
- }
-
- /** Gets the value of the 'agreements' field */
- public java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement> getAgreements() {
- return agreements;
- }
-
- /** Sets the value of the 'agreements' field */
- public gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder setAgreements(java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement> value) {
- validate(fields()[0], value);
- this.agreements = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'agreements' field has been set */
- public boolean hasAgreements() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'agreements' field */
- public gr.grnet.aquarium.message.avro.gen._WorkingAgreementHistory.Builder clearAgreements() {
- agreements = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- @Override
- public _WorkingAgreementHistory build() {
- try {
- _WorkingAgreementHistory record = new _WorkingAgreementHistory();
- record.agreements = fieldSetFlags()[0] ? this.agreements : (java.util.List<gr.grnet.aquarium.message.avro.gen._UserAgreement>) defaultValue(fields()[0]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}