Suppressed all compiler warnings in the generated code
This commit is contained in:
parent
7a9c72fd76
commit
d88246fbda
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
package org.jboss.netty.example.localtime;
|
package org.jboss.netty.example.localtime;
|
||||||
|
|
||||||
|
@SuppressWarnings("all")
|
||||||
public final class LocalTimeProtocol {
|
public final class LocalTimeProtocol {
|
||||||
private LocalTimeProtocol() {}
|
private LocalTimeProtocol() {}
|
||||||
public static void registerAllExtensions(
|
public static void registerAllExtensions(
|
||||||
@ -178,8 +179,12 @@ public final class LocalTimeProtocol {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean isInitialized() {
|
public final boolean isInitialized() {
|
||||||
if (!hasContinent) return false;
|
if (!hasContinent) {
|
||||||
if (!hasCity) return false;
|
return false;
|
||||||
|
}
|
||||||
|
if (!hasCity) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +204,9 @@ public final class LocalTimeProtocol {
|
|||||||
@Override
|
@Override
|
||||||
public int getSerializedSize() {
|
public int getSerializedSize() {
|
||||||
int size = memoizedSerializedSize;
|
int size = memoizedSerializedSize;
|
||||||
if (size != -1) return size;
|
if (size != -1) {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
size = 0;
|
size = 0;
|
||||||
if (hasContinent()) {
|
if (hasContinent()) {
|
||||||
@ -335,14 +342,16 @@ public final class LocalTimeProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Location other) {
|
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Location other) {
|
||||||
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Location.getDefaultInstance()) return this;
|
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Location.getDefaultInstance()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
if (other.hasContinent()) {
|
if (other.hasContinent()) {
|
||||||
setContinent(other.getContinent());
|
setContinent(other.getContinent());
|
||||||
}
|
}
|
||||||
if (other.hasCity()) {
|
if (other.hasCity()) {
|
||||||
setCity(other.getCity());
|
setCity(other.getCity());
|
||||||
}
|
}
|
||||||
this.mergeUnknownFields(other.getUnknownFields());
|
mergeUnknownFields(other.getUnknownFields());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,17 +370,17 @@ public final class LocalTimeProtocol {
|
|||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder(
|
com.google.protobuf.UnknownFieldSet.newBuilder(
|
||||||
this.getUnknownFields());
|
getUnknownFields());
|
||||||
while (true) {
|
while (true) {
|
||||||
int tag = input.readTag();
|
int tag = input.readTag();
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case 0:
|
case 0:
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(input, unknownFields,
|
if (!parseUnknownField(input, unknownFields,
|
||||||
extensionRegistry, tag)) {
|
extensionRegistry, tag)) {
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -476,7 +485,9 @@ public final class LocalTimeProtocol {
|
|||||||
@Override
|
@Override
|
||||||
public final boolean isInitialized() {
|
public final boolean isInitialized() {
|
||||||
for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
|
for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
|
||||||
if (!element.isInitialized()) return false;
|
if (!element.isInitialized()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -494,7 +505,9 @@ public final class LocalTimeProtocol {
|
|||||||
@Override
|
@Override
|
||||||
public int getSerializedSize() {
|
public int getSerializedSize() {
|
||||||
int size = memoizedSerializedSize;
|
int size = memoizedSerializedSize;
|
||||||
if (size != -1) return size;
|
if (size != -1) {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
size = 0;
|
size = 0;
|
||||||
for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
|
for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
|
||||||
@ -630,14 +643,16 @@ public final class LocalTimeProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Locations other) {
|
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Locations other) {
|
||||||
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.getDefaultInstance()) return this;
|
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.getDefaultInstance()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
if (!other.location_.isEmpty()) {
|
if (!other.location_.isEmpty()) {
|
||||||
if (result.location_.isEmpty()) {
|
if (result.location_.isEmpty()) {
|
||||||
result.location_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.Location>();
|
result.location_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.Location>();
|
||||||
}
|
}
|
||||||
result.location_.addAll(other.location_);
|
result.location_.addAll(other.location_);
|
||||||
}
|
}
|
||||||
this.mergeUnknownFields(other.getUnknownFields());
|
mergeUnknownFields(other.getUnknownFields());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -656,17 +671,17 @@ public final class LocalTimeProtocol {
|
|||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder(
|
com.google.protobuf.UnknownFieldSet.newBuilder(
|
||||||
this.getUnknownFields());
|
getUnknownFields());
|
||||||
while (true) {
|
while (true) {
|
||||||
int tag = input.readTag();
|
int tag = input.readTag();
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case 0:
|
case 0:
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(input, unknownFields,
|
if (!parseUnknownField(input, unknownFields,
|
||||||
extensionRegistry, tag)) {
|
extensionRegistry, tag)) {
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -802,13 +817,27 @@ public final class LocalTimeProtocol {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean isInitialized() {
|
public final boolean isInitialized() {
|
||||||
if (!hasYear) return false;
|
if (!hasYear) {
|
||||||
if (!hasMonth) return false;
|
return false;
|
||||||
if (!hasDayOfMonth) return false;
|
}
|
||||||
if (!hasDayOfWeek) return false;
|
if (!hasMonth) {
|
||||||
if (!hasHour) return false;
|
return false;
|
||||||
if (!hasMinute) return false;
|
}
|
||||||
if (!hasSecond) return false;
|
if (!hasDayOfMonth) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!hasDayOfWeek) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!hasHour) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!hasMinute) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!hasSecond) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -843,7 +872,9 @@ public final class LocalTimeProtocol {
|
|||||||
@Override
|
@Override
|
||||||
public int getSerializedSize() {
|
public int getSerializedSize() {
|
||||||
int size = memoizedSerializedSize;
|
int size = memoizedSerializedSize;
|
||||||
if (size != -1) return size;
|
if (size != -1) {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
size = 0;
|
size = 0;
|
||||||
if (hasYear()) {
|
if (hasYear()) {
|
||||||
@ -999,7 +1030,9 @@ public final class LocalTimeProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime other) {
|
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime other) {
|
||||||
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.getDefaultInstance()) return this;
|
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.getDefaultInstance()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
if (other.hasYear()) {
|
if (other.hasYear()) {
|
||||||
setYear(other.getYear());
|
setYear(other.getYear());
|
||||||
}
|
}
|
||||||
@ -1021,7 +1054,7 @@ public final class LocalTimeProtocol {
|
|||||||
if (other.hasSecond()) {
|
if (other.hasSecond()) {
|
||||||
setSecond(other.getSecond());
|
setSecond(other.getSecond());
|
||||||
}
|
}
|
||||||
this.mergeUnknownFields(other.getUnknownFields());
|
mergeUnknownFields(other.getUnknownFields());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1040,17 +1073,17 @@ public final class LocalTimeProtocol {
|
|||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder(
|
com.google.protobuf.UnknownFieldSet.newBuilder(
|
||||||
this.getUnknownFields());
|
getUnknownFields());
|
||||||
while (true) {
|
while (true) {
|
||||||
int tag = input.readTag();
|
int tag = input.readTag();
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case 0:
|
case 0:
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(input, unknownFields,
|
if (!parseUnknownField(input, unknownFields,
|
||||||
extensionRegistry, tag)) {
|
extensionRegistry, tag)) {
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1265,7 +1298,9 @@ public final class LocalTimeProtocol {
|
|||||||
@Override
|
@Override
|
||||||
public final boolean isInitialized() {
|
public final boolean isInitialized() {
|
||||||
for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
|
for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
|
||||||
if (!element.isInitialized()) return false;
|
if (!element.isInitialized()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1283,7 +1318,9 @@ public final class LocalTimeProtocol {
|
|||||||
@Override
|
@Override
|
||||||
public int getSerializedSize() {
|
public int getSerializedSize() {
|
||||||
int size = memoizedSerializedSize;
|
int size = memoizedSerializedSize;
|
||||||
if (size != -1) return size;
|
if (size != -1) {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
size = 0;
|
size = 0;
|
||||||
for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
|
for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
|
||||||
@ -1419,14 +1456,16 @@ public final class LocalTimeProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes other) {
|
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes other) {
|
||||||
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.getDefaultInstance()) return this;
|
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.getDefaultInstance()) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
if (!other.localTime_.isEmpty()) {
|
if (!other.localTime_.isEmpty()) {
|
||||||
if (result.localTime_.isEmpty()) {
|
if (result.localTime_.isEmpty()) {
|
||||||
result.localTime_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime>();
|
result.localTime_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime>();
|
||||||
}
|
}
|
||||||
result.localTime_.addAll(other.localTime_);
|
result.localTime_.addAll(other.localTime_);
|
||||||
}
|
}
|
||||||
this.mergeUnknownFields(other.getUnknownFields());
|
mergeUnknownFields(other.getUnknownFields());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1445,17 +1484,17 @@ public final class LocalTimeProtocol {
|
|||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder(
|
com.google.protobuf.UnknownFieldSet.newBuilder(
|
||||||
this.getUnknownFields());
|
getUnknownFields());
|
||||||
while (true) {
|
while (true) {
|
||||||
int tag = input.readTag();
|
int tag = input.readTag();
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case 0:
|
case 0:
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
default: {
|
default: {
|
||||||
if (!parseUnknownField(input, unknownFields,
|
if (!parseUnknownField(input, unknownFields,
|
||||||
extensionRegistry, tag)) {
|
extensionRegistry, tag)) {
|
||||||
this.setUnknownFields(unknownFields.build());
|
setUnknownFields(unknownFields.build());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user