Skip to content

Commit

Permalink
Added gen classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Acarus committed Sep 2, 2016
1 parent 526adf3 commit e35c3d7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 56 deletions.
Expand Up @@ -7,12 +7,12 @@
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class AvroHttpConfig 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\":\"AvroHttpConfig\",\"namespace\":\"org.kaaproject.kaa.server.transport.http.config.gen\",\"fields\":[{\"name\":\"bindInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"bindPort\",\"type\":\"int\"},{\"name\":\"publicInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"publicPort\",\"type\":\"int\"},{\"name\":\"maxBodySize\",\"type\":\"int\"}]}");
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AvroHttpConfig\",\"namespace\":\"org.kaaproject.kaa.server.transport.http.config.gen\",\"fields\":[{\"name\":\"bindInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"bindPort\",\"type\":\"int\"},{\"name\":\"publicInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"publicPorts\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"maxBodySize\",\"type\":\"int\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private java.lang.String bindInterface;
private int bindPort;
private java.lang.String publicInterface;
private int publicPort;
private java.lang.String publicPorts;
private int maxBodySize;

/**
Expand All @@ -25,11 +25,11 @@ public AvroHttpConfig() {}
/**
* All-args constructor.
*/
public AvroHttpConfig(java.lang.String bindInterface, java.lang.Integer bindPort, java.lang.String publicInterface, java.lang.Integer publicPort, java.lang.Integer maxBodySize) {
public AvroHttpConfig(java.lang.String bindInterface, java.lang.Integer bindPort, java.lang.String publicInterface, java.lang.String publicPorts, java.lang.Integer maxBodySize) {
this.bindInterface = bindInterface;
this.bindPort = bindPort;
this.publicInterface = publicInterface;
this.publicPort = publicPort;
this.publicPorts = publicPorts;
this.maxBodySize = maxBodySize;
}

Expand All @@ -40,7 +40,7 @@ public java.lang.Object get(int field$) {
case 0: return bindInterface;
case 1: return bindPort;
case 2: return publicInterface;
case 3: return publicPort;
case 3: return publicPorts;
case 4: return maxBodySize;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
Expand All @@ -52,7 +52,7 @@ public void put(int field$, java.lang.Object value$) {
case 0: bindInterface = (java.lang.String)value$; break;
case 1: bindPort = (java.lang.Integer)value$; break;
case 2: publicInterface = (java.lang.String)value$; break;
case 3: publicPort = (java.lang.Integer)value$; break;
case 3: publicPorts = (java.lang.String)value$; break;
case 4: maxBodySize = (java.lang.Integer)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
Expand Down Expand Up @@ -104,18 +104,18 @@ public void setPublicInterface(java.lang.String value) {
}

/**
* Gets the value of the 'publicPort' field.
* Gets the value of the 'publicPorts' field.
*/
public java.lang.Integer getPublicPort() {
return publicPort;
public java.lang.String getPublicPorts() {
return publicPorts;
}

/**
* Sets the value of the 'publicPort' field.
* Sets the value of the 'publicPorts' field.
* @param value the value to set.
*/
public void setPublicPort(java.lang.Integer value) {
this.publicPort = value;
public void setPublicPorts(java.lang.String value) {
this.publicPorts = value;
}

/**
Expand Down Expand Up @@ -157,7 +157,7 @@ public static class Builder extends org.apache.avro.specific.SpecificRecordBuild
private java.lang.String bindInterface;
private int bindPort;
private java.lang.String publicInterface;
private int publicPort;
private java.lang.String publicPorts;
private int maxBodySize;

/** Creates a new Builder */
Expand All @@ -180,8 +180,8 @@ private Builder(org.kaaproject.kaa.server.transport.http.config.gen.AvroHttpConf
this.publicInterface = data().deepCopy(fields()[2].schema(), other.publicInterface);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.publicPort)) {
this.publicPort = data().deepCopy(fields()[3].schema(), other.publicPort);
if (isValidValue(fields()[3], other.publicPorts)) {
this.publicPorts = data().deepCopy(fields()[3].schema(), other.publicPorts);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.maxBodySize)) {
Expand All @@ -205,8 +205,8 @@ private Builder(org.kaaproject.kaa.server.transport.http.config.gen.AvroHttpConf
this.publicInterface = data().deepCopy(fields()[2].schema(), other.publicInterface);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.publicPort)) {
this.publicPort = data().deepCopy(fields()[3].schema(), other.publicPort);
if (isValidValue(fields()[3], other.publicPorts)) {
this.publicPorts = data().deepCopy(fields()[3].schema(), other.publicPorts);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.maxBodySize)) {
Expand Down Expand Up @@ -289,26 +289,27 @@ public org.kaaproject.kaa.server.transport.http.config.gen.AvroHttpConfig.Builde
return this;
}

/** Gets the value of the 'publicPort' field */
public java.lang.Integer getPublicPort() {
return publicPort;
/** Gets the value of the 'publicPorts' field */
public java.lang.String getPublicPorts() {
return publicPorts;
}

/** Sets the value of the 'publicPort' field */
public org.kaaproject.kaa.server.transport.http.config.gen.AvroHttpConfig.Builder setPublicPort(int value) {
/** Sets the value of the 'publicPorts' field */
public org.kaaproject.kaa.server.transport.http.config.gen.AvroHttpConfig.Builder setPublicPorts(java.lang.String value) {
validate(fields()[3], value);
this.publicPort = value;
this.publicPorts = value;
fieldSetFlags()[3] = true;
return this;
}

/** Checks whether the 'publicPort' field has been set */
public boolean hasPublicPort() {
/** Checks whether the 'publicPorts' field has been set */
public boolean hasPublicPorts() {
return fieldSetFlags()[3];
}

/** Clears the value of the 'publicPort' field */
public org.kaaproject.kaa.server.transport.http.config.gen.AvroHttpConfig.Builder clearPublicPort() {
/** Clears the value of the 'publicPorts' field */
public org.kaaproject.kaa.server.transport.http.config.gen.AvroHttpConfig.Builder clearPublicPorts() {
publicPorts = null;
fieldSetFlags()[3] = false;
return this;
}
Expand Down Expand Up @@ -344,7 +345,7 @@ public AvroHttpConfig build() {
record.bindInterface = fieldSetFlags()[0] ? this.bindInterface : (java.lang.String) defaultValue(fields()[0]);
record.bindPort = fieldSetFlags()[1] ? this.bindPort : (java.lang.Integer) defaultValue(fields()[1]);
record.publicInterface = fieldSetFlags()[2] ? this.publicInterface : (java.lang.String) defaultValue(fields()[2]);
record.publicPort = fieldSetFlags()[3] ? this.publicPort : (java.lang.Integer) defaultValue(fields()[3]);
record.publicPorts = fieldSetFlags()[3] ? this.publicPorts : (java.lang.String) defaultValue(fields()[3]);
record.maxBodySize = fieldSetFlags()[4] ? this.maxBodySize : (java.lang.Integer) defaultValue(fields()[4]);
return record;
} catch (Exception e) {
Expand Down
Expand Up @@ -7,12 +7,12 @@
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class AvroTcpConfig 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\":\"AvroTcpConfig\",\"namespace\":\"org.kaaproject.kaa.server.transport.tcp.config.gen\",\"fields\":[{\"name\":\"bindInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"bindPort\",\"type\":\"int\"},{\"name\":\"publicInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"publicPort\",\"type\":\"int\"}]}");
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AvroTcpConfig\",\"namespace\":\"org.kaaproject.kaa.server.transport.tcp.config.gen\",\"fields\":[{\"name\":\"bindInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"bindPort\",\"type\":\"int\"},{\"name\":\"publicInterface\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"publicPorts\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
private java.lang.String bindInterface;
private int bindPort;
private java.lang.String publicInterface;
private int publicPort;
private java.lang.String publicPorts;

/**
* Default constructor. Note that this does not initialize fields
Expand All @@ -24,11 +24,11 @@ public AvroTcpConfig() {}
/**
* All-args constructor.
*/
public AvroTcpConfig(java.lang.String bindInterface, java.lang.Integer bindPort, java.lang.String publicInterface, java.lang.Integer publicPort) {
public AvroTcpConfig(java.lang.String bindInterface, java.lang.Integer bindPort, java.lang.String publicInterface, java.lang.String publicPorts) {
this.bindInterface = bindInterface;
this.bindPort = bindPort;
this.publicInterface = publicInterface;
this.publicPort = publicPort;
this.publicPorts = publicPorts;
}

public org.apache.avro.Schema getSchema() { return SCHEMA$; }
Expand All @@ -38,7 +38,7 @@ public java.lang.Object get(int field$) {
case 0: return bindInterface;
case 1: return bindPort;
case 2: return publicInterface;
case 3: return publicPort;
case 3: return publicPorts;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
Expand All @@ -49,7 +49,7 @@ public void put(int field$, java.lang.Object value$) {
case 0: bindInterface = (java.lang.String)value$; break;
case 1: bindPort = (java.lang.Integer)value$; break;
case 2: publicInterface = (java.lang.String)value$; break;
case 3: publicPort = (java.lang.Integer)value$; break;
case 3: publicPorts = (java.lang.String)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
Expand Down Expand Up @@ -100,18 +100,18 @@ public void setPublicInterface(java.lang.String value) {
}

/**
* Gets the value of the 'publicPort' field.
* Gets the value of the 'publicPorts' field.
*/
public java.lang.Integer getPublicPort() {
return publicPort;
public java.lang.String getPublicPorts() {
return publicPorts;
}

/**
* Sets the value of the 'publicPort' field.
* Sets the value of the 'publicPorts' field.
* @param value the value to set.
*/
public void setPublicPort(java.lang.Integer value) {
this.publicPort = value;
public void setPublicPorts(java.lang.String value) {
this.publicPorts = value;
}

/** Creates a new AvroTcpConfig RecordBuilder */
Expand All @@ -138,7 +138,7 @@ public static class Builder extends org.apache.avro.specific.SpecificRecordBuild
private java.lang.String bindInterface;
private int bindPort;
private java.lang.String publicInterface;
private int publicPort;
private java.lang.String publicPorts;

/** Creates a new Builder */
private Builder() {
Expand All @@ -160,8 +160,8 @@ private Builder(org.kaaproject.kaa.server.transport.tcp.config.gen.AvroTcpConfig
this.publicInterface = data().deepCopy(fields()[2].schema(), other.publicInterface);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.publicPort)) {
this.publicPort = data().deepCopy(fields()[3].schema(), other.publicPort);
if (isValidValue(fields()[3], other.publicPorts)) {
this.publicPorts = data().deepCopy(fields()[3].schema(), other.publicPorts);
fieldSetFlags()[3] = true;
}
}
Expand All @@ -181,8 +181,8 @@ private Builder(org.kaaproject.kaa.server.transport.tcp.config.gen.AvroTcpConfig
this.publicInterface = data().deepCopy(fields()[2].schema(), other.publicInterface);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.publicPort)) {
this.publicPort = data().deepCopy(fields()[3].schema(), other.publicPort);
if (isValidValue(fields()[3], other.publicPorts)) {
this.publicPorts = data().deepCopy(fields()[3].schema(), other.publicPorts);
fieldSetFlags()[3] = true;
}
}
Expand Down Expand Up @@ -261,26 +261,27 @@ public org.kaaproject.kaa.server.transport.tcp.config.gen.AvroTcpConfig.Builder
return this;
}

/** Gets the value of the 'publicPort' field */
public java.lang.Integer getPublicPort() {
return publicPort;
/** Gets the value of the 'publicPorts' field */
public java.lang.String getPublicPorts() {
return publicPorts;
}

/** Sets the value of the 'publicPort' field */
public org.kaaproject.kaa.server.transport.tcp.config.gen.AvroTcpConfig.Builder setPublicPort(int value) {
/** Sets the value of the 'publicPorts' field */
public org.kaaproject.kaa.server.transport.tcp.config.gen.AvroTcpConfig.Builder setPublicPorts(java.lang.String value) {
validate(fields()[3], value);
this.publicPort = value;
this.publicPorts = value;
fieldSetFlags()[3] = true;
return this;
}

/** Checks whether the 'publicPort' field has been set */
public boolean hasPublicPort() {
/** Checks whether the 'publicPorts' field has been set */
public boolean hasPublicPorts() {
return fieldSetFlags()[3];
}

/** Clears the value of the 'publicPort' field */
public org.kaaproject.kaa.server.transport.tcp.config.gen.AvroTcpConfig.Builder clearPublicPort() {
/** Clears the value of the 'publicPorts' field */
public org.kaaproject.kaa.server.transport.tcp.config.gen.AvroTcpConfig.Builder clearPublicPorts() {
publicPorts = null;
fieldSetFlags()[3] = false;
return this;
}
Expand All @@ -292,7 +293,7 @@ public AvroTcpConfig build() {
record.bindInterface = fieldSetFlags()[0] ? this.bindInterface : (java.lang.String) defaultValue(fields()[0]);
record.bindPort = fieldSetFlags()[1] ? this.bindPort : (java.lang.Integer) defaultValue(fields()[1]);
record.publicInterface = fieldSetFlags()[2] ? this.publicInterface : (java.lang.String) defaultValue(fields()[2]);
record.publicPort = fieldSetFlags()[3] ? this.publicPort : (java.lang.Integer) defaultValue(fields()[3]);
record.publicPorts = fieldSetFlags()[3] ? this.publicPorts : (java.lang.String) defaultValue(fields()[3]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
Expand Down

0 comments on commit e35c3d7

Please sign in to comment.